joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a0192
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100c90c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10094dfc
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10094dfc
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100a0209
cmp word [ecx], dx
je 0x100a0209
mov eax, dword [0x100b2fec]
push edi
dec eax
push eax
push 0x100b2ed8
call fcn.100a0131
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100a027c
cmp word [eax], dx
je 0x100a027c
mov eax, dword [edi]
test eax, eax
je 0x100a022d
cmp word [eax], dx
je 0x100a022d
lea eax, [ebp - 0x10]
push eax
call fcn.1009fb14
jmp 0x100a0236
lea eax, [ebp - 0x10]
push eax
call fcn.1009fbaf
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100a02a6
mov eax, dword [0x100b2ed4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100b2bc8
call fcn.100a0131
add esp, 0xc
test al, al
je 0x100a02a6
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100a0271
cmp word [eax], di
je 0x100a0271
lea eax, [ebp - 0x10]
push eax
call fcn.1009fb14
pop ecx
jmp 0x100a02a8
lea eax, [ebp - 0x10]
push eax
call fcn.1009fbaf
jmp 0x100a026e
mov eax, dword [edi]
test eax, eax
je 0x100a0293
cmp word [eax], dx
je 0x100a0293
lea eax, [ebp - 0x10]
push eax
call fcn.1009fac9
pop ecx
jmp 0x100a02a6
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100a0371
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1009ffb6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100a0371
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100a0371
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100a0371
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100a02fe
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100993c8
test ebx, ebx
je 0x100a036c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100993c8
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100a0371
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100a0371
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100a3d31
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100a0373
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10085995
leave
ret
Function at 0x100a3f51
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100a3ecd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100a40c0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100a40c0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100a4075
jg 0x100a3fad
test eax, eax
je 0x100a406b
push 1
push 0x1000
call fcn.10098d51
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100a3fd0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100a4062
push 0x8000
push ebx
call fcn.100a3dfe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100a3ff9
jg 0x100a3ff4
cmp ecx, 0x1000
jb 0x100a3ff9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1009a03e
add esp, 0x10
cmp eax, 0xffffffff
je 0x100a403e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100a3ff4
jl 0x100a4025
test ecx, ecx
jne 0x100a3fe6
push dword [ebp - 0xc]
push ebx
call fcn.100a3dfe
push esi
call fcn.100978a5
add esp, 0xc
xor ebx, ebx
jmp 0x100a40ce
cmp byte [edi + 0x24], 0
je 0x100a4055
cmp dword [edi + 0x20], 5
jne 0x100a4055
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100a4060
mov ebx, dword [edi + 0x18]
jmp 0x100a4062
xor ebx, ebx
push esi
call fcn.100978a5
pop ecx
jmp 0x100a40ce
test ecx, ecx
jg 0x100a4037
jl 0x100a4075
test eax, eax
jae 0x100a4037
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1009a460
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100a4095
cmp byte [edi + 0x1c], 0
je 0x100a4037
jmp 0x100a40c6
push ebx
call fcn.100a13ec
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100a4037
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100a40ce
cmp byte [edi + 0x1c], 0
je 0x100a40cb
mov ebx, dword [edi + 0x18]
jmp 0x100a40ce
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1009a460
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100a7a60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100a7a8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100a7a8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

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

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

Disassembly:
mov eax, dword [0x425634]
push ebx
push ebp
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
mov dword [0x425638], eax
call fcn.00408d46
xor ebx, ebx
pop ecx
test eax, eax
je 0x401053
push str.Windows_original_main_args:_n
call fcn.00408c02
xor esi, esi
pop ecx
cmp dword [0x425628], ebx
jle 0x401053
mov eax, dword [0x42562c]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.00408c02
add esp, 0xc
inc esi
cmp esi, dword [0x425628]
jl 0x401034
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.0040394d
call fcn.00403941
mov edi, eax
lea eax, [edi*4 + 4]
push eax
call fcn.004039c3
pop ecx
pop ecx
mov esi, eax
call fcn.00403947
xor ecx, ecx
cmp edi, ebx
jle 0x40108d
mov edx, dword [eax + ecx*8]
mov dword [esi + ecx*4], edx
inc ecx
cmp ecx, edi
jl 0x401082
mov eax, dword [str.java]
mov dword [esi + ecx*4], ebx
mov edx, eax
cmp eax, ebx
jne 0x40109d
mov edx, dword [esi]
mov ebp, dword [0x42400c]
cmp ebp, ebx
jne 0x4010a9
mov ebp, dword [esi]
mov eax, dword [0x425420]
push ebx
xor ecx, ecx
inc ecx
push ecx
push ecx
cmp eax, ebx
setne bl
movzx ebx, bl
push ebx
push edx
push ebp
push 0x41c254
push 0x41c244
push dword [0x425424]
push ecx
push eax
push ecx
push esi
push edi
call fcn.00403485
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x403e42
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 0x403ee5
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.004064d1
pop ecx
pop ecx
test eax, eax
je 0x403ece
test ebx, ebx
je 0x403ec2
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00406398
pop ecx
pop ecx
test eax, eax
jle 0x403ece
push ebx
call fcn.00403a2b
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.00403a0a
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 0x403e8f
xor edi, edi
cmp ebx, edi
jne 0x403ee9
xor eax, eax
jmp 0x403f55
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 0x403f18
call fcn.00403a2b
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403ee5
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403ee5
call fcn.00403a2b
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 0x403f08
cmp dword [ebp - 0x70], edi
je 0x403f4b
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.00403a0a
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 0x40502e
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 0x405077
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 0x405110
push str.J2D_D3D
call fcn.00408d46
pop ecx
mov esi, str.false
cmp eax, edi
je 0x4050aa
push esi
push eax
call fcn.0041b549
pop ecx
pop ecx
test eax, eax
jne 0x4050aa
mov dword [0x424040], edi
push ebx
push str.J2D_D3D_PRELOAD
call fcn.00408d46
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x4050cf
push esi
push ebx
call fcn.0041b549
pop ecx
pop ecx
test eax, eax
jne 0x4050cf
mov dword [0x424040], edi
cmp dword [0x424040], edi
jge 0x405102
mov dword [0x424040], edi
cmp ebx, edi
je 0x40510f
push str.true
push ebx
call fcn.0041b549
pop ecx
pop ecx
test eax, eax
jne 0x4050fc
mov dword [0x424040], 1
cmp dword [0x424040], edi
je 0x40510f
push str.preloadD3D
call fcn.00404ef9
pop ecx
pop ebx
mov esi, dword [ebp - 8]
cmp esi, edi
je 0x405134
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 0x40513d
push dword [ebp + 0x14]
call dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [0x4254a0], edi
pop edi
pop esi
je 0x40514c
call fcn.00404531
mov eax, dword [ebp - 4]
leave
ret
Function at 0x4052e4
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.00405151
push 8
mov esi, eax
call fcn.004039c3
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 0x40532b
push ebx
call fcn.00403a2b
pop ecx
call fcn.00405175
xor eax, eax
jmp 0x405425
mov dword [ebx], eax
mov dword [ebx + 4], 0x4254ec
mov edi, dword [ebx + 4]
test edi, edi
je 0x405341
and dword [ebx + 4], 0
jmp 0x40535a
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 0x40540b
push edi
call fcn.004091f0
pop ecx
cmp eax, 4
jl 0x405334
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x405334
add eax, 0xfffffffd
push 0x41d9dc
push eax
mov dword [ebp - 4], eax
call fcn.00409280
pop ecx
pop ecx
test eax, eax
je 0x4053a0
push 0x41d9d8
push dword [ebp - 4]
call fcn.00409280
pop ecx
pop ecx
test eax, eax
jne 0x405334
push 0x3b
push edi
call fcn.0040aed0
pop ecx
pop ecx
test eax, eax
jne 0x405334
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.004039c3
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.004051a7
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 0x405334
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebx + 4]
call fcn.00403a2b
push ebx
call fcn.00403a2b
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405659
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
cmp dword [esi + 4], 0xffffffff
push ebx
push edi
je 0x405787
cmp dword [esi], 0xffffffff
je 0x405787
push 0
push dword [esi + 0xc]
push dword [esi + 8]
push dword [ebp + 8]
call fcn.0040b20f
add esp, 0x10
test edx, edx
jg 0x405699
jl 0x405787
test eax, eax
jb 0x405787
mov eax, dword [esi + 4]
inc eax
push eax
call fcn.0040a1b7
mov ebx, eax
pop ecx
test ebx, ebx
je 0x405787
mov edi, dword [esi + 4]
push edi
push ebx
push dword [ebp + 8]
call fcn.004174eb
add esp, 0xc
cmp eax, edi
jne 0x405780
mov eax, dword [esi + 0x10]
xor ecx, ecx
cmp eax, ecx
jne 0x4056e5
mov eax, dword [ebp + 0xc]
mov byte [edi + ebx], cl
cmp eax, ecx
je 0x4056de
mov ecx, dword [esi + 4]
mov dword [eax], ecx
mov eax, ebx
jmp 0x405789
cmp eax, 8
jne 0x405780
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.004067da
add esp, 0x10
test eax, eax
js 0x405780
mov edi, dword [esi]
lea eax, [edi + 1]
push eax
call fcn.0040a1b7
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x405780
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push 1
push eax
mov dword [ebp - 0x2c], edi
call fcn.0040693f
pop ecx
pop ecx
push ebx
test eax, eax
jns 0x405751
call fcn.00408f60
push dword [ebp - 4]
call fcn.00408f60
pop ecx
jmp 0x405786
mov eax, dword [esi]
mov edi, dword [ebp - 4]
mov byte [edi + eax], 0
call fcn.00408f60
lea eax, [ebp - 0x3c]
push eax
call fcn.00407c97
pop ecx
pop ecx
test eax, eax
jns 0x405771
push edi
jmp 0x405781
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40577c
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, edi
jmp 0x405789
push ebx
call fcn.00408f60
pop ecx
xor eax, eax
pop edi
pop ebx
leave
ret

Function at 0x405800
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 0x40582e
jl 0x40586c
test ebx, ebx
jb 0x40586c
push 0x14
push esi
push dword [esp + 0x14]
call fcn.004174eb
add esp, 0xc
test eax, eax
js 0x40586c
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 0x40586c
mov eax, ebx
mov edx, edi
jmp 0x405871
or eax, 0xffffffff
or edx, eax
pop edi
pop ebx
ret
Function at 0x405874
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 0x4058a7
jl 0x40589d
test eax, eax
jae 0x4058a7
or eax, 0xffffffff
or edx, eax
jmp 0x4059f3
push esi
mov esi, dword [ebp + 0xc]
push 0x16
push esi
push edi
call fcn.004174eb
add esp, 0xc
test eax, eax
js 0x4059ed
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 0x405909
mov eax, esi
call fcn.0040578d
test eax, eax
je 0x405901
push ebx
push dword [ebp - 0xc]
push edi
call fcn.00405800
add esp, 0xc
jmp 0x4059f2
mov eax, dword [ebp - 0xc]
jmp 0x405a32
push 2
push 0
push 0
push edi
call fcn.0040b20f
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jg 0x40592e
jl 0x4059ed
test esi, esi
jb 0x4059ed
mov edi, 0x10015
test ebx, ebx
jg 0x405944
jl 0x40593d
cmp esi, edi
jae 0x405944
mov dword [ebp - 0xc], esi
mov eax, ebx
jmp 0x405949
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 0x405970
jl 0x4059ed
test eax, eax
jb 0x4059ed
push edi
call fcn.0040a1b7
mov edi, eax
pop ecx
mov dword [ebp - 4], edi
test edi, edi
je 0x4059ed
push dword [ebp - 0xc]
push edi
push dword [ebp + 8]
call fcn.004174eb
add esp, 0xc
test eax, eax
jns 0x405996
push edi
jmp 0x4059e7
add eax, edi
mov dword [ebp - 8], eax
lea edi, [eax - 0x16]
jmp 0x4059df
cmp byte [edi], 0x50
jne 0x4059de
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 0x4059de
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 0x4059f7
dec edi
cmp edi, dword [ebp - 4]
jae 0x4059a0
push dword [ebp - 4]
call fcn.00408f60
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.00408f60
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.0040578d
test eax, eax
je 0x405a30
push ebx
push esi
push dword [ebp + 8]
mov esi, dword [ebp + 0xc]
jmp 0x4058f4
mov eax, esi
mov edx, ebx
jmp 0x4059f2
Function at 0x409908
Capabilities:
Terminate process

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

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