joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451364
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x2d8bf38], 0
push ebx
push esi
mov esi, 0x2d8bf40
jne 0x451390
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x2d8bf58], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x2d8bf38], 1
push dword [0x2d8bf58]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x45142d
push 0x14
push 8
push dword [0x2d8ae4c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x451457
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x2d8bf3c]
test eax, eax
je 0x4513d2
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x2d8bf3c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x45145c
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x2d8bf58]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x2d8ae4c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x451457
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x451939
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x2d8ae4c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x2d8c02c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x2d8c030], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.00454535
mov dword [esi + 0x58], 0x45254c
mov eax, esi
mov dword [esi + 0x5c], 0x452598
mov dword [esi + 0x10], fcn.004520ed
mov dword [esi + 0x30], 0x451fdf
mov dword [esi + 0x64], 0x452622
mov dword [esi + 0x60], 0x4525da
mov dword [esi + 0x34], 0x451c8f
mov dword [esi + 0x24], 0x451c66
mov dword [esi + 0x28], 0x451c3b
mov dword [esi + 0x2c], 0x451b8d
mov dword [esi + 0x44], 0x452352
pop esi
ret 4
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0x40d2ac
call fcn.00401967
add eax, 0x40
push eax
call fcn.00401a43
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x407246
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x412280]
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.00402063
mov dword [ebp - 0x14], eax
cmp dword [0x413e40], esi
jne 0x407339
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4072c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x407419
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x407419
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407419
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x413e40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x413e44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x413e48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x413e50], eax
test eax, eax
je 0x407336
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x413e4c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40735e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x407351
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x407373
push 4
pop eax
jmp 0x40741b
cmp dword [ebp - 0x14], esi
je 0x407373
push dword [0x413e40]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x407358
mov eax, dword [0x413e4c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4073d1
cmp dword [0x413e50], edi
je 0x4073d1
push eax
call ebx
push dword [0x413e50]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4073d1
test eax, eax
je 0x4073d1
call ecx
test eax, eax
je 0x4073c6
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 0x4073c6
test byte [ebp - 8], 1
jne 0x4073d1
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x407401
mov eax, dword [0x413e44]
cmp eax, edi
je 0x4073fe
push eax
call ebx
test eax, eax
je 0x4073fe
call eax
mov esi, eax
test esi, esi
je 0x4073fe
mov eax, dword [0x413e48]
cmp eax, edi
je 0x4073fe
push eax
call ebx
test eax, eax
je 0x4073fe
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x413e40]
call ebx
test eax, eax
je 0x407419
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40741b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401e1b
mov esp, ebp
pop ebp
ret
Function at 0x100046cb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], ecx
push 0
push 0
push dword [ebp - 8]
push 0x100046ee
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
leave
ret

Function at 0x10004705
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], ecx
push 0
push 0
mov eax, dword [ebp - 8]
push dword [eax]
push 0x1000472a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
leave
ret
Function at 0x1000a8a0
Capabilities:
Create http request

Disassembly:
mov eax, 0x10014bf1
call fcn.10013750
sub esp, 0x38
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x24
call fcn.10009e25
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x1000a904
lea eax, [ebp - 0x1c]
push eax
call fcn.1000c6e0
pop ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
and dword [ebp - 4], 0
push dword [ebp - 0x44]
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x24
call fcn.10009e96
lea ecx, [ebp - 0x28]
call fcn.10009e47
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10009e47
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x3c]
add ecx, 0x24
call fcn.10009d0f
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1000a93d
lea ecx, [ebp - 0x38]
call fcn.1000b052
push 0x1001a0f8
lea eax, [ebp - 0x38]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x1000a977
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
push 1
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 0x30]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax + 0xc]
mov eax, dword [ebp - 0x18]
push dword [eax + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000a9c3
lea ecx, [ebp - 0x14]
call fcn.1000b052
push 0x1001a0f8
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [eax + 8], ecx
leave
ret 4
Function at 0x1000adf4
Capabilities:
Read data from internet
Receive data

Disassembly:
mov eax, 0x10014c91
call fcn.10013750
mov eax, 0x13e0
call fcn.10013970
mov dword [ebp - 0x13e8], ecx
and byte [ebp - 0x10], 0
mov al, byte [ebp - 0x13bc]
mov byte [ebp - 0x13b4], al
push 0
lea ecx, [ebp - 0x13b4]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
and dword [ebp - 4], 0
and dword [ebp - 0x13a0], 0
push 1
pop eax
test eax, eax
je 0x1000aeca
lea eax, [ebp - 0x139c]
push eax
push 0x1388
lea eax, [ebp - 0x1398]
push eax
mov eax, dword [ebp - 0x13e8]
push dword [eax + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x13b8], eax
cmp dword [ebp - 0x13b8], 1
je 0x1000ae8f
lea ecx, [ebp - 0x13cc]
call fcn.1000b052
push 0x1001a0f8
lea eax, [ebp - 0x13cc]
push eax
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x139c], 0
jne 0x1000ae9a
jmp 0x1000aeca
mov eax, dword [ebp - 0x13a0]
add eax, dword [ebp - 0x139c]
mov dword [ebp - 0x13a0], eax
push dword [ebp - 0x139c]
lea eax, [ebp - 0x1398]
push eax
lea ecx, [ebp - 0x13b4]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
jmp 0x1000ae37
push dword [ebp - 0x13a0]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x13d0], eax
mov eax, dword [ebp - 0x13d0]
mov dword [ebp - 0x13a4], eax
cmp dword [ebp - 0x13b0], 0
jne 0x1000aefe
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [ebp - 0x13ec], eax
jmp 0x1000af0a
mov eax, dword [ebp - 0x13b0]
mov dword [ebp - 0x13ec], eax
push dword [ebp - 0x13a0]
push dword [ebp - 0x13ec]
push dword [ebp - 0x13a4]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x13a0]
mov dword [eax], ecx
mov eax, dword [ebp - 0x13a4]
mov dword [ebp - 0x13d4], eax
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x13b4]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp - 0x13d4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1000b2a4
Capabilities:
Get hostname

Disassembly:
mov eax, 0x10014d6c
call fcn.10013750
sub esp, 0x34
and dword [ebp - 0x40], 0
push 0x4e20
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x2710
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp eax, 1
je 0x1000b307
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
call fcn.1001373b
pop ecx
lea ecx, [ebp - 0x38]
call fcn.1000b052
push 0x1001a0f8
lea eax, [ebp - 0x38]
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.100098df
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x3c]
call fcn.1001373b
pop ecx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000999f
mov eax, dword [ebp - 0x40]
or al, 1
mov dword [ebp - 0x40], eax
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.10009e47
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x1000e4a5
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10015795
call fcn.10013750
sub esp, 0x48
and dword [ebp - 0x44], 0
push 0x800
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov al, byte [ebp - 0x48]
mov byte [ebp - 0x1c], al
mov al, byte [ebp - 0x4c]
mov byte [ebp - 0x1b], al
and byte [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
call fcn.100036b0
mov dword [ebp - 4], 1
push 0x800
push 0
push dword [ebp - 0x24]
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x24]
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jbe 0x1000e582
cmp dword [ebp - 0x20], 0x400
jae 0x1000e582
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
and dword [ebp - 0x2c], 0
jmp 0x1000e52e
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x20]
jae 0x1000e582
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
movzx eax, word [ecx + eax*2]
test eax, eax
jne 0x1000e580
push dword [ebp - 0x28]
lea ecx, [ebp - 0x3c]
call fcn.100098df
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x54]
lea ecx, [ebp - 0x1c]
call fcn.10008c2b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.10009e47
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x28], eax
jmp 0x1000e527
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
call fcn.1001373b
pop ecx
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov byte [ecx], al
mov al, byte [ebp - 0x1b]
mov ecx, dword [ebp + 8]
mov byte [ecx + 1], al
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x14]
mov byte [eax + 8], cl
mov ecx, dword [ebp + 8]
call fcn.100036b0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.100035ce
mov eax, dword [ebp - 0x44]
or al, 1
mov dword [ebp - 0x44], eax
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100033c7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x1000e5e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
cmp dword [ebp + 0x10], 0
jne 0x1000e604
lea ecx, [ebp - 0x1c]
call fcn.1000b052
push 0x1001a0f8
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0
push dword [ebp + 8]
push 0x1001ec34
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000e636
lea ecx, [ebp - 0x2c]
call fcn.1000b052
push 0x1001a0f8
lea eax, [ebp - 0x2c]
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp - 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000e661
lea ecx, [ebp - 0x3c]
call fcn.1000b052
push 0x1001a0f8
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000e689
lea ecx, [ebp - 0x4c]
call fcn.1000b052
push 0x1001a0f8
lea eax, [ebp - 0x4c]
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp - 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x1000e9a5
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1001582d
call fcn.10013750
sub esp, 0x2c
mov dword [ebp - 0x38], ecx
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x34], eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1000ea0e
push 0x1001ed54
lea ecx, [ebp - 0x30]
call fcn.10009909
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x24]
call fcn.1000ef2e
push 0x1001c708
lea eax, [ebp - 0x24]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8

Function at 0x1000ea99
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x10015855
call fcn.10013750
sub esp, 0x2c
mov dword [ebp - 0x38], ecx
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x34], eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1000eb02
push 0x1001ed54
lea ecx, [ebp - 0x30]
call fcn.10009909
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x24]
call fcn.1000ef2e
push 0x1001c708
lea eax, [ebp - 0x24]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1000eb46
Capabilities:
Get file size

Disassembly:
mov eax, 0x10015869
call fcn.10013750
sub esp, 0x28
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x30], eax
push 0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1000eba1
push 0x1001ed54
lea ecx, [ebp - 0x2c]
call fcn.10009909
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x20]
call fcn.1000ef2e
push 0x1001c708
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x1000ebb0
Capabilities:
Check if file exists
Set file attributes

Disassembly:
mov eax, 0x1001587d
call fcn.10013750
sub esp, 0x20
mov ecx, dword [ebp + 8]
call fcn.10009e25
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x1000ebd3
jmp 0x1000ec2d
push 0x80
mov ecx, dword [ebp + 8]
call fcn.10009d0f
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1000ec2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
je 0x1000ec2d
push 0x1001ed54
lea ecx, [ebp - 0x2c]
call fcn.10009909
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.1000ef2e
push 0x1001c708
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x1000ec39
Capabilities:
Move file

Disassembly:
mov eax, 0x100158be
call fcn.10013750
sub esp, 0x70
push dword [ebp + 8]
call fcn.1000ebb0
pop ecx
push dword [ebp + 0xc]
call fcn.1000ebb0
pop ecx
push 9
mov ecx, dword [ebp + 0xc]
call fcn.10009d0f
push eax
mov ecx, dword [ebp + 8]
call fcn.10009d0f
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1000ed29
push 0x1001ed54
lea ecx, [ebp - 0x28]
call fcn.10009909
and dword [ebp - 4], 0
push str._to
lea ecx, [ebp - 0x34]
call fcn.10009909
mov byte [ebp - 4], 1
push str.moving
lea ecx, [ebp - 0x40]
call fcn.10009909
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10009ecd
add esp, 0xc
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x6c]
lea eax, [ebp - 0x58]
push eax
call fcn.10009ecd
add esp, 0xc
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 4
push dword [ebp - 0x74]
lea eax, [ebp - 0x64]
push eax
call fcn.10009ecd
add esp, 0xc
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 5
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x1c]
call fcn.1000ef2e
push 0x1001c708
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x1000ed35
Capabilities:
Move file

Disassembly:
mov eax, 0x100158fe
call fcn.10013750
sub esp, 0x74
push dword [ebp + 8]
call fcn.1000ebb0
pop ecx
push dword [ebp + 0xc]
call fcn.1000ebb0
pop ecx
mov ecx, dword [ebp + 0xc]
call fcn.10009e25
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x1000ed6e
and dword [ebp - 0x68], 0
jmp 0x1000ed79
mov ecx, dword [ebp + 0xc]
call fcn.10009d0f
mov dword [ebp - 0x68], eax
push 0xd
push dword [ebp - 0x68]
mov ecx, dword [ebp + 8]
call fcn.10009d0f
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1000ee44
push 0x1001ed54
lea ecx, [ebp - 0x28]
call fcn.10009909
and dword [ebp - 4], 0
push str._to
lea ecx, [ebp - 0x34]
call fcn.10009909
mov byte [ebp - 4], 1
push str.moving
lea ecx, [ebp - 0x40]
call fcn.10009909
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10009ecd
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x70]
lea eax, [ebp - 0x58]
push eax
call fcn.10009ecd
add esp, 0xc
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 4
push dword [ebp - 0x78]
lea eax, [ebp - 0x64]
push eax
call fcn.10009ecd
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 5
push dword [ebp - 0x80]
lea ecx, [ebp - 0x1c]
call fcn.1000ef2e
push 0x1001c708
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.10009d0f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], 0xffffffff
setne al
leave
ret

Function at 0x1000ee71
Capabilities:
Delete file

Disassembly:
mov eax, 0x10015923
call fcn.10013750
sub esp, 0x3c
mov ecx, dword [ebp + 8]
call fcn.10009d0f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000eef0
push 0x1001ed54
lea ecx, [ebp - 0x28]
call fcn.10009909
and dword [ebp - 4], 0
push str.deleting
lea ecx, [ebp - 0x34]
call fcn.10009909
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10009ecd
add esp, 0xc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
push dword [ebp - 0x48]
lea ecx, [ebp - 0x1c]
call fcn.1000ef2e
push 0x1001c708
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret