joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4549a2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.004359b3
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4549de
call fcn.00454bbd
mov dword [esi + 0xc], 1
jmp 0x4549e3
call fcn.00454bbd
cmp dword [esi], 0
je 0x454a2c
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x454a06
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0042db58
jmp 0x454a17
push 0xff
mov ecx, esi
call fcn.00403274
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00429501
jmp 0x454a50
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x454a50
push dword [esi]
push dword [ebp - 4]
call fcn.0044ccc0
pop esi
leave
ret 0xc

Function at 0x454b14
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00454bbd
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x454b5c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042db58
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00429501
jmp 0x454b67
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0044ccc0
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x46a95f
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0049dd15
call fcn.0042e999
cmp dword [eax + 0x14], 0
jne 0x46a97a
mov ecx, esi
pop esi
jmp fcn.00469d7e
pop esi
ret

Function at 0x46b66c
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.0042e78b
call fcn.0042e999
cmp dword [eax + 0x14], 0
jne 0x46b687
mov ecx, esi
pop esi
jmp fcn.0046af5f
pop esi
ret

Function at 0x4742a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4742bf
call fcn.0042e945
mov esi, dword [eax + 0xc]
push 0x5a2130
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x474315
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x474314
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4742f5
xor esi, esi
jmp 0x47430b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0047431b
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x534c47
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x534c61
mov edi, dword [esi + 0xc]
jmp 0x534ca1
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x534c7a
call fcn.00444925
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x534c8f
call fcn.00444925
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x534ca1
call fcn.00444925
call fcn.0042e945
cmp dword [eax + 0x3c], 0
je 0x534cb6
push edi
mov ecx, ebx
call fcn.0053456b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00534e79
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x534cd9
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x534ce2
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x569558
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5fdc04]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00559db3
mov dword [ebp - 0x14], eax
cmp dword [0x605c08], edi
jne 0x569649
push 0x800
push edi
push 0x5c4ad0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x5695d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x569729
push 0x5c4ad0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x569729
push 0x5c4ae8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x569729
push eax
call ebx
push 0x5c4af4
push esi
mov dword [0x605c08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5c4b04
push esi
mov dword [0x605c0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x605c10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x605c18], eax
test eax, eax
je 0x569646
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x605c14], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x56966e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x569661
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x569683
push 4
pop eax
jmp 0x56972b
cmp dword [ebp - 0x14], edi
je 0x569683
push dword [0x605c08]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x569668
mov eax, dword [0x605c14]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x5696e1
cmp dword [0x605c18], esi
je 0x5696e1
push eax
call ebx
push dword [0x605c18]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5696e1
test eax, eax
je 0x5696e1
call ecx
test eax, eax
je 0x5696d6
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 0x5696d6
test byte [ebp - 8], 1
jne 0x5696e1
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x569711
mov eax, dword [0x605c0c]
cmp eax, esi
je 0x56970e
push eax
call ebx
test eax, eax
je 0x56970e
call eax
mov edi, eax
test edi, edi
je 0x56970e
mov eax, dword [0x605c10]
cmp eax, esi
je 0x56970e
push eax
call ebx
test eax, eax
je 0x56970e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x605c08]
call ebx
test eax, eax
je 0x569729
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x56972b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00550d01
leave
ret
Function at 0x56d71a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005591a1
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x56d752
xor eax, eax
jmp 0x56d77e
cmp esi, dword [ebp - 4]
je 0x56d77b
cmp dword [ebp + 0xc], 0
je 0x56d77b
push dword [edi + 0x9c]
call fcn.0056d328
push dword [edi + 0x9c]
mov esi, eax
call fcn.005506a6
pop ecx
pop ecx
cmp esi, eax
je 0x56d74e
xor eax, eax
inc eax
pop edi
pop esi
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 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 0x4010a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x49ae1c]
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4010ee
cmp dword [esp + 4], 5
jbe 0x40112b
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4010ee
push str.SetThreadUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401103
xor al, al
mov ecx, dword [esp + 0x94]
call fcn.00447453
add esp, 0x98
ret
push esi
mov esi, dword [esp + 0xa0]
push esi
call eax
sub ax, si
neg ax
pop esi
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x94]
call fcn.00447453
add esp, 0x98
ret
mov ecx, dword [esp + 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
mov ecx, dword [esp + 0x94]
test eax, eax
setne al
call fcn.00447453
add esp, 0x98
ret

Function at 0x4012a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4012cd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4012ee
cmp esi, eax
jae 0x4012c7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4012e0
cmp esi, eax
jae 0x4012c7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403390
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x475bc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
mov eax, dword [0x49ae1c]
mov ecx, dword [esp + 0x340]
mov dword [esp + 0x320], eax
mov eax, dword [esp + 0x344]
push ebx
push esi
xor esi, esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x344]
lea edx, [esp + 0x128]
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4033f2
mov eax, dword [esp + 0x344]
lea edx, [esp + 0x22c]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403410
mov edi, dword [esp + 0x340]
lea edx, [esp + 0xac]
push edi
lea ecx, [esp + 0xac]
mov dword [esp + 0xac], edx
call fcn.00401360
mov eax, dword [esp + 0xa8]
push eax
mov dword [esp + 0x33c], esi
call fcn.004087e0
add esp, 4
test eax, eax
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xac]
setne bl
cmp eax, ecx
mov dword [esp + 0x338], 0xffffffff
je 0x40347e
push eax
call fcn.00447461
add esp, 4
test bl, bl
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
je 0x403494
call ebp
push eax
call fcn.00404410
add esp, 4
call fcn.00408830
lea edx, [esp + 0x130]
push 0x47bdd4
push edx
mov esi, eax
call fcn.004484f0
add esp, 8
test eax, eax
je 0x40351a
lea eax, [esp + 0x2c]
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
call fcn.00401360
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
push 0x403260
push esi
lea edx, [esp + 0x13c]
push edx
push eax
mov dword [esp + 0x350], 1
call fcn.00408980
add esp, 0x14
test eax, eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
setne bl
cmp eax, ecx
mov dword [esp + 0x33c], 0xffffffff
je 0x403516
push eax
call fcn.00447461
add esp, 4
test bl, bl
jmp 0x403545
lea edx, [esp + 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push 0x403260
lea ecx, [esp + 0x138]
push esi
push ecx
call fcn.004088a0
add esp, 0x10
test eax, eax
je 0x403552
call ebp
push eax
call fcn.00404410
add esp, 4
lea esi, [esp + 0x230]
lea eax, [esp + 0x130]
pop ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x403589
test cl, cl
je 0x403585
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x403589
add eax, 2
add esi, 2
test cl, cl
jne 0x403561
xor eax, eax
jmp 0x40358e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop edi
pop esi
pop ebx
je 0x4035b9
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [esp + 0x324]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x320]
mov al, 1
call fcn.00447453
add esp, 0x330
ret 0x1c
Function at 0x4038c0
Capabilities:
Delete file

Disassembly:
sub esp, 0x10
push esi
mov eax, str.Error.log
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 8], eax
mov dword [esp + 0xc], str.FatalError.log
mov dword [esp + 0x10], str.SocketError.log
mov dword [esp + 0x14], 0
lea esi, [esp + 8]
push eax
call edi
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x4038f0
pop edi
pop esi
add esp, 0x10
ret

Function at 0x403be0
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x49c3ec]
push esi
mov esi, dword [0x49c3e8]
cmp esi, eax
je 0x403c15
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi + 0x18], 0x10
jb 0x403c02
mov eax, dword [esi + 4]
jmp 0x403c05
lea eax, [esi + 4]
push eax
call edi
mov eax, dword [0x49c3ec]
add esi, 0x24
cmp esi, eax
jne 0x403bf7
pop edi
pop esi
ret

Function at 0x404f90
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
cmp edx, ecx
mov dword [esp + 0xc], eax
ja 0x404fcc
jb 0x404fc0
cmp eax, ebx
jae 0x404fcc
mov eax, ebx
mov edx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x28]
push 0
push eax
push edx
push ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 8], eax
jne 0x404ff3
call fcn.00401430
pop edi
pop esi
pop ebx
add esp, 8
ret 0x18
test ebx, ebx
mov edx, dword [esp + 0x20]
jne 0x405006
mov ecx, dword [esp + 0xc]
sub ecx, edx
mov dword [esi + 4], ecx
jmp 0x405009
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x24]
push 0
mov dword [esi + 0x14], edx
mov edx, dword [esi + 4]
push edx
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push ecx
push eax
mov dword [esi + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
mov dword [esi], eax
jne 0x405059
call fcn.00401430
mov edi, eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov dword [esi + 8], 0
pop esi
pop ebx
add esp, 8
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x18
Function at 0x4051f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475d98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004044c0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00402640
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x405282
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405bd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x475ef0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x58], ebp
call fcn.00468687
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 1
call fcn.00467693
mov edi, vtable.CFileException.0
mov dword [esp + 0x1c], edi
call fcn.004676ff
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 0xffffffff
call fcn.004025d0
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x1c]
push eax
push 0x20
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 3
call fcn.0046891f
test eax, eax
jne 0x405c69
push 0xffffffffffffffff
call fcn.00404410
add esp, 4
mov edx, dword [esp + 0x10]
push 4
push 2
push ebp
push ebp
push ebp
push edx
lea ecx, [esp + 0x48]
call fcn.00404f90
test eax, eax
jge 0x405c8c
push 0xffffffffffffffff
call fcn.00404410
add esp, 4
mov esi, dword [esp + 0x30]
or edx, 0xffffffff
cmp word [esi], 0x5a4d
mov byte [esp + 0x58], 1
je 0x405d10
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x1c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405cbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0xc]
mov byte [esp + 0x58], 0
call fcn.004686c6
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x405ce0
call fcn.00401430
mov edi, eax
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x405cfc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x405cfc
cmp edi, ebp
jl 0x405cfc
call fcn.00401430
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 8]
add eax, esi
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x1c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0xc]
mov byte [esp + 0x58], 0
call fcn.004686c6
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x405d5a
call fcn.00401430
mov edi, eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x405d76
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x405d76
test edi, edi
jl 0x405d76
call fcn.00401430
mov ecx, dword [esp + 0x50]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
add esp, 0x50
ret
Function at 0x405d90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x475f10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push 0x47c064
lea ecx, [esp + 8]
call fcn.00403160
mov edx, dword [esp + 4]
mov eax, dword [edx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, 0x105
or eax, ecx
mov dword [esp + 0x10], 0
jge 0x405dea
push 0x105
lea ecx, [esp + 8]
call fcn.00401870
mov edx, dword [esp + 4]
push esi
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x405e03
xor eax, eax
jmp 0x405e17
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405e08
sub eax, esi
js 0x405f2c
cmp eax, dword [ecx - 8]
jg 0x405f2c
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 8]
mov byte [eax + ecx], 0
call fcn.004676ff
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edx, [eax + 0x10]
mov dword [esp + 4], edx
mov eax, dword [edx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, 0x105
or eax, ecx
mov byte [esp + 0x14], 1
jge 0x405e6b
push 0x105
lea ecx, [esp + 8]
call fcn.00401870
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push edx
push 0
push 0x47b95b
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edx, dword [esp + 4]
test edx, edx
jne 0x405e8a
xor eax, eax
jmp 0x405e9f
mov eax, edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405e90
sub eax, esi
js 0x405f2c
cmp eax, dword [edx - 8]
jg 0x405f2c
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 4]
lea edx, [esp + 4]
mov byte [eax + ecx], 0
mov ecx, dword [esp + 0x20]
push edx
call fcn.00402fe0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.00405ad0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x14], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405ef6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
push 0x80070057
call fcn.00401280
int3
Function at 0x405f40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x475f30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push 0x47c064
lea ecx, [esp + 4]
mov dword [esp + 4], 0
call fcn.00403160
mov edx, dword [esp]
mov eax, dword [edx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, 0x105
or eax, ecx
mov dword [esp + 0x10], 0
jge 0x405fa0
push 0x105
lea ecx, [esp + 4]
call fcn.00401870
mov edx, dword [esp]
push esi
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x405fb9
xor eax, eax
jmp 0x405fcf
mov eax, ecx
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405fc0
sub eax, esi
js 0x40606b
cmp eax, dword [ecx - 8]
jg 0x40606b
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 4]
push edi
mov byte [eax + ecx], 0
call fcn.004676ff
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
mov byte [esp + 0x24], 1
call fcn.004052a0
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [esp + 0x18], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406032
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406058
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
push 0x80070057
call fcn.00401280
int3