joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a04
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x412035
push dword [0x413540]
call fcn.004033d5
and eax, eax
je 0x402b5a
push 0x400
call fcn.0040c6b0
mov dword [esp], eax
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.0040c98d
lea eax, [esp + 8]
push eax
call fcn.0040f520
push dword [esp]
push 0
push 0x41201e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x413ad0]
push dword [0x413ad0]
push dword [esp + 8]
call fcn.0040c760
lea eax, [0x4135b4]
push eax
call fcn.0040f520
push dword [esp]
call fcn.0040c7b0
push dword [0x4135b4]
call fcn.0040ca1c
push dword [0x4135b4]
call fcn.0040c917
push dword [0x4135b4]
call sub.SHLWAPI.DLL_PathAddBackslashA
mov edx, dword [0x4135b4]
push dword [0x413ad0]
call fcn.0040f600
mov edx, dword [0x41357c]
call fcn.0040f600
mov edx, dword [0x413550]
call fcn.0040f600
lea eax, [0x413544]
push eax
call fcn.0040f520
push dword [0x413544]
push 0
call fcn.0040ce10
push dword [0x4134e8]
push dword [0x4134d4]
push 0
call fcn.0040cf90
push 0
call fcn.0040cbf0
mov edx, dword [0x413544]
push dword [0x413ad0]
call fcn.0040f600
lea eax, [esp + 0xc]
push eax
call fcn.0040f520
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathQuoteSpacesA
push dword [esp + 8]
push dword [0x413528]
call fcn.004085cd
push dword [0x413520]
push dword [0x41357c]
call fcn.004085cd
mov dword [0x4134e4], 1
xor eax, eax
push dword [esp + 4]
call fcn.0040f5d0
push dword [esp + 8]
call fcn.0040f5d0
add esp, 0xc
ret

Function at 0x402b72
Capabilities:
Delete directory

Disassembly:
xor eax, eax
push eax
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.0040ca2a
inc dword [0x413ad0]
push dword [0x413588]
mov edx, dword [0x412320]
add dword [esp + 4], edx
call fcn.00408143
lea eax, [esp + 4]
push eax
call fcn.0040f520
mov edx, dword [esp]
xor ecx, ecx
call fcn.0040f5a0
jne 0x402c30
mov edx, dword [esp]
push dword [0x413ad0]
call fcn.0040f600
lea eax, [0x41354c]
push eax
call fcn.0040f520
push dword [0x41354c]
call fcn.0040ca6a
mov edx, dword [0x4134f8]
xor ecx, ecx
call fcn.0040f5a0
jne 0x402c02
push dword [0x4134f8]
call fcn.00402f9c
push dword [0x413558]
push 1
call fcn.0040ce10
and eax, eax
je 0x402c30
push dword [0x413554]
push 1
call fcn.0040cff0
push 1
call fcn.0040cbf0
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.00408450
mov edx, dword [0x412320]
add dword [esp], edx
call fcn.0040ca7c
mov edx, dword [0x412320]
add dword [esp], edx
call fcn.0040ca6a
pop dword [0x413ad0]
push dword [0x4135b8]
call sub.KERNEL32.dll_RemoveDirectoryA
push 0
jmp 0x4017bc
Function at 0x402d6c
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.0040c6b0
mov dword [esp], eax
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.0040c98d
lea eax, [esp + 8]
push eax
call fcn.0040f520
push dword [esp]
push 0
push 0x41201e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x413ad0]
push dword [0x413ad0]
push dword [esp + 8]
call fcn.0040c760
lea eax, [0x4135b8]
push eax
call fcn.0040f520
push dword [esp]
call fcn.0040c7b0
push dword [0x4135b8]
call fcn.0040ca1c
push dword [0x4135b8]
call fcn.0040c917
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.0040ca2a
lea eax, [0x41354c]
push eax
call fcn.0040f520
push dword [esp + 0x14]
pop eax
call fcn.0040c6d0
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x402e45
mov edx, dword [0x4135b8]
push dword [0x413ad0]
call fcn.0040f600
lea eax, [0x41354c]
push eax
call fcn.0040f520
mov dword [esp + 0xc], 2
jmp 0x402e57
mov ebx, 1
cmp ebx, dword [esp]
jne 0x402e57
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.0040c6d0
mov dword [0x413580], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.0040c6d0
mov dword [0x4134d0], eax
mov eax, 1
jmp 0x402e8a
push dword [esp + 4]
call fcn.0040f5d0
add esp, 0xc
pop ebx
ret 4

Function at 0x402e9a
Capabilities:
Accept command line arguments

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x1c]
mov dword [0x413ad0], eax
push dword [0x413ad0]
push dword [0x413ad0]
call sub.KERNEL32.dll_GetCommandLineA
push eax
call fcn.0040c760
lea eax, [esp + 4]
push eax
call fcn.0040f520
mov edx, dword [esp]
push dword [0x413ad0]
call fcn.0040f600
lea eax, [esp + 8]
push eax
call fcn.0040f520
mov eax, dword [esp + 4]
push eax
call sub.SHLWAPI.DLL_PathRemoveArgsA
mov dword [esp + 8], eax
push dword [esp + 4]
call fcn.004052c0
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jle 0x402f57
push dword [0x413ad0]
mov edx, str.__BFINOPSX
call fcn.0040f600
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
mov ebx, dword [esp + 0x20]
inc ebx
push ebx
push dword [esp + 0x18]
call fcn.004055a0
mov edx, dword [0x412320]
add dword [esp], edx
call fcn.00405190
pop eax
lea eax, [esp + 0x14]
push eax
call fcn.0040f520
mov edx, dword [esp + 0x10]
push dword [0x413ad0]
call fcn.0040f600
pop eax
add eax, dword [0x412320]
jmp 0x402f7d
push dword [esp + 4]
call fcn.0040f5d0
push dword [esp]
call fcn.0040f5d0
push dword [esp + 0x10]
call fcn.0040f5d0
add esp, 0x14
pop ebx
ret
Function at 0x4033a1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4033a7
lea eax, [esp]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x4033ce
mov eax, 1
jmp 0x4033d0
xor eax, eax
add esp, 0x24
pop ebp
ret

Function at 0x4033d5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4033db
mov edx, dword [esp + 0x30]
lea ecx, [esp]
call fcn.00405060
push 0x21
call fcn.0040c6b0
mov dword [esp + 4], eax
push 0x21
push dword [esp + 8]
call fcn.0040c7d0
push 0x20
push dword [esp + 8]
mov eax, dword [0x4135d0]
push eax
call fcn.0040c7f0
push 1
push dword [esp + 4]
mov ebx, dword [esp + 0xc]
add ebx, 0x20
push ebx
call fcn.0040c820
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push 0x21
push dword [esp + 0x18]
call fcn.0040dd70
mov edx, dword [0x412320]
add dword [esp], edx
call fcn.00405af0
lea eax, [esp + 0xc]
push eax
call fcn.0040f520
push dword [esp + 4]
call fcn.0040c7b0
push 0xa
push dword [esp + 0xc]
push dword [esp + 0x34]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x4035c0
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.KERNEL32.dll_LoadResource
mov dword [0x4134d4], eax
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x4134e8], eax
push dword [esp]
mov edx, 0x412027
pop ecx
call fcn.0040f5a0
jne 0x403508
push dword [esp]
mov edx, 0x41202b
pop ecx
call fcn.0040f5a0
jne 0x403508
push dword [esp]
mov edx, 0x41202d
pop ecx
call fcn.0040f5a0
jne 0x403508
push dword [esp]
mov edx, 0x412035
pop ecx
call fcn.0040f5a0
jne 0x403508
jmp 0x40350f
mov eax, 1
jmp 0x403511
xor eax, eax
and eax, eax
je 0x4035c0
push dword [0x4134e8]
call fcn.0040c6b0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov ebx, dword [0x4134e8]
dec ebx
cmp ebx, dword [esp + 0x14]
jl 0x403576
mov ebx, dword [0x4134d4]
add ebx, dword [esp + 0x14]
push ebx
pop eax
call fcn.0040c6d0
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
imul ebx, ebx, 0xffffffff
mov dword [esp + 0x1c], ebx
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x18]
push ebx
pop eax
call fcn.0040c6e0
inc dword [esp + 0x14]
jno 0x403530
push dword [0x4135d0]
push dword [0x4134e8]
push dword [esp + 0x18]
call fcn.00402000
push dword [esp + 0x10]
pop eax
mov dword [0x4134d4], eax
push dword [0x4134e8]
push dword [esp + 0x14]
call fcn.00404190
mov dword [esp + 0x20], eax
push dword [esp + 0x20]
pop eax
mov dword [0x4134d4], eax
push dword [esp + 0x20]
call fcn.0040c860
mov dword [0x4134e8], eax
mov eax, dword [esp + 0xc]
jmp 0x4035c8
push dword [esp + 8]
call fcn.0040f5d0
push dword [esp]
call fcn.0040f5d0
add esp, 0x24
pop ebx
ret 8
Function at 0x4035e0
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
push eax
push eax
push 0x400
call fcn.0040c6b0
mov dword [esp], eax
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.0040c98d
lea eax, [esp + 8]
push eax
call fcn.0040f520
push dword [esp]
push 0
push 0x41201e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x413ad0]
push dword [0x413ad0]
push dword [esp + 8]
call fcn.0040c760
lea eax, [0x4135c8]
push eax
call fcn.0040f520
push dword [0x413ad0]
push dword [0x413ad0]
push 0x800
call fcn.00405b50
lea eax, [esp + 0xc]
push eax
call fcn.0040f520
push dword [0x413ad0]
push 0x800
push dword [esp + 0x10]
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.00408450
inc dword [0x413ad0]
mov edx, dword [0x412320]
add dword [esp], edx
call sub.KERNEL32.dll_GetShortPathNameA
pop dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.00408450
inc dword [0x413ad0]
push dword [0x4134f4]
mov edx, dword [0x412320]
add dword [esp + 4], edx
call fcn.004085cd
pop dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.00408450
mov edx, dword [0x412320]
add dword [esp], edx
call fcn.0040cb9a
inc dword [0x413ad0]
push dword [0x413538]
mov edx, dword [0x412320]
add dword [esp + 4], edx
call fcn.004085cd
pop dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
call fcn.00408450
mov edx, dword [0x412320]
add dword [esp], edx
call fcn.0040ca7c
inc dword [0x413ad0]
push dword [0x4135c0]
mov edx, dword [0x412320]
add dword [esp + 4], edx
call fcn.004085cd
pop dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [esp + 0x14]
call fcn.00405190
inc dword [0x413ad0]
push dword [0x413500]
mov edx, dword [0x412320]
add dword [esp + 4], edx
call fcn.004085cd
pop dword [0x413ad0]
mov edx, dword [0x41354c]
push dword [0x413ad0]
call fcn.0040f600
lea eax, [esp + 0x10]
push eax
call fcn.0040f520
push dword [esp + 0xc]
call sub.SHLWAPI.DLL_PathAddBackslashA
push dword [esp + 0xc]
push dword [0x4135cc]
call fcn.004085cd
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
mov eax, dword [0x4134ec]
cdq
push edx
push eax
call fcn.00405860
inc dword [0x413ad0]
push dword [0x41358c]
mov edx, dword [0x412320]
add dword [esp + 4], edx
call fcn.004085cd
pop dword [0x413ad0]
push dword [0x4135c8]
push dword [0x41353c]
call fcn.004085cd
xor eax, eax
push dword [esp + 8]
call fcn.0040f5d0
push dword [esp + 4]
call fcn.0040f5d0
push dword [esp + 0xc]
call fcn.0040f5d0
add esp, 0x10
ret
Function at 0x403b09
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x1c]
mov dword [0x413ad0], eax
call fcn.004033a1
and eax, eax
je 0x403b36
call fcn.0040ab0f
mov ebx, eax
cmp ebx, 0x41
je 0x403b36
mov eax, 1
jmp 0x403b38
xor eax, eax
and eax, eax
je 0x403c91
push dword [0x413ad0]
push dword [0x413ad0]
push 0x800
call fcn.00405b50
lea eax, [esp + 4]
push eax
call fcn.0040f520
push 0x800
push dword [esp + 4]
call sub.KERNEL32.dll_GetWindowsDirectoryA
push dword [esp]
call sub.SHLWAPI.DLL_PathAddBackslashA
mov edx, dword [esp]
push dword [0x413ad0]
call fcn.0040f600
mov edx, 0x412037
call fcn.0040f600
lea eax, [esp + 4]
push eax
call fcn.0040f520
push dword [esp]
call sub.SHLWAPI.DLL_PathAddBackslashA
mov edx, dword [esp]
push dword [0x413ad0]
call fcn.0040f600
mov edx, dword [0x413534]
call fcn.0040f600
lea eax, [esp + 8]
push eax
call fcn.0040f520
mov edx, dword [esp]
push dword [0x413ad0]
call fcn.0040f600
mov edx, dword [0x413534]
call fcn.0040f600
mov edx, dword [0x413550]
call fcn.0040f600
lea eax, [esp + 0xc]
push eax
call fcn.0040f520
push dword [esp + 4]
push 0
call fcn.0040cee0
and eax, eax
je 0x403c17
mov dword [esp + 0xc], 1
push 0
call fcn.0040cbf0
jmp 0x403c1f
mov dword [esp + 0xc], 0
push dword [esp + 8]
push 0
call fcn.0040cee0
and eax, eax
je 0x403c45
mov dword [esp + 0x10], 1
push 0
call fcn.0040cbf0
jmp 0x403c4d
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0xc]
add ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x403c8f
push dword [0x413ad0]
push dword [0x413ad0]
push 0x800
call fcn.00405b50
lea eax, [esp + 4]
push eax
call fcn.0040f520
push 0x800
push dword [esp + 4]
call sub.KERNEL32.dll_GetSystemDirectoryA
push dword [esp]
call sub.SHLWAPI.DLL_PathAddBackslashA
jmp 0x403cc7
push dword [0x413ad0]
push dword [0x413ad0]
push 0x800
call fcn.00405b50
lea eax, [esp + 4]
push eax
call fcn.0040f520
push 0x800
push dword [esp + 4]
call sub.KERNEL32.dll_GetSystemDirectoryA
push dword [esp]
call sub.SHLWAPI.DLL_PathAddBackslashA
mov edx, dword [esp]
push dword [0x413ad0]
call fcn.0040f600
pop eax
add eax, dword [0x412320]
jmp 0x403cec
push dword [esp + 8]
call fcn.0040f5d0
push dword [esp]
call fcn.0040f5d0
push dword [esp + 4]
call fcn.0040f5d0
add esp, 0x14
pop ebx
ret
Function at 0x403d0b
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
mov ebx, dword [0x413580]
cmp ebx, 1
jne 0x403dc8
push dword [0x4135e0]
call fcn.00409d4b
mov ebx, eax
and ebx, ebx
jle 0x403d6f
push dword [0x4135e0]
call fcn.00409d55
push dword [0x4135e0]
call fcn.00409d6a
or eax, eax
je 0x403d6f
mov ebp, dword [0x4135e4]
push dword [ebp + 8]
call fcn.0040e090
mov ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x403d6d
mov ebp, dword [0x4135e4]
push dword [ebp + 8]
call fcn.0040ca1c
jmp 0x403d3b
push dword [0x4135e8]
call fcn.00409d4b
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x403dc8
push 5
push 0
push 1
push dword [0x4135e8]
call fcn.00407a00
push dword [0x4135e8]
call fcn.00409d55
push dword [0x4135e8]
call fcn.00409d6a
or eax, eax
je 0x403dc8
mov ebp, dword [0x4135ec]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x403da9
mov eax, 1
jmp 0x403dd1
add esp, 4
pop ebx
pop ebp
ret

Function at 0x403dd7
Capabilities:
Accept command line arguments
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [0x413558]
push 1
call fcn.0040ce10
and eax, eax
je 0x403f7c
push dword [0x41356c]
push 1
call fcn.0040d070
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
call sub.KERNEL32.dll_GetCommandLineA
push eax
call fcn.0040c760
inc dword [0x413ad0]
mov edx, dword [0x412320]
add dword [esp], edx
call sub.SHLWAPI.DLL_PathGetArgsA
pop dword [0x413ad0]
push eax
call fcn.0040c760
inc dword [0x413ad0]
push dword [0x41359c]
mov edx, dword [0x412320]
add dword [esp + 4], edx
call fcn.004085cd
pop dword [0x413ad0]
push dword [0x413554]
push 1
call fcn.0040d070
mov ebx, dword [0x4134e4]
cmp ebx, 1
jne 0x403f70
push dword [0x413ad0]
push dword [0x413ad0]
mov ebp, 0x412125
mov ebx, ebp
mov ebp, 0x412078
sub ebx, ebp
push ebx
mov ebp, 0x412078
push ebp
call fcn.0040c6f0
lea eax, [esp + 4]
push eax
call fcn.0040f520
push dword [esp]
call fcn.004052c0
mov dword [esp + 4], eax
push dword [esp + 4]
call fcn.0040c6b0
mov dword [esp + 8], eax
push dword [esp + 4]
call fcn.0040c6b0
mov dword [esp + 0xc], eax
push dword [esp]
push dword [esp + 0xc]
call fcn.0040c8d0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 4]
cmp eax, dword [esp + 0x10]
jl 0x403f35
mov ebx, dword [esp + 8]
add ebx, dword [esp + 0x10]
push ebx
pop eax
call fcn.0040c6d0
mov ebx, eax
imul ebx, ebx, 0xffffffff
push ebx
mov ebx, dword [esp + 0x10]
add ebx, dword [esp + 0x14]
push ebx
pop eax
call fcn.0040c6e0
inc dword [esp + 0x10]
jno 0x403f01
push dword [0x413ad0]
push dword [0x413ad0]
push dword [0x413ad0]
push dword [esp + 0x18]
call fcn.0040c760
inc dword [0x413ad0]
push 1
mov edx, dword [0x412320]
add dword [esp + 4], edx
call fcn.0040d070
pop dword [0x413ad0]
push 1
call fcn.0040cbf0
jmp 0x403fb7
push dword [0x413558]
call fcn.0040ca1c
call fcn.00403d0b
push 0x10
push dword [0x413560]
push dword [0x4135bc]
call fcn.004080d0
push dword [0x4135b8]
call sub.KERNEL32.dll_RemoveDirectoryA
push 1
jmp 0x4017bc
xor eax, eax
push dword [esp]
call fcn.0040f5d0
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x40831d
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x40836c
push dword [esp + 0x10]
push 0x40829b
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4135f8]
cmp esi, ebx
je 0x4083c0
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x408364
cmp byte [esi + 0x10], bl
je 0x408364
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x408341
jmp 0x4083c0
mov esi, dword [0x4135f8]
cmp esi, ebx
je 0x4083c0
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x4083b9
cmp byte [esi + 0x11], bl
je 0x408396
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x4083ac
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x4135f8
call fcn.0040f14d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x408377
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x408bf5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 4], 0xffffffff
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0x10]
xor esi, esi
test eax, eax
je 0x408c26
cmp byte [eax], 0
je 0x408c26
push eax
call fcn.00410080
push eax
push edi
mov dword [ebp + 0x10], eax
call fcn.004091dd
pop ecx
pop ecx
mov esi, eax
jmp 0x408c38
cmp dword [edi + 8], esi
je 0x408d28
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 4]
mov esi, dword [ecx + eax*4]
test esi, esi
je 0x408d28
cmp dword [ebp + 0x14], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
je 0x408c61
push dword [esi]
push 0
push dword [0x4134c8]
call ebx
mov dword [ebp + 8], eax
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x408d27
mov eax, dword [ebp + 0xc]
cdq
cmp edx, dword [esi + 4]
jl 0x408d27
jg 0x408c82
cmp eax, dword [esi]
jb 0x408d27
push 0
push 0
push dword [esi + 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jne 0x408cc7
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x408cc7
push 0
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
mov eax, ecx
cdq
cmp dword [esi], eax
jne 0x408d27
cmp dword [esi + 4], edx
jne 0x408d27
mov dword [ebp - 4], ecx
jmp 0x408d27
push dword [esi + 8]
push 0
push dword [0x4134c8]
call ebx
mov ebx, eax
test ebx, ebx
je 0x408d27
push 0
lea eax, [ebp - 8]
push eax
push dword [esi + 8]
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
cdq
cmp dword [esi + 8], eax
jne 0x408d18
cmp dword [esi + 0xc], edx
jne 0x408d18
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call fcn.00409341
cdq
add esp, 0xc
cmp eax, dword [esi]
jne 0x408d18
cmp edx, dword [esi + 4]
jne 0x408d18
mov eax, dword [esi]
mov dword [ebp - 4], eax
push ebx
push 0
push dword [0x4134c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
mov eax, dword [ebp + 0x14]
xor edi, edi
cmp eax, edi
je 0x408d5b
cmp dword [ebp - 4], 0xffffffff
jne 0x408d51
cmp dword [ebp + 8], edi
je 0x408d4c
push dword [ebp + 8]
push edi
push dword [0x4134c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], edi
jmp 0x408d5b
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, edi
pop edi
pop esi
je 0x408d6f
cmp byte [eax], 0
je 0x408d6f
push eax
call fcn.00410130
mov eax, dword [ebp - 4]
leave
ret
Function at 0x408e25
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 8], 0
push ebx
push esi
push edi
push dword [ebp + 0x14]
call fcn.00410080
mov esi, dword [ebp + 0x10]
lea ebx, [esi + 0x18]
push ebx
push 0
push dword [0x4134c8]
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp + 0x10], edi
test edi, edi
je 0x408f13
push 0
push 5
push ebx
push edi
push esi
push dword [ebp + 0xc]
call fcn.004093a9
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x408e80
cmp ebx, esi
jge 0x408e80
mov dword [ebp + 0xc], edi
jmp 0x408e88
mov eax, dword [ebp + 0xc]
mov ebx, esi
mov dword [ebp + 0xc], eax
push dword [ebp + 0x14]
call sub.MSVCRT.dll_strlen
mov edi, dword [ebp + 8]
mov word [ebp - 0xc], ax
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
cdq
mov dword [ebp - 0x1c], eax
pop ecx
mov dword [ebp - 0x18], edx
mov eax, ebx
cdq
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push 0x12
lea eax, [ebp - 0x1c]
push eax
push dword [edi]
mov dword [ebp - 0x10], edx
call esi
cmp dword [ebp - 4], 0x12
jne 0x408efb
push 0
lea eax, [ebp - 4]
push eax
movsx eax, word [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [edi]
call esi
movsx eax, word [ebp - 0xc]
cmp eax, dword [ebp - 4]
jne 0x408efb
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi]
call esi
cmp ebx, dword [ebp - 4]
jne 0x408efb
mov dword [ebp - 8], 1
push edi
call fcn.00409035
pop ecx
push dword [ebp + 0x10]
push 0
push dword [0x4134c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp + 0x14]
call fcn.00410130
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10