joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a160
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b62c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x58e5a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.00410080
test eax, eax
je 0x45a2f0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 1
lea esi, [edi + 4]
mov dword [ebp - 0x14], esi
call fcn.00410080
test eax, eax
je 0x45a2f0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
mov dword [edi + 8], 0xffffffff
mov dword [edi + 0xc], 0xffffffff
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov byte [edi + 0x18], 0
mov dword [edi + 0x1c], 0xffffffff
mov dword [edi + 0x20], 0xffffffff
mov dword [edi + 0x24], 0xffffffff
mov dword [edi + 0x28], 0xffffffff
mov dword [edi + 0x2c], 0xffffffff
mov dword [edi + 0x30], 0xffffffff
mov dword [edi + 0x34], 0xffffffff
push 5
mov dword [edi + 0x38], 0xa0a0a
mov dword [edi + 0x3c], 0x232425
mov byte [edi + 0x40], 0
call esi
push 8
mov dword [edi + 0x44], eax
call esi
mov dword [edi + 0x48], eax
push 0xf
mov dword [edi + 0x4c], 0xffffffff
mov dword [edi + 0x50], 0xffffffff
call esi
push 8
mov dword [edi + 0x54], eax
call esi
push 0xf
mov dword [edi + 0x58], eax
call esi
push 8
mov dword [edi + 0x5c], eax
call esi
mov dword [edi + 0x60], eax
push 5
mov dword [edi + 0x64], 0x505050
mov dword [edi + 0x68], 0x808080
call esi
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], 0xc0c0c0
mov byte [edi + 0x74], 0
mov dword [edi + 0x80], 0
mov byte [ebp - 4], 4
mov dword [edi + 0x84], 0
mov byte [ebp - 4], 5
lea eax, [edi + 0x88]
push 0x45a380
push 0x45b9f0
push 0x1f
push 4
push eax
call fcn.004d2aab
mov byte [ebp - 4], 6
mov word [edi + 0x180], 1
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040fbc0
int3

Function at 0x45dd20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x45dd9d
mov esi, dword [ebp + 8]
mov ecx, 1
mov edx, dword [esi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x45dd57
push edi
mov ecx, esi
call fcn.0040d330
mov edx, dword [esi]
push edi
push edx
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x45dd7e
mov ecx, dword [esi]
test ecx, ecx
je 0x45dd82
push dword [ecx - 8]
push ecx
call fcn.004fb6d3
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x45dd9d
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x45dd9d
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.0040fbc0
int3
Function at 0x45f240
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
movzx eax, bl
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
mov eax, ebx
sar eax, 8
movzx eax, al
push esi
push edi
xor edx, eax
mov edi, ecx
imul ecx, edx, 0x1000193
mov eax, ebx
sar eax, 0x10
movzx eax, al
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
sar eax, 0x18
movzx eax, al
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [edi + 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00459ac0
mov eax, dword [eax + 4]
test eax, eax
jne 0x45f2a7
mov eax, dword [edi + 0xc]
mov edi, dword [edi + 0xc]
cmp eax, edi
jne 0x45f2dd
mov esi, dword [edi]
cmp esi, edi
je 0x45f2d2
mov ebx, dword [sym.imp.USER32.dll_IsChild]
nop word [eax + eax]
push dword [ebp + 8]
push dword [esi + 8]
call ebx
test eax, eax
jne 0x45f2dd
mov esi, dword [esi]
cmp esi, edi
jne 0x45f2c0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45f4e0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x58e5a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x5423fc
push eax
push esi
mov dword [ebp - 0x214], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x45f5dd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.theme.ini
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004fbc53
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45f5dd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45f5dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x45f5dd
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x45f5c7
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
call fcn.0045f370
movzx esi, al
test esi, esi
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2a60
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d2a60
mov esp, ebp
pop ebp
ret 8
Function at 0x464ff0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x58e5a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
mov edi, ecx
mov dword [ebp - 0x1c], 0x17
push eax
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetScrollInfo]
push 1
lea eax, [ebp - 0x20]
push eax
push 2
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x46504d
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
inc eax
cmp ecx, eax
jge 0x46504d
mov ebx, 5
push ebx
jmp 0x465050
xor ebx, ebx
push ebx
push dword [edi + 0x24]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x3c], ebx
call esi
lea eax, [ebp - 0x20]
push eax
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetScrollInfo]
push 1
lea eax, [ebp - 0x20]
push eax
push 2
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SetScrollInfo]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x46509b
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
inc eax
cmp ecx, eax
jge 0x46509b
mov dword [ebp - 0x38], 5
push 5
jmp 0x4650a4
mov dword [ebp - 0x38], 0
push 0
push dword [edi + 0x28]
call esi
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
jne 0x4650d1
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
push dword [edi + 4]
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0xc], eax
cmp ebx, 5
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
jne 0x465117
cmp dword [ebp - 0x38], 5
jne 0x4650eb
push 3
call ebx
mov dword [ebp - 0x34], eax
jmp 0x4650f2
mov dword [ebp - 0x34], 0
push 2
call ebx
push 2
mov esi, eax
call ebx
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 8]
push 1
push ecx
push esi
push 0
sub edx, eax
push edx
push dword [edi + 0x24]
call dword [sym.imp.USER32.dll_MoveWindow]
cmp dword [ebp - 0x38], 5
jne 0x465154
push 3
call ebx
cmp dword [ebp - 0x3c], 5
mov dword [ebp - 0x34], eax
jne 0x465132
push 2
call ebx
mov esi, eax
jmp 0x465134
xor esi, esi
push 3
call ebx
mov ecx, dword [ebp + 0xc]
push 1
push dword [ebp - 0x34]
sub ecx, eax
mov eax, dword [ebp + 8]
sub eax, esi
push eax
push ecx
push 0
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d2a60
mov esp, ebp
pop ebp
ret 8
Function at 0x465f30
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52dd9d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x58e5a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, 0x1fffffff
mov edi, 1
bsr ecx, eax
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x4660d0
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.00465e30
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x46608c
nop dword [eax + eax]
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp + 8], eax
cmp ebx, esi
jne 0x466011
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x46607f
mov eax, dword [eax + 4]
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x466048
mov eax, dword [eax]
cmp eax, ecx
je 0x466040
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x10], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x46607f
cmp ebx, eax
je 0x46605c
nop dword [eax]
mov eax, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x4660ae
cmp ebx, eax
jne 0x466050
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x10], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ebx, dword [ebp - 0x14]
mov ecx, edx
cmp edx, esi
jne 0x465fc0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp + 8], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
jmp 0x46607f
push str.invalid_hash_bucket_count
call fcn.004b8f1e
int3
Function at 0x466190
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52de0d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x58e5a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp edx, esi
je 0x46634c
mov ecx, dword [ebx + 4]
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], ecx
mov edi, edx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
xor ecx, eax
movzx eax, byte [edx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [ebp + 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
cmp edi, eax
mov eax, edi
mov edi, dword [edi]
push 0xc
push eax
sete bl
mov dword [ebp - 0x2c], edi
call fcn.004d24a7
mov edx, dword [ebp - 0x10]
add esp, 8
dec dword [edx + 8]
test bl, bl
jne 0x466282
mov eax, dword [ebp - 0x20]
cmp edi, esi
jne 0x466244
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x46633d
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
jmp 0x46633d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jne 0x466294
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x466297
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
cmp edi, esi
je 0x46633d
nop dword [eax]
nop word [eax + eax]
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor ecx, eax
movzx eax, byte [edi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edx + 0x18]
and ecx, eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + ecx*8]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], eax
cmp edi, eax
mov eax, edi
mov edi, dword [edi]
push 0xc
push eax
sete bl
mov dword [ebp - 0x2c], edi
call fcn.004d24a7
mov eax, dword [ebp - 0x10]
add esp, 8
dec dword [eax + 8]
test bl, bl
jne 0x466321
cmp edi, esi
je 0x466338
mov eax, dword [ebp + 0xc]
jmp 0x4662f7
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov dword [eax + 4], edx
cmp edi, esi
je 0x46633d
mov edx, dword [ebp - 0x10]
jmp 0x4662b0
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov dword [eax], edi
mov dword [edi + 4], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x466530
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x58e5a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x466557
push 0x57
jmp 0x4665e3
push 0x1c
lea eax, [ebp - 0x60]
mov dword [ebp - 0x48], 0
push eax
xorps xmm0, xmm0
push esi
push edi
movups xmmword [ebp - 0x60], xmm0
movq qword [ebp - 0x50], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x4665e9
push 0
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4665e9
mov eax, 0x5a4d
cmp word [ebp - 0x44], ax
jne 0x4665de
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x54]
ja 0x4665de
cmp eax, 0x40
jb 0x4665de
push 0
push 0xf8
push ebx
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4665e9
cmp dword [ebx], 0x4550
jne 0x4665de
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2a60
mov esp, ebp
pop ebp
ret 0xc
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d2a60
mov esp, ebp
pop ebp
ret 0xc
Function at 0x467640
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x58e5a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x210], eax
xor edi, edi
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x214], edi
push eax
push 0x5427c0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [ebp + 0xc]
mov esi, eax
lea eax, [ecx - 1]
cmp eax, 0xfff
ja 0x467897
push ebx
push ecx
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call fcn.00466370
test eax, eax
je 0x467882
test esi, esi
je 0x467882
cmp esi, 0x104
jae 0x467882
mov ecx, 0x104
lea eax, [ebp - 0x108]
nop dword [eax]
cmp byte [eax], 0
je 0x4676db
inc eax
sub ecx, 1
jne 0x4676d0
mov edx, 0x104
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x467882
lea ecx, [ebp - 0x108]
lea ecx, [ecx + esi]
sub edx, esi
je 0x467724
mov esi, 0x5427c8
mov eax, SysReAllocString
sub esi, ecx
nop dword [eax]
test eax, eax
je 0x467724
mov bl, byte [esi + ecx]
test bl, bl
je 0x467724
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x467710
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
je 0x467882
mov esi, dword [ebp - 0x214]
lea eax, [esi + 0xc]
push eax
push 0x5427e0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00466670
add esp, 0x10
test eax, eax
js 0x467882
lea eax, [ebp - 0x224]
mov dword [ebp - 0x268], 0x44
push eax
lea eax, [ebp - 0x268]
xorps xmm0, xmm0
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
movlpd qword [ebp - 0x264], xmm0
push eax
lea eax, [ebp - 0x108]
movlpd qword [ebp - 0x25c], xmm0
push eax
movups xmmword [ebp - 0x224], xmm0
movlpd qword [ebp - 0x254], xmm0
movlpd qword [ebp - 0x24c], xmm0
movlpd qword [ebp - 0x244], xmm0
movlpd qword [ebp - 0x23c], xmm0
movlpd qword [ebp - 0x234], xmm0
movlpd qword [ebp - 0x22c], xmm0
call dword [ebp - 0x210]
test eax, eax
je 0x467882
push dword [esi]
push esi
push 0x5427b0
push dword [ebp - 0x224]
call fcn.00466d80
test eax, eax
jne 0x467827
push 0xffffffffffffffff
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x224]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x220]
call esi
jmp 0x467882
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x1f4
push eax
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x224]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x220]
call esi
cmp dword [ebp - 0x210], edi
mov eax, 1
cmove edi, eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x46789f
push eax
call fcn.004d2aa1
add esp, 4
jmp 0x46789f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d2a60
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4682b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x46836e
nop dword [eax]
cmp edi, dword [0x58e12c]
jb 0x4682f8
cmp edi, dword [0x58e130]
ja 0x4682f8
sub edi, 0x8000000
jmp 0x468366
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x46836e
cmp dword [ebp - 0xc], 0x10000
jne 0x468351
cmp dword [ebp - 0x10], 0x10000
jb 0x468351
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x46841a
sub edi, 0x10000
jmp 0x468366
mov ecx, dword [ebp - 0x18]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x4682e0
movzx eax, si
test eax, eax
je 0x46837d
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 0x10]
cmp esi, edi
jae 0x468418
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
cmp esi, dword [0x58e12c]
jb 0x4683a8
cmp esi, dword [0x58e130]
ja 0x4683a8
add esi, 0x8000000
jmp 0x468410
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call ebx
test eax, eax
je 0x468418
cmp dword [ebp - 0xc], 0x10000
mov ecx, dword [ebp - 0x10]
jne 0x4683fb
cmp ecx, 0x10000
jb 0x4683fb
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x46841a
add esi, 0x10000
jmp 0x468410
mov esi, dword [ebp - 0x1c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x468410
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x468390
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x468740
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x57ac00
push 0x4d5590
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x58e5a4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x4687f2
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x4687f2
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x4687f2
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x4687f2
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469080
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x596868], 0
jne 0x4690fc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x596868
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4690fc
push esi
mov esi, dword [0x596858]
mov dword [0x596878], eax
mov dword [0x596874], eax
mov dword [0x596870], eax
push edi
test esi, esi
je 0x4690de
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x4690eb
mov esi, dword [esi + 4]
test esi, esi
jne 0x4690c5
xor eax, eax
pop edi
mov dword [0x59686c], eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x59686c], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret