joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42df39
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x118
mov eax, dword [0x438440]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push edi
mov edi, dword [ebp + 0x78]
mov eax, edi
call fcn.0042da49
mov ebx, eax
test ebx, ebx
je 0x42e165
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCR80.dll__time64]
cmp byte [ebp + 0x7c], 0
pop ecx
jne 0x42df85
push 0x433ae0
push edi
call fcn.0042ded9
pop ecx
pop ecx
push esi
push 1
push dword [ebp + 0x7c]
push edi
call fcn.0042df0d
mov esi, str.____n
push esi
push edi
call fcn.0042ded9
add esp, 0x14
cmp byte [ebp + 0x7c], 0
je 0x42dfd4
push str.10:56:34
push str.Dec_29_2006
push str.____Build:__s___s_n
push edi
call fcn.0042ded9
add ebx, 0x28
push ebx
push str.____trace_file__s_n
push edi
call fcn.0042ded9
add esp, 0x1c
mov ebx, str.opened
jmp 0x42dfd9
mov ebx, str.closed
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCR80.dll__ctime64]
push eax
push ebx
push str._____s_on__s
push edi
call fcn.0042ded9
add esp, 0x14
cmp byte [ebp + 0x7c], 0
je 0x42e13c
lea eax, [ebp - 0x9c]
push eax
mov ebx, 0x433a70
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x8c]
cmp eax, 3
jae 0x42e02e
mov ebx, dword [eax*4 + 0x4383ac]
push eax
push ebx
push dword [ebp - 0x90]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push str.____32_Bit_Windows_Version__ld._ld__Build__ld__under_Windows__s___ld__n
push edi
call fcn.0042ded9
add esp, 0x1c
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp + 0x30]
push str.____Processor_Type__lX_n
push edi
call fcn.0042ded9
push esi
push edi
call fcn.0042ded9
mov edi, dword [sym.imp.KERNEL32.dll_GetProfileStringA]
add esp, 0x14
push 0x20
lea eax, [ebp - 8]
push eax
mov ebx, 0x430872
push ebx
push str.sLanguage
mov esi, str.intl
push esi
call edi
push 0x80
lea eax, [ebp - 0x88]
push eax
push ebx
push str.sCountry
push esi
call edi
push 0
push str.iCountry
push esi
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
push 0x20
mov dword [ebp - 0xa0], eax
lea eax, [ebp + 0x1c]
push eax
push ebx
push str.sShortDate
push esi
call edi
push 0x10
lea eax, [ebp + 0x4c]
push eax
push ebx
push str.sCurrency
push esi
call edi
push 0x10
lea eax, [ebp + 0x5c]
push eax
push ebx
push str.sThousand
push esi
call edi
push 0x10
lea eax, [ebp + 0x3c]
push eax
push ebx
push str.sDecimal
push esi
call edi
push dword [ebp - 0xa0]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 8]
push eax
push str.____Intl:_Ctry__s__s___d__n
push dword [ebp + 0x78]
call fcn.0042ded9
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x1c]
push eax
push str.__________Date__s__Cur__s__Th__s_Dec__s_n
push dword [ebp + 0x78]
call fcn.0042ded9
mov edi, dword [ebp + 0x78]
add esp, 0x2c
mov esi, str.____n
push esi
push edi
call fcn.0042ded9
push 0
push dword [ebp + 0x7c]
push edi
call fcn.0042df0d
add esp, 0x14
cmp byte [ebp + 0x7c], 0
pop esi
je 0x42e165
push 0x433ae0
push edi
call fcn.0042ded9
pop ecx
pop ecx
mov ecx, dword [ebp + 0x6c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042e930
add ebp, 0x70
leave
ret
Function at 0x42e930
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x438440]
jne 0x42e93a
repz ret
jmp fcn.0042ed2a
Function at 0x403770
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x403813
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.004172fc
pop ecx
pop ecx
test eax, eax
je 0x4037fc
test ebx, ebx
je 0x4037f0
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004172fc
pop ecx
pop ecx
test eax, eax
jle 0x4037fc
push ebx
call fcn.00404730
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.0040470f
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x4037bd
xor edi, edi
cmp ebx, edi
jne 0x403817
xor eax, eax
jmp 0x403883
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x403846
call fcn.00404730
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403813
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403813
call fcn.00404730
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x403836
cmp dword [ebp - 0x70], edi
je 0x403879
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040470f
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085d9
add ebp, 0x9c
leave
ret
Function at 0x404925
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x294
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x210], eax
mov eax, dword [ebp + 0x21c]
push ebx
push esi
push edi
push 0x10
pop edi
mov dword [ebp - 0x78], eax
call fcn.00404792
push 8
mov esi, eax
call fcn.004046c8
mov ebx, eax
pop ecx
lea eax, [ebp + 0xd0]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x404990
mov dword [ebx], eax
lea eax, [ebp + 0xfc]
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x404997
and dword [ebx + 4], 0
jmp 0x4049ac
xor eax, eax
jmp 0x404a77
lea eax, [ebp - 0x70]
push eax
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindNextFileA]
neg eax
sbb edi, edi
lea eax, [ebp - 0x44]
and edi, eax
test edi, edi
je 0x404a5d
push edi
call fcn.00407d90
pop ecx
cmp eax, 4
jl 0x404983
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x404983
add eax, 0xfffffffd
push 0x4197ac
push eax
mov dword [ebp - 0x74], eax
call fcn.004085f0
pop ecx
pop ecx
test eax, eax
je 0x4049f2
push 0x4197a8
push dword [ebp - 0x74]
call fcn.004085f0
pop ecx
pop ecx
test eax, eax
jne 0x404983
push 0x3b
push edi
call fcn.00409780
pop ecx
pop ecx
test eax, eax
jne 0x404983
push dword [ebp - 0x78]
call fcn.00407d90
push edi
mov ebx, eax
call fcn.00407d90
mov dword [ebp - 0x74], eax
add eax, ebx
push eax
call fcn.004046c8
lea ecx, [ebx - 1]
push ecx
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push eax
call fcn.004172fc
mov eax, dword [ebp - 0x74]
inc eax
push eax
push edi
mov edi, dword [ebp - 0x7c]
lea eax, [edi + ebx - 1]
push eax
call fcn.004172fc
mov ecx, dword [esi + 4]
add esp, 0x24
inc ecx
call fcn.004047e8
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x80]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
jmp 0x404983
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindClose]
push dword [ebx + 4]
call fcn.00404730
push ebx
call fcn.00404730
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp + 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085d9
add ebp, 0x214
leave
ret
Function at 0x407d7a
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x41e210
call fcn.0040d880
xor esi, esi
cmp dword [0x422fe8], esi
jne 0x407c3a
push esi
push esi
push 1
push esi
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x407c4d
mov dword [ebp - 0x1c], esi
jmp 0x407c83
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x407c48
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x407c48
cmp dword [eax + 0x400074], 0xe
jbe 0x407c48
xor ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.0040d85e
test eax, eax
jne 0x407c94
push 0x1c
call fcn.004172fc
pop ecx
call fcn.0040d6e3
test eax, eax
jne 0x407ca5
push 0x10
call fcn.004172fc
pop ecx
call fcn.0040d2f3
mov dword [ebp - 4], esi
call fcn.004172fc
test eax, eax
jns 0x407cbe
push 0x1b
call fcn.004172fc
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x422fe4], eax
call fcn.004172fc
mov dword [0x421270], eax
call fcn.0040105b
test eax, eax
jns 0x407ce4
push 8
call fcn.004172fc
pop ecx
call fcn.0040cf3b
test eax, eax
jns 0x407cf5
push 9
call fcn.004172fc
pop ecx
push 1
call fcn.004172fc
pop ecx
cmp eax, esi
je 0x407d08
push eax
call fcn.004172fc
pop ecx
mov eax, dword [0x421294]
mov dword [0x421298], eax
push eax
push dword [0x42128c]
push dword [0x421288]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x407d35
push eax
call fcn.004172fc
call fcn.00408d12
jmp 0x407d6a
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.0040d8c5
ret
call fcn.004172fc
jmp 0x407c19

Function at 0x4085d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420030]
jne 0x4085e3
repz ret
jmp fcn.004101ab
Function at 0x4172fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x41730b
pop dword [ebp - 0x40]
mov eax, 0xbc47a094
sub eax, 0xbc062d89
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x5bcbdd14
sub dword [ebp - 0x50], 0xd7997c9
mov dword [ebp - 0x4c], 0x7484588a
add dword [ebp - 0x4c], 0xbdaef3bb
mov dword [ebp - 0x48], 0x40c79f9c
sub dword [ebp - 0x48], 0xf47b5b6e
mov dword [ebp - 0x44], 0x6b534d52
add dword [ebp - 0x44], 0x94acb2ae
lea eax, [ebp - 0x50]
push eax
mov eax, 0x6b4a5f7
add eax, 0xf98cda59
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x69e44b10
add dword [ebp - 0x50], 0xa8e1e46
mov dword [ebp - 0x4c], 0x78017453
sub dword [ebp - 0x4c], 0x369512de
mov dword [ebp - 0x48], 0x22573850
sub dword [ebp - 0x48], 0xbee7cbe4
mov dword [ebp - 0x44], 0xa68c1de4
sub dword [ebp - 0x44], 0xa68c1de4
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x4224d321
add eax, 0xbe1cad2b
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x39e6a
push 0
call eax
mov ecx, 0xb12a92fd
sub ecx, 0xb12a5146
xor esi, esi
add esi, eax
mov edx, 0xd4fce46c
sub edx, 0xd4ba0c6c
add edx, dword [ebp - 0x40]
mov edi, 0x735d4065
sub edi, 0xf889d367
mov ebx, dword [edx]
xor dword [ebp - 0x18], ecx
xor ebx, edi
sub dword [ebp - 0x10], 0x5ee6396f
mov dword [esi], ebx
add dword [ebp - 0x10], 0xaedb1b35
add esi, 0x6e345d55
add esi, 0x91cba2af
add edx, 4
loop 0x41742f
add eax, 0xf9af
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xf764366a
add ecx, 0x8dbc996
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402da0
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x402df0
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x402e10
mov dword [esp], eax
call sub.ucrtbase.dll_exit
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x402e67
xor ecx, ecx
xor edx, edx
jmp 0x402e49
cmp ax, 0x5c
jne 0x402ed0
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x402e67
cmp ax, 9
je 0x402e55
cmp ax, 0x20
jne 0x402e30
test ecx, ecx
je 0x402ebb
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x402e49
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x402ef0
movzx esi, word [ebp - 0x1c]
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 fcn.004021c0
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x402eb8
cmp ax, 0x20
je 0x402eb8
jmp 0x402e67
cmp ax, 0x22
jne 0x402e59
and edx, 1
jne 0x402e59
xor ecx, 1
jmp 0x402e3d
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x402e80
Function at 0x402e10
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x402df0
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x402e10
mov dword [esp], eax
call sub.ucrtbase.dll_exit
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x402e67
xor ecx, ecx
xor edx, edx
jmp 0x402e49
cmp ax, 0x5c
jne 0x402ed0
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x402e67
cmp ax, 9
je 0x402e55
cmp ax, 0x20
jne 0x402e30
test ecx, ecx
je 0x402ebb
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x402e49
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x402ef0
movzx esi, word [ebp - 0x1c]
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 fcn.004021c0
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x402eb8
cmp ax, 0x20
je 0x402eb8
jmp 0x402e67
cmp ax, 0x22
jne 0x402e59
and edx, 1
jne 0x402e59
xor ecx, 1
jmp 0x402e3d
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x402e80
Function at 0x4067c8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4067e9
jl 0x4067e0
test edi, edi
jne 0x4067e9
xor eax, eax
xor edx, edx
jmp 0x4068aa
cmp dword [ebx + 0x38], 0
je 0x4067fe
push eax
push edi
push dword [ebp + 8]
call fcn.004068b0
jmp 0x4068aa
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x406845
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x406845
cmp eax, edi
jb 0x40681f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004087a0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40684b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40689f
mov ecx, ebx
call fcn.0040600e
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40688a
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040ee88
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40689f
jmp 0x40685d
test edx, edx
je 0x40689f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040ee88
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x407dac
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407deb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407deb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407deb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407deb
cmp dword [ecx + 0x74], 0xe
jbe 0x407deb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41881f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004080e0
mov eax, dword [0x434014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00415327
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418861
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4189d8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423510
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4358d8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00419865
mov ecx, dword [esi*4 + 0x4358d8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4189d1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4189d1
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4189d1
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419865
add esp, 0x14
cmp edx, esi
jl 0x4189d1
jg 0x41892c
cmp eax, esi
jb 0x4189d1
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x4189d1
jl 0x41894e
cmp dword [ebp - 0x1008], eax
ja 0x4189d1
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x418973
cmp ebx, esi
je 0x4189b8
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x4189b8
mov al, byte [ecx]
cmp al, 0xd
jne 0x418999
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4189a5
cmp byte [ecx + 1], 0xa
jne 0x4189a5
inc ecx
jmp 0x4189a5
movzx eax, al
movsx eax, byte [eax + 0x4342a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41897f
cmp edx, ebx
jne 0x41897f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x4189d6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004072a3
leave
ret
Function at 0x418c57
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x418c71
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x418c88
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x418ce0
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0041d04a
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x418ce0
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x418ce0
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x418ce0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x418cda
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x418cdc
xor bl, bl
mov al, bl
jmp 0x418ce2
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x418cf1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4358d8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418d33
cmp byte [ebx], 0xa
jne 0x418d33
or byte [edi + eax + 0x28], 4
jmp 0x418d38
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x418e3b
mov cl, byte [eax]
cmp cl, 0x1a
je 0x418e16
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x418d67
mov eax, dword [ebp - 8]
jmp 0x418d87
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x418da3
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x418d81
add eax, 2
mov cl, 0xa
jmp 0x418d84
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x418d49
jmp 0x418e3b
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418e11
cmp dword [ebp - 0x10], 0
je 0x418e11
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x4358d8]
test byte [eax + edi + 0x28], 0x48
je 0x418df0
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x418de0
mov byte [esi], 0xa
jmp 0x418e3a
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x4358d8]
mov byte [eax + edi + 0x2a], cl
jmp 0x418e3a
cmp byte [ebp - 1], 0xa
jne 0x418dfa
cmp esi, ebx
je 0x418ddb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419883
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418e3b
mov byte [esi], 0xd
jmp 0x418e3a
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x4358d8]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x418e38
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x418e3b
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret