joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427cf0
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4632c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x258], 0
push 0
push str.7fb7ffa5ae313de9c98bcfa
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x427d23
jmp 0x427e05
lea eax, [ebp - 0x148]
push eax
push 0x45661c
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
jne 0x427d49
jmp 0x427e05
cmp dword [ebp - 0x258], 0
jne 0x427df8
push 0
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x427db2
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x427d8e
jmp 0x427e05
mov ecx, dword [ebp - 0x25c]
and ecx, 1
jne 0x427db0
mov edx, dword [ebp - 0x25c]
or edx, 1
push edx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x427dc2
push str.0c2bb93d8d870091d09b7a67ef1
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
jmp 0x427e05
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x427df3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x427df1
mov dword [ebp - 0x258], 1
jmp 0x427df3
jmp 0x427e05
jmp 0x427d49
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b84a
mov esp, ebp
pop ebp
ret

Function at 0x427e90
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4632c0]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x70]
push eax
push 0xce
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x427eba
jmp 0x427f04
cmp dword [ebp - 4], 0x79
jbe 0x427ed4
mov ecx, dword [ebp - 4]
push ecx
push str.9fe91455698f13c15
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x427f04
push str.44abb13ba175afe7e491ae730
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x427efa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x45669c
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x427f04
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044b84a
mov esp, ebp
pop ebp
ret
Function at 0x427f20
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4632c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x258], 0
push 0
push str.9a258cb1bcef8f6ffd9d53eff
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x427f53
jmp 0x428035
lea eax, [ebp - 0x148]
push eax
push 0x4566d8
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
jne 0x427f79
jmp 0x428035
cmp dword [ebp - 0x258], 0
jne 0x428028
push 0
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x427fe2
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x427fbe
jmp 0x428035
mov ecx, dword [ebp - 0x25c]
and ecx, 1
jne 0x427fe0
mov edx, dword [ebp - 0x25c]
or edx, 1
push edx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x427ff2
push str.1c3366550c7b97c3da
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
jmp 0x428035
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x428023
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x428021
mov dword [ebp - 0x258], 1
jmp 0x428023
jmp 0x428035
jmp 0x427f79
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b84a
mov esp, ebp
pop ebp
ret
Function at 0x428130
Capabilities:
Get file size
Get system information on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push str.ac4ddb5bfb0d2a3bb34f1017de0b
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x428161
jmp 0x428262
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], ecx
mov eax, 0x2e
xor edx, edx
div dword [ebp - 0x20]
imul eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, 0x96
xor edx, edx
div dword [ebp - 0x20]
add edx, 0x14
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], 0x9b
mov edx, 0xcb
sub edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], 0
jmp 0x4281b6
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
jge 0x4281d6
push 0
lea edx, [ebp - 0x24]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4281ad
push 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 4
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x428206
jmp 0x428262
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 0
push 0xf001f
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x42822a
jmp 0x428262
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
mov esp, ebp
pop ebp
ret
Function at 0x429e30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f0e4
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4632c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x94], ecx
mov eax, dword [sym.imp.MSVCR90.dll___argc]
cmp dword [eax], 3
je 0x429e6f
xor eax, eax
jmp 0x429fb1
push 2
lea ecx, [ebp - 0x90]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x74], esp
push 2
push 0x456a48
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x70]
call fcn.004034e0
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xa0]
call fcn.00403a60
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xa8]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov ecx, dword [sym.imp.MSVCR90.dll___argv]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.MSVCR90.dll__strnicmp]
add esp, 0xc
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x15], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004050e0
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x429f2e
xor eax, eax
jmp 0x429fb1
push 0
push 0
mov edx, dword [sym.imp.MSVCR90.dll___argv]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_strtoul]
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x429f75
xor eax, eax
jmp 0x429fb1
mov edx, dword [ebp - 0x10]
imul edx, edx, 3
mov eax, dword [ebp - 0x10]
lea ecx, [edx + eax*2 + 0x15]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.MSVCR90.dll_exit]
call fcn.00444bb0
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 1
je 0x429fa5
jmp 0x429faf
call fcn.00420580
call fcn.00425b60
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x42a250
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x180
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x17c], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x17c], 0
jne 0x42a297
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 1
xor eax, eax
jmp 0x42a2ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42a2d8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x308], 0
push 0x56
call fcn.00401060
add esp, 4
cmp eax, 0x83
jne 0x42a2d0
call fcn.0041e680
test eax, eax
je 0x42a2d0
call fcn.00420940
push 0
call dword [sym.imp.MSVCR90.dll_exit]
xor eax, eax
jmp 0x42a2ea
mov esp, ebp
pop ebp
ret

Function at 0x42a360
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x4632c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1a0], ecx
mov eax, 0x202
mov word [ebp - 0x19c], ax
push 0xe4
call fcn.00401060
add esp, 4
cmp eax, 0x158
jne 0x42a39b
jmp 0x42a3a9
call fcn.004226b0
call fcn.0043fdb0
jmp 0x42a3a9
lea ecx, [ebp - 0x198]
push ecx
movzx edx, word [ebp - 0x19c]
push edx
call sub.WS2_32.dll_WSAStartup
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b84a
mov esp, ebp
pop ebp
ret
Function at 0x42a670
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e239
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4632c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x42a6d4
mov dword [ebp - 0x18], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x18]
jmp 0x42a731
mov eax, dword [ebp - 0x14]
and eax, 0x10
je 0x42a6f8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x1c]
jmp 0x42a731
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x20]
jmp 0x42a731
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x42a750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f1a0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x100c
call fcn.0044b8d0
mov eax, dword [0x4632c0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x101c], ecx
mov dword [ebp - 0x14], 0
mov al, byte [0x4546ea]
mov byte [ebp - 0x1018], al
push 0xfff
push 0
lea ecx, [ebp - 0x1017]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [ebp - 0x1018]
push edx
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x42a7d6
mov eax, 0x80004005
jmp 0x42a850
cmp dword [ebp - 0x14], 0x1000
jb 0x42a807
mov eax, 0x80004005
jmp 0x42a850
lea eax, [ebp - 0x1018]
push eax
mov ecx, dword [ebp - 0x101c]
add ecx, 0x19c
call dword [sym.imp.MSVCP90.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__::operator_char_const__]
xor eax, eax
jmp 0x42a850
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0044b84a
mov esp, ebp
pop ebp
ret
Function at 0x42bb80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f4a9
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.0044b8d0
mov eax, dword [0x4632c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1028], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1018], 0
mov al, byte [0x4546ee]
mov byte [ebp - 0x1014], al
push 0xfff
push 0
lea ecx, [ebp - 0x1013]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x1000
lea edx, [ebp - 0x1014]
push edx
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x1018], eax
cmp dword [ebp - 0x1018], 0
jne 0x42bc34
mov dword [ebp - 0x101c], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x101c]
jmp 0x42bc92
cmp dword [ebp - 0x1018], 0x1000
jb 0x42bc62
mov dword [ebp - 0x1020], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x1020]
jmp 0x42bc92
lea eax, [ebp - 0x1014]
push eax
mov ecx, dword [ebp + 0x24]
call dword [sym.imp.MSVCP90.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__::operator_char_const__]
mov dword [ebp - 0x1024], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x1024]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b84a
mov esp, ebp
pop ebp
ret 0x20
Function at 0x42ec60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x88], 0
jne 0x42ec7f
mov eax, 0x80004005
jmp 0x42ed11
cmp dword [ebp + 0xc], 0
jne 0x42ec8f
mov eax, 0x80004005
jmp 0x42ed11
mov ecx, dword [ebp + 8]
add ecx, 0x58
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x58
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x20
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42ed02
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x84]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x84], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x84], 3
jle 0x42ecfb
mov eax, dword [ebp + 8]
mov dword [eax + 0x88], 0
mov eax, 0x80004005
jmp 0x42ed11
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x84], 0
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x43e910
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4632c0]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x70]
push eax
push 0x4a
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43e937
jmp 0x43e984
cmp dword [ebp - 4], 0x9b
jbe 0x43e954
mov ecx, dword [ebp - 4]
push ecx
push str.93a15e85859310212cb3f
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x43e984
push str.ed81113fa159c1f124d987f7ad73
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x43e97a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4575a8
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x43e984
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044b84a
mov esp, ebp
pop ebp
ret

Function at 0x43e9a0
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4632c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x258], 0
push 0
push str.60ebf60750754cc7aa59b9ed32abf
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x43e9d3
jmp 0x43eab5
lea eax, [ebp - 0x148]
push eax
push 0x4575e8
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
jne 0x43e9f9
jmp 0x43eab5
cmp dword [ebp - 0x258], 0
jne 0x43eaa8
push 0
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x43ea62
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x43ea3e
jmp 0x43eab5
mov ecx, dword [ebp - 0x25c]
and ecx, 1
jne 0x43ea60
mov edx, dword [ebp - 0x25c]
or edx, 1
push edx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x43ea72
push str.c423d4cf3613444b3f
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
jmp 0x43eab5
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43eaa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x43eaa1
mov dword [ebp - 0x258], 1
jmp 0x43eaa3
jmp 0x43eab5
jmp 0x43e9f9
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b84a
mov esp, ebp
pop ebp
ret
Function at 0x43ec20
Capabilities:
Get file size
Get system information on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push str.5f977271f881e8dbd50d8a
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x43ec51
jmp 0x43ed52
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], ecx
mov eax, 0x2e
xor edx, edx
div dword [ebp - 0x20]
imul eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, 0x13
xor edx, edx
div dword [ebp - 0x20]
add edx, 0xf
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], 0x192
mov edx, 0x37
sub edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], 0
jmp 0x43eca6
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
jge 0x43ecc6
push 0
lea edx, [ebp - 0x24]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x43ec9d
push 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 4
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x43ecf6
jmp 0x43ed52
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 0
push 0xf001f
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x43ed1a
jmp 0x43ed52
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
mov esp, ebp
pop ebp
ret