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

Disassembly:
push 0xffffffffffffffff
push 0x464cfa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebx
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.00413700
mov cl, byte [esp + 0x38]
mov edi, 0x47585c
mov byte [esp + 8], cl
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x30], ebx
push ecx
push 0x47585c
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
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__::assign_char_const___unsigned_int_]
sub esp, 0x10
lea eax, [esp + 0x18]
mov edx, esp
mov dword [esp + 0x48], esp
push 1
push eax
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 1
call fcn.00413ac0
call fcn.004028d0
add esp, 0x10
cmp al, bl
mov eax, dword [esp + 0xc]
mov byte [esp + 0x30], bl
sete byte [esp + 0x38]
cmp eax, ebx
je 0x402d58
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x402d4f
cmp al, 0xff
je 0x402d4f
dec al
mov byte [ecx], al
jmp 0x402d58
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp byte [esp + 0x38], bl
je 0x402d64
mov ecx, dword [esp + 0x1c]
jmp 0x402dbc
push 1
lea ecx, [esp + 0xc]
push 0x2f
push ecx
lea ecx, [esp + 0x24]
call fcn.00413850
push eax
mov byte [esp + 0x34], 2
call fcn.00402a00
add esp, 4
test al, al
mov eax, dword [esp + 0xc]
sete byte [esp + 0x38]
cmp eax, ebx
je 0x402db0
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x402da7
cmp al, 0xff
je 0x402da7
dec al
mov byte [ecx], al
jmp 0x402db0
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, byte [esp + 0x38]
mov ecx, dword [esp + 0x1c]
cmp al, bl
je 0x402e00
cmp ecx, ebx
je 0x402ded
mov al, byte [ecx - 1]
cmp al, bl
je 0x402de3
cmp al, 0xff
je 0x402de3
dec al
mov byte [ecx - 1], al
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop ebx
add esp, 0x2c
ret
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop ebx
add esp, 0x2c
ret
cmp ecx, ebx
je 0x402e31
mov al, byte [ecx - 1]
cmp al, bl
je 0x402e27
cmp al, 0xff
je 0x402e27
dec al
mov byte [ecx - 1], al
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop ebx
add esp, 0x2c
ret
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret
Function at 0x4053c0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4651d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0
call fcn.004150b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.004150b0
lea eax, [esp + 0xc]
lea edx, [esp + 0x30]
push eax
mov byte [esp + 0x2c], 2
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esi, 0x234
push esi
call fcn.0040c1c0
add esp, 0x18
test eax, eax
jne 0x405465
lea eax, [esp + 0xc]
push eax
call fcn.00405320
mov esi, eax
add esp, 4
test esi, esi
je 0x405465
mov edi, dword [esp + 0x40]
push 0
push 0x80
push 0
mov ecx, edi
call sub.MFC42.DLL_CWnd::ModifyStyle
mov ecx, dword [edi + 0x20]
push esi
push 0
push 0xf7
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.00415140
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.00415140
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4054b6
mov al, byte [ecx - 1]
test al, al
je 0x4054ac
cmp al, 0xff
je 0x4054ac
dec al
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x24
ret 0x14
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x20]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x24
ret 0x14

Function at 0x406000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x465308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push str.Binary
push 0x87
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.00418a20
push 0xffffffffffffffff
push esi
push 0
mov dword [esp + 0x54], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ecx
mov esi, esp
mov dword [esp + 0x10], esp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, esi
call fcn.004150e0
lea ecx, [esp + 0x14]
call fcn.00419460
cmp dword [esp + 0x3c], 0xa
jb 0x4060b6
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40608f
mov eax, dword [eax]
jmp 0x406091
xor eax, eax
mov edx, dword [eax + 6]
add eax, 6
mov ecx, 0x46a750
cmp edx, dword [ecx]
jne 0x4060b6
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0xc]
push eax
call fcn.00418a50
test eax, eax
jne 0x4060b6
xor esi, esi
jmp 0x4060bb
mov esi, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x48], 0xffffffff
call fcn.00418a40
mov ecx, dword [esp + 0x40]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x44
ret
Function at 0x406420
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4653a9
push eax
mov dword fs:[0], esp
sub esp, 0x84
lea eax, [esp]
push ebx
push esi
mov esi, ecx
push eax
lea ecx, [esi + 0x244]
call fcn.00408f70
mov eax, dword [eax + 0x34]
xor ebx, ebx
cmp eax, ebx
jne 0x40643d
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 ecx, dword [esi + 0x20]
push 5
push ebx
push ebx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
lea ecx, [esp + 0x7c]
mov dword [esp + 0x98], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 4
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 [esp + 0x4c]
cmp eax, ebx
je 0x4064a1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x406498
cmp al, 0xff
je 0x406498
dec al
mov byte [ecx], al
jmp 0x4064a1
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], ebx
cmp eax, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
je 0x4064d2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4064c9
cmp al, 0xff
je 0x4064c9
dec al
mov byte [ecx], al
jmp 0x4064d2
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebx
cmp eax, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
je 0x406503
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4064fa
cmp al, 0xff
je 0x4064fa
dec al
mov byte [ecx], al
jmp 0x406503
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
cmp eax, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
je 0x406534
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40652b
cmp al, 0xff
je 0x40652b
dec al
mov byte [ecx], al
jmp 0x406534
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], ebx
cmp eax, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
je 0x40657a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x406571
cmp al, 0xff
je 0x406571
dec al
pop esi
mov byte [ecx], al
pop ebx
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
add esp, 0x90
ret
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x8c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret
Function at 0x407bb0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
push 2
call sub.MFC42.DLL_CDialog::EndDialog
mov eax, dword [esi + 0x2e0]
test eax, eax
jne 0x407bc9
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]
push 5
push 0
push 0
push eax
mov eax, dword [esi + 0x20]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
ret
Function at 0x408280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4658fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
xor ebx, ebx
lea esi, [edi + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], esi
push 1
lea ecx, [esi + 0x70]
mov byte [esp + 0x20], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esi + 0x60]
mov byte [esp + 0x20], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esi + 0x40]
mov byte [esp + 0x20], 4
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esi + 0x30]
mov byte [esp + 0x20], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esi + 0x20]
mov byte [esp + 0x20], 2
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 [esi + 0x14]
cmp eax, ebx
je 0x408322
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x408319
cmp al, 0xff
je 0x408319
dec al
mov byte [ecx], al
jmp 0x408322
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40834f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x408346
cmp al, 0xff
je 0x408346
dec al
mov byte [ecx], al
jmp 0x40834f
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x20], 0xffffffff
mov ecx, dword [eax]
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.0040cf20
mov ecx, dword [edi + 4]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xc]
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
mov eax, dword [0x47b764]
dec eax
mov dword [0x47b764], eax
jne 0x4083b1
mov edx, dword [0x47b760]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [0x47b760], ebx
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x409170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x465a39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call dword [sym.imp.MSVCP60.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_void_]
mov ebx, dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
lea ecx, [esp + 0x10]
mov dword [esi + 0x34], eax
call ebx
mov eax, dword [sym.imp.MSVCP60.dll_class_std::locale::_Locimp__std::locale::_Locimp::_Global]
lea ecx, [esp + 0xc]
mov edi, dword [eax]
call ebx
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x4091bf
inc eax
mov dword [edi + 4], eax
mov edi, dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
lea ecx, [esp + 0xc]
call edi
lea ecx, [esp + 0x10]
call edi
lea ecx, [esi + 4]
lea edx, [esi + 0x14]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x18]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], ecx
lea eax, [esi + 8]
lea edx, [esi + 0x24]
lea ecx, [esi + 0x28]
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], ecx
mov dword [eax], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov ecx, dword [esi + 0xc]
mov dword [ecx], 0
mov edx, dword [esi + 0x1c]
mov dword [edx], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov ecx, dword [esp + 0x28]
push 0
push 0
push 0
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
mov dword [esi], 0x46ab00
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::strstreambuf::_Init_int__char___char___int_]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4110d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4665e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
mov eax, dword [0x47b788]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], ebx
jne 0x411127
push 0x34
call sub.MFC42.DLL_operatornew
mov dword [eax + 4], ebx
mov dword [eax + 0x30], 1
mov dword [0x47b788], eax
mov dword [eax], ebx
mov eax, dword [0x47b788]
add esp, 4
mov dword [eax + 8], ebx
mov edi, dword [0x47b78c]
push 0x34
inc edi
mov dword [0x47b78c], edi
mov edi, dword [0x47b788]
call sub.MFC42.DLL_operatornew
mov dword [eax + 4], edi
mov dword [eax + 0x30], ebx
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [eax], eax
mov esi, dword [esi + 4]
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esi + 8], esi
mov dword [esp + 0x18], 0xffffffff
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4136b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
push esi
mov esi, dword [esp + 8]
not eax
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
mov edx, eax
dec eax
test edx, edx
je 0x4136ef
push ebx
push edi
lea edi, [eax + 1]
mov eax, dword [ecx]
xor ebx, ebx
mov bl, byte [esi]
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x475d5c]
xor edx, eax
inc esi
dec edi
mov dword [ecx], edx
jne 0x4136cb
pop edi
pop ebx
mov eax, dword [ecx]
pop esi
not eax
mov dword [ecx], eax
ret 8
Function at 0x413cd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x466a23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov al, byte [esp + 0x44]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 8], esi
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov cl, byte [esp + 0x4c]
mov dword [esp + 0x44], ebx
mov byte [esi + 0x10], cl
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dl, byte [esp + 0x4c]
mov dword [esi + 0x24], ebx
mov byte [esi + 0x20], dl
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x4c], 2
call fcn.004147e0
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 4
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 [esp + 0x20]
cmp eax, ebx
je 0x413d71
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x413d68
cmp al, 0xff
je 0x413d68
dec al
mov byte [ecx], al
jmp 0x413d71
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ebx
cmp eax, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
je 0x413da2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x413d99
cmp al, 0xff
je 0x413d99
dec al
mov byte [ecx], al
jmp 0x413da2
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x4143d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
xor esi, esi
push eax
push 0x104
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4143fe
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ecx
jmp 0x414406
mov dword [esp + 0x10], 0x47615c
mov ebp, dword [esp + 0x120]
mov dl, byte [esp + 0x17]
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp], dl
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x414438
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x414469
mov al, byte [ecx - 1]
test al, al
je 0x414469
cmp al, 0xff
je 0x414469
cmp ebx, esi
jne 0x41449a
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
cmp ebx, esi
jne 0x414484
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x414490
cmp eax, ebx
jae 0x4144a3
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov esi, dword [esp + 0x10]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
pop edi
mov dword [ebp + 8], ebx
pop esi
mov byte [ecx + ebx], 0
pop ebp
pop ebx
add esp, 0x10c
ret

Function at 0x414bd0
Capabilities:
Create directory

Disassembly:
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]
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x414be1
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
test edi, edi
je 0x414c14
mov al, byte [edi - 1]
test al, al
je 0x414c0a
cmp al, 0xff
je 0x414c0a
dec al
mov byte [edi - 1], al
mov eax, esi
pop edi
pop esi
ret
dec edi
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
pop edi
pop esi
ret
Function at 0x414c20
Capabilities:
Delete file

Disassembly:
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]
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x414c31
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
test edi, edi
je 0x414c62
mov al, byte [edi - 1]
test al, al
je 0x414c58
cmp al, 0xff
je 0x414c58
dec al
mov byte [edi - 1], al
mov eax, esi
pop edi
pop esi
ret
dec edi
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
pop edi
pop esi
ret

Function at 0x414c70
Capabilities:
Move file

Disassembly:
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]
push ebx
mov ebx, dword [esp + 0x1c]
push esi
test ebx, ebx
mov ecx, eax
je 0x414c83
mov ecx, ebx
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x414c8e
mov eax, edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
test edi, edi
je 0x414cbd
mov al, byte [edi - 1]
test al, al
je 0x414cb3
cmp al, 0xff
je 0x414cb3
dec al
mov byte [edi - 1], al
jmp 0x414cbd
dec edi
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
test ebx, ebx
pop edi
je 0x414ce1
mov al, byte [ebx - 1]
test al, al
je 0x414cd7
cmp al, 0xff
je 0x414cd7
dec al
mov byte [ebx - 1], al
mov eax, esi
pop esi
pop ebx
ret
dec ebx
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
pop esi
pop ebx
ret

Function at 0x414e30
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x414e81
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
lea edx, [esp + 8]
push 0
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414e81
cmp dword [esp + 8], edi
jne 0x414e81
mov eax, dword [esi + 0xc]
add eax, edi
pop edi
mov dword [esi + 0xc], eax
xor eax, eax
pop esi
pop ecx
ret 8
pop edi
mov eax, 1
pop esi
pop ecx
ret 8

Function at 0x414e90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x414ee1
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
lea edx, [esp + 8]
push 0
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414ee1
cmp dword [esp + 8], edi
jne 0x414ee1
mov eax, dword [esi + 0xc]
add eax, edi
pop edi
mov dword [esi + 0xc], eax
xor eax, eax
pop esi
pop ecx
ret 8
pop edi
mov eax, 1
pop esi
pop ecx
ret 8