joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402db0
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
jne 0x402dc5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402e04
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402e00
lea ebx, [ebx]
cmp esi, edx
jae 0x402e04
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402df0
cmp esi, edx
jb 0x402e09
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x403530
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5471a2
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5ab1b0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x5ab1b0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040935c
lea ecx, [esp + 0x24]
push ecx
push 0x58b6d0
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.USER32.dll_GetClassInfoW]
mov eax, dword [0x5b6d04]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x24]
push eax
call fcn.00409f19
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 8
push eax
mov dword [esp + 0x60], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.004088a6
push 0
call fcn.0040fcf5
add esp, 4
push 0xc
call fcn.00406f85
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x70], 0
test eax, eax
je 0x4035f4
xorps xmm0, xmm0
mov ecx, eax
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.004108e5
mov ebx, eax
jmp 0x4035f6
xor ebx, ebx
push 0x55a848
mov dword [esp + 0x74], 0xffffffff
call fcn.0041864e
xorps xmm0, xmm0
mov dword [esp + 0x54], 0
lea ecx, [esp + 0x18]
movq qword [esp + 0x4c], xmm0
call fcn.00403780
mov ecx, eax
mov dword [esp + 0x70], 1
sub esp, 8
mov eax, dword [ecx]
mov edx, esp
mov dword [esp + 0x1c], esp
test eax, eax
je 0x403642
add eax, 0xbc
jmp 0x403644
xor eax, eax
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov byte [esp + 0x78], 2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push ecx
mov ecx, esp
push eax
call fcn.004033e0
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 1
call fcn.00405ac0
mov byte [esp + 0x70], 4
or edi, 0xffffffff
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4036ae
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x4036ae
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x4036ae
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [esp + 0x4c]
call fcn.00405c20
test ebx, ebx
je 0x4036c4
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 4]
mov dword [esp + 0x70], 0xffffffff
mov esi, dword [esp + 0x54]
test esi, esi
je 0x4036f7
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x4036f7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x4036f7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0x4c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x403712
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0052eacc
mov esp, ebp
pop ebp
ret

Function at 0x404110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0041d7ae
Function at 0x4056b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547620
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5ab1b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00402ce0
add esp, 4
mov dword [ebp - 0x21c], 0
lea esi, [eax + 0x10]
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esi - 0x10]
or esi, 0xffffffff
test eax, eax
lea ecx, [edx + 0xc]
mov eax, esi
je 0x40579e
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40573d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40575f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x405780
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.0052eacc
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x21c]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4057b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x40573d
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], 1
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 0x100
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4057fe
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40573d
lea edx, [ebp - 0x210]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x405807
sub edx, ecx
lea eax, [ebp - 0x210]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00403290
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x40573f
Function at 0x405840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547660
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5ab1b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00402ce0
add esp, 4
mov dword [ebp - 0x1c], 0
lea esi, [eax + 0x10]
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esi - 0x10]
or esi, 0xffffffff
test eax, eax
lea ecx, [edx + 0xc]
mov eax, esi
je 0x405925
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4058c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4058e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x405907
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.0052eacc
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x405939
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x4058c4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 4
push eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 4
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
test eax, eax
je 0x405970
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4058c4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x4058c6
Function at 0x405980
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5476a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5ab1b0]
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 dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00402ce0
add esp, 4
mov dword [ebp - 0x18], 0
lea esi, [eax + 0x10]
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea edx, [esi - 0x10]
or esi, 0xffffffff
test eax, eax
lea ecx, [edx + 0xc]
mov eax, esi
je 0x405a6e
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x405a0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405a2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x405a50
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.0052eacc
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x18]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x405a82
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x405a0d
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
test eax, eax
je 0x405aaa
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405a0d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x405a0f
Function at 0x405c20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547728
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5ab1b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x34], ebx
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx]
push ecx
sub eax, 0x10
mov esi, esp
push eax
call fcn.00402ce0
add esp, 4
lea ecx, [ebp - 0x2c]
add eax, 0x10
mov dword [esi], eax
call 0x401d70
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
push dword [ebp - 0x2c]
push eax
call fcn.00404960
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push dword [ebp - 0x20]
call fcn.00404390
or ebx, 0xffffffff
cmp al, 1
jne 0x405cb6
lea ecx, [ebp - 0x14]
call fcn.00404610
jmp 0x405cbe
test al, al
je 0x405dbb
mov eax, dword [ebp - 0x2c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], 0
mov esi, esp
push eax
call fcn.00402ce0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00405e20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00402ce0
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.00405f20
mov edi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], 0
mov esi, esp
push eax
call fcn.00402ce0
add esp, 4
lea ecx, [ebp - 0x1c]
add eax, 0x10
mov edx, edi
mov dword [esi], eax
call fcn.004068f0
add esp, 8
mov byte [ebp - 4], 3
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x28]
add eax, 0xfffffff0
push ecx
mov dword [ebp - 0x30], esp
mov esi, esp
push eax
call fcn.00402ce0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
mov esi, esp
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
push eax
call fcn.00402ce0
mov ecx, dword [ebp - 0x34]
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
call fcn.00406390
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405d9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405dbb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405ddb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x405dfc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0052eacc
mov esp, ebp
pop ebp
ret
Function at 0x406480
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547878
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5ab1b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00402ce0
add esp, 4
lea esi, [eax + 0x10]
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea edx, [esi - 0x10]
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4064f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x406516
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4068f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547901
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5ab1b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
mov dword [edi], 0
call fcn.00407f07
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x406952
push 0x80004005
call fcn.00403240
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14], 1
cmp esi, 1
mov esi, esp
push eax
jne 0x406990
call fcn.00402ce0
add esp, 4
lea ecx, [ebp - 0x10]
add eax, 0x10
mov dword [esi], eax
call fcn.00406a20
add esp, 4
mov byte [ebp - 4], 2
jmp 0x4069ae
call fcn.00402ce0
add esp, 4
lea ecx, [ebp - 0x10]
add eax, 0x10
mov edx, ebx
mov dword [esi], eax
call fcn.00406aa0
add esp, 4
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00402c70
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4069d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4069ff
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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 0x40b1ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x40b233
call fcn.0040935c
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40b233
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40b24f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042778b
mov ebx, eax
test edi, edi
je 0x40b24d
test esi, esi
je 0x40b24d
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41d80a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0040935c
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41d841
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0041d862
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x496eaa
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0041ffef
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x496ee6
call fcn.004970c9
mov dword [esi + 0xc], 1
jmp 0x496eeb
call fcn.004970c9
cmp dword [esi], 0
je 0x496f34
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x496f0e
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00407bca
jmp 0x496f1f
push 0xff
mov ecx, esi
call fcn.004031e0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00407bed
jmp 0x496f58
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x496f58
push dword [esi]
push dword [ebp - 4]
call fcn.00423f5b
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49701e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004970c9
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x497066
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00407bca
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00407bed
jmp 0x497071
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00423f5b
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4f9e14
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0052a83e
call fcn.004093b0
cmp dword [eax + 0x14], 0
jne 0x4f9e2f
mov ecx, esi
pop esi
jmp fcn.004f921a
pop esi
ret

Function at 0x507128
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004038e0
call fcn.004093b0
cmp dword [eax + 0x14], 0
jne 0x507143
mov ecx, esi
pop esi
jmp fcn.00506a11
pop esi
ret
Function at 0x54182c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ab1b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.005360b5
mov dword [ebp - 0x14], eax
cmp dword [0x5b6c2c], esi
jne 0x54191f
push 0x800
push esi
push 0x586ab0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5418ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5419ff
push esi
push esi
push 0x586ab0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5419ff
push 0x586ac8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5419ff
push eax
call ebx
push 0x586ad4
push edi
mov dword [0x5b6c2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x586ae4
push edi
mov dword [0x5b6c30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5b6c34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5b6c3c], eax
test eax, eax
je 0x54191c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5b6c38], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x541944
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x541937
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x541959
push 4
pop eax
jmp 0x541a01
cmp dword [ebp - 0x14], esi
je 0x541959
push dword [0x5b6c2c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x54193e
mov eax, dword [0x5b6c38]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5419b7
cmp dword [0x5b6c3c], edi
je 0x5419b7
push eax
call ebx
push dword [0x5b6c3c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5419b7
test eax, eax
je 0x5419b7
call ecx
test eax, eax
je 0x5419ac
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x5419ac
test byte [ebp - 8], 1
jne 0x5419b7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5419e7
mov eax, dword [0x5b6c30]
cmp eax, edi
je 0x5419e4
push eax
call ebx
test eax, eax
je 0x5419e4
call eax
mov esi, eax
test esi, esi
je 0x5419e4
mov eax, dword [0x5b6c34]
cmp eax, edi
je 0x5419e4
push eax
call ebx
test eax, eax
je 0x5419e4
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5b6c2c]
call ebx
test eax, eax
je 0x5419ff
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x541a01
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052eacc
mov esp, ebp
pop ebp
ret