joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018010
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
call fcn.10017db0
mov ecx, dword [0x100349d0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x10018056
cmp byte [0x100453dc], 0
je 0x10018056
push dword [0x1004508c]
push dword [0x10045088]
push dword [0x10045084]
push dword [0x10045080]
call fcn.10017740
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x2d
call esi
test al, 1
je 0x10018075
cmp byte [0x100346aa], 0
sete al
mov byte [0x100346aa], al
jmp 0x1001807a
mov al, byte [0x100346aa]
test al, al
je 0x100181f1
push 1
call esi
test al, 1
je 0x10018093
mov byte [0x10034e0e], 1
jmp 0x100180a3
push 1
call esi
and al, 1
neg al
sbb al, al
and byte [0x10034e0e], al
push 2
call esi
test al, 1
je 0x100180b4
mov byte [0x10034e0c], 1
jmp 0x100180c4
push 2
call esi
and al, 1
neg al
sbb al, al
and byte [0x10034e0c], al
push 1
call esi
test ax, ax
je 0x100180d6
mov byte [0x10034e18], 1
jmp 0x100180e5
push 1
call esi
neg ax
sbb al, al
and byte [0x10034e18], al
push 2
call esi
test ax, ax
je 0x100180f7
mov byte [0x10034e0d], 1
jmp 0x10018106
push 2
call esi
neg ax
sbb al, al
and byte [0x10034e0d], al
cmp byte [0x10045409], 0
je 0x10018120
mov ecx, 0x10034698
call fcn.100068b0
mov byte [0x10045409], 0
cmp byte [0x10045408], 0
je 0x1001813a
mov ecx, 0x10034698
call fcn.10008d40
mov byte [0x10045408], 0
push dword [0x1004507c]
mov ecx, 0x100346b8
push dword [0x10045078]
push dword [0x10045074]
push dword [0x10045070]
call fcn.100141b0
push dword [0x10045a18]
push dword [0x10045a10]
call fcn.10023120
mov esi, dword [0x10045080]
xor eax, eax
mov edx, dword [0x10045084]
test esi, esi
mov edi, dword [0x10034b34]
mov ebx, dword [0x10034b30]
cmovs esi, eax
test edx, edx
mov ecx, ebx
cmovs edx, eax
sub ecx, dword [0x10045088]
mov eax, edi
sub eax, dword [0x1004508c]
cmp esi, eax
cmovg esi, eax
cmp edx, ecx
mov dword [0x10045080], esi
cmovg edx, ecx
mov ecx, dword [0x10045070]
xor eax, eax
mov dword [0x10045084], edx
test ecx, ecx
cmovs ecx, eax
mov eax, dword [0x10045074]
xor edx, edx
test eax, eax
cmovs eax, edx
sub edi, dword [0x10045078]
sub ebx, dword [0x1004507c]
cmp ecx, edi
cmovg ecx, edi
cmp eax, ebx
mov dword [0x10045070], ecx
cmovg eax, ebx
mov dword [0x10045074], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10019a00
Capabilities:
Contain obfuscated stackstrings
Create thread
Set console window title

Disassembly:
sub esp, 0x24
mov eax, dword [0x1003400c]
xor eax, esp
mov dword [esp + 0x20], eax
cmp dword [esp + 0x2c], 1
push esi
mov esi, dword [esp + 0x2c]
jne 0x10019b8e
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x10019a83
push 1
mov word [esp + 8], 0x7477
mov byte [esp + 0xa], 0
mov dword [esp + 0xc], 0x4f4e4f43
mov dword [esp + 0x10], 0x245455
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen]
add esp, 0x10
push 0x1002dd1e
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 7
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, 0xa4
xor edx, edx
nop word [eax + eax]
mov al, byte [edx + 0x100305a0]
xor al, cl
inc ecx
mov byte [esp + edx + 0x14], al
and ecx, 0x800000ff
jns 0x10019aad
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xc
jl 0x10019a90
push 0x100198d0
lea eax, [esp + 0x18]
mov byte [esp + 0x24], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x72657375
push eax
mov dword [esp + 0x18], 0x642e3233
mov word [esp + 0x1c], 0x6c6c
mov byte [esp + 0x1e], 0
call fcn.10001750
push eax
call fcn.100010f0
mov dword [0x10034cf4], eax
mov ecx, 0x10
xor edx, edx
nop word [eax + eax]
mov al, byte [edx + str.WtfPagexjIuh]
xor al, cl
inc ecx
mov byte [esp + edx + 0x14], al
and ecx, 0x800000ff
jns 0x10019b1d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xc
jl 0x10019b00
push 0x10019920
lea eax, [esp + 0x18]
mov byte [esp + 0x24], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x72657375
push eax
mov dword [esp + 0x18], 0x642e3233
mov word [esp + 0x1c], 0x6c6c
mov byte [esp + 0x1e], 0
call fcn.10001750
push eax
call fcn.100010f0
push 0x104
push 0x10034cf8
push esi
mov dword [0x10034cf0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push esi
push 0x100189b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10034698], esi
mov ecx, dword [esp + 0x24]
mov eax, 1
pop esi
xor ecx, esp
call fcn.10027a7e
add esp, 0x24
ret 0xc
Function at 0x10020610
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
mov dword [edi + 0xd60], 0
mov dword [0x2438ff74], 0xffffffff
mov dword [0x243b2ef8], 0
cmp byte [0x10045400], 0
je 0x10020655
push 0x45
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x10020655
cmp byte [0x10045400], 0
jne 0x10020685
mov ecx, dword [esi + 8]
cmp ecx, dword [esi]
jne 0x10020678
mov eax, dword [esi + 4]
inc eax
add ecx, eax
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [edi + 0xe08], ecx
mov eax, dword [esi + 8]
pop edi
mov dword [esi], eax
pop esi
ret 8
mov dword [esi + 4], 0
mov dword [edi + 0xe08], ecx
mov eax, dword [esi + 8]
pop edi
mov dword [esi], eax
pop esi
ret 8
Function at 0x10022d20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x1003400c]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
push 0x40
lea eax, [esp + 0x24]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0x20
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x2c]
shr eax, 3
mov edx, 0x3f
and eax, 0x3f
mov dword [esp + 0x18], 0xefcdab89
add ecx, eax
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
sub edx, eax
mov dword [esp + 0x28], 0
add esp, 0xc
mov dword [esp + 0x20], esi
mov byte [ecx], 0x80
inc ecx
cmp edx, 8
jae 0x10022dc2
push edx
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.10022680
push 0x38
lea eax, [esp + 0x30]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
jmp 0x10022dd1
lea eax, [edx - 8]
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x58], eax
lea ecx, [esp + 8]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
call fcn.10022680
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0xe]
pop esi
xor ecx, esp
call fcn.10027a7e
mov esp, ebp
pop ebp
ret
Function at 0x4010b0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40114b
cmp ax, 9
je 0x401138
cmp ax, 0x20
je 0x401138
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp ax, 0x5c
je 0x4011a0
cmp ax, 0x22
je 0x4011b0
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40114b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x4010f0
test edi, 1
jne 0x4010f0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x401138
cmp ax, 0x20
je 0x401138
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x4011c8
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
inc dword [ebp - 0x6c]
jmp 0x40110b
and dword [ebp - 0x6c], 1
jne 0x401104
xor edi, 1
jmp 0x40110b
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x401164

Function at 0x4011e0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x4016c7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x40171f
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x40171f
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x40170f
cmp esi, ecx
jae 0x40171f
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4016fd
cmp esi, ecx
jae 0x40171f
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x401721
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401dfc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x65a640]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x420], 0
cmp dword [edx + 0x14], 7
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
jbe 0x401e27
mov edx, dword [edx]
lea eax, [ebp - 0x420]
xor ebx, ebx
push eax
inc ebx
push ebx
push 0
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401e4c
or eax, 0xffffffff
jmp 0x401ed9
mov dword [ebp - 0x428], ebx
lea eax, [ebp - 0x404]
mov ebx, 0x400
push ebx
push 0
push eax
call fcn.005423a0
add esp, 0xc
mov dword [ebp - 0x424], ebx
cmp dword [esi + 0x14], 7
jbe 0x401e77
mov esi, dword [esi]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push esi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x420]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401ed6
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x41c]
call fcn.0040309e
push eax
mov ecx, edi
call fcn.0040302c
lea ecx, [ebp - 0x41c]
call fcn.0040329b
xor eax, eax
jmp 0x401ed9
push 0xfffffffffffffffe
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052ef51
leave
ret

Function at 0x401f71
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x65a640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
mov esi, ecx
mov ebx, edx
push 0
mov dword [ebp - 0x210], esi
push eax
mov dword [ebp - 0x210], esi
call fcn.005423a0
add esp, 0xc
mov dword [ebp - 0x210], 1
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x214], 0x103
jbe 0x401fcc
mov edi, dword [edi]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, esi
test eax, eax
jne 0x401ffa
lea eax, [ebp - 0x20c]
push eax
jmp 0x401fff
push 0x619918
call fcn.0040309e
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052ef51
leave
ret
Function at 0x402092
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
cmp dword [edx + 0x14], 7
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
jbe 0x4020ad
mov edx, dword [edx]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
test eax, eax
cmove ecx, dword [ebp - 4]
mov eax, ecx
leave
ret

Function at 0x4020ff
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, eax
cmp dword [eax + 0x14], 7
jbe 0x402110
mov esi, dword [eax]
cmp dword [edx + 0x14], 7
jbe 0x402118
mov edx, dword [edx]
mov eax, dword [eax + 0x10]
add eax, eax
push eax
push esi
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop esi
sbb al, al
inc al
pop ebp
ret

Function at 0x4040f3
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x5cd1ae
call fcn.0052fb9e
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x23c], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x240], edi
push 0x619918
mov dword [ebp - 0x238], ebx
call fcn.0040309e
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], ebx
push ebx
push eax
mov dword [ebp - 0x238], 1
call fcn.005423a0
add esp, 0xc
lea eax, [ebp - 0x21c]
push ebx
push esi
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404182
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040309e
push eax
mov ecx, edi
call fcn.0040302c
lea ecx, [ebp - 0x234]
call fcn.0040329b
mov eax, edi
call fcn.0052fb4d
ret

Function at 0x4044ad
Capabilities:
Get disk information

Disassembly:
push 0x10
mov eax, 0x5cd298
call fcn.0052fb6b
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
push 0x41
mov ebx, eax
pop ecx
mov dword [ebp - 0x10], ecx
test ebx, ebx
je 0x404535
mov edi, ecx
mov dword [ebp - 0x14], ecx
mov edx, ecx
movzx eax, dx
test bl, 1
je 0x40451c
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x40450a
mov word [eax], cx
add dword [esi + 4], 2
movzx eax, di
jmp 0x40451c
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, esi
call fcn.00405401
mov ecx, dword [ebp - 0x14]
movzx eax, cx
shr ebx, 1
lea eax, [eax + 1]
movzx ecx, ax
movzx edi, ax
movzx edx, ax
movzx eax, ax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
jne 0x4044ee
mov eax, esi
call fcn.0052fb39
ret
Function at 0x405f10
Capabilities:
Read file on windows

Disassembly:
push 8
mov eax, 0x5cd421
call fcn.0052fb6b
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ecx, ecx
xor eax, eax
inc ecx
mov dword [ebp - 0x10], ecx
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
mov ecx, edi
call fcn.004058e3
mov ebx, eax
mov ecx, ebx
or ecx, edx
je 0x405f80
cmp dword [edi + 0x14], 7
jbe 0x405f50
mov edi, dword [edi]
push 0x61aa44
push edi
call fcn.0056dc88
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x405f80
push ecx
push ebx
mov ecx, esi
call fcn.004065a0
push edi
push 1
push ebx
push dword [esi]
call fcn.0056df45
push edi
call fcn.0056d1c3
add esp, 0x14
mov eax, esi
call fcn.0052fb39
ret
Function at 0x40d147
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 0x14], 0
and dword [ecx + 0x58], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
ret
Function at 0x40e7fe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1064
call fcn.00530290
mov eax, dword [0x65a640]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x40e82c
push str._nUsage:_n______EXEFILE___FILENAME__n
call fcn.0040d0c5
pop ecx
jmp 0x40e8fe
push 0x61b4c8
lea eax, [ebp - 0x1064]
push esi
push eax
call fcn.0056dd08
add esp, 0xc
cmp dword [ebp - 0x1064], 0
jne 0x40e858
push esi
push 0x61b4cc
call fcn.0040d0c5
pop ecx
jmp 0x40e826
push edi
lea ecx, [ebp - 0x1060]
call fcn.0040d147
push dword [ebp - 0x1064]
mov edi, 0x1000
lea eax, [ebp - 0x1004]
push edi
push 1
push eax
call fcn.0056df45
add esp, 0x10
jmp 0x40e8ad
push eax
lea edx, [ebp - 0x1004]
lea ecx, [ebp - 0x1060]
call fcn.0040e5e1
push dword [ebp - 0x1064]
lea eax, [ebp - 0x1004]
push edi
push 1
push eax
call fcn.0056df45
add esp, 0x14
test eax, eax
jne 0x40e883
push dword [ebp - 0x1064]
call fcn.0057e7da
pop ecx
pop edi
test eax, eax
je 0x40e8ca
push esi
push 0x61b4e0
jmp 0x40e850
lea ecx, [ebp - 0x1060]
call fcn.0040e686
push dword [ebp - 0x1064]
call fcn.0056d1c3
pop ecx
xor esi, esi
movzx eax, byte [ebp + esi - 0x1048]
push eax
push str._02x
call fcn.0040d0c5
inc esi
pop ecx
pop ecx
cmp esi, 0x14
jl 0x40e8e3
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0052ef51
leave
ret

Function at 0x40e90b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1064
call fcn.00530290
mov eax, dword [0x65a640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
test edi, edi
jne 0x40e947
test esi, esi
je 0x40ea34
push str.FileNameInPut_Is_NULL
push 0x61b514
jmp 0x40e9ea
push 0x61b4c8
lea eax, [ebp - 0x1064]
push edi
push eax
call fcn.0056dd08
add esp, 0xc
cmp dword [ebp - 0x1064], 0
jne 0x40e975
test esi, esi
je 0x40ea34
push edi
push 0x61b4cc
jmp 0x40e9ea
lea ecx, [ebp - 0x1060]
call fcn.0040d147
push dword [ebp - 0x1064]
lea eax, [ebp - 0x1004]
push 0x1000
push 1
push eax
call fcn.0056df45
add esp, 0x10
jmp 0x40e9cc
push eax
lea edx, [ebp - 0x1004]
lea ecx, [ebp - 0x1060]
call fcn.0040e5e1
push dword [ebp - 0x1064]
lea eax, [ebp - 0x1004]
push 0x1000
push 1
push eax
call fcn.0056df45
add esp, 0x14
test eax, eax
jne 0x40e99e
push dword [ebp - 0x1064]
call fcn.0057e7da
pop ecx
test eax, eax
je 0x40e9f5
test esi, esi
je 0x40ea34
push edi
push 0x61b4e0
push esi
call fcn.0040d12c
add esp, 0xc
jmp 0x40ea34
lea ecx, [ebp - 0x1060]
call fcn.0040e686
push dword [ebp - 0x1064]
call fcn.0056d1c3
pop ecx
xor esi, esi
mov edi, ebx
movzx eax, byte [ebp + esi - 0x1048]
push eax
push str._02x
push edi
call fcn.0040d12c
add esp, 0xc
add edi, 2
inc esi
cmp esi, 0x14
jl 0x40ea10
mov byte [ebx + esi*2], 0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052ef51
leave
ret
Function at 0x4150a4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x10], ecx
push edi
test esi, esi
jg 0x4150cd
jl 0x4150c4
test ebx, ebx
jne 0x4150cd
xor eax, eax
xor edx, edx
jmp 0x415197
cmp dword [ecx + 0x38], 0
je 0x4150e2
push esi
push ebx
push dword [ebp + 8]
call fcn.00415679
jmp 0x415197
mov eax, dword [ecx + 0x1c]
mov edi, ebx
mov edx, dword [eax]
test edx, edx
je 0x415127
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x415127
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push edx
push edi
call fcn.00541e20
mov ecx, dword [esp + 0x20]
add edi, esi
mov dword [esp + 0x1c], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
jmp 0x41512e
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
cmp dword [ecx + 0x4c], 0
je 0x41518e
call fcn.004162ac
mov edx, dword [esp + 0x10]
mov eax, edi
cmp edi, 0xfff
jbe 0x415179
push dword [ecx + 0x4c]
push 0xfff
push 1
push edx
call fcn.0056df45
mov edx, dword [esp + 0x20]
mov ecx, 0xfff
add edx, eax
add esp, 0x10
sub edi, eax
mov dword [esp + 0x10], edx
cmp eax, ecx
jne 0x41518e
cmp edi, ecx
mov ecx, dword [esp + 0x14]
ja 0x415147
mov eax, edi
test eax, eax
je 0x41518e
push dword [ecx + 0x4c]
push edi
push 1
push edx
call fcn.0056df45
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x438579
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x61aa44
push dword [ebp + 8]
call fcn.0056dc88
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4385d6
push ebx
push edi
push esi
call fcn.0058402d
push eax
call fcn.0058432e
mov edi, eax
pop ecx
pop ecx
cmp edi, dword [ebp + 0x10]
jbe 0x4385b5
push 0x7a
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor ebx, ebx
jmp 0x4385cb
push esi
push edi
push 1
push dword [ebp + 0xc]
call fcn.0056df45
xor ebx, ebx
add esp, 0x10
cmp edi, eax
sete bl
push esi
call fcn.0056d1c3
pop ecx
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x438630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
call fcn.004391a1
mov ebx, eax
test ebx, ebx
je 0x438666
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
test edi, edi
je 0x438666
cmp dword [ebp + 0x14], edi
jae 0x43866f
push 0x7a
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
je 0x438666
push esi
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
je 0x438666
push edi
push eax
push dword [ebp + 0x10]
call fcn.00541e20
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
xor eax, eax
inc eax
jmp 0x438668
Function at 0x43d9a2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push esi
mov ecx, dword [edi + 8]
call fcn.0043db47
test eax, eax
jne 0x43dab4
mov ecx, dword [0x663760]
test ecx, ecx
je 0x43d9d0
call fcn.00425640
mov esi, eax
jmp 0x43d9d2
xor esi, esi
push ebx
push 0x2800
call fcn.0057e78b
mov edi, eax
mov dword [esp], 0x5000
call fcn.0057e78b
mov ebx, eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
push dword [eax]
push str.Warning:_no_object__s_of_type:_d_in_SOUI__
push 0xffffffffffffffff
push 0x2800
push ebx
call fcn.00432b2f
add esp, 0x1c
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
cmp eax, 0x2800
jae 0x43da33
xor ecx, ecx
push ecx
push ecx
push eax
push edi
push 0xffffffffffffffff
push ebx
push ecx
push ecx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push ebx
call fcn.0056b88b
pop ecx
test esi, esi
je 0x43da6f
mov eax, dword [esi]
mov ecx, esi
push 1
push 0
call dword [eax + 0x2c]
test al, al
je 0x43da6f
push dword [ebp + 4]
mov eax, dword [esi]
mov ecx, esi
push str.SOUI::SObjectFactoryMgr::CreateObject
push 0x3d
push str.E:_suohaonekeyfun_souiSOUI_srccoreSObjectFactory.cpp
push edi
push str.soui
push 1
push 0
call dword [eax + 0x34]
jmp 0x43daa8
mov ebx, 0x2800
push ebx
call fcn.0057e78b
push 0x3d
push str.E:_suohaonekeyfun_souiSOUI_srccoreSObjectFactory.cpp
push str.SOUI::SObjectFactoryMgr::CreateObject
push edi
push str._s__s__s:_d_n
push 0xffffffffffffffff
mov esi, eax
push ebx
push esi
call fcn.00432b10
add esp, 0x24
push esi
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
push esi
call fcn.0056b88b
pop ecx
push edi
call fcn.0056b88b
pop ecx
xor eax, eax
pop ebx
jmp 0x43dad0
mov ecx, dword [edi + 8]
push esi
call fcn.0043d7d1
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, eax
mov ecx, edi
push esi
call fcn.0043ddb2
mov eax, esi
pop edi
pop esi
pop ebp
ret 4