joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4070d0
Capabilities:
Enumerate files on windows
Write file on windows

Disassembly:
mov eax, dword [0x41629c]
sub esp, 0x270
mov ecx, eax
inc eax
test ecx, ecx
push esi
mov dword [0x41629c], eax
je 0x4070f2
xor eax, eax
pop esi
add esp, 0x270
ret
push 0
push 0x8000020
push 2
push 0
push 1
push 0x40000000
push str.dir.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407120
xor eax, eax
pop esi
add esp, 0x270
ret
lea edx, [esp + 0x34]
push edx
push 0x413474
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
je 0x407206
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [esp + 0x40], 0x10
jne 0x4071e7
lea eax, [esp + 0x18]
lea ecx, [esp + 0x44]
push eax
push ecx
call ebp
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
push edx
push eax
call ebx
lea ecx, [esp + 0x30]
push 0x10
push ecx
lea edx, [esp + 0x28]
push 0
push edx
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x70]
push ecx
push edx
lea eax, [esp + 0x18c]
push str._s_t_s_t_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 0x14]
lea edx, [esp + 0x180]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x18c]
push eax
push esi
call edi
lea ecx, [esp + 0x14]
push 0
push ecx
push 2
push 0x413464
push esi
call edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407152
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41629c], 0
mov eax, 1
pop esi
add esp, 0x270
ret
Function at 0x4083a0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push str._Tftpd32__by_Ph._Jounin_MutEx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x408412
call esi
cmp eax, 0xb7
jne 0x408412
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4136cc
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x4083f7
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
xor eax, eax
pop ebx
ret 0x10
push 0x10
push str.Tftpd32
push str.Tftpd32_is_already_running
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
xor eax, eax
pop ebx
ret 0x10
push str.TFTP_LOG
call fcn.0040ab97
add esp, 4
test eax, eax
je 0x40843d
push str.TFTP_LOG
call fcn.0040ab97
push eax
call fcn.0040aa84
add esp, 8
mov dword [0x413808], eax
jmp 0x408447
mov dword [0x413808], 8
push 0x104
push 0x416de0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408466
call esi
push 0x5c
push 0x416de0
call fcn.0040ab70
add esp, 8
test eax, eax
jne 0x408480
mov eax, 0x416de0
jmp 0x408481
inc eax
push edi
push str.Tftpd32.hlp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x10]
push esi
push 0
push 0x4078f0
push 0x65
push 0
call fcn.00409ec0
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
add esp, 0x14
push esi
push str.TftpAddIpBackGround
call edi
push esi
push str.SyslogBackGround
call edi
push esi
push str.SntpBackGround
call edi
push esi
push str.DhcpBackGround
call edi
push esi
push str.Ttftpd32BackGround
call edi
push esi
push str.Ttftpd32ClientBackGround
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
Function at 0x409240
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push ebx
push esi
push edi
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWARETFTPD32
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
neg edi
sbb edi, edi
push 0x413708
inc edi
call ebx
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push 0x413708
push 1
push 0
push str.BaseDirectory
push edx
call esi
test eax, eax
jne 0x409495
push 4
push 0x41381c
push 4
push eax
mov eax, dword [esp + 0x1c]
push str.TftpPort
push eax
call esi
test eax, eax
jne 0x409495
mov ecx, dword [esp + 0xc]
push 4
push 0x413820
push 4
push eax
push str.Hide
push ecx
call esi
test eax, eax
jne 0x409495
mov edx, dword [esp + 0xc]
push 4
push 0x413814
push 4
push eax
push str.WinSize
push edx
call esi
test eax, eax
jne 0x409495
push 4
push 0x413824
push 4
push eax
mov eax, dword [esp + 0x1c]
push str.Negociate
push eax
call esi
test eax, eax
jne 0x409495
mov ecx, dword [esp + 0xc]
push 4
push 0x41382c
push 4
push eax
push str.DirText
push ecx
call esi
test eax, eax
jne 0x409495
mov edx, dword [esp + 0xc]
push 4
push 0x413828
push 4
push eax
push str.ShowProgressBar
push edx
call esi
test eax, eax
jne 0x409495
push 4
push 0x41380c
push 4
push eax
mov eax, dword [esp + 0x1c]
push str.Timeout
push eax
call esi
test eax, eax
jne 0x409495
mov ecx, dword [esp + 0xc]
push 4
push 0x413810
push 4
push eax
push str.MaxRetransmit
push ecx
call esi
test eax, eax
jne 0x409495
mov edx, dword [esp + 0xc]
push 4
push 0x413818
push 4
push eax
push str.SecurityLevel
push edx
call esi
test eax, eax
jne 0x409495
push 4
push 0x413834
push 4
push eax
mov eax, dword [esp + 0x1c]
push str.UnixStrings
push eax
call esi
test eax, eax
jne 0x409495
mov ecx, dword [esp + 0xc]
push 4
push 0x413838
push 4
push eax
push str.Beep
push ecx
call esi
test eax, eax
jne 0x409495
mov edx, dword [esp + 0xc]
push 4
push 0x41383c
push 4
push eax
push str.VirtualRoot
push edx
call esi
test eax, eax
jne 0x409495
push 0x413840
call ebx
inc eax
push eax
mov eax, dword [esp + 0x10]
push 0x413840
push 1
push 0
push str.LocalIP
push eax
call esi
test eax, eax
jne 0x409495
mov ecx, dword [esp + 0xc]
push 4
push 0x413850
push 4
push eax
push str.Services
push ecx
call esi
test eax, eax
jne 0x409495
push 0x413854
call ebx
mov edx, dword [esp + 0xc]
inc eax
push eax
push 0x413854
push 1
push 0
push str.TftpLogFile
push edx
call esi
test eax, eax
jne 0x409495
push 0x413954
call ebx
inc eax
push eax
mov eax, dword [esp + 0x10]
push 0x413954
push 1
push 0
push str.SaveSyslogFile
push eax
call esi
test eax, eax
jne 0x409495
mov eax, 1
jmp 0x409497
xor eax, eax
mov ecx, dword [esp + 0xc]
and edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x4094bb
push 0x30
push str.Tftpd32
push str.Error_during_registry_access
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4094d0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x98
lea eax, [esp + 4]
push esi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push str._d__d__d__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea ecx, [esp + 0x18]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWARETFTPD32
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
lea eax, [esp + 0x1c]
neg esi
sbb esi, esi
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 4]
inc eax
lea ecx, [esp + 0x1c]
push eax
push ecx
push 1
push 0
push str.LastWindowPos
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
and esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x98
ret

Function at 0x409580
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push str.SOFTWARETFTPD32
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x2c]
push ecx
push edx
mov ebx, eax
mov eax, dword [esp + 0x1c]
push edi
push edi
push str.LastWindowPos
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x2c]
mov byte [esp + 0xab], 0
test al, al
lea ecx, [esp + 0x2c]
lea esi, [esp + 0x2c]
je 0x4096ae
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
cmp byte [esi], 0x20
jne 0x409650
mov eax, edi
inc edi
cmp eax, 3
mov byte [esi], 0
ja case.default.0x409610
jmp dword [eax*4 + 0x4096bc]
push ecx
call fcn.0040aa84
add esp, 4
mov dword [esp + 0x1c], eax
jmp case.default.0x409610
push ecx
call fcn.0040aa84
add esp, 4
mov dword [esp + 0x20], eax
jmp case.default.0x409610
push ecx
call fcn.0040aa84
add esp, 4
mov ebp, eax
jmp case.default.0x409610
push ecx
call fcn.0040aa84
add esp, 4
mov ebx, eax
lea ecx, [esi + 1]
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x409600
cmp edi, 4
jne 0x40969f
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
mov edi, dword [esp + 0x1c]
lea edx, [edi + 0x96]
cmp edx, eax
jge 0x40969f
push 1
call esi
mov ecx, dword [esp + 0x20]
lea edx, [ecx + 0x96]
cmp edx, eax
jge 0x40969f
mov eax, dword [esp + 0xb0]
sub ebx, ecx
push 1
sub ebp, edi
push ebx
push ebp
push ecx
push edi
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x9c
ret
Function at 0x409740
Capabilities:
Get common file path

Disassembly:
sub esp, 0x128
push ebx
mov ebx, dword [esp + 0x130]
push esi
push 0x413d30
push ebx
call fcn.0040b0b0
add esp, 8
test eax, eax
jne 0x40977a
push 0x413d2c
push ebx
call fcn.0040b0b0
add esp, 8
test eax, eax
jne 0x40977a
mov esi, 1
jmp 0x40977c
xor esi, esi
mov al, byte [ebx]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp al, 0x5c
push edi
je 0x40978e
cmp al, 0x2f
jne 0x4097c9
lea eax, [esp + 0x34]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x36]
push ecx
call ebp
mov ecx, eax
lea edi, [esp + 0x36]
mov esi, ebx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4097c7
lea eax, [esp + 0x36]
push eax
call ebp
cmp byte [eax + ebx], 0x5c
jne 0x4097c7
mov esi, 1
jmp 0x4097c9
xor esi, esi
cmp byte [ebx + 1], 0x3a
jne 0x40980a
lea ecx, [esp + 0x34]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x34]
push edx
call ebp
mov ecx, eax
lea edi, [esp + 0x34]
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x409808
lea ecx, [esp + 0x34]
push ecx
call ebp
cmp byte [eax + ebx], 0x5c
jne 0x409808
mov esi, 1
jmp 0x40980a
xor esi, esi
mov eax, dword [0x413818]
pop edi
cmp eax, 3
pop ebp
ja case.default.0x40981a
jmp dword [eax*4 + 0x4098c4]
pop esi
mov eax, 1
pop ebx
add esp, 0x128
ret
test esi, esi
jne 0x40983e
push 0x10b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
pop ebx
add esp, 0x128
ret
test esi, esi
je 0x4098ac
mov eax, dword [esp + 0x138]
mov dword [esp + 0x1c], 0
cmp eax, 2
jne 0x409884
lea edx, [esp + 8]
push edx
push ebx
call fcn.0040f17e
add esp, 8
cmp eax, 0xffffffff
je case.default.0x40981a
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x409884
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
pop esi
pop ebx
sete al
add esp, 0x128
ret
test esi, esi
je 0x4098ac
mov ecx, dword [esp + 0x138]
mov eax, 1
cmp ecx, eax
je 0x4098b9
push 0x10b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
add esp, 0x128
ret

Function at 0x409f00
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x58
mov ecx, dword [str.Ark]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
mov dword [esp + 8], ecx
lea ecx, [esp + 0x18]
push 0x40
push ecx
push eax
mov dword [esp + 0xc], 0x58
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 7
mov dword [esp + 0x1c], 0x806f
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esp + 0x60]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
add esp, 0x58
ret
Function at 0x40a070
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c0
push ebx
push ebp
mov ebp, dword [esp + 0x4d0]
push esi
mov esi, dword [esp + 0x4dc]
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
je 0x40a0ea
lea eax, [esp + 0x1c]
push eax
call fcn.0040a446
lea ecx, [esp + 0x20]
push ecx
call fcn.0040b222
add esp, 8
push ebp
push eax
call fcn.0040b130
add esp, 4
lea edx, [esp + 0x24]
push eax
push str._24.24s:__s_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x28]
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esp + 0x4d4]
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x18b
push esi
call edi
mov ebx, dword [esp + 0x4dc]
cmp eax, ebx
jbe 0x40a128
push 0
push 0
push 0x182
push esi
call edi
push 0
push 0
push 0x18b
push esi
call edi
cmp eax, ebx
ja 0x40a10c
push ebp
push 0
push 0x180
push esi
call edi
push esi
mov dword [esp + 0x14], eax
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetDC]
push ebp
push ebp
push 0x18b
push esi
mov ebx, eax
call edi
test eax, eax
mov dword [esp + 0x10], eax
jl 0x40a1a3
lea ecx, [esp + 0x20]
dec eax
push ecx
push eax
push 0x189
push esi
call edi
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x24]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea edx, [esp + 0x14]
push 1
push edx
push ebx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov eax, dword [esp + 0x14]
cmp eax, ebp
jle 0x40a198
mov ebp, eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jns 0x40a154
lea ebp, [ebp + ebp*8]
mov eax, 0x66666667
imul ebp
sar edx, 2
mov eax, edx
push 0
shr eax, 0x1f
add edx, eax
push edx
push 0x194
push esi
call edi
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c0
ret
Function at 0x40df09
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x414ce8
cmp edx, dword [eax]
je 0x40df2b
add eax, 8
inc ecx
cmp eax, 0x414d78
jl 0x40df1c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x414ce8]
jne 0x40e059
mov eax, dword [0x416a74]
cmp eax, 1
je 0x40e033
test eax, eax
jne 0x40df5c
cmp dword [0x414764], 1
je 0x40e033
cmp edx, 0xfc
je 0x40e059
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40df93
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040cd50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040ce80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40dfd6
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ce80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x410a60
push edi
call fcn.0040e9e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040cd50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040cd60
lea eax, [ebp - 0xa0]
push 0x410a40
push eax
call fcn.0040cd60
push dword [esi + 0x414cec]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040cd60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ebdc
add esp, 0x2c
pop edi
jmp 0x40e059
lea eax, [ebp + 8]
lea esi, [esi + 0x414cec]
push 0
push eax
push dword [esi]
call fcn.0040ce80
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 0x402f10
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x403488
call fcn.0040323c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043a0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d98
cmp eax, esi
jne 0x402d8b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d9b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402d6f
xor esi, esi
inc esi
cmp dword [0x4043a4], esi
jne 0x402dad
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402de7
cmp dword [0x4043a4], ebx
jne 0x402de1
mov dword [0x4043a4], esi
push 0x4011a8
push 0x40119c
call fcn.00402ec2
pop ecx
pop ecx
test eax, eax
je 0x402de7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402ebc
mov dword [0x404034], esi
cmp dword [0x4043a4], esi
jne 0x402e0a
push 0x401198
push 0x401190
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043a4], 2
test edi, edi
jne 0x402e17
xor eax, eax
mov ecx, 0x4043a0
xchg dword [ecx], eax
cmp dword [0x4043a8], 0
je 0x402e43
push 0x4043a8
call fcn.00403090
pop ecx
test eax, eax
je 0x402e43
push ebx
push 2
push ebx
mov esi, dword [0x4043a8]
mov ecx, esi
call dword [0x40515c]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401a43
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402ea1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402eb5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
call fcn.00403284
ret
call fcn.00575000
jmp 0x402d53

Function at 0x402f94
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4034a8
call fcn.0040340c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402ff4
cmp eax, 0xffffffff
je 0x402ff4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402fed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402fed
cmp edx, 0x10000000
jae 0x402fed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x402fea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00403451
ret 4

Function at 0x403040
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40307e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403076
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403080
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403066
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x467ba8]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x4015b7
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.00401741
lea ecx, [esp + 0x1c]
call fcn.0040131c
cmp eax, dword [esp + 0x14]
je 0x4015cf
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.0040171e
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x401587
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401a79
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.0040171e
jmp 0x4015b9

Function at 0x401652
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
movsd xmm0, qword [0x4198a8]
push esi
push edi
push ecx
push ecx
movsd qword [esp], xmm0
push 0x419890
call fcn.00401006
add esp, 0xc
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x467ba8], eax
push 0x27
mov esi, 0x466b30
mov edx, 0x547
push 0x41b900
mov ecx, esi
call fcn.00401112
pop ecx
pop ecx
mov edx, 0x8aafdc01
call fcn.00401550
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x4e4
push esi
call eax
test eax, eax
je 0x4016c8
call fcn.004015ed
push 0x1000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4016e0
or eax, 0xffffffff
jmp 0x4016f6
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
call dword [sym.imp.KERNEL32.dll_GetSystemFileCacheSize]
xor eax, eax
pop edi
pop esi
leave
ret 0x10

Function at 0x402327
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402366
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402366
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402366
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402366
cmp dword [ecx + 0x74], 0xe
jbe 0x402366
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x408324
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4155b8
push 0x4155b0
push str.FlsAlloc
push 0x1e
call fcn.00408242
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408358
push dword [ebp + 8]
mov ecx, esi
call dword [0x414118]
call esi
jmp 0x40835e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4