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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
test eax, eax
je 0x10040be
pop ebp
ret 4
push dword [0x1007044]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 2
push eax
call fcn.0100508a
add esp, 0xc
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x1001f86
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x10014e0
call fcn.01001f3c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1007088
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x1004668
xor esi, esi
inc esi
mov eax, dword [0x1007084]
cmp eax, esi
je 0x1004687
mov eax, dword [0x1007084]
test eax, eax
jne 0x10014ba
mov dword [0x1007084], esi
push 0x10014dc
push 0x10014d0
call fcn.01001c87
pop ecx
pop ecx
test eax, eax
jne 0x1004694
mov eax, dword [0x1007084]
cmp eax, esi
jne 0x100146f
push 0x10014cc
push 0x10014c4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1007084], 2
cmp dword [ebp - 0x1c], ebx
jne 0x100147c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100fe44], ebx
jne 0x10046a2
push dword [0x10070ac]
push dword [0x10070b0]
push dword [0x10070a8]
call fcn.01001501
add esp, 0xc
mov dword [0x1007078], eax
cmp dword [0x100706c], ebx
jne 0x10046f4
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov dword [0x100fe94], esi
jmp 0x100144b
call fcn.01001f97
jmp 0x10013dc
cmp eax, esi
jne 0x1004677
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001412
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10013fe
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100144b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100470e
push 0x100fe44
call fcn.010055f9
pop ecx
test eax, eax
je 0x1001488
push ebx
push 2
push ebx
call dword [0x100fe44]
jmp 0x1001488
cmp dword [0x100fe94], ebx
jne 0x1004702
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1007078]
call fcn.010013c8
ret

Function at 0x100252f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1002555
test al, 0x10
jne 0x1004225
test eax, 0x1000
jne 0x100422d
push esi
push 0
push 0x100000
push 3
push 0
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1004246
mov eax, esi
pop esi
pop ebp
ret 4
or eax, 0xffffffff
jmp 0x100257f
test dword [0x1007040], 0x200
jne 0x1002555
mov byte [0x100fe24], 1
jmp 0x1004225
push dword [ebp + 8]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [0x1007044]
add eax, 0x40
push 4
push eax
call fcn.0100508a
add esp, 0x10
jmp 0x100257c
Function at 0x100508a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x300c
call fcn.01003b43
mov eax, dword [0x100702c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
mov dword [ebp - 0x300c], eax
lea eax, [ebp - 0x300c]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push 0
push dword [ebp + 0xc]
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [ebp - 0x3008], eax
test eax, eax
je 0x1005174
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x3008]
push eax
push 0x2000
lea eax, [ebp - 0x3004]
push eax
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeN]
test eax, eax
jl 0x1005166
push dword [ebp - 0x3008]
lea eax, [ebp - 0x3004]
push eax
lea eax, [ebp - 0x3008]
push eax
push 0xfff
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeToOemN]
test eax, eax
jl 0x1005158
mov eax, dword [ebp - 0x3008]
mov byte [ebp + eax - 0x1004], 0
lea eax, [ebp - 0x1004]
push eax
push 0x1005208
push esi
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
jmp 0x1005187
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10051e0
jmp 0x1005180
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10051b0
jmp 0x1005180
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005194
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100190b
leave
ret

Function at 0x1005210
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x1007044]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp + 8]
add eax, 0x40
push eax
call fcn.0100508a
add esp, 0xc
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x4010a0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x40129b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2ec
lea ecx, [esp + 0x4c]
call fcn.004011b0
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
lea edx, [esp + 4]
push ecx
push edx
mov dword [esp + 0x300], 0
call fcn.00401180
mov eax, dword [esp + 0xc]
add esp, 0xc
cmp eax, 1
jle 0x4010f8
mov eax, dword [esp + 4]
mov edx, dword [eax + 4]
jmp 0x40110c
lea ecx, [esp + 0x4c]
call fcn.00401250
test eax, eax
je 0x40114f
lea edx, [esp + 0xe4]
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0xe20
push ecx
mov dword [esp + 0x34], edx
call sub.16Edit.DLL_HESpecifySettings
test eax, eax
pop edi
jne 0x40114a
push 0x10
push 0x401054
push 0x401040
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40114f
call sub.16Edit.DLL_HEEnterWindowLoop
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1001b7fa
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.1001b879
jae 0x1001b806
xor ecx, ecx
call fcn.1001b879
jae 0x1001b830
xor eax, eax
call fcn.1001b879
jae 0x1001b841
mov al, 0x10
call fcn.1001b879
adc al, al
jae 0x1001b822
jne 0x1001b86e
stosb byte es:[edi], al
jmp 0x1001b807
call fcn.1001b885
dec ecx
loop 0x1001b84d
mov eax, ebp
call fcn.1001b883
jmp 0x1001b86f
lodsb al, byte [esi]
shr eax, 1
je 0x1001b895
adc ecx, 2
mov ebp, eax
jmp 0x1001b86f
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.1001b883
cmp eax, 0x7d00
jae 0x1001b86d
cmp eax, 0x500
jae 0x1001b86e
cmp eax, 0x7f
ja 0x1001b86f
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1001b807
pop ebp
ret 8
Function at 0x402367
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [ebp + 0xc], eax
mov esi, dword [edi]
mov dword [ebp + 8], esi
add esi, 2
lea eax, [esi*4 + 4]
push eax
call fcn.00402077
pop ecx
mov dword [edi], esi
mov esi, 0x408010
push 4
mov dword [ebx], eax
mov edx, esi
pop ebx
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x4023b0
cmp byte [ecx + 1], 0x4a
jne 0x4023b0
add ecx, 2
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, 0x408018
jl 0x40239c
xor edi, edi
cmp dword [ebp + 8], edi
jle 0x4023e5
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x4023dd
cmp byte [ecx + 1], 0x4a
jne 0x4023dd
add ecx, 2
cmp byte [ecx], 0
je 0x40242a
mov dword [eax], ecx
add eax, ebx
inc edi
add edx, ebx
cmp edi, dword [ebp + 8]
jl 0x4023c4
mov edx, esi
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x4023f4
cmp byte [ecx + 1], 0x4a
je 0x4023f8
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, 0x408018
jl 0x4023e7
mov esi, dword [ebp + 8]
test esi, esi
jle 0x402422
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x402419
cmp byte [ecx + 1], 0x4a
je 0x40241d
mov dword [eax], ecx
add eax, ebx
add edx, ebx
dec esi
jne 0x40240c
and dword [eax], 0
pop edi
pop esi
pop ebx
pop ebp
ret
push 1
push 0x4089f4
call fcn.00403321
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x402440
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10c
and byte [esp + 7], 0
push ebx
push ebp
push esi
push edi
push 0x408a2c
mov byte [esp + 0x1a], 0x3b
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, eax
or ebp, 0xffffffff
pop ecx
test ebx, ebx
je 0x402498
mov edi, ebx
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.00402077
mov edi, eax
push ebx
push 0x408a38
push edi
call esi
push 0
push edi
call fcn.00401787
add esp, 0x18
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.0040307a
pop ecx
test al, al
pop ecx
jne 0x4024c2
push 1
push 0x408a4c
call fcn.00403321
pop ecx
xor al, al
pop ecx
jmp 0x4025e6
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.00402077
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push 0x408a70
push edi
call esi
push 0
push edi
call fcn.00401787
lea edi, [esp + 0x30]
mov ecx, ebp
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
push 0x28
dec ecx
mov ebx, 0x408018
pop edx
mov dword [esp + 0x10], ecx
mov esi, ebx
mov edi, dword [esi]
mov ecx, ebp
xor eax, eax
add esi, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, dword [esp + 0x10]
cmp esi, 0x408020
lea edx, [edx + ecx + 1]
jl 0x40250c
inc edx
push edx
call fcn.00402077
mov edx, eax
mov esi, 0x408a88
mov edi, edx
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebx
and ecx, 3
add dword [esp + 0x10], 4
rep movsb byte es:[edi], byte [esi]
mov edi, dword [eax]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x16]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
cmp dword [esp + 0x10], 0x408020
rep movsb byte es:[edi], byte [esi]
jl 0x402546
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
push edx
and byte [ecx + edx - 1], al
call fcn.00401787
pop ecx
mov al, 1
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x402815
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
lea eax, [ebp - 0x184]
push 0x104
push eax
call fcn.0040303c
lea eax, [ebp - 0x184]
push 0x4090c0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x40286e
lea eax, [ebp - 0x184]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push 0x4090c4
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
pop eax
jmp 0x4028be
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
mov edi, 0x80
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x4028b2
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
push eax
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x20
jmp 0x402888
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x402db1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402e8d
pop ecx
test al, al
pop ecx
jne 0x402ddd
push 1
push 0x40929c
call fcn.00403321
pop ecx
pop ecx
push 2
call dword [sym.imp.MSVCRT.dll_exit]
push 0
call fcn.00402dab
push eax
push dword [ebp + 0x10]
call fcn.004028c1
add esp, 0xc
cmp eax, 1
jge 0x402e0b
push 1
push 0x4092d0
call fcn.00403321
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401532
push dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
mov edi, eax
and byte [ebx], 0
push ebx
push edi
mov dword [ebp + 0x14], edi
push dword [ebp + 0x10]
call fcn.00402f55
add esp, 0x1c
test al, al
jne 0x402e89
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push esi
dec ecx
mov esi, 0x409308
add edx, ecx
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
push edx
call fcn.00402077
push ebx
mov edi, eax
push dword [ebp + 0x14]
push esi
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
push 1
push edi
call fcn.00403321
add esp, 0x1c
push 4
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40340d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov esi, 0x104
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [ebp - 0x114]
xor eax, eax
push esi
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call edi
test eax, eax
jne 0x4034ac
mov ebx, dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
push dword [eax + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.00403fd7
pop ecx
test eax, eax
pop ecx
je 0x403491
cmp dword [ebp - 8], 0
je 0x403480
push dword [ebp - 8]
lea eax, [ebp - 0x114]
push eax
call fcn.00403f08
pop ecx
test eax, eax
pop ecx
jle 0x403491
push dword [ebp - 8]
call ebx
pop ecx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x114]
push esi
push eax
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x403444
mov edi, dword [ebp - 8]
test edi, edi
jne 0x4034b0
xor eax, eax
jmp 0x403526
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
push edi
je 0x4034d3
call ebx
cmp dword [ebp - 4], 0
pop ecx
jmp 0x4034fd
call ebx
pop ecx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x114]
xor esi, esi
push eax
push esi
push esi
push 0x4096dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40350a
cmp dword [ebp - 4], esi
je 0x4034ac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4034ac
cmp dword [ebp - 4], esi
je 0x403518
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40352b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push edi
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403564
push 1
push 0x4096e8
call fcn.00403321
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x104]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x403639
mov edi, dword [ebp + 8]
mov ecx, ebx
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x104]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
mov ecx, ebx
repne scasb al, byte es:[edi]
dec edi
mov esi, 0x409720
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, edx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov eax, 0x409718
dec edi
mov esi, eax
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
cmp byte [0x40ac52], 0
je 0x40361e
mov esi, dword [sym.imp.MSVCRT.dll_printf]
lea eax, [ebp - 0x104]
push eax
push 0x409728
call esi
mov eax, dword [edi]
pop ecx
test eax, eax
pop ecx
je 0x403616
mov ebx, edi
push eax
push 0x409734
call esi
mov eax, dword [ebx + 4]
add ebx, 4
pop ecx
test eax, eax
pop ecx
jne 0x403602
push 0x40973c
call esi
pop ecx
lea eax, [ebp - 0x104]
push edi
push eax
push 0
call dword [sym.imp.MSVCRT.dll__spawnv]
add esp, 0xc
push eax
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4037e1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push dword [esi + 8]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__lseek]
add esp, 0xc
test eax, eax
jl 0x4038dc
mov eax, dword [esi + 4]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4038dc
mov edi, dword [esi + 4]
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, edi
je 0x40383d
push ebx
call dword [sym.imp.MSVCRT.dll_free]
jmp 0x4038db
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp eax, ecx
jne 0x403850
and byte [edi + ebx], cl
mov eax, ebx
jmp 0x4038de
cmp eax, 8
jne 0x4038dc
push 0x38
push 0x4097a8
lea eax, [ebp - 0x38]
push 0xfffffffffffffff1
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], edi
call fcn.00404319
add esp, 0x10
test eax, eax
jl 0x403831
mov eax, dword [esi]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x403831
mov eax, dword [esi]
push 1
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x2c], edi
call fcn.00404403
pop ecx
test eax, eax
pop ecx
jge 0x4038ba
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ebx
call esi
push edi
call esi
pop ecx
jmp 0x4038db
mov eax, dword [esi]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ebx
and byte [eax + edi], 0
call esi
lea eax, [ebp - 0x38]
push eax
call fcn.004042db
pop ecx
test eax, eax
pop ecx
jge 0x4038e3
push edi
call esi
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, edi
jmp 0x4038de
Function at 0x403b6e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll__lseek]
push edi
push 2
push 0xffffffffffffffea
push dword [ebp + 8]
call esi
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jl 0x403ca2
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll__read]
push 0x16
push ebx
push dword [ebp + 8]
call edi
add esp, 0xc
test eax, eax
jl 0x403ca2
movzx ecx, byte [ebx + 1]
xor eax, eax
mov ah, byte [ebx + 3]
mov al, byte [ebx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebx]
shl eax, 8
or eax, ecx
cmp eax, 0x6054b50
jne 0x403bd8
mov eax, dword [ebp - 4]
jmp 0x403ca5
push 2
push 0
push dword [ebp + 8]
call esi
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x403ca2
mov ebx, 0x10015
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x403bfe
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
push 2
neg eax
push eax
push dword [ebp + 8]
call esi
add esp, 0xc
test eax, eax
jl 0x403ca2
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
mov dword [ebp - 8], esi
je 0x403ca2
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call edi
add esp, 0xc
test eax, eax
jl 0x403c9a
add eax, esi
mov dword [ebp + 8], eax
lea ebx, [eax - 0x16]
cmp ebx, esi
jb 0x403c9a
cmp byte [ebx], 0x50
jne 0x403c77
movzx edx, byte [ebx + 1]
xor ecx, ecx
mov ch, byte [ebx + 3]
mov cl, byte [ebx + 2]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x403c77
xor ecx, ecx
mov ch, byte [ebx + 0x15]
mov cl, byte [ebx + 0x14]
lea ecx, [ecx + ebx + 0x16]
cmp ecx, eax
je 0x403c7a
dec ebx
jmp 0x403c3f
mov edi, dword [ebp + 0xc]
push 5
pop ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 8]
movsw word es:[edi], word [esi]
call dword [sym.imp.MSVCRT.dll_free]
mov eax, ebx
pop ecx
sub eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
jmp 0x403ca5
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40638a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407378
push 0x4064c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40ac90], 0xffffffff
or dword [0x40ac94], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40ac8c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40ac88]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40ac98], eax
call fcn.0040624e
cmp dword [0x40ac30], 0
jne 0x40640d
push 0x4064b8
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004064a6
push 0x40800c
push 0x408008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40ac84]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40ac80]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x408004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret