joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408dfa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 0x14], ebx
mov esi, ecx
push ebx
push 0x4011e0
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0x417888
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x408e79
mov ecx, dword [ebp - 8]
mov byte [ebp - 0x14], bl
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408e3e
push dword [ebp - 0x14]
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 8]
lea ecx, [ebp - 0x30]
call fcn.0040aab3
add esp, 0xc
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
push eax
call fcn.00408be4
pop ecx
xor ecx, ecx
inc ecx
cmp dword [eax], 3
jne 0x408e7c
jmp 0x408e7e
mov ecx, dword [ebp - 0x14]
mov bl, 1
test cl, 1
je 0x408e8b
lea ecx, [ebp - 0x30]
call fcn.00409ef4
mov ecx, esi
test bl, bl
je 0x408e98
push 0x406dcc
jmp 0x408e9b
push dword [ebp - 8]
call fcn.00409db3
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2a3
leave
ret

Function at 0x4090bd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x44], 0x417888
push edi
xor edi, edi
mov dword [ebp - 0x48], edi
cmp dword [ebx + 0x10], edi
je 0x409172
lea edx, [ebp - 0x48]
call fcn.00408bb3
test al, al
je 0x409172
push 0x44
pop esi
push esi
lea eax, [ebp - 0x90]
push edi
push eax
call fcn.0040cf80
xor eax, eax
mov dword [ebp - 0x90], esi
lea edi, [ebp - 0xa0]
add esp, 0xc
cmp dword [ebx + 0x14], 8
mov esi, 0x406dd0
stosd dword es:[edi], eax
push 0xf
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
jb 0x409131
mov ebx, dword [ebx]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x90]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x409172
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x409174
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2a3
leave
ret
Function at 0x4098b6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
lea ecx, [ebp - 0x6c]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ecx
push 0x20019
push ebx
movzx eax, al
push 0x406e10
sub eax, 0x7fffffff
mov dword [ebp - 0x6c], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409918
push 0x406dcc
mov ecx, esi
call fcn.00409db3
cmp dword [ebp - 0x6c], ebx
je 0x4099c0
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4099c0
push edi
push 0x64
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], ebx
push ebx
push eax
call fcn.0040cf80
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x406db8
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4099a5
mov edi, dword [ebp - 0x74]
test edi, edi
je 0x4099a5
cmp dword [ebp - 0x70], 1
jne 0x4099a5
shr edi, 1
cmp edi, 0x32
jae 0x4099a5
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x406db8
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [edi + edi]
mov edx, eax
cmp word [ebp + ecx - 0x6a], bx
je 0x409996
lea eax, [edi + 1]
cmp eax, 0x32
jae 0x409996
cmp ecx, 0x64
jae 0x4099d2
xor eax, eax
mov word [ebp + ecx - 0x68], ax
lea eax, [ebp - 0x68]
test edx, edx
je 0x4099a2
mov eax, 0x406dcc
push eax
jmp 0x4099aa
push 0x406dcc
mov ecx, esi
call fcn.00409db3
cmp dword [ebp - 0x6c], ebx
je 0x4099bf
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2a3
leave
ret 8
call fcn.0040b3d3
int3

Function at 0x40bd66
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40bda5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40bda5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bda5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40bda5
cmp dword [ecx + 0x74], 0xe
jbe 0x40bda5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x416590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4165bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4165bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401a90
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x401aa0
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401a9d
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x401a9d
mov edx, 0x10b
cmp word [eax + 0x18], dx
sete al
ret

Function at 0x402e50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
test ebx, ebx
jne 0x402e6b
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x78]
mov edx, dword [esi]
mov edx, dword [edx]
push edi
push eax
mov ecx, esi
call edx
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x402f10
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x402ea4
pop edi
mov word [ebx], ax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 0x20]
mov eax, dword [esi]
mov edx, dword [eax]
push ecx
mov ecx, esi
call edx
mov ebx, eax
mov eax, dword [edi + 0x18]
lea eax, [ebx + eax*4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x402f10
jmp 0x402ec7
mov eax, dword [ebp - 4]
sub eax, ebx
sar eax, 2
cdq
sub eax, edx
mov edx, dword [esi]
mov edx, dword [edx]
sar eax, 1
lea edi, [ebx + eax*4]
mov eax, dword [edi]
push eax
mov ecx, esi
call edx
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
test dl, dl
je 0x402ef5
cmp dl, byte [eax]
jne 0x402ef5
mov dl, byte [ecx + 1]
inc ecx
inc eax
test dl, dl
jne 0x402ee8
movzx edx, byte [eax]
movzx eax, byte [ecx]
sub eax, edx
je 0x402f1b
test eax, eax
jle 0x402f08
lea ebx, [edi + 4]
jmp 0x402f0b
mov dword [ebp - 4], edi
cmp ebx, dword [ebp - 4]
jne 0x402ec4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx + 0x24]
mov eax, dword [esi]
mov edx, dword [eax]
push ecx
mov ecx, esi
call edx
sub edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sar edi, 2
mov ax, word [eax + edi*2]
add ax, word [ebx + 0x10]
pop edi
pop esi
mov word [ecx], ax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40c7a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x544cd0
push 0x4e18d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x54e938]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x19], 0
cmp dword [ebp + 0x14], 0
je 0x40c958
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40c958
cmp byte [eax], 0
je 0x40c958
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40c958
cmp byte [eax], 0
je 0x40c958
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40c958
cmp dword [ebp + 0x18], 0
je 0x40c958
push eax
call dword [0x50d1cc]
test eax, eax
je 0x40c958
push 0
push 0x40
push ebx
call fcn.0040ca30
add esp, 0xc
test al, al
je 0x40c958
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x40c958
mov edi, dword [ebx + 0x3c]
add edi, ebx
push 0
push pe_nt_image_headers32
push edi
call fcn.0040ca30
add esp, 0xc
test al, al
je 0x40c958
cmp dword [edi], 0x4550
jne 0x40c958
mov esi, dword [edi + 0x80]
add esi, ebx
cmp esi, edi
jne 0x40c899
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
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c8a0
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40c8d0
add eax, ebx
push edi
mov ecx, dword [ebp + 0xc]
push ecx
push eax
call fcn.0040cdc7
add esp, 0xc
test eax, eax
je 0x40c8d0
add esi, 0x14
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x40c8b2
cmp dword [esi + 0xc], 0
je 0x40c885
mov esi, dword [esi + 0x10]
add esi, ebx
mov dword [ebp - 0x24], esi
mov eax, dword [esi]
test eax, eax
je 0x40c958
cmp eax, dword [ebp + 0x18]
jne 0x40c96d
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
push edx
push 0x80
push 4
push esi
call dword [0x50d400]
test eax, eax
je 0x40c958
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
push eax
push esi
call dword [0x50d1b4]
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x40c940
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 4
push esi
call dword [0x50d400]
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 4
jmp 0x40c8db
Function at 0x43ecc0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5020fb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x54e938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea ecx, [esi + 4]
call fcn.0043ed80
xor edi, edi
mov dword [esi], 0x50fd20
push 0x18
mov dword [ebp - 4], edi
mov dword [esi + 0x30], edi
call fcn.004051ca
add esp, 4
cmp eax, edi
je 0x43ed4f
mov dword [esi + 0x2c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x2c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x2c]
mov dword [eax + 8], eax
mov edx, dword [esi + 0x2c]
mov al, 1
mov byte [edx + 0x14], al
mov ecx, dword [esi + 0x2c]
mov byte [ecx + 0x15], al
mov dword [esi + 0x38], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp + 0xc], edi
call fcn.004e102a
push 0x53b460
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x50d790
call fcn.004e1169
int3
Function at 0x4542d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5021d2
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x54e938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
xor ebx, ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov byte [esi + 0x58], bl
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov eax, dword [0x50ff0c]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x50ff10]
mov dword [esi + 0x30], ecx
mov edx, dword [0x50ff14]
mov dword [esi + 0x34], edx
mov eax, dword [0x50ff18]
mov dword [esi + 0x38], eax
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
xor ecx, ecx
mov dword [esi + 0xb0], 7
mov dword [esi + 0xac], ebx
mov word [esi + 0x9c], cx
lea edx, [esi + 0x64]
push edx
mov byte [ebp - 4], 4
call dword [0x50d1f8]
push ebx
push ebx
push 1
push ebx
call dword [0x50d1e8]
mov dword [esi + 0x60], eax
cmp eax, ebx
jne 0x4543d0
lea ecx, [ebp - 0x20]
call fcn.004e0f91
push 0x53d2dc
lea eax, [ebp - 0x20]
push eax
call fcn.004e1169
push esi
call fcn.00420c30
mov ecx, eax
call fcn.00453c50
mov dword [esi + 0x5c], eax
cmp eax, ebx
jge 0x4543fa
lea ecx, [ebp - 0x20]
call fcn.004e0f91
push 0x53d2dc
lea ecx, [ebp - 0x20]
push ecx
call fcn.004e1169
push 0x551c20
push 0x10010
call fcn.004186bb
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x454437
push 0x10000
lea edx, [edi + 8]
push ebx
push edx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x10008], ebx
mov dword [edi + 0x1000c], ebx
call fcn.004e15a0
add esp, 0xc
jmp 0x454439
xor edi, edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 5
cmp edi, ebx
je 0x454450
push 0x41
push edi
push esi
call fcn.004562c0
add esp, 0xc
push edi
call fcn.00406ec9
add esp, 4
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
Function at 0x457540
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5025ee
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x54e938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], 0x526a34
call fcn.004e032e
mov dword [ebp - 4], 0
push 4
call fcn.004051ca
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x4575cf
call fcn.004dff22
mov dword [edi], eax
call fcn.004dfce1
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004dfc16
mov byte [ebp - 4], 2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4575c1
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004dfc3e
jmp 0x4575d1
xor edi, edi
mov byte [ebp - 4], 0
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
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

Function at 0x47ee50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503f0b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x54e938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
xor eax, eax
mov dword [esi + 0x20], 7
mov dword [esi + 0x1c], ebx
mov word [esi + 0xc], ax
mov eax, 1
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], eax
lea edi, [esi + 0x4c]
push 8
mov dword [ebp - 4], ebx
mov dword [edi], ebx
call fcn.004051ca
add esp, 4
cmp eax, ebx
je 0x47eefe
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
xor eax, eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 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
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.004e102a
push 0x53b460
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x50d790
call fcn.004e1169
int3
Function at 0x4a8760
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508437
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x54e938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], eax
je 0x4a87ae
mov dword [ebx], 0x52da98
mov dword [ebx + 0x68], 0x526a00
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov dword [ebx + edx], 0x52d948
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
call fcn.00456bf0
lea esi, [ebx + 0x10]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.00457b00
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x4a8800
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00445a20
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov ecx, esi
mov dword [ebp - 4], 2
mov dword [ebx + edx], 0x52da94
call fcn.00457540
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], 0x52d99c
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x551bfc]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
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
Function at 0x4d9cf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50be10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x54e938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [esi], 0x532bd0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x14], 1
mov dword [esi + 0x18], ebx
mov eax, 7
xor ecx, ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], ebx
mov dword [ebp - 4], ebx
mov word [esi + 0x1c], cx
xor edx, edx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x48], ebx
mov word [esi + 0x38], dx
mov dword [esi + 0x68], eax
xor eax, eax
mov dword [esi + 0x64], ebx
mov word [esi + 0x54], ax
mov eax, 0xf
mov dword [esi + 0x84], eax
mov dword [esi + 0x80], ebx
mov byte [esi + 0x70], bl
mov dword [esi + 0xa0], eax
mov dword [esi + 0x9c], ebx
mov byte [esi + 0x8c], bl
mov dword [esi + 0xbc], eax
mov dword [esi + 0xb8], ebx
mov byte [esi + 0xa8], bl
push 0x532bb4
mov byte [ebp - 4], 6
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf8], ebx
call fcn.004297a0
add esp, 4
mov dword [esi + 0xf8], eax
cmp eax, ebx
je 0x4d9eb0
push 8
call fcn.004051ca
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4d9e50
mov ecx, dword [esi + 0xf8]
push 0x532ba4
push ecx
call dword [0x50d200]
mov edx, dword [esi + 0xf8]
push 0x532b90
push edx
mov dword [ebp - 0x10], eax
call dword [0x50d200]
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 4], eax
jmp 0x4d9e52
xor edi, edi
mov ecx, dword [esi + 0xf8]
push 0x532b80
mov dword [esi + 0xc4], edi
mov edi, dword [0x50d200]
push ecx
call edi
mov edx, dword [esi + 0xf8]
push 0x532b6c
push edx
mov dword [esi + 4], eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
cmp ecx, ebx
je 0x4d9eb0
cmp eax, ebx
je 0x4d9eb0
push ebx
call ecx
test eax, eax
mov eax, esi
js 0x4d9ebc
mov dword [esi + 0xd0], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov dword [esi + 0xd0], 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f5bc0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ecx + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor esi, esi
mov eax, dword [edx + 0x3c]
movzx ecx, word [eax + edx + 6]
add eax, edx
cmp edi, ecx
jae 0x4f5c10
movzx ecx, word [eax + 0x14]
add ecx, esi
lea eax, [ecx + eax + 0x18]
test eax, eax
je 0x4f5c10
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4f5bfa
add ecx, edx
cmp ecx, ebx
ja 0x4f5c0a
mov ebx, dword [eax + 8]
add ebx, ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp - 4], ebx
ja 0x4f5c12
inc edi
add esi, 0x28
jmp 0x4f5bd1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x432004
Capabilities:
Check for software breakpoints
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..reloc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x47097940
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x533724d2
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x61ec1b1e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0xdff6f25
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40111b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401152
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40114e
jmp 0x401140
cmp esi, eax
jae 0x401152
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401140
cmp esi, eax
jb 0x401159
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret