joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43abb0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xor eax, eax
mov word [0x4a9120], ax
push 0x4a9120
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 8]
lea eax, [eax*2 + 0x4a9120]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
cmp dword [0x4a9100], 0
je 0x43acb1
cmp word [0x4a8900], 0
je 0x43ac73
cmp dword [0x471070], 0xffffffff
jne 0x43ac7c
push 0x4a8900
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x4a8900
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push 4
push ecx
push 1
push 0x40000000
push 0x4a8900
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x471070], eax
cmp eax, 0xffffffff
je 0x43acb1
cmp dword [ebp - 4], 0xffffffff
jne 0x43ac66
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 4], 0xfeff
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x471070]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x471070], 0xffffffff
je 0x43acb1
push 0x45c81c
push 0x4a9120
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4a9120
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
lea ecx, [ebp - 8]
add eax, eax
push ecx
push eax
push 0x4a9120
push dword [0x471070]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret

Function at 0x43acc0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x43aceb
mov eax, dword [0x471070]
cmp eax, 0xffffffff
je 0x43acdb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x471070], 0xffffffff
mov esp, ebp
pop ebp
ret 4
cmp dword [0x4a9100], 0
je 0x43adbe
cmp word [0x4a8900], 0
push ebx
je 0x43ad7f
cmp dword [0x471070], 0xffffffff
jne 0x43ad88
push 0x4a8900
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x4a8900
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push 4
push ecx
push 1
push 0x40000000
push 0x4a8900
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x471070], eax
cmp eax, 0xffffffff
je 0x43adbd
cmp ebx, 0xffffffff
jne 0x43ad72
push 0
lea ecx, [ebp - 4]
mov dword [ebp + 8], 0xfeff
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x471070]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x471070], 0xffffffff
je 0x43adbd
push 0x45c81c
push 0x4a9120
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4a9120
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
lea ecx, [ebp + 8]
add eax, eax
push ecx
push eax
push 0x4a9120
push dword [0x471070]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43ae00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x4731c0], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x4731c0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x43ae3a
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x43b180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [ebp + 0x10]
push ecx
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop ebp
ret 0xc

Function at 0x43b1b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43b22a
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 0x4008
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43b213
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x43b218
cmp eax, 2
je 0x43b218
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x14]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14

Function at 0x43b230
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x64
nop
mov eax, dword [0x45c800]
dec esi
mov dword [ebp - 0xc], eax
mov eax, dword [0x45c804]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x1a
div ecx
push edi
add word [ebp - 8], dx
lea eax, [ebp - 0xc]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x43b2a0
test esi, esi
jne 0x43b250
mov word [edi], ax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret 8
Function at 0x43b9c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
mov edi, dword [0x4a88b8]
push 6
call fcn.0043b140
test eax, eax
je 0x43b9e4
call eax
movzx eax, ax
push eax
push 0x51e0c0
call fcn.0043b420
jmp 0x43ba40
xor eax, eax
mov dword [0x51e0c0], 0x780030
push eax
push 0x47b470
push eax
push str.Control_PanelDesktopResourceLocale
push connect
mov word [0x51e0c4], ax
call fcn.0043b1b0
cmp word [0x47b470], 0
jne 0x43ba31
push 0
push 0x47b470
push 0x45ca5c
push str..DEFAULTControl_PanelInternational
push reloc.WS2_32.dll_closesocket
call fcn.0043b1b0
push 0x47b470
push 0x51e0c0
call fcn.0043b440
call fcn.0043b8e0
mov eax, dword [0x4a88b4]
and eax, 0x20
push 0x5120a8
mov dword [0x4a8860], eax
call fcn.0043aa20
test eax, eax
jne 0x43baff
mov edx, dword [edi + 0x30]
test edx, edx
je 0x43baff
mov ecx, dword [0x4a88d0]
push eax
mov eax, dword [edi + 0x34]
push 0x4aa120
lea eax, [ecx + eax*2]
push eax
lea eax, [ecx + edx*2]
push eax
push dword [edi + 0x2c]
call fcn.0043b1b0
mov ax, word [0x4aa120]
test ax, ax
je 0x43baff
push esi
mov esi, 0x4aa120
cmp ax, 0x22
jne 0x43bab7
push 0x22
mov esi, 0x4aa122
push esi
call fcn.0043a9e0
xor ecx, ecx
mov word [eax], cx
push esi
call fcn.0043b470
add eax, 0xfffffffc
lea eax, [esi + eax*2]
cmp eax, esi
jbe 0x43baed
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x43baed
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43bae7
test al, 0x10
jne 0x43baed
push esi
call fcn.0043b510
push esi
call fcn.0043a970
push eax
push 0x5120a8
call fcn.0043b450
pop esi
push 0x5120a8
call fcn.0043aa20
test eax, eax
jne 0x43bb1a
push dword [edi + 0x3c]
push 0x5120a8
call fcn.0043a530
push 0
call fcn.0043b840
neg eax
pop edi
sbb eax, eax
and eax, 8
ret
Function at 0x43d6d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x214]
push esi
mov esi, dword [ebp + 0xc]
push edi
push eax
mov eax, dword [0x4a8890]
or eax, 8
mov dword [ebp - 0x218], esi
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43d7b8
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [ebp - 0x210]
push 0x105
push eax
push 0
push dword [ebp - 0x214]
call edi
test eax, eax
jne 0x43d771
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x43d7a7
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call fcn.0043d6d0
test eax, eax
jne 0x43d76b
push 0x105
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
call edi
test eax, eax
je 0x43d737
mov esi, dword [ebp - 0x218]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0043b140
test eax, eax
je 0x43d7cb
push 0
push dword [0x4a8890]
push esi
push ebx
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x4a8890], 0
jne 0x43d7b3
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x43d7b3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43d890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x800d0
call fcn.0043e420
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0x80000
mov dword [ebp - 0x800d0], eax
lea eax, [ebp - 0x8006c]
push 0
push eax
call fcn.0043fa60
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43d9ee
push ebx
lea eax, [ebp - 0x800c8]
push edi
push eax
call fcn.0041f9d0
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x800cc]
add esp, 4
push 0
push eax
push 0x80000
lea eax, [ebp - 0x8006c]
push eax
push esi
call edi
test eax, eax
je 0x43d95e
mov eax, dword [ebp - 0x800cc]
test eax, eax
je 0x43d95e
push eax
lea eax, [ebp - 0x8006c]
push eax
lea eax, [ebp - 0x800c8]
push eax
call fcn.00420110
add esp, 0xc
lea eax, [ebp - 0x800cc]
push 0
push eax
push 0x80000
lea eax, [ebp - 0x8006c]
push eax
push esi
call edi
test eax, eax
jne 0x43d921
lea eax, [ebp - 0x800c8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00420460
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
xorps xmm0, xmm0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
xor esi, esi
movups xmmword [ebp - 0x6c], xmm0
mov byte [ebp - 0x4c], 0
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x10], 0
movq qword [ebp - 0x18], xmm0
movzx eax, byte [ebp + esi - 0x28]
push eax
lea eax, [ebp - 0x18]
push str._02X
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x6c]
push eax
call ebx
inc esi
cmp esi, 0x10
jl 0x43d9a0
lea eax, [ebp - 0x6c]
push eax
push 0x21
push dword [ebp - 0x800d0]
call fcn.004464ed
add esp, 0xc
mov eax, 1
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret

Function at 0x45043c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004502bb

Function at 0x450c1d
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00450b22

Function at 0x4524a7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00452167
Function at 0x4011a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4011f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011f0
lea ebx, [ebx]
cmp esi, eax
jae 0x4011f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011e0
cmp esi, eax
jb 0x4011fa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402c10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45c593
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4784f4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.00404b5a
xor eax, eax
lea edi, [esi + 0x20]
mov dword [esi], vtable.WmWsciTrayIcon.0
mov dword [esp + 0x34], eax
mov dword [edi], vtable.CMenu.0
mov dword [edi + 4], eax
push 0x3b8
push eax
lea ebp, [esi + 0x28]
push ebp
mov byte [esp + 0x40], 1
mov dword [esi + 0x3e0], eax
call fcn.00433070
add esp, 0xc
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x402cdd
push str.DllGetVersion
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402cd6
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x14
call eax
test eax, eax
jl 0x402cd6
movzx edx, word [esp + 0x1c]
movzx eax, word [esp + 0x20]
shl edx, 0x10
or edx, eax
mov dword [esi + 0x3e0], edx
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x3e0]
cmp eax, 0x60000
jb 0x402cf3
mov dword [ebp], 0x3b8
jmp 0x402d09
cmp eax, 0x50000
sbb ecx, ecx
and ecx, 0xfffffcf0
add ecx, 0x3a8
mov dword [ebp], ecx
mov eax, dword [esp + 0x3c]
push 0x100
lea edx, [esi + 0x40]
push edx
push eax
mov dword [esi + 0x30], eax
call fcn.00409757
mov ebx, dword [esi + 0x30]
call fcn.00409638
mov eax, dword [eax + 0xc]
movzx ecx, bx
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadMenuW]
push eax
mov ecx, edi
call fcn.00413d8f
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x4037e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4784f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x40381d
push 0x461328
push 4
push eax
call fcn.00433847
push eax
call fcn.004010c0
add esp, 0x10
jmp 0x40382f
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40389a
push edi
call fcn.00433ab3
mov edi, dword [eax]
call fcn.00433ab3
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00433995
add esp, 0x18
mov ebx, eax
call fcn.00433ab3
cmp dword [eax], 0
je 0x40387a
call fcn.00433ab3
push dword [eax]
call fcn.00403650
pop ecx
jmp 0x403881
call fcn.00433ab3
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x40389a
cmp ebx, esi
jae 0x40389a
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x40389c
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00431542
leave
ret
Function at 0x406ed3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x45c9d5
call fcn.00433332
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00409638
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x406f1e
call fcn.00409638
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x406f2f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x406f3c
or eax, 0xffffffff
jmp 0x407098
mov ecx, esi
call fcn.004069ea
mov dword [ebp - 0x14], eax
call fcn.0040d341
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x406fba
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x406fba
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x406fba
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004036eb
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x406fba
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x406fba
mov ecx, ebx
call fcn.00410bc4
test eax, eax
je 0x406fba
push 0
mov ecx, ebx
call fcn.00410bdf
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040f4f7
push dword [ebp - 0x14]
call fcn.0040d299
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00406cdb
xor edi, edi
cmp eax, edi
je 0x407017
test byte [esi + 0x3c], 0x10
je 0x407001
push 4
pop edi
mov ecx, esi
call fcn.00410a5e
test ax, 0x100
je 0x406ff7
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040cdef
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x407017
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00410eca
or dword [ebp - 4], 0xffffffff
jmp 0x407042
cmp dword [ebp - 0x28], edi
je 0x407050
push 1
mov ecx, ebx
call fcn.00410bdf
cmp dword [ebp - 0x2c], edi
je 0x407060
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x407079
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x407079
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00406a24
cmp dword [esi + 0x58], edi
je 0x407095
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004333d7
ret
Function at 0x40e8ff
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40e938
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004097c6
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00405ce6
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x410809
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x41084c
call fcn.00409638
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41084c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x410867
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004103c3
test ebx, ebx
mov esi, eax
je 0x410865
test edi, edi
je 0x410865
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4112c6
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x45d3c1
call fcn.004332ff
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4112eb
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x411337
call fcn.004098bf
push eax
lea ecx, [ebp - 0x10]
call fcn.00401680
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004072fa
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401290
mov eax, esi
call fcn.004333d7
ret 8

Function at 0x42c138
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
pushal
mov ebp, esp
add ebp, 0x24
push esp
call fcn.00429f99
in eax, 0xad
xor bl, dh
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
inc eax
or al, 0x8b
jo 0x42c170

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

Disassembly:
inc eax
or al, 0x8b
jo 0x42c170
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x42c15d
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00429f99
std
std
pop esi
std
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
push esp
pop es
js 0x42c177
xlatb
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
sbb byte [ebx - 0x20fcdfa6], cl
call fcn.00429f99
in eax, 0xee
adc eax, 0x348b4990
mov eax, dword [ebx]
idiv dword [eax + 0x50746547]
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x42c186
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x42c186
call fcn.00429f99
invalid
Function at 0x431542
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4784f4]
jne 0x43154c
repz ret
jmp fcn.0043ad3c

Function at 0x438305
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x478690]
je 0x438320
inc edi
cmp edi, 0x17
jb 0x438311
cmp edi, 0x17
jae 0x4384a0
push ebp
push 3
call fcn.00447018
cmp eax, 1
pop ecx
je 0x43846c
push 3
call fcn.00447018
test eax, eax
pop ecx
jne 0x438354
cmp dword [0x4784d4], 1
je 0x43846c
cmp ebx, 0xfc
je 0x43849f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x47b9f8
push ebp
call fcn.00440a09
add esp, 0xc
test eax, eax
je 0x43838a
push esi
push esi
push esi
push esi
push esi
call fcn.0043b1af
add esp, 0x14
push 0x104
mov esi, 0x47ba11
push esi
push 0
mov byte [0x47bb15], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4383ce
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00440a09
add esp, 0xc
test eax, eax
je 0x4383ce
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043b1af
add esp, 0x14
push esi
call fcn.00441210
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x438413
push esi
call fcn.00441210
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x47bd0c
push 0x467a04
sub ecx, eax
push ecx
push eax
call fcn.00440956
add esp, 0x14
test eax, eax
je 0x438413
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043b1af
add esp, 0x14
jmp 0x438415
xor esi, esi
push 0x467a00
push ebx
push ebp
call fcn.00440895
add esp, 0xc
test eax, eax
je 0x438435
push esi
push esi
push esi
push esi
push esi
call fcn.0043b1af
add esp, 0x14
push dword [edi*8 + 0x478694]
push ebx
push ebp
call fcn.00440895
add esp, 0xc
test eax, eax
je 0x438457
push esi
push esi
push esi
push esi
push esi
call fcn.0043b1af
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00446e5b
add esp, 0xc
jmp 0x43849f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43849f
cmp ebp, 0xffffffff
je 0x43849f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x478694]
push dword [esi]
call fcn.00441210
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret