joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002bfd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x1009e5e8
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002bff0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x1009e5f4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x1009e604
push esi
mov dword [ebp - 8], ebx
call fcn.10072aa5
add esp, 8
test eax, eax
je 0x1002c03c
test ebx, ebx
je 0x1002c02c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1002c065
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002c065
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x1002c110
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c081
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x100ad008]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1002c106
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002c106
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c0b2
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c0d0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x1002c0e0
mov eax, dword [ebp - 8]
test eax, eax
je 0x1002c0fd
push 8
push 0
push ebx
call eax
jmp 0x1002c104
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x100ad00c]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x1002ca80
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100ad12c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1002cacd
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.10024400
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003ef8b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1002caf5
shr eax, 8
test al, al
jne 0x1002caf5
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003ef8b
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.10024400
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.1003ef8b
mov esp, ebp
pop ebp
ret
Function at 0x1002d360
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x190]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1002d3a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.10024400
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.1002cc10
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1002d490
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ebx, dword [eax + 0x114]
jne 0x1002d5dd
push edi
lea eax, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], eax
cmp eax, edi
jae 0x1002d4da
mov byte [eax], 0xff
inc eax
mov dword [edi], eax
cmp eax, edi
jae 0x1002d4da
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002d4da
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov edx, dword [ebp + 0xc]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x1002d543
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002d543
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002d543
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002d543
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002d543
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002d543
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebx + 0x1eb4], eax
lea esi, [ebx + 0x1cb0]
sub eax, esi
mov dword [edi], esi
mov edi, dword [ebp - 4]
sub eax, 2
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push edi
call fcn.1002cd10
add esp, 0x10
push 0
push 3
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x190]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1002d599
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.10024400
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push esi
call fcn.1002d3c0
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [esi + 0x190]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x1002d5dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.10024400
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002e680
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x100ad12c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax + 0x5e8]
mov ebx, dword [eax]
lea edi, [esi + 0x15c]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x8c], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [edi]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x1002e713
push dword [ebp - 0x8c]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.100407b0
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x1002e746
push str.Received_too_short_packet
push ebx
call fcn.10024400
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003ef8b
mov esp, ebp
pop ebp
ret
push edi
call fcn.1002e280
movzx eax, ax
add esp, 4
mov dword [esi + 0xc], eax
dec eax
cmp eax, 5
ja case.0x1002e75f.1
jmp dword [eax*4 + 0x1002e884]
cmp edx, 4
jle case.0x1002e75f.4
push edi
call fcn.1002e260
movzx ecx, word [esi + 0x40]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x1002e75f.4
lea eax, [edx - 4]
push eax
mov eax, dword [edi]
mov edi, dword [ebp - 0x88]
add eax, 4
push eax
push 1
push edi
call fcn.100242f0
add esp, 0x10
mov dword [ebp - 0x88], eax
test eax, eax
je 0x1002e7cd
push 5
push esi
call fcn.1002efc0
mov eax, dword [ebp - 0x88]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003ef8b
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
adc dword [ebx + 0x74], edx
push dword [ebx + 0x74]
push dword [ebx + 0x70]
push ebx
call fcn.10021b30
add esp, 0xc
jmp 0x1002e851
push edi
call fcn.1002e260
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [edi]
add eax, 4
push eax
push 0x100979b8
push ebx
call fcn.100244b0
add esp, 0x10
jmp case.0x1002e75f.4
lea eax, [edx - 2]
push eax
mov eax, dword [edi]
add eax, 2
push eax
push esi
call fcn.1002e430
add esp, 0xc
test eax, eax
je case.0x1002e75f.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003ef8b
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x100983b8
push ebx
call fcn.10024400
add esp, 0xc
mov edi, dword [ebp - 0x88]
push edi
call fcn.10021ed0
add esp, 4
test eax, eax
je 0x1002e733
push 5
push esi
call fcn.1002efc0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.1003ef8b
mov esp, ebp
pop ebp
ret
Function at 0x1002efc0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x1002efd2
jmp dword [edx*4 + 0x1002f028]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.1002eaf0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.1002e8a0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.1002f1d0
push str.TFTP_finished
push 0x100979b8
push eax
call fcn.100244b0
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x100983b8
push eax
call fcn.10024400
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x10038780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.100388b0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.10077627

