joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401320
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 5
push eax
push ecx
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 0xc

Function at 0x401350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x41b0e0]
push ebx
push esi
push edi
mov dword [esp + 0x22c], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov byte [esp + 0x120], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
stosw word es:[edi], ax
lea edx, [esp + 0x124]
push str._slocalstb.tco
push edx
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x12c]
push 0x417300
push eax
call fcn.0040c093
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40143c
test byte [esi + 0xc], 0x10
jne 0x401433
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push str._d__d
push esi
call fcn.0040c053
mov ecx, dword [ebx + 0x15a020]
add esp, 0x10
xor eax, eax
test ecx, ecx
jle 0x40142d
mov edi, dword [esp + 0x14]
lea edx, [ebx + 0x15a024]
cmp dword [edx], edi
je 0x401422
inc eax
add edx, 8
cmp eax, ecx
jl 0x401414
jmp 0x40142d
mov ecx, dword [esp + 0x10]
mov dword [ebx + eax*8 + 0x15a028], ecx
test byte [esi + 0xc], 0x10
je 0x4013e6
push esi
call fcn.0040bffd
add esp, 4
mov ecx, dword [esp + 0x22c]
call fcn.0040c0d7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4029b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x415b71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x18bfc
call fcn.0040c6f0
mov eax, dword [0x41b0e0]
push ebx
push esi
push edi
mov dword [esp + 0x18c04], eax
xor eax, eax
mov ecx, 0xa
mov esi, str.http:__www.funad.co.kr_snqup_update.dat
lea edi, [esp + 0x150]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xf6
lea edi, [esp + 0x178]
rep stosd dword es:[edi], eax
xor ebx, ebx
mov byte [esp + 0x48], bl
mov ecx, 0x40
lea edi, [esp + 0x49]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x48]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x550]
call fcn.0040ad70
push str.Mozilla_4.0___
lea ecx, [esp + 0x554]
mov dword [esp + 0x18c18], ebx
call fcn.0040ad90
mov edi, 0xf
lea eax, [esp + 0x150]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
lea edx, [eax + 1]
jmp 0x402a70
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402a70
sub eax, edx
push eax
lea ecx, [esp + 0x154]
push ecx
lea ecx, [esp + 0x34]
call fcn.00402370
lea eax, [esp + 0x48]
mov byte [esp + 0x18c14], 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402aa6
sub eax, edx
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x18]
call fcn.00402370
push 0xc
push str._tconurl.dat
lea ecx, [esp + 0x18]
mov byte [esp + 0x18c1c], 2
call fcn.00402260
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov esi, 0x10
cmp eax, esi
jae 0x402aeb
lea ecx, [esp + 0x14]
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
jae 0x402af9
lea eax, [esp + 0x30]
push ecx
push eax
push ebx
lea ecx, [esp + 0x55c]
call fcn.0040add0
cmp dword [esp + 0x28], esi
jb 0x402b1b
mov eax, dword [esp + 0x14]
push eax
call fcn.0040c1b1
add esp, 4
cmp dword [esp + 0x44], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jb 0x402b3a
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0040c1b1
add esp, 4
lea ecx, [esp + 0x550]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x18c14], 0xffffffff
call fcn.0040ad80
mov ecx, dword [esp + 0x18c0c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x18c04]
call fcn.0040c0d7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405e40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x415f51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x18ffc
call fcn.0040c6f0
mov eax, dword [0x41b0e0]
push ebx
push esi
push edi
mov dword [esp + 0x19004], eax
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x48], bl
mov ecx, 0x40
lea edi, [esp + 0x49]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x48]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov byte [esp + 0x150], bl
xor eax, eax
mov ecx, 0x1ff
lea edi, [esp + 0x151]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x150]
push str.http:__icon.tcon.kr_iconlist_
push ecx
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, 0xf
add esp, 8
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x19014], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea ecx, [esp + 0x950]
mov byte [esp + 0x19014], 1
call fcn.0040ad70
push str.Mozilla_4.0___
lea ecx, [esp + 0x954]
mov byte [esp + 0x19018], 2
call fcn.0040ad90
lea eax, [esp + 0x150]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405f26
sub eax, edx
push eax
lea edx, [esp + 0x154]
push edx
lea ecx, [esp + 0x34]
call fcn.00402370
push 0xc
push str.icondata.ini
lea ecx, [esp + 0x34]
call fcn.00402260
lea eax, [esp + 0x48]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405f58
sub eax, edx
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
call fcn.00402370
push 1
push 0x41748c
lea ecx, [esp + 0x18]
call fcn.00402260
push 0xc
push str.icondata.ini
lea ecx, [esp + 0x18]
call fcn.00402260
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov esi, 0x10
cmp eax, esi
jae 0x405fa5
lea ecx, [esp + 0x14]
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
jae 0x405fb3
lea eax, [esp + 0x30]
push ecx
push eax
push ebx
lea ecx, [esp + 0x95c]
call fcn.0040add0
lea ecx, [esp + 0x950]
mov byte [esp + 0x19014], 1
call fcn.0040ad80
cmp dword [esp + 0x28], esi
jb 0x405fe9
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040c1b1
add esp, 4
cmp dword [esp + 0x44], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jb 0x406008
mov edx, dword [esp + 0x30]
push edx
call fcn.0040c1b1
add esp, 4
mov ecx, dword [esp + 0x1900c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x19004]
call fcn.0040c0d7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407960
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
mov eax, dword [0x41b0e0]
push ebx
push esi
mov esi, ecx
mov edx, dword [esi + 0x15a9a0]
inc edx
mov dword [esp + 0x58], eax
mov eax, edx
xor ebx, ebx
cmp eax, 0xf
mov dword [esi + 0x15a9a0], edx
jle 0x407a99
push ebx
push str.IEFrame
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x407a99
cmp byte [esi + 0x15a9c0], bl
mov ecx, esi
je 0x407a05
mov dword [esi + 0x15a9a0], ebx
mov byte [esi + 0x15a9c0], bl
call fcn.00404fa0
mov ecx, dword [esi + 0x15a9c4]
mov al, byte [esi + 0x15a9c8]
inc ecx
cmp al, bl
mov dword [esi + 0x15a9c4], ecx
je 0x407a99
cmp dword [esi + 0x1950], 0x10
jb 0x4079e5
mov esi, dword [esi + 0x193c]
jmp 0x4079eb
add esi, 0x193c
push 5
push esi
push ebx
push str.TConBrowser.exe
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x407a99
mov eax, dword [esi + 0x15a000]
push ebx
push eax
call fcn.00401450
mov ecx, esi
mov dword [esi + 0x15a9a0], ebx
call fcn.00404fa0
mov ecx, dword [esi + 0x15a9d0]
cmp ecx, dword [esi + 0x15a9cc]
jle 0x407a8d
mov ecx, dword [esi + 0x15a9c4]
inc ecx
mov eax, ecx
cmp eax, 5
mov dword [esi + 0x15a9c4], ecx
jge 0x407a7e
cmp byte [esi + 0x15a9c8], bl
je 0x407a8d
cmp dword [esi + 0x1950], 0x10
jb 0x407a68
mov eax, dword [esi + 0x193c]
push eax
push ebx
push str.TConBrowser.exe
mov ecx, esi
call fcn.00401320
jmp 0x407a8d
lea eax, [esi + 0x193c]
push eax
push ebx
push str.TConBrowser.exe
mov ecx, esi
call fcn.00401320
jmp 0x407a8d
mov edx, dword [esi + 0x1934]
push 3
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0x15a9d0]
mov dword [esi + 0x15a9cc], eax
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov byte [esp + 0xc], bl
xor eax, eax
mov ecx, 0x13
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
push 0x50
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
push ecx
push esi
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetClassNameA]
lea edx, [esp + 0xc]
push str.IEFrame
push edx
call fcn.0040bc42
add esp, 8
test eax, eax
pop edi
jne 0x407ae8
push ebx
push 0x406510
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov ecx, dword [esp + 0x58]
pop esi
pop ebx
call fcn.0040c0d7
add esp, 0x54
ret
Function at 0x40ad90
Capabilities:
Create http request

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 0
push 0
push eax
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi], eax
jne 0x40adb2
xor al, al
pop esi
ret 4
push edi
xor eax, eax
lea edi, [esi + 0xc]
mov ecx, 0x61a8
rep stosd dword es:[edi], eax
pop edi
mov al, 1
pop esi
ret 4

