joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00407571
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00407571
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00407571
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00407571
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00407571
mov dword [0x41203c], eax
call fcn.00407571
test eax, eax
jge 0x402550
push 8
call fcn.00407571
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00407571
pop ecx
push 1
call fcn.00407571
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00407571
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00407571
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00407571
jmp 0x402495

Function at 0x407571
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x407580
pop dword [ebp - 0x24]
mov eax, 0xf4ffc061
add eax, 0xb40b51f
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x37448
push 0
mov eax, 0x8e86ac52
add eax, 0x71ba3486
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x3ff0
mov edi, eax
mov ebx, 0xb8051314
sub ebx, 0xb7c3d750
add ebx, dword [ebp - 0x24]
mov edx, 0x5a99dd94
mov esi, dword [ebx]
add dword [ebp - 0x1c], 0x5f758e23
xor esi, edx
xor dword [ebp - 8], 0x8e64fd03
mov dword [edi], esi
sub dword [ebp - 4], ebx
add edi, 0xcc7c7063
add edi, 0x33838fa1
add ebx, 0x473f2c45
sub ebx, 0x473f2c41
loop 0x4075d3
add eax, 0x211905be
add eax, 0xdee7ecd5
xor ebx, ebx
add ebx, eax
add eax, 0xc11ef02c
sub eax, 0xc11ef027
mov ecx, 0x21036b43
add ecx, 0xdf3c94bd
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x4096e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
jmp 0x409789
cmp dword [esi + 0x10], 0x1000
jne 0x409775
test byte [esi + 0x15], 1
jne 0x409775
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409734
cmp eax, 2
je 0x409734
cmp eax, 0x10
je 0x409734
cmp eax, 0x20
jne 0x409749
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409749
mov bl, 1
xor ebp, ebp
jmp 0x40975a
mov eax, dword [esi]
add eax, ebp
call fcn.004096d8
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40974d
test bl, bl
je 0x409775
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40970c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b65c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
push 0xc6355949
pop eax
or esi, esi
add esi, esi
call fcn.0043b69e
sub esi, esi
and eax, eax
mov esi, 0x8c7555e4
xor dword [edi], ecx
sub esi, 0x1b686a67
mov eax, esi
and eax, eax
inc edi
push esi
pop eax
cmp edi, ebx
jne fcn.0043b65c
dec eax
add eax, esi
sub esi, 0x41e22c0
ret
Function at 0x4030a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, ecx
sub esp, 0x4c
mov dword [esp + 4], 0
mov dword [esp], 0
lea edi, [esp + 0x2c]
mov dword [esp + 0x2c], 0xdf
mov dword [esp + 0x30], 0
lea ebp, [esp + 0x28]
mov dword [esp + 0x34], 0xa3
mov dword [esp + 0x38], 0xa2
mov dword [esp + 0x3c], 0xa1
call sym.ist_upgrader_iSolution.exe_hid_enumerate
mov dword [esp + 0x18], eax
lea eax, [esi + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
mov ebx, eax
je 0x403141
movzx eax, word [ebx + 4]
mov dword [esi + 0x34], 0
cmp ax, 0x1ff7
jne 0x403119
mov edx, dword [edi]
test edx, edx
je 0x40313a
mov ecx, dword [esp + 0x14]
mov dword [esp], ebp
mov dword [esp + 0x28], eax
call fcn.00410a20
sub esp, 4
test al, al
je 0x40313a
movzx ecx, word [ebx + 0x1a]
mov edx, dword [edi]
cmp ecx, edx
je 0x403150
mov ebx, dword [ebx + 0x20]
test ebx, ebx
jne 0x403102
lea eax, [esp + 0x40]
add edi, 4
cmp edi, eax
jne 0x4030f8
xor eax, eax
jmp 0x4031a1
cmp cx, 0xdf
mov dword [esp + 0x1c], edx
je 0x4031c4
mov dword [esp], 0x28a
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
mov eax, dword [ebx]
mov dword [esp], eax
call sym.ist_upgrader_iSolution.exe_hid_open_path
test eax, eax
je 0x403141
movzx ecx, word [ebx + 4]
mov edx, dword [esp + 0x1c]
cmp edx, 0xdf
mov dword [esi + 0x24], ecx
movzx ecx, word [ebx + 6]
mov dword [esi + 0x28], ecx
movzx ecx, word [ebx + 0xc]
mov dword [esi + 0x2c], ecx
je 0x4031c0
test edx, edx
je 0x4031c0
mov dword [esi + 0x34], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sym.ist_upgrader_iSolution.exe_hid_free_enumeration
mov eax, dword [esp + 0x14]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
jmp 0x40319e
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x40316b
Function at 0x408e30
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], str.hid.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
sub esp, 4
test eax, eax
mov dword [0x418044], eax
je 0x408fa4
mov dword [esp + 4], str.HidD_GetAttributes
mov dword [esp], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call ebx
sub esp, 8
test eax, eax
mov dword [0x41806c], eax
je 0x408fa4
mov eax, dword [0x418044]
mov dword [esp + 4], str.HidD_GetSerialNumberString
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x418068], eax
je 0x408fa4
mov eax, dword [0x418044]
mov dword [esp + 4], str.HidD_GetManufacturerString
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x418064], eax
je 0x408fa4
mov eax, dword [0x418044]
mov dword [esp + 4], str.HidD_GetProductString
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x418060], eax
je 0x408fa4
mov eax, dword [0x418044]
mov dword [esp + 4], str.HidD_SetFeature
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x41805c], eax
je 0x408fa4
mov eax, dword [0x418044]
mov dword [esp + 4], str.HidD_GetFeature
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x418058], eax
je 0x408fa4
mov eax, dword [0x418044]
mov dword [esp + 4], str.HidD_GetIndexedString
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x418054], eax
je 0x408fa4
mov eax, dword [0x418044]
mov dword [esp + 4], str.HidD_GetPreparsedData
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x418050], eax
je 0x408fa4
mov eax, dword [0x418044]
mov dword [esp + 4], str.HidD_FreePreparsedData
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x41804c], eax
je 0x408fa4
mov eax, dword [0x418044]
mov dword [esp + 4], str.HidP_GetCaps
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x418048], eax
je 0x408fa4
mov byte [0x418040], 1
add esp, 0x18
xor eax, eax
pop ebx
ret
call sym.ist_upgrader_iSolution.exe_hid_exit
add esp, 0x18
mov eax, 0xffffffff
pop ebx
ret

Function at 0x408fc0
Capabilities:
Link many functions at runtime

Disassembly:
cmp byte [0x418040], 0
je 0x408fd0
xor eax, eax
ret
jmp fcn.00408e30
Function at 0x4096d0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [esp + 0x60]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
movzx ebp, word [ebx + 8]
mov dword [esp + 0x3c], 0
mov esi, dword [esp + 0x64]
cmp ebp, edi
ja 0x4097a2
lea ebp, [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x409760
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x409760
lea eax, [ebx + 0x10]
mov ebx, 0xffffffff
call fcn.00408d60
jmp 0x40978a
lea eax, [esp + 0x28]
mov dword [esp + 0xc], 1
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
sub esp, 0x10
test eax, eax
je 0x40974e
mov ebx, dword [esp + 0x28]
cmp esi, dword [esp + 0x64]
je 0x409798
mov dword [esp], esi
call fcn.0040b1d0
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
call sub.msvcrt.dll_malloc
mov esi, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
lea edx, [esi + edi]
mov eax, ebp
mov dword [esp + 4], 0
sub eax, edi
mov edi, ebp
mov dword [esp + 8], eax
mov dword [esp], edx
call sub.msvcrt.dll_memset
jmp 0x409717
Function at 0x4097f0
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x2c], 0
mov eax, dword [ebx + 0x18]
mov edi, dword [ebx + 0x30]
test eax, eax
je 0x4098b0
test esi, esi
js 0x40982e
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
sub esp, 8
test eax, eax
jne 0x4098a1
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
lea eax, [ebx + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
sub esp, 0x10
test eax, eax
mov dword [ebx + 0x18], 0
je 0x409940
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x40989f
mov edx, dword [ebx + 0x1c]
cmp byte [edx], 0
jne 0x409960
sub esi, 1
cmp dword [esp + 0x48], esi
mov eax, esi
mov dword [esp + 0x2c], esi
cmovbe eax, dword [esp + 0x48]
add edx, 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, esi
add esp, 0x30
mov eax, edx
pop ebx
pop esi
pop edi
ret
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x18], 1
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebx + 0x20]
sub esp, 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x409814
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x409814
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [ebx + 0x18], 0
sub esp, 4
lea esi, [esi]
lea edi, [edi]
lea eax, [ebx + 0x10]
call fcn.00408d60
add esp, 0x30
mov edx, 0xffffffff
pop ebx
mov eax, edx
pop esi
pop edi
ret
cmp dword [esp + 0x48], esi
mov eax, esi
cmovbe eax, dword [esp + 0x48]
jmp 0x40988b

Function at 0x40a210
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.0040a270
Function at 0x40a270
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x41809c]
test eax, eax
jle 0x40a373
mov edx, dword [0x4180a0]
xor ebx, ebx
mov ecx, dword [edx + 4]
cmp ecx, esi
ja 0x40a2a1
mov edi, dword [edx + 8]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x40a316
add ebx, 1
add edx, 0xc
cmp ebx, eax
jne 0x40a290
mov dword [esp], esi
call fcn.0040abb0
test eax, eax
mov edi, eax
je 0x40a39a
lea esi, [ebx + ebx*2]
mov ebx, dword [0x4180a0]
shl esi, 2
add ebx, esi
mov dword [ebx + 8], eax
mov dword [ebx], 0
call fcn.0040aca0
add eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x4180a0]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40a37a
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x40a320
add dword [0x41809c], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x40a30f
cmp eax, 0x80
je 0x40a30f
cmp eax, 8
je 0x40a30f
mov eax, dword [ebp - 0x28]
add esi, dword [0x4180a0]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40a30f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040a210
xor ebx, ebx
jmp 0x40a2ab
mov eax, dword [0x4180a0]
mov eax, dword [eax + esi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040a210
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040a210
lea esi, [esi]

Function at 0x40aad0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40ab08
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x40aafe
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x40ab0a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40aaf0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40add0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
je 0x40af40
mov eax, dword [esp + 0x3c]
add eax, 1
lea edx, [eax*4]
cmp eax, 0x1fc00000
mov eax, 0xffffffff
cmovbe eax, edx
mov dword [esp], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov edi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x40aedb
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + ebx*4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], eax
mov dword [esp + 0x28], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov ecx, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [edi + ebx*4], esi
add ebx, 1
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jg 0x40ae30
mov dword [edi + eax*4], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00401650
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x40af2c
mov edx, dword [edi]
test edx, edx
je 0x40af2c
xor ebx, ebx
mov dword [esp], edx
add ebx, 1
call sub.libstdc_6.dll_operator_delete___void_
cmp dword [esp + 0x3c], ebx
jle 0x40af2c
mov edx, dword [edi + ebx*4]
test edx, edx
jne 0x40af14
mov dword [esp], edi
call sub.libstdc_6.dll_operator_delete___void_
mov eax, esi
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, 0xffffffff
jmp 0x40af36
Function at 0x419020
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x419048
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x419057
mov eax, 1
ret 4

Function at 0x40165a
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x4042c6], ebp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404844], eax
xor eax, eax
push eax
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4047d4], eax
mov dword [0x4042be], eax
mov dword [0x4047c0], 0x30
mov dword [0x4047c4], 2
jmp 0x40169b
xor eax, eax
mov dword [0x4047c8], 0x402e16
mov dword [0x4047cc], eax
mov dword [0x4047d0], eax
mov eax, str.typer
mov dword [0x4047e0], 0xe
mov dword [0x4047e8], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4047dc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4047d8], eax
mov dword [0x4047ec], eax
push 0x4047c0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4042be]
push 0
push 0
push 0x1e0
push 0x1fe
push 0xfffff862
push 0xfffff8f8
push 0xcf0000
push 0x4047b6
push str.typer
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404838], eax
push 5
push eax
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404838]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x4047f0]
jmp 0x401762
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x401754
mov eax, dword [0x4047f8]
jmp 0x40177d
call 0x402991
ret
Function at 0x4c5356
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cc5b8
cmp edx, dword [eax]
je 0x4c5378
add eax, 8
inc ecx
cmp eax, 0x4cc648
jl 0x4c5369
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cc5b8]
jne 0x4c54a6
mov eax, dword [0x4d0cc0]
cmp eax, 1
je 0x4c5480
test eax, eax
jne 0x4c53a9
cmp dword [0x4cc4fc], 1
je 0x4c5480
cmp edx, 0xfc
je 0x4c54a6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c53e0
lea eax, [ebp - 0x1a4]
push 0x4c984c
push eax
call fcn.004c5a70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c5ca0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c5423
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c5ca0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c9848
push edi
call fcn.004c7470
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c982c
push eax
call fcn.004c5a70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c5a80
lea eax, [ebp - 0xa0]
push 0x4c9828
push eax
call fcn.004c5a80
push dword [esi + 0x4cc5bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c5a80
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c9800
push eax
call fcn.004c73e4
add esp, 0x2c
pop edi
jmp 0x4c54a6
lea eax, [ebp + 8]
lea esi, [esi + 0x4cc5bc]
push 0
push eax
push dword [esi]
call fcn.004c5ca0
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 0x402dec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004043cc
test esi, esi
jne 0x402e23
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004044bc
jmp 0x402e44
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c88
mov dword [esp], eax
test esi, esi
je 0x402e44
cmp dword [ebx], 0
je 0x402e44
dec esi
jmp 0x402e2b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4034cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45e024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403564
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403544
xor eax, eax
push ebp
push 0x40353d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403580
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403544
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45e024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45e024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404248
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x460048], 0
je 0x4042a9
cmp word [0x46021c], 0xd7b2
jne 0x404271
cmp dword [0x460224], 0
jbe 0x404271
mov eax, 0x460218
call dword [0x460234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45e070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4042d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45e034], 0
jne 0x4042c5
push 0
push 0x45e068
push 0x45e070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret