joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d15a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407e6b
mov dword [ebp - 0x14], eax
cmp dword [0x813fdc], esi
jne 0x40d24d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d1da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d32d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d32d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d32d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x813fdc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x813fe0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x813fe4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813fec], eax
test eax, eax
je 0x40d24a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813fe8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d272
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d265
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d287
push 4
pop eax
jmp 0x40d32f
cmp dword [ebp - 0x14], esi
je 0x40d287
push dword [0x813fdc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d26c
mov eax, dword [0x813fe8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d2e5
cmp dword [0x813fec], edi
je 0x40d2e5
push eax
call ebx
push dword [0x813fec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d2e5
test eax, eax
je 0x40d2e5
call ecx
test eax, eax
je 0x40d2da
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d2da
test byte [ebp - 8], 1
jne 0x40d2e5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d315
mov eax, dword [0x813fe0]
cmp eax, edi
je 0x40d312
push eax
call ebx
test eax, eax
je 0x40d312
call eax
mov esi, eax
test esi, esi
je 0x40d312
mov eax, dword [0x813fe4]
cmp eax, edi
je 0x40d312
push eax
call ebx
test eax, eax
je 0x40d312
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x813fdc]
call ebx
test eax, eax
je 0x40d32d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d32f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004043b8
mov esp, ebp
pop ebp
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x41d401db
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x30b78de
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x42a220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x42a22f
pop dword [ebp - 0x44]
mov eax, 0x42a22f
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x4f846f58
add dword [ebp - 0x54], 0xfecdd5f3
mov dword [ebp - 0x50], 0x8a77533b
sub dword [ebp - 0x50], 0x584406f6
mov dword [ebp - 0x4c], 0x64014d73
sub dword [ebp - 0x4c], 0x17b50945
mov dword [ebp - 0x48], 0x14363844
add dword [ebp - 0x48], 0xebc9c7bc
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x9b90e51b
add dword [ebp - 0x54], 0xd8e1843b
mov dword [ebp - 0x50], 0xe25f7979
add dword [ebp - 0x50], 0x5f0ce7fc
mov dword [ebp - 0x4c], 0x8f661726
sub dword [ebp - 0x4c], 0x2bf6aaba
mov dword [ebp - 0x48], 0x5eeeddce
sub dword [ebp - 0x48], 0x5eeeddce
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x14fda874
sub eax, 0x14b7f7f4
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x4ba04
push 0
call eax
mov ecx, 0x411c
mov edi, eax
mov edx, 0x9c2c1f4a
sub edx, 0x9be4bf4a
add edx, dword [ebp - 0x44]
mov esi, 0x50453587
add esi, 0x8fb8af1d
xor dword [ebp - 0x2c], ebx
mov ebx, dword [edx]
add ebx, esi
mov dword [ebp - 0xc], 0x3b218e7a
mov dword [edi], ebx
add dword [ebp - 0x30], 0xb1cf485
add edi, 4
add edx, 0x2037c790
sub edx, 0x2037c78c
loop 0x42a341
add eax, 0xc7ac2e94
sub eax, 0xc7ab3751
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404cc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4cf094]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x404]
mov esi, ecx
push 0
push eax
call fcn.00443480
add esp, 0xc
lea eax, [ebp - 0x404]
push 0x200
push eax
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x404]
push eax
call fcn.0040283e
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
lea ecx, [esi + 0x80]
call fcn.004027c5
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.00428f89
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4075fc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x40760f
push 0xd
pop eax
jmp 0x407653
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x407622
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x40761a
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x407c4e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x4cf094]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
mov ebx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
push esi
or eax, 0x2001f
mov dword [esp + 0x1c], ecx
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
call fcn.00407bf0
jmp 0x407ca6
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00407c4e
mov esi, eax
test esi, esi
jne 0x407cfa
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x407c98
cmp dword [esp + 0xc], esi
je 0x407ce9
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.00407dcb
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x407d0b
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00428f89
mov esp, ebp
pop ebp
ret 4
Function at 0x4087ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x49a8eb
call fcn.00429b45
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x408829
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x408829
call fcn.00406fe8
mov esi, eax
jmp 0x40892f
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40884c
call fcn.00406fe8
jmp 0x408922
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x408842
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x40887f
mov esi, 0x8007000e
jmp 0x408924
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x4088b3
cmp eax, 0xffffffff
ja 0x4088b3
cmp eax, 0x400
jbe 0x4088a5
push eax
lea ecx, [ebp - 0x418]
call fcn.00406fc3
jmp 0x4088d1
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x4088d1
push 0x80070216
call fcn.004044e0
mov eax, 0x4088c3
ret
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x408875
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x408842
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00408655
mov esi, eax
test edi, edi
je 0x40892f
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x408948
lea ecx, [ebp - 0x418]
call fcn.00406fae
mov eax, esi
call fcn.00429a92
ret 0x10

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

Disassembly:
push ebx
xor ebx, ebx
test ecx, ecx
je 0x40eca3
cmp word [ecx], bx
je 0x40eca3
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40eca3
push 1
test al, 0x10
movzx ebx, bl
pop ecx
cmove ebx, ecx
mov al, bl
pop ebx
ret
Function at 0x40ecf3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4cf094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
push 0xa
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov esi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push 0x4bb310
push eax
call fcn.0040a0c1
add esp, 0xc
lea eax, [ebp - 0x2c]
push esi
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40eda6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40eda6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40eda6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40eda6
lea eax, [edi + 1]
cmp eax, dword [ebx + 0x10]
ja 0x40ed82
mov dword [ebx + 0x10], eax
cmp dword [ebx + 0x14], 0x10
jb 0x40ed7a
mov ecx, dword [ebx]
jmp 0x40ed7c
mov ecx, ebx
mov byte [ecx + eax], 0
jmp 0x40ed8f
sub eax, dword [ebx + 0x10]
mov ecx, ebx
push 0
push eax
call fcn.0040f214
push 0
mov ecx, ebx
call fcn.00409cfa
push edi
push dword [ebp - 0x30]
mov ecx, ebx
call fcn.00409fb1
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428f89
mov esp, ebp
pop ebp
ret

Function at 0x40edb9
Capabilities:
Get common file path

Disassembly:
push 0x84c
mov eax, 0x49aee3
call fcn.00429ad7
mov esi, ecx
push 0x800
xor edi, edi
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.00443480
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x840]
call fcn.004036b5
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], edi
mov word [ebp - 0x828], ax
mov byte [ebp - 4], 1
push edi
lea ecx, [ebp - 0x828]
call fcn.00402499
push 0xa
lea edx, [ebp - 0x828]
pop ecx
call fcn.0040d3e5
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.0040f29c
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40ee60
mov eax, dword [eax]
push edi
push eax
call fcn.0044f397
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x858]
push edi
neg ebx
push 1
sbb bl, bl
call fcn.004016e6
add bl, 1
jne 0x40ee25
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.0040f29c
pop ecx
push eax
mov ecx, esi
call fcn.00402bd8
push edi
push 1
lea ecx, [ebp - 0x858]
call fcn.004016e6
cmp dword [esi + 0x14], 8
jb 0x40eeb9
mov esi, dword [esi]
push edi
push 1
lea ecx, [ebp - 0x828]
call fcn.004016e6
push edi
push 1
lea ecx, [ebp - 0x840]
call fcn.004016e6
mov eax, esi
call fcn.00429a81
ret
Function at 0x40eedd
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4cf094]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
mov dword [ebp - 0x808], esi
call fcn.00402499
lea eax, [ebp - 0x808]
push eax
push 0x20019
push esi
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x800
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.00443480
add esp, 0xc
mov dword [ebp - 0x80c], 0x400
cmp dword [ebp - 0x808], esi
je 0x40effd
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
push esi
push str.TEMP
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40eff1
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.0040283e
pop ecx
push eax
lea eax, [ebp - 0x804]
mov ecx, edi
push eax
call fcn.004027c5
mov ebx, str._SystemRoot_
push ebx
call fcn.0040283e
pop ecx
push eax
push esi
push ebx
mov ecx, edi
call fcn.0040a89a
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40eff0
push 0x400
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40eff0
push str._SystemRoot_
call fcn.00450e8b
mov esi, eax
lea eax, [ebp - 0x804]
push eax
call fcn.0040283e
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x804]
mov ecx, edi
push eax
push esi
push ebx
call fcn.00402e1f
pop ebx
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00428f89
mov esp, ebp
pop ebp
ret
Function at 0x40f075
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x86c
mov eax, 0x49af6a
call fcn.00429ad7
mov esi, ecx
mov dword [ebp - 0x874], esi
xor ebx, ebx
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
mov dword [ebp - 0x878], ebx
call fcn.00443480
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x840]
call fcn.004036b5
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x840]
cmp dword [ebp - 0x82c], 8
mov eax, dword [ebp - 0x830]
cmovae ecx, dword [ebp - 0x840]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x40f10b
mov edi, 0x4bae4c
push edi
call fcn.0040283e
pop ecx
push eax
push edi
lea ecx, [ebp - 0x840]
call fcn.004034ed
xor edi, edi
inc edi
xor eax, eax
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], ebx
mov word [ebp - 0x858], ax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], ebx
mov word [ebp - 0x828], ax
push 8
lea edx, [ebp - 0x858]
mov byte [ebp - 4], 2
pop ecx
call fcn.0040d3e5
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x870]
call fcn.0040f29c
pop ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.00402bd8
push ebx
push edi
lea ecx, [ebp - 0x870]
call fcn.004016e6
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
push ebx
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.0044f397
pop ecx
pop ecx
test eax, eax
jne 0x40f1bc
push ebx
push edi
lea ecx, [ebp - 0x828]
call fcn.004016e6
push ebx
push edi
lea ecx, [ebp - 0x858]
call fcn.004016e6
jmp 0x40f10e
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00450ee6
pop ecx
lea eax, [ebp - 0x828]
mov ecx, esi
push eax
call fcn.004034c8
push ebx
push edi
lea ecx, [ebp - 0x828]
call fcn.004016e6
push ebx
push edi
lea ecx, [ebp - 0x858]
call fcn.004016e6
push ebx
push edi
lea ecx, [ebp - 0x840]
call fcn.004016e6
mov eax, esi
call fcn.00429a81
ret
Function at 0x40f634
Capabilities:
Write file on windows

Disassembly:
push 0x450
mov eax, 0x49b04a
call fcn.00429ad7
mov ebx, ecx
mov esi, dword [ebp + 8]
xor eax, eax
and dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
and dword [ebp - 4], eax
lea ecx, [ebp - 0x440]
call fcn.0040edb9
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
push 0x4bae8c
cmovae eax, dword [ebp - 0x440]
push eax
call fcn.0044fc56
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x40f6f2
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00443480
add esp, 0xc
lea eax, [ebp - 0x440]
cmp dword [ebp - 0x42c], 8
cmovae eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x410]
push 0x4bb3e0
push eax
call fcn.0040a0c1
add esp, 0xc
lea eax, [ebp - 0x410]
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x45c]
push 0x4cb0ec
push eax
call fcn.0044395c
and dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x40f719
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x428]
call fcn.0040f3ad
test eax, eax
je 0x40f7e5
xor eax, eax
cmp dword [ebx + 0x2c], eax
je 0x40f7bf
mov dword [ebp - 0x444], 0xf
mov dword [ebp - 0x448], eax
mov byte [ebp - 0x458], al
mov byte [ebp - 4], 2
lea edx, [ebp - 0x428]
cmp dword [ebp - 0x414], 0x10
lea ecx, [ebx + 0x1c]
cmovae edx, dword [ebp - 0x428]
cmp dword [ecx + 0x14], 0x10
jb 0x40f772
mov ecx, dword [ecx]
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 0x418]
call fcn.0040ff90
cmp dword [ebp - 0x444], 0x10
lea eax, [ebp - 0x458]
push edi
cmovae eax, dword [ebp - 0x458]
push 1
push dword [ebp - 0x448]
push eax
call fcn.0044f8b0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x458]
push 0
push 1
call fcn.00408b84
jmp 0x40f7e5
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
push edi
cmovae eax, dword [ebp - 0x428]
push 1
push dword [ebp - 0x418]
push eax
call fcn.0044f8b0
add esp, 0x10
push edi
call fcn.0044f50d
pop ecx
lea ecx, [ebx + 4]
lea eax, [ebp - 0x440]
cmp ecx, eax
je 0x40f803
push 0xffffffffffffffff
push 0
push eax
call fcn.0040257d
push 0
push 1
lea ecx, [ebp - 0x428]
call fcn.00408b84
push 0
push 1
lea ecx, [ebp - 0x440]
call fcn.004016e6
call fcn.00429a81
ret 4
Function at 0x40f8b4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x40f8c6
mov eax, dword [eax]
push 0x4bb308
push eax
call fcn.0044fc56
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x40f946
push ebx
push edi
mov ecx, eax
call fcn.0040eca7
mov ebx, eax
push ebx
call fcn.00429473
push ebx
mov edi, eax
push 0
push edi
call fcn.00443480
push dword [ebp - 4]
push 1
push ebx
push edi
call fcn.004515b1
push dword [ebp - 4]
call fcn.0044f50d
add esp, 0x24
cmp dword [esi + 0x2c], 0
je 0x40f92e
lea ecx, [esi + 0x1c]
cmp dword [ecx + 0x14], 0x10
jb 0x40f91e
mov ecx, dword [ecx]
mov esi, dword [ebp + 8]
mov edx, edi
push esi
push ebx
call fcn.0040ff90
pop ecx
pop ecx
jmp 0x40f93a
mov esi, dword [ebp + 8]
mov ecx, esi
push ebx
push edi
call fcn.00409fb1
push edi
call fcn.00429243
mov eax, dword [esi + 0x10]
pop ecx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4