joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4098a0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0x128
push eax
push 2
rep stosd dword es:[edi], eax
xor ebp, ebp
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40991f
mov edi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.MSVCRT.dll__stricmp]
mov eax, dword [edi]
lea ecx, [esp + 0x34]
push eax
push ecx
call ebx
add esp, 8
test eax, eax
je 0x40991b
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4098e7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
mov ebp, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
Function at 0x409d50
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41dc4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push esi
push edi
mov dword [esp + 8], 0
mov edi, 1
push 0
push 0
lea ecx, [esp + 0xa4]
mov dword [esp + 0x98], edi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x409dbc
mov esi, dword [esp + 0x98]
push 0x42b064
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 8], edi
jmp 0x409eb9
push 0x427d64
push 0
lea ecx, [esp + 0xa4]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x409dfb
mov esi, dword [esp + 0x98]
push 0x42b064
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 8], edi
jmp 0x409eb9
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push ebp
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov edi, eax
push edi
call sub.MFC42.DLL_operatornew
push 0
push 0
push esi
mov ebp, eax
call ebx
push esi
push edi
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x34
lea ecx, [esp + 0x24]
call fcn.00416920
push edi
push ebp
lea ecx, [esp + 0x2c]
call fcn.00416980
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
call fcn.00417690
mov eax, dword [eax + 4]
xor edi, edi
pop ebp
cmp eax, edi
mov byte [esp + 0x94], 2
pop ebx
jne 0x409e71
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 esi, dword [esp + 0x98]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x10]
mov dword [esp + 8], 1
cmp eax, edi
je 0x409ead
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x409ea4
cmp al, 0xff
je 0x409ea4
dec al
mov byte [ecx], al
jmp 0x409ead
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x9c]
mov byte [esp + 0x90], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x88]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x8c
ret
Function at 0x40a3d0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41dcc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 1
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 0
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x4274a8
push eax
mov byte [esp + 0x44], 1
call esi
add esp, 8
test eax, eax
je 0x40a453
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x42797c
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40a453
mov bl, 1
jmp 0x40a455
xor bl, bl
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40a475
push 0x4274a8
lea ecx, [esp + 0x48]
call fcn.0040615c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::CFileFind
lea edx, [esp + 0x44]
push 0x427d68
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x40a5a3
mov esi, dword [esp + 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov bl, 6
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x18]
mov ebp, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40a59b
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea edx, [esp + 0x48]
lea eax, [esp + 0x4c]
push edx
push eax
mov byte [esp + 0x48], 4
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x40]
test eax, eax
je 0x40a547
push esi
push ecx
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.0040a3d0
add esp, 8
jmp 0x40a58d
mov ecx, dword [esp + 0x48]
push 0x80
push ecx
call edi
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x98]
mov eax, dword [esi + 8]
lea ecx, [esp + 0x48]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00404d60
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0xffffffffffffffff
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x98]
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::CString
test ebp, ebp
jne 0x40a4ce
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0
call fcn.0040639c
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret
Function at 0x40a850
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40c]
lea edx, [esp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x410]
push eax
push ecx
push 0x400
push edx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
mov esi, eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
pop edi
pop esi
add esp, 0x400
ret

Function at 0x40b0b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41def7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov dword [esp + 0x10], 0
lea eax, [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
push 0x427680
push ecx
mov dword [esp + 0x28], 2
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x2c]
lea eax, [esp + 0xc]
push edx
mov bl, 4
push 0x427680
push eax
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
push 0x427500
lea ecx, [esp + 0x30]
call fcn.0040615c
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40b1ce
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx - 8]
add ecx, eax
push ecx
push 0
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Delete
push 0x427680
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40b1c0
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
jmp 0x40b1ce
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x24]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov ebx, 1
mov dword [esp + 0x10], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40cc20
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
cdq
sete bl
idiv dword [esi + 0x18]
test bl, bl
mov byte [esp + 0x12], bl
mov dword [esi + 0x1c], eax
je 0x40cdb1
mov edx, dword [esi + 0x14]
push 0xffffffffffffffff
add edx, ecx
push eax
push 0x18
mov dword [esi + 0x14], edx
push ecx
lea edx, [esi + 0x24]
lea ebx, [esi + 0x20]
mov ecx, esp
push edx
mov dword [esp + 0x2c], ebx
call fcn.00411e30
push ecx
mov ecx, esp
push str.read
call fcn.00411e20
push ebx
call fcn.0040b300
mov ecx, dword [esi + 0x18]
mov ebp, dword [esi + 0x1c]
add esp, 0x18
xor ebx, ebx
xor eax, eax
cmp ecx, 1
sete byte [esp + 0x13]
mov edx, ebp
dec ebp
test edx, edx
je 0x40cd52
inc ebp
mov dword [esp + 0x14], ebp
mov ebp, dword [sym.imp.MSVCRT.dll_memmove]
mov dl, byte [esp + 0x13]
test dl, dl
je 0x40ccca
xor edx, edx
cmp byte [edi], dl
jmp 0x40cccf
xor edx, edx
cmp word [edi], dx
sete dl
test edx, edx
je 0x40ccf6
test eax, eax
je 0x40ccef
cmp edi, eax
je 0x40ccef
imul ecx, ebx
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call ebp
add esp, 0xc
mov ecx, dword [esi + 0x18]
inc ebx
lea eax, [ecx + edi]
mov edx, dword [esp + 0x14]
add edi, ecx
dec edx
mov dword [esp + 0x14], edx
jne 0x40ccbc
test eax, eax
je 0x40cd1d
cmp edi, eax
je 0x40cd1d
mov ecx, dword [esi + 0x18]
sub edi, eax
imul ecx, ebx
push edi
push eax
sub eax, ecx
push eax
call ebp
add esp, 0xc
test ebx, ebx
je 0x40cd52
push 0xffffffffffffffff
push ebx
push 1
push ecx
mov ecx, esp
push 0
call fcn.00411e20
push ecx
mov ecx, esp
push str.nulls_removed
call fcn.00411e20
mov edx, dword [esp + 0x2c]
push edx
call fcn.0040b300
mov eax, dword [esi + 0x1c]
add esp, 0x18
sub eax, ebx
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x18], 1
jle 0x40cda3
mov eax, dword [esi + 4]
push eax
call fcn.0040bd30
add esp, 4
test al, al
je 0x40cda3
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.0040bd40
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov ecx, esp
push 0
call fcn.00411e20
push ecx
mov ecx, esp
push str.endian_swap
call fcn.00411e20
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040b300
add esp, 0x18
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov ecx, esi
call fcn.0040c740
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x40d650
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x14]
push edi
mov eax, dword [ebp + 0x18]
mov edi, dword [esp + 0x14]
imul eax, dword [ebp + 0x1c]
test esi, esi
mov dword [ebp + 8], eax
jne 0x40d66e
mov esi, edi
mov ecx, dword [ebp + 4]
xor ebx, ebx
push ecx
call fcn.0040bd30
add esp, 4
test al, al
je 0x40d6e3
test edi, edi
jne 0x40d6ad
mov edx, dword [ebp + 0x1c]
shl edx, 1
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0x1c]
mov ebx, eax
shl ecx, 1
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
mov esi, ebx
mov ecx, dword [ebp + 0x1c]
push ecx
push edi
call fcn.0040bd40
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov ecx, esp
push 0
call fcn.00411e20
push ecx
mov ecx, esp
push str.endian_swap
call fcn.00411e20
lea edx, [ebp + 0x20]
push edx
call fcn.0040b300
add esp, 0x18
mov eax, dword [ebp]
mov ecx, dword [ebp + 8]
push eax
push 1
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
sete byte [esp + 0x18]
test ebx, ebx
je 0x40d70c
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, byte [esp + 0x18]
test al, al
je 0x40d757
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
push 0xffffffffffffffff
push eax
push 0x18
add esi, edx
push ecx
lea edx, [ebp + 0x24]
mov ecx, esp
push edx
mov dword [ebp + 0x14], esi
call fcn.00411e30
push ecx
mov ecx, esp
push str.write
call fcn.00411e20
add ebp, 0x20
push ebp
call fcn.0040b300
mov al, byte [esp + 0x30]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, ebp
call fcn.0040c740
mov al, byte [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x40e7d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41e0e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x10], ebx
mov edi, dword [ebx + 0x30]
mov dword [esp + 0x1c], 1
test edi, edi
mov dword [esp + 0xc], edi
je 0x40e897
push ebp
mov ebp, dword [edi]
test ebp, ebp
je 0x40e88d
mov esi, dword [ebp]
test esi, esi
je 0x40e87c
add ebp, 4
test esi, esi
je 0x40e875
cmp dword [esi], 0
je 0x40e86c
mov eax, dword [esi + 4]
xor ebx, ebx
test eax, eax
jle 0x40e85d
mov eax, dword [esi]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x40e855
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push 0x40c260
push ecx
push 0xc
push eax
call fcn.0041ca04
push edi
call sub.MFC42.DLL_operatordelete
mov edi, dword [esp + 0x14]
add esp, 4
mov eax, dword [esi + 4]
inc ebx
cmp ebx, eax
jl 0x40e82b
mov eax, dword [esi]
push eax
call sub.MFC42.DLL_operatordelete
mov ebx, dword [esp + 0x18]
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [ebp]
test esi, esi
jne 0x40e816
mov eax, dword [edi]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [edi], 0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop ebp
mov esi, dword [ebx + 0x34]
test esi, esi
je 0x40e8df
mov edx, dword [esi + 4]
xor edi, edi
dec edx
sar edx, 0x10
inc edx
test edx, edx
jle 0x40e8c7
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esi + 4]
add esp, 4
inc edi
dec ecx
sar ecx, 0x10
inc ecx
cmp edi, ecx
jl 0x40e8ac
mov eax, dword [esi]
test eax, eax
je 0x40e8d6
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebx + 4]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, ebx
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x411f00
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41e378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
xor edi, edi
push 1
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], edi
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x4274a8
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x411f5e
push 0x4274a8
jmp 0x411f92
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x42797c
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x411f9b
push 0x42797c
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::TrimRight_1
mov dword [esp + 0x14], edi
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
mov edx, dword [esp + 0x44]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x18], 3
mov word [esp + 0x24], 0x14
mov eax, dword [edx - 8]
lea esi, [eax + 2]
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebp
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov esi, eax
push ebp
neg esi
sbb esi, esi
inc esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x414200
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41420b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x41430e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x421858]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x421858]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x421858]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x421858]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x421858]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x421858]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x421858]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x421858]
xor eax, edx
inc ecx
dec edi
jne 0x414226
pop edi
test esi, esi
je 0x414330
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x421858]
xor eax, edx
inc ecx
dec esi
jne 0x414312
pop esi
pop ebx
not eax
ret

Function at 0x414cd0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x414d11
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414d06
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x414d24
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x415c60
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x415d18
cmp dword [ebp + 4], 0xffffffff
jne 0x415d18
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x4274a8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x415cdd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x415cdd
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.00414a60
add esp, 0x10
test eax, eax
jne 0x415d00
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.00414fa0
add esp, 4
mov dword [ebp], eax
mov eax, dword [0x42b900]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x416170
Capabilities:
Create directory

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
test ebx, ebx
je 0x416238
mov al, byte [ebx]
test al, al
je 0x416238
push esi
push edi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x41619e
cmp al, 0x5c
jne 0x4161a0
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x416196
mov edi, dword [esp + 0x218]
cmp esi, ebx
je 0x4161d5
sub esi, ebx
lea eax, [esp + 0xc]
push esi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.00416170
add esp, 0x14
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret