joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ad10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5107d9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
push 0
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Lockit::constructor_int_]
mov dword [esp + 0x30], 0
mov eax, dword [0x569544]
mov ecx, dword [sym.imp.MSVCP120.dll_class_std::locale::id_std::codecvt_char__char__int_::id]
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCP120.dll_public:_unsigned_int___thiscall_std::locale::id::operator_unsigned_int_void_]
mov edi, eax
mov eax, dword [ebx]
cmp edi, dword [eax + 0xc]
jae 0x43ad81
mov ecx, dword [eax + 8]
mov esi, dword [ecx + edi*4]
test esi, esi
jne 0x43adf2
jmp 0x43ad83
xor esi, esi
cmp byte [eax + 0x14], 0
je 0x43ad9a
call dword [sym.imp.MSVCP120.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Getgloballocale_void_]
cmp edi, dword [eax + 0xc]
jae 0x43ad9e
mov eax, dword [eax + 8]
mov esi, dword [eax + edi*4]
test esi, esi
jne 0x43adf2
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x43adf2
lea eax, [esp + 0x1c]
push ebx
push eax
call dword [sym.imp.MSVCP120.dll_public:_static_unsigned_int___cdecl_std::codecvt_char__char__int_::_Getcat_class_std::locale::facet_const____class_std::locale_const__]
add esp, 8
cmp eax, 0xffffffff
jne 0x43add8
push str.bad_cast
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::bad_cast::constructor_char_const__]
push 0x564dc4
lea eax, [esp + 0x14]
push eax
call sub.MSVCR120.dll__CxxThrowException
mov esi, dword [esp + 0x1c]
mov ecx, esi
mov dword [0x569544], esi
mov edx, dword [esi]
call dword [edx + 4]
push esi
call fcn.00506ee6
add esp, 4
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00505b1e
add esp, 0x24
ret
Function at 0x43e510
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x510b16
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x840]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea eax, [esp + 0x3c]
push eax
push 0x3fe
call edi
mov ebx, eax
test ebx, ebx
je 0x43e5e0
lea eax, [esp + 0x3c]
xor esi, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x848], esi
cmp ebx, 0x3fe
jbe 0x43e60a
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new___unsigned_int_]
add esp, 4
mov ebp, eax
mov esi, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x38], esi
push ebp
push ebx
call edi
test eax, eax
je 0x43e5c7
cmp eax, ebx
ja 0x43e5c7
xor ecx, ecx
mov ebx, eax
mov dword [ebp + eax*2], ecx
jmp 0x43e632
mov dword [esp + 0x848], 0xffffffff
test ebp, ebp
je 0x43e5e0
push ebp
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor al, al
mov ecx, dword [esp + 0x840]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x828]
xor ecx, esp
call fcn.00505b1e
add esp, 0x838
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x43e6d4
xor ecx, ecx
mov word [esp + eax + 0x3c], cx
add eax, 2
cmp eax, 0x800
jae 0x43e6d4
mov word [esp + eax + 0x3c], cx
xor eax, eax
xor edi, edi
test ebx, ebx
je 0x43e6b4
mov esi, dword [esp + 0x18]
mov ebp, 2
cmp word [esi + ebp - 2], 0
jne 0x43e6a8
cmp eax, edi
je 0x43e6a8
lea eax, [esi + eax*2]
push eax
lea ecx, [esp + 0x24]
call fcn.00404840
mov byte [esp + 0x848], 1
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0042e810
mov byte [esp + 0x848], 0
cmp dword [esp + 0x34], 8
jb 0x43e68e
push dword [esp + 0x20]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov word [esp + 0x20], ax
lea eax, [edi + 1]
mov dword [esp + 0x30], 0
inc edi
add ebp, 2
cmp edi, ebx
jb 0x43e643
mov esi, dword [esp + 0x38]
mov dword [esp + 0x848], 0xffffffff
test esi, esi
je 0x43e6cd
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, 1
jmp 0x43e5e2
call fcn.005060f8
int3
Function at 0x43ecf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x510c71
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 0x18], 1
cmp dword [esp + 0x30], 2
jae 0x43ed3d
push 0x53060c
call fcn.00404840
jmp 0x43ed79
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
cmp word [eax + 2], 0x3a
je 0x43ed60
push 0x53060c
mov ecx, esi
call fcn.00404840
jmp 0x43ed79
lea ecx, [esp + 0x20]
call fcn.0042fdc0
push 3
lea edx, [esp + 0x24]
mov ecx, esi
call fcn.0042fe10
add esp, 4
mov dword [esp + 8], 1
mov byte [esp + 0x18], 0
cmp dword [esp + 0x34], 8
jb 0x43ed9a
push dword [esp + 0x20]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov word [esp + 0x20], ax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x448b90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51206a
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x1c]
cmp edi, ecx
jae 0x448bff
mov eax, dword [esi]
cmp eax, edi
ja 0x448bff
sub edi, eax
mov eax, 0x2aaaaaab
imul edi
sar edx, 3
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ecx, dword [esi + 8]
jne 0x448be5
push ecx
mov ecx, esi
call fcn.00448f60
mov ecx, dword [esi + 4]
lea eax, [edi + edi*2]
shl eax, 4
add eax, dword [esi]
mov dword [esp + 0x14], 0
test ecx, ecx
je 0x448c21
push eax
jmp 0x448c1c
cmp ecx, dword [esi + 8]
jne 0x448c0c
push ecx
mov ecx, esi
call fcn.00448f60
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], 1
test ecx, ecx
je 0x448c21
push edi
call fcn.0044a090
mov dword [esp + 0x14], 0xffffffff
add dword [esi + 4], 0x30
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x44b930
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov dword [esi], eax
push 0x11c
push 0
mov byte [eax], 0
lea eax, [esp + 0x10]
push eax
call sub.MSVCR120.dll_memset
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x44b98d
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.00505b1e
add esp, 0x120
ret
Function at 0x458650
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x514746
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov byte [esi], 0
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov dword [esp + 0x18], eax
lea ecx, [esi + 0x1c]
push 0xffffffffffffffff
push eax
push dword [esp + 0x28]
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], eax
mov word [esi + 0x1c], ax
call fcn.00404c30
mov byte [esp + 0x18], 1
cmp dword [esi + 0x2c], 0
jne 0x4586cb
push 3
push 0x537aec
lea ecx, [esi + 0x1c]
call fcn.00405240
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x458b90
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x51481e
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov esi, ecx
push 1
mov dword [esp + 0xc], esi
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov dword [esi + 4], eax
push 0x11c
push 0
mov byte [eax], 0
lea eax, [esp + 0x18]
push eax
call sub.MSVCR120.dll_memset
add esp, 0x10
mov dword [esp + 0xc], 0x11c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x458c14
cmp dword [esp + 0x10], 6
mov ecx, dword [esi + 4]
setae dl
mov byte [ecx], dl
mov dword [esp + 0x134], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00505b1e
add esp, 0x130
ret
Function at 0x45c2d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
xor eax, eax
mov esi, ecx
push 0x20a
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x45c347
xor eax, eax
mov ecx, esi
mov word [esp + 0x20e], ax
lea eax, [esp + 4]
push eax
call fcn.00404910
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00505b1e
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
xor al, al
pop esi
xor ecx, esp
call fcn.00505b1e
add esp, 0x210
ret

Function at 0x45c540
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x514f28
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
and edi, 0xffffb1af
cmp dword [esi + 0x14], 8
jb 0x45c585
mov eax, dword [esi]
jmp 0x45c587
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x45c59c
mov al, 1
jmp 0x45c627
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x38], eax
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.0045dea0
test al, al
je 0x45c5f0
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push edi
cmovae eax, dword [esp + 0x18]
push eax
call ebx
test eax, eax
je 0x45c5f0
mov bl, 1
jmp 0x45c5f2
xor bl, bl
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x45c60e
push dword [esp + 0x14]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
mov al, bl
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00505b1e
add esp, 0x2c
ret
Function at 0x45c650
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x514f58
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x45c68c
mov eax, dword [esi]
jmp 0x45c68e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45c724
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.0045dea0
test al, al
je 0x45c6f1
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x45c70d
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00505b1e
add esp, 0x28
ret

Function at 0x45cef0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x515088
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x45cf2c
mov eax, dword [esi]
jmp 0x45cf2e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x45cf40
mov al, 1
jmp 0x45cfce
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.0045dea0
test al, al
je 0x45cf97
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x45cf97
mov bl, 1
jmp 0x45cf99
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x45cfb5
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00505b1e
add esp, 0x28
ret
Function at 0x45cff0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5150b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x45d02c
mov eax, dword [esi]
jmp 0x45d02e
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x45d042
mov al, 1
jmp 0x45d0d2
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.0045dea0
test al, al
je 0x45d09b
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x45d09b
mov bl, 1
jmp 0x45d09d
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x45d0b9
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00505b1e
add esp, 0x28
ret
Function at 0x45d100
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x515100
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x45d13e
mov eax, dword [esi]
jmp 0x45d140
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x45d154
mov al, 1
jmp 0x45d2cc
cmp dword [esi + 0x14], 8
jb 0x45d15e
mov eax, dword [esi]
jmp 0x45d160
mov eax, esi
push eax
lea ecx, [esp + 0x38]
call fcn.00404840
mov dword [esp + 0x58], 0
lea ecx, [esp + 0x34]
call fcn.0045c650
mov ebp, eax
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x48], 8
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x45d19b
push dword [esp + 0x34]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
cmp ebp, 0xffffffff
jne 0x45d1be
xor al, al
jmp 0x45d2cc
cmp dword [esi + 0x14], 8
jb 0x45d1c8
mov eax, dword [esi]
jmp 0x45d1ca
mov eax, esi
push eax
lea ecx, [esp + 0x38]
call fcn.00404840
mov dword [esp + 0x58], 1
xor edx, edx
lea ecx, [esp + 0x34]
call fcn.0045c540
test al, al
sete al
mov byte [esp + 0x1b], al
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x45d20c
push dword [esp + 0x34]
call ebx
mov al, byte [esp + 0x1f]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], cx
test al, al
jne 0x45d1b7
cmp dword [esi + 0x14], 8
jb 0x45d231
mov eax, dword [esi]
jmp 0x45d233
mov eax, esi
push eax
call edi
test eax, eax
jne 0x45d14d
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], eax
mov word [esp + 0x34], ax
mov dword [esp + 0x58], 2
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.0045dea0
test al, al
je 0x45d287
cmp dword [esp + 0x48], 8
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
push eax
call edi
test eax, eax
je 0x45d287
mov bl, 1
jmp 0x45d2b9
cmp dword [esi + 0x14], 8
jb 0x45d28f
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x20]
call fcn.00404840
mov byte [esp + 0x58], 3
mov edx, ebp
lea ecx, [esp + 0x1c]
call fcn.0045c540
mov byte [esp + 0x58], 2
lea ecx, [esp + 0x1c]
call fcn.004048e0
xor bl, bl
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.004048e0
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00505b1e
add esp, 0x48
ret
Function at 0x45d310
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x51513b
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x624], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x630]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x56909c]
mov dword [esp + 8], 0x56909c
test eax, eax
je 0x45d362
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x638], 0
cmp dword [0x568100], 0
je 0x45d3b0
cmp esi, 0x5680f0
je 0x45d38e
push 0xffffffffffffffff
push 0
push 0x5680f0
mov ecx, esi
call fcn.00404c30
mov dword [esp + 0x638], 0xffffffff
mov eax, dword [0x56909c]
test eax, eax
je 0x45d3a9
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x45d48b
xor eax, eax
push 0x20a
push eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x45d46e
xor eax, eax
push 0x410
push eax
mov word [esp + 0x21e], ax
mov word [esp + 0x220], ax
lea eax, [esp + 0x222]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x218]
push 0x208
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x45d45d
test eax, eax
je 0x45d45d
add eax, eax
cmp eax, 0x412
jae 0x45d458
xor ecx, ecx
mov word [esp + eax + 0x218], cx
lea eax, [esp + 0x218]
push eax
mov ecx, esi
call fcn.00404910
jmp 0x45d38e
call fcn.005060f8
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00404910
jmp 0x45d38e
mov dword [esp + 0x638], 0xffffffff
mov eax, dword [0x56909c]
test eax, eax
je 0x45d489
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x630]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.00505b1e
add esp, 0x634
ret
Function at 0x45d4c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
xor eax, eax
push esi
push edi
push 0x20a
push eax
mov word [esp + 0x14], ax
mov edi, edx
lea eax, [esp + 0x16]
mov esi, ecx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x45d504
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x45d50c
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x45d596
xor eax, eax
mov word [esp + 0x216], ax
cmp word [esp + 0xc], ax
jne 0x45d559
xor ecx, ecx
lea eax, [esp + 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00405240
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00505b1e
add esp, 0x210
ret
lea ecx, [esp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d560
sub ecx, edx
lea eax, [esp + 0xc]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00405240
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00505b1e
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00505b1e
add esp, 0x210
ret

Function at 0x45d790
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x45d7b8
mov eax, dword [esi]
jmp 0x45d7ba
mov eax, esi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 0x410
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x45d805
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00505b1e
add esp, 0x418
ret
cmp eax, 0x208
jae 0x45d7ed
xor eax, eax
mov ecx, esi
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.00404910
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.00505b1e
add esp, 0x418
ret

Function at 0x45e300
Capabilities:
Read file on windows

Disassembly:
mov edx, ecx
mov eax, dword [edx]
test eax, eax
jne 0x45e30d
xor al, al
ret 0xc
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x45e308
cmp dword [eax], 0xffffffff
je 0x45e308
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [edx]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
ret 0xc