Function at 0x40add0
Capabilities:
Download and write a file
Get http content length
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x2c
mov eax, dword [0x41b0e0]
push ebx
push ebp
push esi
xor ebp, ebp
push ebp
push 0x80000000
push ebp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
mov ebx, ecx
mov ecx, dword [ebx]
push ebp
push eax
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebp
jne 0x40ae24
mov edx, dword [ebx]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
call fcn.0040c0d7
add esp, 0x2c
ret 0xc
push ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x48]
push ecx
push 0x20000005
push esi
mov dword [ebx + 8], ebp
mov dword [ebx + 4], 1
mov dword [esp + 0x54], ebp
mov dword [esp + 0x2c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov edx, dword [esp + 0x44]
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x14], eax
add ebx, 0xc
push edi
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebp, dword [esp + 0x24]
mov ecx, 0
je 0x40aec4
mov eax, 0x51eb851f
mul ebp
mov ecx, edx
shr ecx, 5
xor eax, eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov word [esp + 0x35], ax
mov byte [esp + 0x37], al
mov eax, 0xd1b71759
mul dword [esp + 0x44]
mov edi, edx
shr edi, 0xd
test edi, edi
mov byte [esp + 0x28], 0
push 0x25
jbe 0x40af10
mov eax, ecx
xor edx, edx
div edi
lea ecx, [esp + 0x2c]
push eax
push str._d__c
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40af23
lea edx, [esp + 0x2c]
push str.100__c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40ae73
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword [ecx + 4], 0
mov ecx, dword [esp + 0x30]
pop ebp
mov eax, 1
pop ebx
call fcn.0040c0d7
add esp, 0x2c
ret 0xc
Function at 0x40af70
Capabilities:
Read .ini file

Disassembly:
cmp dword [ecx + 0x1c], 0x10
jb 0x40af7b
mov ecx, dword [ecx + 8]
jmp 0x40af7e
add ecx, 8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0x417a96
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret 0x10

Function at 0x40b100
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x10], 1
je 0x40b139
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x40b0b0
push 0
push 0
mov byte [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop esi
pop ecx
ret

Function at 0x40b210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push eax
push ecx
push ebp
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40b236
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40b24d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b245
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x40b2e5
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40b2de
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
push eax
xor esi, esi
push esi
push ebp
mov dword [esp + 0x1c], esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40b2d7
mov ecx, dword [esp + 0x10]
push esi
push ecx
call fcn.0040b1f0
mov ebx, eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
add esp, 8
push eax
call dword [edx + 8]
cmp ebx, esi
je 0x40b2d7
mov eax, dword [ebx + 8]
cmp eax, esi
mov dword [ebx + 8], esi
je 0x40b2d7
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
xor ebx, ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x40b890
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x41b040]
sub esp, 0x3c
push esi
push eax
push 1
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x41dbc0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b8c0
xor eax, eax
pop esi
add esp, 0x3c
ret 0x10
mov ecx, dword [esp + 0x44]
mov edx, dword [0x41b040]
lea eax, [esp + 0x18]
push eax
mov dword [0x41dc1c], ecx
mov dword [esp + 0x40], edx
call dword [sym.imp.USER32.dll_RegisterClassA]
push esi
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call sub.gdiplus.dll_GdiplusStartup
test eax, eax
jne 0x40b92b
mov eax, dword [0x41dc1c]
push esi
push 0x40b460
push esi
push 0x80
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call sub.gdiplus.dll_GdiplusShutdown
mov edx, dword [0x41dbc0]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x41dbc0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x3c
ret 0x10
Function at 0x40c927
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x417ba8
call fcn.0040eb10
mov edi, 0x94
mov eax, edi
call fcn.0040c6f0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x578630], ecx
mov eax, dword [esi + 4]
mov dword [0x57863c], eax
mov edx, dword [esi + 8]
mov dword [0x578640], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x578634], esi
cmp ecx, 2
je 0x40c987
or esi, 0x8000
mov dword [0x578634], esi
shl eax, 8
add eax, edx
mov dword [0x578638], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40c9c2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c9c2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40c9da
cmp eax, 0x20b
je 0x40c9c7
mov dword [ebp - 0x1c], esi
jmp 0x40c9ee
cmp dword [ecx + 0x84], 0xe
jbe 0x40c9c2
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40c9e8
cmp dword [ecx + 0x74], 0xe
jbe 0x40c9c2
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004110f4
pop ecx
test eax, eax
jne 0x40ca1a
cmp dword [0x578618], 1
jne 0x40ca07
call fcn.004108a9
push 0x1c
call fcn.00410732
push 0xff
call fcn.0040e753
pop ecx
pop ecx
call fcn.00411052
mov dword [ebp - 4], esi
call fcn.00410ea7
test eax, eax
jge 0x40ca33
push 0x1b
call fcn.0040c902
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x579c20], eax
call fcn.00410d85
mov dword [0x578610], eax
call fcn.00410ce3
test eax, eax
jge 0x40ca59
push 8
call fcn.0040c902
pop ecx
call fcn.00410ab0
test eax, eax
jge 0x40ca6a
push 9
call fcn.0040c902
pop ecx
push 1
call fcn.0040e783
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40ca80
push eax
call fcn.0040c902
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00410a53
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40caa1
movzx eax, word [ebp - 0x40]
jmp 0x40caa4
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040b890
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40cac2
push edi
call fcn.0040e8ae
call fcn.0040e8d0
jmp 0x40caf4
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040eb4b
ret
Function at 0x40e7ed
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x578670], esi
push edi
jne 0x40e80d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x57866c], esi
mov byte [0x578668], al
jne 0x40e873
mov ecx, dword [0x5799e8]
test ecx, ecx
je 0x40e854
mov eax, dword [0x5799e4]
sub eax, 4
cmp eax, ecx
jmp 0x40e84d
mov eax, dword [eax]
test eax, eax
je 0x40e83f
call eax
mov eax, dword [0x5799e4]
sub eax, 4
cmp eax, dword [0x5799e8]
mov dword [0x5799e4], eax
jae 0x40e837
mov eax, 0x41b028
mov esi, 0x41b030
cmp eax, esi
mov edi, eax
jae 0x40e873
mov eax, dword [edi]
test eax, eax
je 0x40e86c
call eax
add edi, 4
cmp edi, esi
jb 0x40e864
mov eax, 0x41b034
mov esi, 0x41b03c
cmp eax, esi
mov edi, eax
jae 0x40e892
mov eax, dword [edi]
test eax, eax
je 0x40e88b
call eax
add edi, 4
cmp edi, esi
jb 0x40e883
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40e8ac
push dword [ebp + 8]
mov dword [0x578670], 1
call fcn.0040e753
pop ebp
ret

Function at 0x410732
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41b0e0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41b270]
je 0x410767
inc eax
cmp eax, 0x13
jb 0x410758
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41b270]
jne 0x41088d
mov eax, dword [0x578618]
cmp eax, 1
je 0x410865
cmp eax, edx
jne 0x410797
cmp dword [0x41b118], 1
je 0x410865
cmp ecx, 0xfc
je 0x41088d
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4107cd
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00411c70
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040cbb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x410801
mov eax, edi
push eax
call fcn.0040cbb0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x417c40
push edi
call fcn.00412fe0
add esp, 0x10
push edi
call fcn.0040cbb0
push dword [esi + 0x41b274]
mov ebx, eax
call fcn.0040cbb0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040c6f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00411c70
push edi
push ebx
call fcn.00411c80
push 0x417c3c
push ebx
call fcn.00411c80
push dword [esi + 0x41b274]
push ebx
call fcn.00411c80
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00412ee3
add esp, 0x2c
jmp 0x41088d
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41b274]
push dword [esi]
call fcn.0040cbb0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040c0d7
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x412507
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x5798c8]
mov eax, dword [0x41b0e0]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4126cd
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x5798e0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4126cd
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x412571
xor eax, eax
jmp 0x4126e1
test al, 0x20
je 0x412582
push 2
push edi
push edi
push ecx
call fcn.00414653
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x412657
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x41269e
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4125e4
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4125d5
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4125b7
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x412624
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x412630
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4125ab
jmp 0x412632
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4126c8
cmp dword [ebp + 0x3a4], edi
je 0x41269e
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x412690
mov dword [0x578628], eax
jmp 0x4126d4
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x412682
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x412632
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x412632
push dword [ebp + 0x3a4]
call fcn.004122de
pop ecx
jmp 0x4126de
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4126b6
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x41256a
mov dword [0x578624], 0x1c
mov dword [0x578628], edi
jmp 0x4126de
sub eax, dword [ebp - 0x7c]
jmp 0x4126e1
and dword [0x578628], 0
mov dword [0x578624], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040c0d7
add ebp, 0x39c
leave
ret