Function at 0x1003bd90
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1003bdd2
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 4]
test eax, eax
jne 0x1003bddb
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10080ac8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100806c0

Function at 0x10080ad3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008084a

Function at 0x1008597f
Capabilities:
Set environment variable

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

Function at 0x10090c64
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10090b38
Function at 0x402570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4025cb
cmp byte [esi + ebx - 1], 0xa
je 0x40259f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4060a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x402b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x4060b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x402ce0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x4060b4]
movzx eax, al
bt eax, esi
jae 0x402d40
mov ecx, dword [0x4060a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x402be6
test byte [0x404018], 8
jne 0x402c80
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x404028], 8
jne 0x402c30
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x402bb5
cmp esi, 3
jbe 0x402bf0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4051d8]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x402bb5
mov ecx, dword [0x4060b4]
test ecx, ecx
je 0x402d20
mov dword [esp], 0x404028
call dword [0x4060b4]
test al, 8
je 0x402b8c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x402b8c
mov ebx, dword [0x4060b4]
test ebx, ebx
je 0x402d00
mov dword [esp], 0x404018
call dword [0x4060b4]
test al, 8
je 0x402b79
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x402b7f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4060b4
call sym._load_func.part.0
jmp 0x402b40
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4060b4
call sym._load_func.part.0
jmp 0x402c8a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4060b4
call sym._load_func.part.0
jmp 0x402c3e
mov eax, 0xffffffff
jmp 0x402be6
Function at 0x402ea0
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit

Function at 0x402f10
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x402f77
xor ecx, ecx
xor edx, edx
jmp 0x402f59
cmp ax, 0x5c
jne 0x402fe8
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x402f77
cmp ax, 9
je 0x402f65
cmp ax, 0x20
jne 0x402f40
test ecx, ecx
je 0x402fd3
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x402f59
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x403008
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.wWinMain@16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x402fd0
cmp ax, 0x20
je 0x402fd0
jmp 0x402f77
cmp ax, 0x22
jne 0x402f69
and edx, 1
jne 0x402f69
xor ecx, 1
jmp 0x402f4d
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x402f90
Function at 0x403c30
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x490]
sub esp, 0x510
mov eax, dword [0x410180]
xor eax, ebp
mov dword [ebp + 0x48c], eax
mov eax, dword [ebp + 0x498]
push ebx
mov ebx, dword [ebp + 0x49c]
push esi
push edi
xor esi, esi
push esi
push esi
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x4a8]
push 0x104
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x37c]
push eax
push 0xffffffffffffffff
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push esi
lea eax, [ebp - 0x74]
push eax
push 0x400
call edi
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0xa
lea eax, [ebp + 0x480]
push eax
call edi
push eax
call fcn.004063c9
add esp, 0xc
cmp dword [ebp + 0x4a0], esi
je 0x403d77
cmp ebx, esi
jne 0x403ce3
lea eax, [ebp + 0x480]
push eax
push dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
push 0x4016a8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x403d1a
lea eax, [ebp + 0x37c]
push eax
call fcn.00406220
pop ecx
cmp eax, 0x104
ja 0x403d1a
lea eax, [ebp + 0x480]
push eax
lea eax, [ebp + 0x37c]
push eax
push dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
push 0x401694
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push esi
push esi
push 4
push esi
push 1
push 0x10000000
push 0x411090
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push esi
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00406220
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
call edi
push esi
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x78]
call fcn.00406220
pop ecx
push eax
push dword [ebp - 0x78]
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x4a4], esi
je 0x403dd4
cmp dword [ebp - 0x74], esi
je 0x403dd4
push dword [ebp - 0x70]
call fcn.00406220
push dword [ebp - 0x74]
mov edi, eax
call fcn.00406220
lea eax, [edi + eax + 0x64]
push eax
call fcn.00406320
mov edi, eax
lea eax, [ebp + 0x480]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x70]
push 0x40167c
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
push 0x10
push 0x4014a4
push edi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.004062ab
pop ecx
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x7c]
add eax, ecx
mov ecx, dword [ebp + 0x48c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040615a
add ebp, 0x490
leave
ret
Function at 0x403dfd
Capabilities:
Get file size
Timestomp file

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x410180]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x40d8b8
call fcn.004067d9
mov eax, dword [ebp + 0x214]
mov ecx, dword [ebp + 0x218]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
push esi
push esi
push dword [ebp + 0x220]
mov dword [ebp - 0x14], eax
push esi
push 1
push dword [ebp + 0x21c]
mov dword [ebp - 0x1c], ecx
push eax
mov dword [ebp - 4], esi
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403eb1
push dword [ebp - 0x14]
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4017e0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
push esi
push dword [ebp + 0x220]
push esi
push 1
push dword [ebp + 0x21c]
push dword [ebp - 0x14]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403eb1
push 0x4014e0
push 1
push 1
push dword [ebp - 0x14]
push 0x4017b0
call fcn.00403c30
add esp, 0x14
xor eax, eax
jmp 0x403fd4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x1c]
add dword [ecx], eax
cmp dword [ebp + 0x21c], 0x80000000
mov ecx, dword [ecx]
jne 0x403edc
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x1c], 4
jmp 0x403ef6
cmp dword [ebp + 0x21c], 0xc0000000
jne 0x403ef6
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x1c], 2
push esi
push ecx
push esi
push dword [ebp - 0x18]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x224], esi
je 0x403f45
push 0x4112b0
push 0x4112a8
push 0x4112a0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov edi, 0x4014e0
test eax, eax
jne 0x403f4a
push edi
push 1
push 1
push dword [ebp - 0x14]
push 0x401780
call fcn.00403c30
add esp, 0x14
jmp 0x403f4a
mov edi, 0x4014e0
cmp dword [ebp + 0x228], esi
je 0x403f81
push 0x4112b0
push 0x4112a8
push 0x4112a0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x403f81
push edi
push 1
push 1
push dword [ebp - 0x14]
push 0x401750
call fcn.00403c30
add esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
cmp dword [ebp - 0x18], esi
jne 0x403fa1
push edi
push 1
push 1
push dword [ebp - 0x14]
push 0x40171c
jmp 0x403ea2
push esi
push esi
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x403fcc
push edi
push 1
push 1
push dword [ebp - 0x14]
push 0x4016e4
call fcn.00403c30
add esp, 0x14
push dword [ebp - 0x18]
call ebx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0040615a
add ebp, 0x20c
leave
ret

Function at 0x40615a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410180]
jne 0x406164
repz ret
jmp fcn.00406f99
Function at 0x40c3ce
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408370
and dword [ebp - 4], 0
cmp dword [0x411c40], 0
mov ebx, eax
jne 0x40c47f
push 0x402340
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c530
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402334
push edi
call esi
test eax, eax
je 0x40c530
push eax
call fcn.004082fe
mov dword [esp], 0x402324
push edi
mov dword [0x411c40], eax
call esi
push eax
call fcn.004082fe
mov dword [esp], 0x402310
push edi
mov dword [0x411c44], eax
call esi
push eax
call fcn.004082fe
mov dword [esp], 0x4022f4
push edi
mov dword [0x411c48], eax
call esi
push eax
call fcn.004082fe
pop ecx
mov dword [0x411c50], eax
test eax, eax
je 0x40c47f
push 0x4022dc
push edi
call esi
push eax
call fcn.004082fe
pop ecx
mov dword [0x411c4c], eax
mov eax, dword [0x411c4c]
cmp eax, ebx
je 0x40c4d7
cmp dword [0x411c50], ebx
je 0x40c4d7
push eax
call fcn.00408379
push dword [0x411c50]
mov esi, eax
call fcn.00408379
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c4d7
test edi, edi
je 0x40c4d7
call esi
test eax, eax
je 0x40c4ce
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c4ce
test byte [ebp - 0xc], 1
jne 0x40c4d7
or dword [ebp + 0x10], 0x200000
jmp 0x40c510
mov eax, dword [0x411c44]
cmp eax, ebx
je 0x40c510
push eax
call fcn.00408379
pop ecx
test eax, eax
je 0x40c510
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c510
mov eax, dword [0x411c48]
cmp eax, ebx
je 0x40c510
push eax
call fcn.00408379
pop ecx
test eax, eax
je 0x40c510
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x411c40]
call fcn.00408379
pop ecx
test eax, eax
je 0x40c530
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c532
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret