joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426ca0
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 [0x4622c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x258], 0
push 0
push str.6d496ab554978b57b9492a
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x426cd3
jmp 0x426db5
lea eax, [ebp - 0x148]
push eax
push 0x4552f0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
jne 0x426cf9
jmp 0x426db5
cmp dword [ebp - 0x258], 0
jne 0x426da8
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 0x426d62
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x426d3e
jmp 0x426db5
mov ecx, dword [ebp - 0x25c]
and ecx, 1
jne 0x426d60
mov edx, dword [ebp - 0x25c]
or edx, 1
push edx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x426d72
push str.316b6abb44336e7f76df45cb273
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
jmp 0x426db5
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x426da3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x426da1
mov dword [ebp - 0x258], 1
jmp 0x426da3
jmp 0x426db5
jmp 0x426cf9
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a380
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4622c0]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x70]
push eax
push 0x37
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x426ed7
jmp 0x426f24
cmp dword [ebp - 4], 0xf7
jbe 0x426ef4
mov ecx, dword [ebp - 4]
push ecx
push str.3d05ebcff1dd7d4703b572432d7
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x426f24
push str.e2fdeeed0f4d1efd655d5a512a
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x426f1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x45536c
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x426f24
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044a380
mov esp, ebp
pop ebp
ret
Function at 0x427280
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4622c0]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x70]
push eax
push 5
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4272a7
jmp 0x4272f1
cmp dword [ebp - 4], 0x42
jbe 0x4272c1
mov ecx, dword [ebp - 4]
push ecx
push str.40f1a25bc74b51cb
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x4272f1
push str.56fb208f664f9809bacb68
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4272e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x45540c
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x4272f1
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044a380
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4622c0]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x70]
push eax
push 0xfe
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42732a
jmp 0x427374
cmp dword [ebp - 4], 0x11
jbe 0x427344
mov ecx, dword [ebp - 4]
push ecx
push str.8a59da89b593467d1ef99fb97
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x427374
push str.c09b6b959ccf9ffdc9bf
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x42736a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x455460
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x427374
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044a380
mov esp, ebp
pop ebp
ret
Function at 0x427390
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.9abf5fe595899b43
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4273c1
jmp 0x4274c2
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, 0x9a
xor edx, edx
div dword [ebp - 0x20]
imul eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, 0x8a
xor edx, edx
div dword [ebp - 0x20]
add edx, 0xa
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], 0xaa
mov edx, 0x5f
sub edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], 0
jmp 0x427416
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
jge 0x427436
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 0x42740d
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 0x427466
jmp 0x4274c2
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 0x42748a
jmp 0x4274c2
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 0x429200
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ddc4
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4622c0]
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 0x42923f
xor eax, eax
jmp 0x4293a8
push 2
lea ecx, [ebp - 0x90]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x74], esp
push 2
push 0x4557d8
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.00402c20
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.00403090
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.00404940
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x42931d
xor eax, eax
jmp 0x4293a8
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
call fcn.0041e120
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 1
je 0x42934f
jmp 0x429359
call fcn.00425e70
call fcn.004200a0
cmp dword [ebp - 0x10], 0
jne 0x429363
xor eax, eax
jmp 0x4293a8
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
push 0x18
push 0x4f
call fcn.0041ede0
add esp, 8
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0x30
je 0x429390
jmp 0x429392
jmp 0x42939c
call fcn.00423fe0
call fcn.00425e70
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.MSVCR90.dll_exit]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4296a0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
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 0x429737
mov eax, dword [ebp - 4]
mov dword [eax + 0x308], 1
xor eax, eax
jmp 0x4297b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42978d
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x308], 0
call fcn.0041e5a0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
je 0x429761
jmp 0x42976b
call fcn.00446ff0
call fcn.00427090
call fcn.0041e5a0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
je 0x42977b
jmp 0x429785
call fcn.004271f0
call fcn.004208c0
push 0
call dword [sym.imp.MSVCR90.dll_exit]
xor eax, eax
jmp 0x4297b5
mov esp, ebp
pop ebp
ret

Function at 0x429840
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ddf0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x1a4
mov eax, dword [0x4622c0]
xor eax, ebp
mov dword [ebp - 0x14], 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 - 0x1b0], ecx
push 0xb4
push 0x1b
call fcn.0041ede0
add esp, 8
mov dword [ebp - 0x1b4], eax
cmp dword [ebp - 0x1b4], 0x168
je 0x42989b
jmp 0x42989d
jmp 0x4298a7
call fcn.00420b60
call fcn.00424720
mov eax, 0x202
mov word [ebp - 0x1ac], ax
lea ecx, [ebp - 0x1a8]
push ecx
movzx edx, word [ebp - 0x1ac]
push edx
call sub.WS2_32.dll_WSAStartup
mov dword [ebp - 4], 0
call fcn.0041e840
jmp 0x4298ec
mov dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x42990a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044a380
mov esp, ebp
pop ebp
ret
Function at 0x429c40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44de99
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4622c0]
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 0x429ca4
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 0x429ce2
mov eax, dword [ebp - 0x14]
and eax, 0x10
je 0x429cc8
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 0x429ce2
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]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x429d00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dec0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x100c
call fcn.0044a4d0
mov eax, dword [0x4622c0]
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 [0x4536e3]
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 0x429d97
mov eax, 0x80004005
jmp 0x429e1c
cmp dword [ebp - 0x14], 0x1000
jb 0x429da7
mov eax, 0x80004005
jmp 0x429e1c
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__]
mov dword [ebp - 4], 0
call fcn.0041ecf0
jmp 0x429de5
mov dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x429e1c
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.0044a380
mov esp, ebp
pop ebp
ret
Function at 0x42b170
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e1c9
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.0044a4d0
mov eax, dword [0x4622c0]
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 [0x453783]
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 0x42b224
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 0x42b282
cmp dword [ebp - 0x1018], 0x1000
jb 0x42b252
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 0x42b282
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.0044a380
mov esp, ebp
pop ebp
ret 0x20
Function at 0x42e160
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 0x42e17f
mov eax, 0x80004005
jmp 0x42e211
cmp dword [ebp + 0xc], 0
jne 0x42e18f
mov eax, 0x80004005
jmp 0x42e211
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 0x42e202
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 0x42e1fb
mov eax, dword [ebp + 8]
mov dword [eax + 0x88], 0
mov eax, 0x80004005
jmp 0x42e211
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x84], 0
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x43db80
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4622c0]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x70]
push eax
push 0xbc
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43dbaa
jmp 0x43dbf7
cmp dword [ebp - 4], 0xa5
jbe 0x43dbc7
mov ecx, dword [ebp - 4]
push ecx
push str.d8c3454f838300bd
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x43dbf7
push str.fa0bd6c1e57b35950fcde36f
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x43dbed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x456334
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x43dbf7
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044a380
mov esp, ebp
pop ebp
ret
Function at 0x43dcf0
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.40170507bb1f6e05aa3
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x43dd21
jmp 0x43de25
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, 0xc5
xor edx, edx
div dword [ebp - 0x20]
imul eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, 0x8b
xor edx, edx
div dword [ebp - 0x20]
add edx, 0xf1
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], 0x18f
mov edx, 0x55
sub edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], 0
jmp 0x43dd79
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
jge 0x43dd99
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 0x43dd70
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 0x43ddc9
jmp 0x43de25
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 0x43dded
jmp 0x43de25
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 0x43de30
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.1a431fabac7b1fd525c36b
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x43de61
jmp 0x43df65
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, 0xf2
xor edx, edx
div dword [ebp - 0x20]
imul eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov eax, 5
xor edx, edx
div dword [ebp - 0x20]
add edx, 0xf4
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], 0xe3
mov edx, 0x72
sub edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], 0
jmp 0x43deb9
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
jge 0x43ded9
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 0x43deb0
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 0x43df09
jmp 0x43df65
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 0x43df2d
jmp 0x43df65
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