joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402184
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x40219e
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 0xc

Function at 0x4021ca
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4021d5
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x402ac9
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x40b0d0]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x19c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x190], eax
mov dword [ebp - 0x74], esi
call fcn.0040214f
cmp eax, esi
jne 0x402b51
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x402b1a
lea eax, [ebp - 0x70]
push eax
call fcn.00402ac9
cmp eax, esi
jne 0x402b50
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x402b0d
call fcn.004020ea
push dword [ebp + 0x19c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.004020ea
mov ecx, dword [ebp + 0x190]
mov eax, esi
pop esi
pop ebx
call fcn.0040873b
add ebp, 0x194
leave
ret 4
Function at 0x4045f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x408ecf
call fcn.00408910
sub esp, 0x420
mov eax, dword [0x40b0d0]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x40b060]
xor edi, edi
mov dword [ebp - 0x41c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push dword [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x420], ebx
jne 0x40465b
call fcn.0040200e
mov esi, eax
jmp 0x404717
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x4046e4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x424], eax
je 0x4046e4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + esi + 2]
push eax
lea ecx, [ebp - 0x418]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
call fcn.00402e9f
jmp 0x4046ae
cmp dword [ebp - 0x418], edi
mov dword [ebp - 4], 1
jne 0x4046c4
mov esi, 0x8007000e
jmp 0x40470b
call dword [0x40b060]
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x424]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4046eb
call fcn.0040200e
jmp 0x404709
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [eax + esi*2], di
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.0040448d
mov esi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x404730
lea ecx, [ebp - 0x418]
call fcn.0040276d
lea ecx, [ebp - 0x41c]
call fcn.004026a6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040873b
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x404c55
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404cad
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x404c7a
xor eax, eax
jmp 0x404cac
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x404c9e
cmp esi, eax
jae 0x404c76
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404c90
cmp esi, eax
jae 0x404c76
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x4082c9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp dword [esp + 8], 0
jne 0x4082d7
mov eax, 0x80004003
jmp 0x40834c
movzx eax, word [esp + 4]
push ebx
push esi
push edi
mov edi, dword [0x40b1cc]
push 0xa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x408301
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40831f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x408311
call esi
jmp 0x408349
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x408349
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x408333
mov eax, 0x8000ffff
jmp 0x408349
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
mov dword [ecx], esi
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x408bca
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x40b0d0]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.00408b4c
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR71.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x408c2c
cmp dword [ebp - 0x1c], 5
jb 0x408c44
jmp 0x408c40
cmp dword [ebp - 0x10], 1
jne 0x408c44
cmp dword [ebp - 0x1c], 4
ja 0x408c40
jne 0x408c44
cmp dword [ebp - 0x18], 0
jbe 0x408c44
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x401cac
call fcn.00401f9b
test eax, eax
jge 0x408c65
mov byte [0x40b110], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.0040873b
add ebp, 0x78
leave
ret
Function at 0x4012b0
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435570
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x467e88]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, edx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x40], edx
nop
nop
nop
nop
nop
nop
mov eax, dword [ebx]
movzx ecx, word [eax + 0x14]
lea esi, [ecx + eax + 0x18]
mov al, 0x45
mov byte [ebp - 0x23], al
mov byte [ebp - 0x20], al
mov al, 0x6c
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x24], 0x4b
mov byte [ebp - 0x22], 0x52
mov byte [ebp - 0x21], 0x4e
mov byte [ebp - 0x1f], 0x4c
mov byte [ebp - 0x1e], 0x33
mov byte [ebp - 0x1d], 0x32
mov byte [ebp - 0x1c], 0x2e
mov byte [ebp - 0x1b], 0x64
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x19], al
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x34], 0x56
mov byte [ebp - 0x33], 0x69
mov byte [ebp - 0x32], 0x72
mov byte [ebp - 0x31], 0x74
mov byte [ebp - 0x30], 0x75
mov byte [ebp - 0x2f], 0x61
mov byte [ebp - 0x2e], al
mov byte [ebp - 0x2d], 0x41
mov byte [ebp - 0x2c], al
mov byte [ebp - 0x2b], al
mov byte [ebp - 0x2a], 0x6f
mov byte [ebp - 0x29], 0x63
mov byte [ebp - 0x28], 0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x24]
push eax
call dword [0x437170]
push eax
call dword [0x43716c]
mov ecx, eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], 0
nop
mov edx, dword [ebx]
movzx eax, word [edx + 6]
cmp dword [ebp - 0x3c], eax
jge 0x40146c
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4013fb
mov edx, dword [ebp - 0x58]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x40145b
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x40]
push 4
push 0x1000
push edi
push eax
call ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push edi
push 0
push eax
mov dword [esi + 8], eax
call 0x421760
inc dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
add esp, 0xc
add esi, 0x28
mov dword [ebp - 0x38], esi
jmp 0x4013a0
mov edx, dword [esi + 0xc]
add edx, dword [ebp - 0x40]
push 4
push 0x1000
push eax
push edx
call ecx
mov dword [ebp - 0x4c], eax
push 0x43f5bc
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], 0x3a
call fcn.00421399
mov esi, dword [ebp - 0x38]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
add edx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x4c]
push ecx
push edx
push edi
call fcn.004213f0
add esp, 0xc
mov dword [esi + 8], edi
mov dword [ebp - 4], 0xffffffff
mov eax, 0x401455
ret
inc dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
add esi, 0x28
mov dword [ebp - 0x38], esi
jmp 0x4013a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042124c
mov esp, ebp
pop ebp
ret
Function at 0x401690
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [ebx]
movzx ecx, word [eax + 0x14]
push ebp
xor edx, edx
xor ebp, ebp
lea ecx, [ecx + eax + 0x18]
cmp dx, word [eax + 6]
jae 0x401764
push esi
push edi
lea edi, [ecx + 0x24]
nop
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4016f2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [edi - 0x14]
mov ecx, dword [edi - 0x1c]
push 0x4000
push eax
push ecx
call dword [0x437180]
jmp 0x401750
lea edx, [edx + ecx*2]
lea ecx, [esi + edx*2]
mov ecx, dword [ecx*4 + 0x445088]
test eax, 0x4000000
je 0x40170c
or ecx, 0x200
mov eax, dword [edi - 0x14]
test eax, eax
jne 0x40173a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [edi]
test al, 0x40
je 0x40172f
mov edx, dword [ebx]
mov eax, dword [edx + 0x20]
jmp 0x401738
test al, al
jns 0x401750
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
test eax, eax
jbe 0x401750
mov eax, dword [edi - 0x14]
lea edx, [esp + 0xc]
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push eax
push ecx
call dword [0x43717c]
mov edx, dword [ebx]
movzx eax, word [edx + 6]
inc ebp
add edi, 0x28
cmp ebp, eax
jl 0x4016b0
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x401950
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, 0x5a4d
cmp word [ebp], ax
je 0x401964
xor eax, eax
pop ebp
ret
push edi
mov edi, dword [ebp + 0x3c]
add edi, ebp
cmp dword [edi], 0x4550
je 0x401977
pop edi
xor eax, eax
pop ebp
ret
mov ecx, dword [edi + 0x50]
mov edx, dword [edi + 0x34]
push ebx
mov ebx, dword [0x43718c]
push esi
push 4
push 0x2000
push ecx
push edx
call ebx
mov esi, eax
test esi, esi
jne 0x4019af
mov eax, dword [edi + 0x50]
push 4
push 0x2000
push eax
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4019af
pop esi
pop ebx
pop edi
pop ebp
ret
push 0x14
push 0
call dword [0x437168]
push eax
call dword [0x437174]
mov ebx, eax
xor eax, eax
push 4
mov dword [ebx + 4], esi
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov ecx, dword [edi + 0x50]
push 0x1000
push ecx
push esi
call dword [0x43718c]
mov edx, dword [edi + 0x54]
push 4
push 0x1000
push edx
push esi
call dword [0x43718c]
mov ecx, dword [ebp + 0x3c]
add ecx, dword [edi + 0x54]
mov dword [esp + 0x14], eax
push ecx
push ebp
push eax
call fcn.004213f0
mov edx, dword [ebp + 0x3c]
mov eax, dword [esp + 0x20]
add eax, edx
mov dword [ebx], eax
push ebp
mov edx, ebx
mov ecx, edi
mov dword [eax + 0x34], esi
call fcn.004012b0
mov eax, esi
add esp, 0x10
sub eax, dword [edi + 0x34]
je 0x401a33
push eax
mov eax, ebx
call fcn.00401770
add esp, 4
mov ecx, ebx
call fcn.00401490
call fcn.00401690
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x401a58
push 0
push 1
push esi
add eax, esi
call eax
mov dword [ebx + 0x10], 1
pop esi
mov eax, ebx
pop ebx
pop edi
pop ebp
ret
Function at 0x401ac0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4355d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x467e88]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x43f5bc
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x5f
call fcn.00421399
movzx eax, byte [ebp + 0x10]
cdq
mov ecx, 0xfe
idiv ecx
mov edi, dword [ebp + 0xc]
mov ebx, edx
add bl, 0x58
test edi, edi
jbe 0x401b3e
mov esi, dword [ebp + 8]
nop
nop
nop
nop
nop
nop
mov dl, byte [esi]
xor dl, bl
add dl, bl
push 0
mov byte [esi], dl
call dword [0x437198]
inc esi
sub edi, 1
jne 0x401b22
mov eax, 0x401b44
ret
Function at 0xbae370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xbae38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xbd7074
push ecx
mov edi, eax
call fcn.00bc2198
mov esi, eax
add esp, 8
test esi, esi
jne 0xbae3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00bc202e
push esi
call fcn.00bc1fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xbb1850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xbb18ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xbdc720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xbb18ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00bc21e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xbb18ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xbdc720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xbb192a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00bc3082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xbb1957
mov word [eax], si
add eax, 2
push eax
call fcn.00bc3030
add esp, 4
jmp 0xbb1959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xbb18ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xbb18b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xbb1ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xbb2080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xbb20c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xbd7458
push ecx
call fcn.00bc21e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00bc21e1
add esp, 0x10
jmp 0xbb20d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00bc220b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00bc1dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00bb2050
mov eax, dword [0xbdc728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xbb213b
push esi
call fcn.00bb1fb0
add esp, 4
mov dword [0xbdc728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xbb214c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00bb1ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xbb5440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xbb54b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xbb548e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xbb5471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xbb547e
add edx, ecx
cmp ebx, edx
jb 0xbb548a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xbb5467
xor ecx, ecx
jmp 0xbb54a2
test eax, eax
jne 0xbb5492
xor ecx, ecx
jmp 0xbb54a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00bb53c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xbb58f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xbb5921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xbb5946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xbb596e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xbb5993
push ecx
push esi
call fcn.00bb54c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xbb6c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0xbb6c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xbb6c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xbb6c38
add edx, eax
cmp ebx, edx
jb 0xbb6c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xbb6c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xbb6c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0xbb6c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xbb6cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xbb6c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xbb6ca8
add edx, ecx
cmp ebx, edx
jb 0xbb6cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xbb6c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xbb6f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00bc3145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xbb6ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0xbb6fdd
lea eax, [esp + 0x18]
push eax
jmp 0xbb6fe2
push 0xbdc720
call fcn.00bc2fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xbb6fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xbb6f40
push 4
push ecx
push eax
call fcn.00bc343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xbb7310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00bc3145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xbb73ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0xbb738d
lea eax, [esp + 0x18]
push eax
jmp 0xbb7392
push 0xbdc720
call fcn.00bc2fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xbb7360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xbb6f40
push 4
push ecx
push eax
call fcn.00bc343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret