joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40da13
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x430bc4
call fcn.0041129c
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push 0x40
push 0
push eax
call fcn.00413b90
add esp, 0xc
mov dword [ebp - 0x80], 0x44
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov edx, edi
push ecx
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x38], xmm0
call fcn.00405af2
and dword [ebp - 4], 0
mov dword [esp], 0x43eb08
call fcn.004011a4
pop ecx
push eax
push 0x43eb08
lea ecx, [ebp - 0x28]
call fcn.00407136
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00406da6
xor edx, edx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov esi, edx
cmovae eax, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x40da9c
mov edi, dword [edi]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push edx
push edx
push edx
push edx
push edx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40dac2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40dadf
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0
je 0x40dadf
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402089
mov eax, esi
call fcn.00411246
ret

Function at 0x40dff7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 0xc]
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40e097
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40e030
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40e097
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x40e047
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40e096
push edi
lea ecx, [ebp - 0xc]
call fcn.00409286
push edi
mov edi, dword [ebp - 0xc]
push ebx
push edi
call fcn.00413610
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xc]
add esp, 0xc
cmp edx, eax
je 0x40e087
mov eax, dword [edx]
mov dword [edx], edi
mov ecx, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov ecx, dword [edx + 8]
mov dword [edx + 8], eax
mov dword [ebp - 4], ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0xc]
call fcn.004092cd
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40e09f
Capabilities:
Get file version info

Disassembly:
push 0x90
mov eax, 0x430d31
call fcn.0041129c
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x88], esi
and dword [ebp - 0x9c], 0
and dword [ebp - 0x7c], 0
cmp dword [edi + 0x14], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
jb 0x40e0d3
mov eax, dword [edi]
jmp 0x40e0d5
mov eax, edi
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x40e0f8
and dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x40e2a5
push ebx
lea ecx, [ebp - 0x94]
call fcn.00409286
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x40e110
mov edi, dword [edi]
push dword [ebp - 0x94]
push ebx
push dword [ebp - 0x7c]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40e139
and dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x40e29a
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x88]
xor ebx, ebx
push eax
push 0x43f0ec
push dword [ebp - 0x94]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x98], ebx
call edi
test eax, eax
jne 0x40e174
mov dword [esi + 0x10], ebx
jmp 0x40e128
xor eax, eax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], ax
push 0x40
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.00413b90
mov ecx, dword [ebp - 0x88]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x50]
push str.StringFileInfo_04x_04x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x50]
push eax
call fcn.004011a4
add esp, 0x20
lea ecx, [ebp - 0x68]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004020e0
mov ebx, 0x43f0e8
push ebx
call fcn.004011a4
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x68]
call fcn.00407136
push 0xffffffffffffffff
xor ebx, ebx
lea ecx, [ebp - 0x68]
push ebx
push dword [ebp - 0x6c]
call fcn.00406da6
cmp dword [ebp - 0x54], 8
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x80]
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
push ecx
push eax
push dword [ebp - 0x94]
call edi
test eax, eax
jne 0x40e223
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
jmp 0x40e28f
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x84]
mov byte [ebp - 0x6c], bl
push dword [ebp - 0x6c]
mov dword [ebp - 0x78], ebx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x74], ebx
push eax
push ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x70], ebx
call fcn.0040e304
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
cmp eax, ecx
jne 0x40e267
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
jmp 0x40e287
cmp word [ecx - 2], bx
je 0x40e27f
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], ebx
push eax
lea ecx, [ebp - 0x78]
call fcn.0040e2ad
mov eax, dword [ebp - 0x78]
push eax
mov ecx, esi
call fcn.00402058
lea ecx, [ebp - 0x78]
call fcn.0040ce30
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.00402089
lea ecx, [ebp - 0x94]
call fcn.004092cd
mov eax, esi
call fcn.00411246
ret
Function at 0x40e6ea
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430e11
mov eax, dword fs:[0]
push eax
mov eax, 0x13a4
call fcn.00411990
mov eax, dword [0x444070]
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, edx
push 0x43ef10
lea ecx, [ebp - 0x28]
call fcn.0040a703
and dword [ebp - 4], 0
call fcn.0040fd42
xor esi, esi
lea ecx, [ebp - 0x28]
push 0
inc esi
or ebx, 0xffffffff
push esi
mov dword [ebp - 4], ebx
call fcn.0040b45a
call fcn.0040fd42
mov dword [ebp - 0x2c], ebx
mov edx, 0x270
mov dword [ebp - 0x13ac], eax
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, esi
mov dword [ebp + esi*4 - 0x13ac], eax
inc esi
cmp esi, edx
jl 0x40e75b
mov dword [ebp - 0x13b0], edx
lea eax, [ebp - 0x13b0]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x14], ebx
cmp edi, ebx
jne 0x40e7a4
lea ecx, [ebp - 0x13b0]
call fcn.0040e918
cmp eax, ebx
ja 0x40e793
jmp 0x40e7b0
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040e8a8
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.004107d5
mov esp, ebp
pop ebp
ret

Function at 0x40e918
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x40e960
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x40e928
jmp 0x40e96d
cmp dword [esi], 0x4e0
jb 0x40e96d
call fcn.0040e9a7
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret
Function at 0x40e9a7
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x40e9b7
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x40e9f7
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], ebx
pop esi
pop ebx
ret

Function at 0x40ead1
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x34]
mov dword [edi], 0x43f15c
cmp dword [esi + 0x14], 8
jb 0x40eae8
mov eax, dword [esi]
jmp 0x40eaea
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
mov ecx, esi
call fcn.00402089
push 0
push 1
lea ecx, [edi + 0x1c]
call fcn.00402089
lea ecx, [edi + 4]
pop edi
pop esi
jmp fcn.00408218
Function at 0x424c75
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424af4

Function at 0x428dba
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00428a7a
Function at 0x402daf
Capabilities:
Encode data using xor

Disassembly:
call 0x402c53
mov ecx, 0x1d7
call 0x402daf
rcr dword [esi + 0x30], 0x4c
push cs
pop es
xor byte [esi + ecx + 7], cl
loop 0x402db2
mov eax, 0x50402c7
out dx, al
clc
div esi
cmc
retf 0x3d52

Function at 0x406a00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
std
inc ebp
clc
push esi
push eax
les edx, [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor esi, esi
xor ecx, dword [edx]
or edx, esi
push esi
or edx, dword [esi - 0x60fef50f]
call 0xb940b590
or byte [eax], al
inc eax
in eax, 0x48
pop esi
sbb edx, 0x295e96
invalid

Function at 0x408b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
inc ebp
in al, dx
adc byte [ebx - 0x7400f3b3], cl
jne 0x408b5d
mov ebp, 0x6af8558d
add byte [ebx + 0x558b5206], cl
or byte [ecx + 0x4b8d3b45], cl
cld
lea ecx, [ebx - 4]
mov dword [ebp - 0xc], ecx
dec esp
jbe 0x408ba8
add al, 0x8d
dec ebp
invalid
cmp cl, 0xa
add byte [esi - 0x75], bl
push esi
pop ebp
ret 0x3d0c
Function at 0x401ab0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401b20
xor eax, eax
jmp 0x401c01
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
jne 0x401b38
xor eax, eax
jmp 0x401c01
push ebp
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
add eax, 0x1474
call fcn.00401510
mov esp, ebp
pop ebp
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x165a61ab
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x10586fb7
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x10003d40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10003d54
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
jmp loc.1000a3e8
Function at 0x424640
Capabilities:
Encrypt data using des

Disassembly:
pushal
mov esi, section.UPX1
jmp fcn.00428000
Function at 0x8ad370
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 0x8ad38e
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 0x8d6074
push ecx
mov edi, eax
call fcn.008c1198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8ad3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.008c102e
push esi
call fcn.008c0fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x8b0850
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 0x8b08ae
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 0x8db720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8b08ba
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.008c11e1
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 0x8b08ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x8db720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8b092a
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.008c2082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x8b0957
mov word [eax], si
add eax, 2
push eax
call fcn.008c2030
add esp, 4
jmp 0x8b0959
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 0x8b08ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x8b08b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x8b0ff0
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 0x8b1080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x8b10c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x8d6458
push ecx
call fcn.008c11e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.008c11e1
add esp, 0x10
jmp 0x8b10d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.008c120b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.008c0dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.008b1050
mov eax, dword [0x8db728]
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 0x8b113b
push esi
call fcn.008b0fb0
add esp, 4
mov dword [0x8db728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x8b114c
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.008b0ff0
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 0x8b4440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8b44b7
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 0x8b448e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x8b4471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x8b447e
add edx, ecx
cmp ebx, edx
jb 0x8b448a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x8b4467
xor ecx, ecx
jmp 0x8b44a2
test eax, eax
jne 0x8b4492
xor ecx, ecx
jmp 0x8b44a2
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.008b43c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x8b48f0
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 0x8b4921
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 0x8b4946
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 0x8b496e
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 0x8b4993
push ecx
push esi
call fcn.008b44c0
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 0x8b5c00
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 0x8b5c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x8b5c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x8b5c38
add edx, eax
cmp ebx, edx
jb 0x8b5c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x8b5c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x8b5c50
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 0x8b5c70
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 0x8b5cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x8b5c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x8b5ca8
add edx, ecx
cmp ebx, edx
jb 0x8b5cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x8b5c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x8b5f60
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.008c2145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x8b5ffb
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 0x8b5fdd
lea eax, [esp + 0x18]
push eax
jmp 0x8b5fe2
push 0x8db720
call fcn.008c1fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x8b5fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x8b5f40
push 4
push ecx
push eax
call fcn.008c243f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x8b6310
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.008c2145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x8b63ab
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 0x8b638d
lea eax, [esp + 0x18]
push eax
jmp 0x8b6392
push 0x8db720
call fcn.008c1fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x8b6360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x8b5f40
push 4
push ecx
push eax
call fcn.008c243f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret