joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402221
Capabilities:
Delete file
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push edi
mov esi, 0x4197c0
push dword [ebp + 8]
mov ecx, esi
push edi
call fcn.0040235e
call fcn.00402579
push ecx
mov ecx, esp
push dword [ebp + 0x10]
call fcn.004010a0
push dword [ebp + 8]
mov ecx, 0x419858
call fcn.004028d1
call fcn.004082c2
cmp eax, 1
jne 0x402347
push ecx
mov ecx, esp
push str.EReg2HWDetect.dll
call fcn.004010a0
lea eax, [ebp + 8]
push 0xdc
push eax
call fcn.004086af
add esp, 0xc
mov ecx, 0x4197b8
push eax
call fcn.004013a1
lea ecx, [ebp + 8]
call fcn.00401187
push 0x419864
lea ecx, [ebp + 8]
call fcn.0040106e
lea eax, [ebp + 8]
mov ebx, 0x4197b4
push eax
mov ecx, ebx
call fcn.004013a1
lea ecx, [ebp + 8]
call fcn.00401187
push str.EReg.bin
lea eax, [ebp + 8]
push ebx
push eax
call fcn.00401418
add esp, 0xc
mov ecx, ebx
push eax
call fcn.004013a1
lea ecx, [ebp + 8]
call fcn.00401187
push ecx
mov ecx, esp
push ebx
call fcn.0040106e
call fcn.00408c82
test eax, eax
pop ecx
je 0x40233b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
push 0x4021f6
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
push dword [ebp + 0x14]
mov dword [0x41987c], eax
push dword [ebp + 0x10]
call fcn.0040188c
mov dword [ebp - 4], eax
mov eax, dword [0x41987c]
pop ecx
cmp eax, edi
pop ecx
je 0x40233b
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push dword [0x4197b8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.00402470
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x402e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.00402579
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push dword [ebp + 0xc]
push ebx
call esi
push 0xf0
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov dword [ebp - 0xc], eax
cmp eax, ecx
mov dword [ebp - 4], ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], ecx
je 0x402e58
push eax
push ebx
call esi
push eax
mov dword [ebp - 4], eax
call edi
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x402ea8
push dword [ebp + 8]
push ebx
call esi
push eax
mov dword [ebp + 8], eax
call edi
push dword [ebp + 0xc]
mov esi, eax
push esi
call fcn.00402ec7
pop ecx
mov edi, eax
pop ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
cmp edi, esi
mov dword [ebp - 8], eax
je 0x402e9f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 0xc], 0
pop edi
pop esi
pop ebx
je 0x402ec0
cmp dword [ebp - 0xc], 0
je 0x402ec0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
leave
ret 0x14

Function at 0x407eca
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0040bbb0
mov ax, word [ebp + 0xc]
add esp, 0xc
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x4000200
push esi
push esi
push esi
mov dword [ebp - 0x54], 0x44
push dword [ebp + 8]
mov dword [ebp - 0x28], 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
lea ecx, [ebp + 8]
call fcn.00401187
pop esi
leave
ret
Function at 0x407f2f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x44
pop edi
xor esi, esi
push edi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0040bbb0
mov ax, word [ebp + 0xc]
add esp, 0xc
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x4000200
push esi
push esi
push esi
mov dword [ebp - 0x58], edi
push dword [ebp + 8]
mov dword [ebp - 0x2c], 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0xc]
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov ebx, dword [ebp + 0x10]
cmp ebx, esi
je 0x407fb5
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
mov dword [ebx], eax
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x10]
call edi
lea ecx, [ebp + 8]
call fcn.00401187
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4081bf
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4082b3
mov eax, dword [ebp + 8]
push 0x38
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push str.1.1.3
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.00409220
add esp, 0xc
mov edi, 0x8000
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, esi
je 0x408270
lea eax, [ebp - 0x40]
push esi
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edi
call fcn.00409240
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp + 8], eax
jl 0x408270
mov esi, edi
lea eax, [ebp - 8]
sub esi, dword [ebp - 0x30]
push 0
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40826e
cmp esi, dword [ebp - 8]
jne 0x40826e
push 1
pop esi
cmp dword [ebp + 8], esi
je 0x408299
xor esi, esi
jmp 0x40822a
xor esi, esi
lea eax, [ebp - 0x40]
push eax
call fcn.004090c0
cmp ebx, esi
pop ecx
je 0x408285
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4082b3
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x40]
push eax
call fcn.004090c0
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0x10]
call fcn.00401187
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4086af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
lea ecx, [ebp - 8]
call fcn.0040105d
lea ecx, [ebp - 4]
call fcn.0040105d
push 0x419870
lea ecx, [ebp - 0xc]
call fcn.0040106e
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xc]
push 0x4151b4
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401418
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004013e1
add esp, 0xc
lea ecx, [ebp - 4]
push eax
call fcn.004013a1
lea ecx, [ebp - 0x14]
call fcn.00401187
lea ecx, [ebp - 0x10]
call fcn.00401187
lea ecx, [ebp - 0xc]
call fcn.00401187
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push eax
call fcn.0040cbd0
movzx eax, word [ebp + 0xc]
pop ecx
pop ecx
push 0x41559c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408791
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push ecx
lea eax, [ebp - 0x11c]
mov ecx, esp
push eax
call fcn.004010a0
push esi
push ebx
call fcn.004081bf
add esp, 0xc
cmp eax, 1
jne 0x408791
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 8]
push eax
call fcn.004013c2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.0040106e
lea ecx, [ebp - 4]
call fcn.00401187
lea ecx, [ebp - 8]
call fcn.00401187
lea ecx, [ebp + 0x10]
call fcn.00401187
mov eax, dword [ebp + 8]
pop esi
pop ebx
leave
ret

Function at 0x40889a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push edi
lea ecx, [ebp - 4]
call fcn.0040105d
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jbe 0x408977
push esi
call fcn.0040ccc0
pop ecx
mov edi, eax
push edi
push esi
push 0
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, 1
jne 0x40896c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x4151b4
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 8]
mov cx, word [eax + 0xe]
test cx, cx
jbe 0x40892d
movzx edx, word [eax + 0xc]
movzx ecx, cx
push edx
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x60]
push str._02d._02d._02d_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x60]
push eax
call fcn.0040bb00
add esp, 0x1c
jmp 0x408957
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x60]
push str._02d._02d._04d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x60]
push eax
call fcn.0040bb00
add esp, 0x18
cmp eax, 0xa
jbe 0x408960
and byte [ebp - 0x56], 0
lea eax, [ebp - 0x60]
lea ecx, [ebp - 4]
push eax
call fcn.004013c2
test edi, edi
je 0x408977
push edi
call fcn.0040ba50
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0040106e
lea ecx, [ebp - 4]
call fcn.00401187
lea ecx, [ebp + 0xc]
call fcn.00401187
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x408a48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0040bb80
lea ecx, [ebp - 4]
call fcn.0040105d
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.0040106e
call fcn.0040899a
pop ecx
lea ecx, [ebp - 8]
push ecx
push 0x20019
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408ad8
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x1000
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408ac1
lea eax, [ebp - 0x1010]
lea ecx, [ebp - 4]
push eax
call fcn.004013c2
jmp 0x408acd
lea eax, [ebp + 0x18]
lea ecx, [ebp - 4]
push eax
call fcn.004013a1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408ae4
lea eax, [ebp + 0x18]
lea ecx, [ebp - 4]
push eax
call fcn.004013a1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0040106e
lea ecx, [ebp - 4]
call fcn.00401187
lea ecx, [ebp + 0xc]
call fcn.00401187
lea ecx, [ebp + 0x10]
call fcn.00401187
lea ecx, [ebp + 0x14]
call fcn.00401187
lea ecx, [ebp + 0x18]
call fcn.00401187
mov eax, dword [ebp + 8]
leave
ret

Function at 0x408b1d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0040106e
call fcn.0040899a
pop ecx
xor ebx, ebx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x408b79
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.004012ee
push eax
push esi
push 1
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.00401187
lea ecx, [ebp + 0xc]
call fcn.00401187
lea ecx, [ebp + 0x10]
call fcn.00401187
lea ecx, [ebp + 0x14]
call fcn.00401187
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408ba9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0040106e
call fcn.0040899a
push dword [ebp + 0x14]
mov edi, eax
call fcn.0040ce4c
pop ecx
mov dword [ebp - 8], eax
pop ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, esi
jne 0x408c13
mov edi, dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.004012ee
push eax
lea eax, [ebp - 8]
push eax
push 4
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.00401187
lea ecx, [ebp + 0xc]
call fcn.00401187
lea ecx, [ebp + 0x10]
call fcn.00401187
lea ecx, [ebp + 0x14]
call fcn.00401187
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x408f0b
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea ecx, [ebp - 4]
call fcn.0040105d
push str.ONLINE
lea ecx, [ebp - 4]
call fcn.004013c2
lea eax, [ebp - 8]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x408f42
push str.OFFLINE
lea ecx, [ebp - 4]
call fcn.004013c2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0040106e
lea ecx, [ebp - 4]
call fcn.00401187
mov eax, dword [ebp + 8]
leave
ret
Function at 0x40fe4f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x418f90
cmp edx, dword [eax]
je 0x40fe71
add eax, 8
inc ecx
cmp eax, 0x419020
jl 0x40fe62
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x418f90]
jne 0x40ff9f
mov eax, dword [0x41988c]
cmp eax, 1
je 0x40ff79
test eax, eax
jne 0x40fea2
cmp dword [0x416ab4], 1
je 0x40ff79
cmp edx, 0xfc
je 0x40ff9f
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40fed9
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040cbd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040bb00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40ff1c
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040bb00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x413004
push edi
call fcn.0040d4c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040cbd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040cbe0
lea eax, [ebp - 0xa0]
push 0x412fe4
push eax
call fcn.0040cbe0
push dword [esi + 0x418f94]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040cbe0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004108f4
add esp, 0x2c
pop edi
jmp 0x40ff9f
lea eax, [ebp + 8]
lea esi, [esi + 0x418f94]
push 0
push eax
push dword [esi]
call fcn.0040bb00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80c004]
jne 0x40100a
repz ret
jmp fcn.0040130d

Function at 0x403f8b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x80c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402540
and dword [ebp - 0x14], 0
cmp dword [0x80eadc], 0
mov dword [ebp - 0x18], eax
jne 0x40403e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4040e6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4040e6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x80eadc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x80eae0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x80eae4], eax
call edi
push eax
call esi
mov dword [0x80eaec], eax
test eax, eax
je 0x40403e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x80eae8], eax
mov eax, dword [0x80eae8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404097
cmp dword [0x80eaec], ecx
je 0x404097
push eax
call esi
push dword [0x80eaec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404097
test ebx, ebx
je 0x404097
call edi
test eax, eax
je 0x40408e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40408e
test byte [ebp - 8], 1
jne 0x404097
or dword [ebp + 0x10], 0x200000
jmp 0x4040ca
mov eax, dword [0x80eae0]
cmp eax, dword [ebp - 0x18]
je 0x4040ca
push eax
call esi
test eax, eax
je 0x4040ca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4040ca
mov eax, dword [0x80eae4]
cmp eax, dword [ebp - 0x18]
je 0x4040ca
push eax
call esi
test eax, eax
je 0x4040ca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x80eadc]
call esi
test eax, eax
je 0x4040e6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4040e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x409cd0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x80cf60]
sub esp, 0x10
push esi
mov esi, dword [0x853ea8]
push edi
mov edi, dword [0x854184]
push eax
call fcn.00409bd0
add esp, 4
cmp dword [0x854184], 0x2f
jne 0x409d2d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push esi
call fcn.00409c20
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409f70
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x854184]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
nop
cmp eax, 0x8cf
jne 0x409f92
push 0
push 0
call edi
mov eax, dword [0x854184]
cmp esi, 0x845013
jne 0x409fa9
mov eax, dword [0x80dd80]
add eax, 0xa231
mov dword [0x854184], eax
cmp eax, 0x141
jne 0x409fc4
mov dword [0x80f020], 0xec58acac
mov dword [0x80f024], 0xffffffff
inc esi
cmp esi, 0xbbe2a98
jl 0x409f80
call fcn.00409d40
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x40167f
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
pushal
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
mov eax, 0x74ebec70
call eax
cmp eax, 0xffffffff
je 0x401803
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 4
push 0
push dword [ebp - 4]
mov eax, 0x74e9db60
call eax
or eax, eax
je 0x4017fa
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 6
push dword [ebp - 8]
mov eax, 0x74e65be0
call eax
or eax, eax
je 0x4017f1
mov dword [ebp - 0xc], eax
mov esi, eax
cmp word [esi], 0x5a4d
je 0x4016f8
jmp 0x4017e7
cmp word [esi + 0x18], 0x40
je 0x401704
jmp 0x4017e7
add esi, dword [esi + 0x3c]
cmp dword [esi], 0x4550
je 0x401714
jmp 0x4017e7
cmp word [esi + 0x5c], 2
je 0x401720
jmp 0x4017e7
cmp word [esi + 0x1a], 0x815
jne 0x40172d
jmp 0x4017e7
mov eax, dword [esi + 0x28]
add eax, dword [esi + 0x34]
mov dword [ebx + 0x40564f], eax
movzx eax, word [esi + 6]
mov ecx, 0x28
mul ecx
lea edi, [esi]
sub edi, dword [ebp - 0xc]
add eax, edi
add eax, 0x18
movzx edi, word [esi + 0x14]
add eax, edi
mov edi, eax
add edi, dword [ebp - 0xc]
Function at 0x403e5d
Capabilities:
Resume thread

Disassembly:
push 4
mov eax, 0x469a64
call fcn.00467be3
mov esi, ecx
call fcn.00403e27
push 0x60
call sub.mfc90.dll_Ordinal_798
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x403e8f
push dword [ebp + 8]
call fcn.00403f02
jmp 0x403e91
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0
push 0
push 4
mov ecx, eax
mov dword [esi + 4], eax
call sub.mfc90.dll_Ordinal_1884
mov eax, dword [esi + 4]
push 0
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 4]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, esi
call fcn.00403e3c
call fcn.00467c82
ret 4

Function at 0x40479a
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x49ce78]
xor eax, ebp
mov dword [ebp + 0x98], eax
push ebx
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x6c]
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.dinput8.dll
lea eax, [ebp - 0x6c]
push esi
push eax
call dword [sym.imp.MSVCR90.dll_strcat_s]
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push eax
call dword [sym.imp.MSVCR90.dll__access]
add esp, 0x14
test eax, eax
je 0x4047f5
xor eax, eax
jmp 0x4048b5
mov ecx, edi
call fcn.00403f72
call sub.mfc90.dll_Ordinal_1137
mov eax, dword [eax + 8]
push ebx
lea esi, [edi + 0x54]
push esi
push 0x48126c
push 0x800
push eax
call sub.DINPUT8.dll_DirectInput8Create
test eax, eax
jl 0x4047ee
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
lea esi, [edi + 0x58]
push esi
push 0x48127c
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x40483c
mov ecx, edi
call fcn.00403f72
jmp 0x4047ee
mov eax, dword [esi]
mov ecx, dword [eax]
push 0x48123c
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x404833
mov eax, dword [edi + 0x50]
cmp eax, ebx
je 0x404859
mov ecx, dword [eax + 0x20]
jmp 0x40485b
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [eax]
push 0xa
push ecx
push eax
call dword [edx + 0x34]
test eax, eax
jl 0x404833
mov eax, dword [esi]
lea edx, [ebp - 0x80]
push edx
push 1
mov dword [ebp - 0x80], 0x14
mov dword [ebp - 0x7c], 0x10
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], 0x100
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x404833
mov eax, dword [esi]
push dword [edi + 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
jl 0x404833
mov esi, dword [esi]
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
test eax, eax
jl 0x404833
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00467bd4
add ebp, 0x9c
leave
ret