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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ecx, ecx
push edi
movzx edx, word [esi]
mov ax, word [esi + 4]
add ax, dx
movzx ebx, ax
cmp bx, dx
jg 0x412cea
push ecx
mov esi, 0x7d5
xor edx, edx
push esi
call fcn.00412ab2
push esi
call dword [sym.imp.msvcrt.dll_exit]
mov edi, dword [esi + 8]
push 4
pop edx
movsx eax, bx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.0040de00
mov ecx, eax
mov word [esi], bx
xor edx, edx
mov dword [esi + 8], ecx
mov eax, edi
mov dword [ebp - 4], eax
test edi, edi
je 0x412d3a
xor ebx, ebx
cmp bx, word [esi + 2]
jge 0x412d32
sub ecx, edi
mov eax, dword [edi]
inc edx
mov dword [ecx + edi], eax
lea edi, [edi + 4]
movsx eax, word [esi + 2]
cmp edx, eax
jl 0x412d1e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x412d7c
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, 0x2330
mov esi, edx
push ebx
push 0x405a48
mov edi, ecx
call dword [sym.imp.msvcrt.dll_printf]
push 0x405a80
call dword [sym.imp.msvcrt.dll_printf]
push esi
push edi
push dword [ebp + 8]
push 0x40da1c
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0x1c
push ebx
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x412dbf
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov word [esi + 4], bx
mov dword [esi + 8], ebx
mov byte [esi + 6], bl
test edi, edi
jne 0x412de4
mov byte [esi], 2
jmp 0x412e97
cmp byte [edi + 2], 0x2d
jne 0x412dfb
push 1
call fcn.00417d8d
pop ecx
mov dword [esi + 0xc], eax
mov byte [esi + 5], 1
jmp 0x412e71
mov eax, dword [0x418714]
cmp dword [eax + 0x68], ebx
jne 0x412e0a
cmp dword [eax + 0x74], ebx
je 0x412e42
push 0x20
push 0x40da4c
push edi
call dword [sym.imp.msvcrt.dll__fsopen]
add esp, 0xc
mov dword [esi + 0xc], eax
test eax, eax
je 0x412e42
push 2
push ebx
push eax
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
je 0x412e56
push dword [esi + 0xc]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov dword [esi + 0xc], ebx
jmp 0x412e56
push 0x20
push 0x40da50
push edi
call dword [sym.imp.msvcrt.dll__fsopen]
mov dword [esi + 0xc], eax
add esp, 0xc
mov eax, dword [esi + 0xc]
test eax, eax
je 0x412e75
push 0x8000
push ebx
push ebx
push eax
call dword [sym.imp.msvcrt.dll_setvbuf]
mov eax, dword [esi + 0xc]
add esp, 0x10
test eax, eax
jne 0x412e8c
push edi
mov esi, 0x8a4
xor edx, edx
push esi
xor ecx, ecx
call fcn.00412ab2
push esi
call dword [sym.imp.msvcrt.dll_exit]
push ebx
mov ecx, esi
mov byte [esi], 1
call fcn.00412ea4
pop edi
mov word [esi + 2], bx
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x412edf
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov cl, byte [esi]
cmp cl, 2
je 0x412f8e
cmp byte [esi + 3], 0
jne 0x412f8e
cmp byte [esi + 4], 0
jne 0x412f8e
cmp cl, 1
jne 0x412f31
push dword [esi + 0xc]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp byte [esi + 5], 0
je 0x412f8e
push dword [esi + 0xc]
call dword [sym.imp.msvcrt.dll_fflush]
pop ecx
jmp 0x412f8e
push ebx
push edi
xor edi, edi
test cl, cl
jne 0x412f3e
mov eax, dword [esi + 0x14]
jmp 0x412f40
mov eax, edi
test eax, eax
je 0x412f93
test cl, cl
jne 0x412f4d
mov eax, dword [esi + 0x14]
jmp 0x412f4f
mov eax, edi
mov ebx, dword [ebp + 0xc]
add eax, ebx
cmp eax, dword [esi + 0x1c]
jb 0x412f70
test cl, cl
jne 0x412f62
mov eax, dword [esi + 0x10]
jmp 0x412f64
mov eax, edi
add eax, ebx
mov ecx, esi
push eax
call fcn.00413067
mov cl, byte [esi]
test cl, cl
jne 0x412f77
mov edi, dword [esi + 0x14]
push ebx
push dword [ebp + 8]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp byte [esi], 0
jne 0x412f8c
add dword [esi + 0x14], ebx
pop edi
pop ebx
pop esi
pop ebp
ret 8
push 0x40da54
mov edx, 0xdd
mov ecx, 0x40da6c
call fcn.00412d7c
int3

Function at 0x4133c0
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x417e58
call fcn.00413f28
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x418728
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4131e8
cmp eax, esi
jne 0x4131db
xor esi, esi
inc esi
mov edi, esi
jmp 0x4131eb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4131bf
xor esi, esi
inc esi
cmp dword [0x41872c], esi
jne 0x4131fd
push 0x1f
call fcn.00590000
pop ecx
jmp 0x413237
cmp dword [0x41872c], ebx
jne 0x413231
mov dword [0x41872c], esi
push 0x4034e8
push 0x4034dc
call fcn.0041331c
pop ecx
pop ecx
test eax, eax
je 0x413237
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41330c
mov dword [0x4183cc], esi
cmp dword [0x41872c], esi
jne 0x41325a
push 0x4034d8
push 0x4034cc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x41872c], 2
test edi, edi
jne 0x413267
xor eax, eax
mov ecx, 0x418728
xchg dword [ecx], eax
cmp dword [0x418734], 0
je 0x413293
push 0x418734
call fcn.00413d80
pop ecx
test eax, eax
je 0x413293
push ebx
push 2
push ebx
mov esi, dword [0x418734]
mov ecx, esi
call dword [0x419190]
call esi
push dword [0x4183d8]
push dword [0x4183d4]
push dword [0x4183d0]
call fcn.00410df6
add esp, 0xc
mov dword [0x4183c8], eax
cmp dword [0x4183e0], 0
jne 0x4132f1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x4183cc], 0
jne 0x413305
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4183c8]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00413e75
jmp 0x4131a3
Function at 0x413c64
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x417e78
call fcn.00413f28
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x413cc4
cmp eax, 0xffffffff
je 0x413cc4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x413cbd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x413cbd
cmp edx, 0x10000000
jae 0x413cbd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x413cba
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x413d30
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x413d6e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x413d66
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x413d70
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x413d56
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x413e40
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x413e71
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x413e71
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x413e71
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4164b5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4164e2
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041360b
add esp, 0x14
jmp 0x4165dc
mov eax, dword [ebx + 0xc]
test al, 0x83
je 0x4165dc
test al, 0x40
jne 0x4165dc
test al, 2
je 0x416504
or eax, 0x20
mov dword [ebx + 0xc], eax
jmp 0x4165dc
or eax, 1
mov dword [ebx + 0xc], eax
test eax, 0x10c
je 0x4164c2
push dword [ebx + 0x18]
mov eax, dword [ebx + 8]
push eax
push ebx
mov dword [ebx], eax
call dword [sym.imp.msvcrt.dll__fileno]
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [ebx + 4], eax
test eax, eax
je 0x4165cb
cmp eax, 0xffffffff
je 0x4165cb
test byte [ebx + 0xc], 0x82
jne 0x4165a1
push ebx
call dword [sym.imp.msvcrt.dll__fileno]
pop ecx
cmp eax, 0xffffffff
je 0x41658c
push ebx
call dword [sym.imp.msvcrt.dll__fileno]
pop ecx
cmp eax, 0xfffffffe
je 0x41658c
push esi
push edi
push ebx
call dword [sym.imp.msvcrt.dll__fileno]
mov esi, dword [sym.imp.msvcrt.dll___pioinfo]
mov edi, eax
push ebx
sar edi, 5
call dword [sym.imp.msvcrt.dll__fileno]
pop ecx
pop ecx
and eax, 0x1f
imul ecx, eax, 0x24
mov eax, dword [esi + edi*4]
pop edi
pop esi
add eax, ecx
jmp 0x416591
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x4165a1
or dword [ebx + 0xc], 0x2000
cmp dword [ebx + 0x18], 0x200
jne 0x4165be
mov eax, dword [ebx + 0xc]
and eax, 0x408
cmp eax, 8
jne 0x4165be
mov dword [ebx + 0x18], 0x1000
mov ecx, dword [ebx]
dec dword [ebx + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [ebx], ecx
jmp 0x4165df
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [ebx + 0xc], eax
and dword [ebx + 4], 0
or eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call fcn.00408d58
pop ecx
test eax, eax
je 0x401046
push str.Windows_original_main_args:_n
call fcn.00408c14
xor esi, esi
pop ecx
cmp dword [0x425628], esi
jle 0x401046
mov eax, dword [0x42562c]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.00408c14
add esp, 0xc
inc esi
cmp esi, dword [0x425628]
jl 0x401027
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.0040395e
call fcn.00403952
mov edi, eax
lea eax, [edi*4 + 4]
push eax
call fcn.004039d4
pop ecx
pop ecx
mov esi, eax
call fcn.00403958
xor ecx, ecx
test edi, edi
jle 0x401080
mov edx, dword [eax + ecx*8]
mov dword [esi + ecx*4], edx
inc ecx
cmp ecx, edi
jl 0x401075
mov eax, dword [str.openjdk]
and dword [esi + ecx*4], 0
mov ebx, eax
test eax, eax
jne 0x401091
mov ebx, dword [esi]
mov ecx, dword [0x42400c]
test ecx, ecx
jne 0x40109d
mov ecx, dword [esi]
mov eax, dword [0x425420]
push 0
push 0
push 1
test eax, eax
setne dl
movzx edx, dl
push edx
push ebx
push ecx
push 0x41c254
push str.1.8.0_282_b08
push dword [0x425424]
push 1
push eax
push 1
push esi
push edi
call fcn.00403482
add esp, 0x38
pop edi
pop esi
pop ebx
ret
Function at 0x403e53
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x424070]
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 0x403ef6
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.004064e3
pop ecx
pop ecx
test eax, eax
je 0x403edf
test ebx, ebx
je 0x403ed3
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004063aa
pop ecx
pop ecx
test eax, eax
jle 0x403edf
push ebx
call fcn.00403a3c
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.00403a1b
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 0x403ea0
xor edi, edi
cmp ebx, edi
jne 0x403efa
xor eax, eax
jmp 0x403f66
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 0x403f29
call fcn.00403a3c
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403ef6
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403ef6
call fcn.00403a3c
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 0x403f19
cmp dword [ebp - 0x70], edi
je 0x403f5c
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.00403a1b
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409908
add ebp, 0x9c
leave
ret
Function at 0x40503f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push 0x10000
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
push edi
call fcn.0040b0ea
add esp, 0x18
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x405088
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0xc]
push edi
call fcn.0040b0ea
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [0x424040], edi
je 0x405121
push str.J2D_D3D
call fcn.00408d58
pop ecx
mov esi, str.false
cmp eax, edi
je 0x4050bb
push esi
push eax
call fcn.0041b4e9
pop ecx
pop ecx
test eax, eax
jne 0x4050bb
mov dword [0x424040], edi
push ebx
push str.J2D_D3D_PRELOAD
call fcn.00408d58
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x4050e0
push esi
push ebx
call fcn.0041b4e9
pop ecx
pop ecx
test eax, eax
jne 0x4050e0
mov dword [0x424040], edi
cmp dword [0x424040], edi
jge 0x405113
mov dword [0x424040], edi
cmp ebx, edi
je 0x405120
push str.true
push ebx
call fcn.0041b4e9
pop ecx
pop ecx
test eax, eax
jne 0x40510d
mov dword [0x424040], 1
cmp dword [0x424040], edi
je 0x405120
push str.preloadD3D
call fcn.00404f0a
pop ecx
pop ebx
mov esi, dword [ebp - 8]
cmp esi, edi
je 0x405145
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40514e
push dword [ebp + 0x14]
call dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [0x4254a0], edi
pop edi
pop esi
je 0x40515d
call fcn.00404542
mov eax, dword [ebp - 4]
leave
ret
Function at 0x4052f5
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x10
pop edi
call fcn.00405162
push 8
mov esi, eax
call fcn.004039d4
mov dword [esp], 0x4254c0
push dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40533c
push ebx
call fcn.00403a3c
pop ecx
call fcn.00405186
xor eax, eax
jmp 0x405436
mov dword [ebx], eax
mov dword [ebx + 4], 0x4254ec
mov edi, dword [ebx + 4]
test edi, edi
je 0x405352
and dword [ebx + 4], 0
jmp 0x40536b
push 0x4254c0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0x4254ec
test edi, edi
je 0x40541c
push edi
call fcn.004091f0
pop ecx
cmp eax, 4
jl 0x405345
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x405345
add eax, 0xfffffffd
push 0x41d9dc
push eax
mov dword [ebp - 4], eax
call fcn.00409280
pop ecx
pop ecx
test eax, eax
je 0x4053b1
push 0x41d9d8
push dword [ebp - 4]
call fcn.00409280
pop ecx
pop ecx
test eax, eax
jne 0x405345
push 0x3b
push edi
call fcn.0040aed0
pop ecx
pop ecx
test eax, eax
jne 0x405345
push dword [ebp + 8]
call fcn.004091f0
push edi
mov ebx, eax
call fcn.004091f0
mov dword [ebp - 4], eax
add eax, ebx
push eax
call fcn.004039d4
lea ecx, [ebx - 1]
push ecx
push dword [ebp + 8]
mov dword [ebp - 8], eax
push eax
call fcn.004093a0
mov eax, dword [ebp - 4]
inc eax
push eax
push edi
mov edi, dword [ebp - 8]
lea eax, [edi + ebx - 1]
push eax
call fcn.004093a0
mov ecx, dword [esi + 4]
add esp, 0x24
inc ecx
call fcn.004051b8
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0xc]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
jmp 0x405345
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebx + 4]
call fcn.00403a3c
push ebx
call fcn.00403a3c
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40566a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
cmp dword [esi + 4], 0xffffffff
push ebx
push edi
je 0x405799
cmp dword [esi], 0xffffffff
je 0x405799
push 0
push dword [esi + 0xc]
push dword [esi + 8]
push dword [ebp + 8]
call fcn.0040b20f
add esp, 0x10
test edx, edx
jg 0x4056aa
jl 0x405799
test eax, eax
jb 0x405799
mov eax, dword [esi + 4]
inc eax
push eax
call fcn.0040a1b7
mov ebx, eax
pop ecx
test ebx, ebx
je 0x405799
mov edi, dword [esi + 4]
push edi
push ebx
push dword [ebp + 8]
call fcn.0041748b
add esp, 0xc
cmp eax, edi
jne 0x405792
mov eax, dword [esi + 0x10]
xor ecx, ecx
cmp eax, ecx
jne 0x4056f6
mov eax, dword [ebp + 0xc]
mov byte [edi + ebx], cl
cmp eax, ecx
je 0x4056ef
mov ecx, dword [esi + 4]
mov dword [eax], ecx
mov eax, ebx
jmp 0x40579b
cmp eax, 8
jne 0x405792
push 0x38
push str.1.2.11
lea eax, [ebp - 0x3c]
push 0xfffffffffffffff1
push eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edi
call fcn.004067ec
add esp, 0x10
test eax, eax
js 0x405792
mov edi, dword [esi]
lea eax, [edi + 1]
push eax
call fcn.0040a1b7
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x405792
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push 4
push eax
mov dword [ebp - 0x2c], edi
call fcn.00406951
pop ecx
pop ecx
push ebx
cmp eax, 1
je 0x405763
call fcn.00408f66
push dword [ebp - 4]
call fcn.00408f66
pop ecx
jmp 0x405798
mov eax, dword [esi]
mov edi, dword [ebp - 4]
mov byte [edi + eax], 0
call fcn.00408f66
lea eax, [ebp - 0x3c]
push eax
call fcn.00407ca9
pop ecx
pop ecx
test eax, eax
jns 0x405783
push edi
jmp 0x405793
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40578e
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, edi
jmp 0x40579b
push ebx
call fcn.00408f66
pop ecx
xor eax, eax
pop edi
pop ebx
leave
ret

Function at 0x405812
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push edi
sub eax, 0x14
push 0
sbb ecx, 0
push ecx
push eax
push dword [esp + 0x18]
call fcn.0040b20f
mov edi, edx
add esp, 0x10
mov ebx, eax
test edi, edi
jg 0x405840
jl 0x40587e
test ebx, ebx
jb 0x40587e
push 0x14
push esi
push dword [esp + 0x14]
call fcn.0041748b
add esp, 0xc
test eax, eax
js 0x40587e
movzx eax, byte [esi + 3]
movzx ecx, byte [esi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi]
shl eax, 8
or eax, ecx
cmp eax, 0x7064b50
jne 0x40587e
mov eax, ebx
mov edx, edi
jmp 0x405883
or eax, 0xffffffff
or edx, eax
pop edi
pop ebx
ret
Function at 0x405886
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 8]
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push edi
call fcn.0040b20f
mov ebx, edx
add esp, 0x10
mov dword [ebp - 0xc], eax
test ebx, ebx
jg 0x4058b9
jl 0x4058af
test eax, eax
jae 0x4058b9
or eax, 0xffffffff
or edx, eax
jmp 0x405a05
push esi
mov esi, dword [ebp + 0xc]
push 0x16
push esi
push edi
call fcn.0041748b
add esp, 0xc
test eax, eax
js 0x4059ff
movzx eax, byte [esi + 3]
movzx ecx, byte [esi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi]
shl eax, 8
or eax, ecx
cmp eax, 0x6054b50
jne 0x40591b
mov eax, esi
call fcn.0040579f
test eax, eax
je 0x405913
push ebx
push dword [ebp - 0xc]
push edi
call fcn.00405812
add esp, 0xc
jmp 0x405a04
mov eax, dword [ebp - 0xc]
jmp 0x405a44
push 2
push 0
push 0
push edi
call fcn.0040b20f
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jg 0x405940
jl 0x4059ff
test esi, esi
jb 0x4059ff
mov edi, 0x10015
test ebx, ebx
jg 0x405956
jl 0x40594f
cmp esi, edi
jae 0x405956
mov dword [ebp - 0xc], esi
mov eax, ebx
jmp 0x40595b
mov dword [ebp - 0xc], edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
neg ecx
adc eax, 0
push 2
neg eax
push eax
push ecx
push dword [ebp + 8]
call fcn.0040b20f
add esp, 0x10
test edx, edx
jg 0x405982
jl 0x4059ff
test eax, eax
jb 0x4059ff
push edi
call fcn.0040a1b7
mov edi, eax
pop ecx
mov dword [ebp - 4], edi
test edi, edi
je 0x4059ff
push dword [ebp - 0xc]
push edi
push dword [ebp + 8]
call fcn.0041748b
add esp, 0xc
test eax, eax
jns 0x4059a8
push edi
jmp 0x4059f9
add eax, edi
mov dword [ebp - 8], eax
lea edi, [eax - 0x16]
jmp 0x4059f1
cmp byte [edi], 0x50
jne 0x4059f0
movzx ecx, byte [edi + 3]
movzx edx, byte [edi + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [edi + 1]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x4059f0
movzx ecx, byte [edi + 0x15]
movzx edx, byte [edi + 0x14]
shl ecx, 8
or ecx, edx
lea ecx, [ecx + edi + 0x16]
cmp ecx, eax
je 0x405a09
dec edi
cmp edi, dword [ebp - 4]
jae 0x4059b2
push dword [ebp - 4]
call fcn.00408f66
pop ecx
or edx, 0xffffffff
mov eax, edx
pop esi
pop edi
pop ebx
leave
ret
push 0x16
push edi
push dword [ebp + 0xc]
call fcn.004093a0
push dword [ebp - 4]
call fcn.00408f66
mov eax, dword [ebp - 8]
sub eax, edi
cdq
add esp, 0x10
sub esi, eax
mov eax, dword [ebp + 0xc]
sbb ebx, edx
call fcn.0040579f
test eax, eax
je 0x405a42
push ebx
push esi
push dword [ebp + 8]
mov esi, dword [ebp + 0xc]
jmp 0x405906
mov eax, esi
mov edx, ebx
jmp 0x405a04
Function at 0x409908
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424070]
jne 0x409912
repz ret
jmp fcn.0041150d

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40afb5
call fcn.0040aca4
mov dword [eax], esi
call fcn.0040ac91
push 0x16
pop esi
mov dword [eax], esi
call fcn.0040d466
mov eax, esi
jmp 0x40b00a
test dword [ebp + 0xc], 0xfffffff9
jne 0x40af9b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40afe2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040acb7
pop ecx
call fcn.0040ac91
mov eax, dword [eax]
jmp 0x40b00a
test al, 0x10
jne 0x40b008
test al, 1
je 0x40b008
test byte [ebp + 0xc], 2
je 0x40b008
call fcn.0040aca4
mov dword [eax], 5
call fcn.0040ac91
mov dword [eax], 0xd
jmp 0x40afd9
xor eax, eax
pop esi
pop ebp
ret