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

Disassembly:
push 0xffffffffffffffff
push 0x418ea3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.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__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MSVCP71.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 esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.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__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x406130
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x418f41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x425640]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov dword [esp + 0x64], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea edi, [esi + 0xc]
mov ecx, edi
mov dword [0x425830], eax
call fcn.0040ae30
test al, al
jne 0x40617d
mov ecx, edi
call fcn.0040ae50
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x38]
mov dword [esp + 0x60], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, dword [esp + 0x68]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x64], 1
call dword [0x41b680]
mov ecx, dword [esp + 0x6c]
push ecx
lea ecx, [esp + 0x3c]
call dword [0x41b680]
lea edx, [esi + 8]
push edx
push ebx
lea eax, [esp + 0x20]
push eax
push 0x405c30
push ebx
push ebx
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
push 0x61a8
push ebx
lea edx, [esp + 0x18]
mov dword [esi + 4], eax
mov ecx, dword [0x425830]
push edx
push 2
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, eax
mov eax, dword [0x425830]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 4]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, edi
sub eax, ebx
je 0x40622d
dec eax
push ebx
je 0x40626e
sub eax, 0x101
je 0x40626e
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [esp + 0xc]
cmp eax, 0x103
je 0x40623c
cmp eax, ebx
jne 0x40623e
mov bl, 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x60], 0xffffffff
call fcn.00405450
mov al, bl
mov ecx, dword [esp + 0x58]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4c]
pop ebx
call fcn.004177e1
add esp, 0x58
ret 8
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [esp + 0x18]
mov dword [esp + 0x60], 0xffffffff
call fcn.00405450
xor al, al
jmp 0x406251
Function at 0x407230
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x419049
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x425854]
test eax, eax
jne 0x4072de
push esi
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
push str.winhlp32.exe
lea ecx, [esp + 8]
call dword [0x41b2d0]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4072cc
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4072cc
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x425854], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
call dword [0x41b1d8]
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4072f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x425640]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push esi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x407364
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
call fcn.004177e1
add esp, 0x110
ret
Function at 0x407380
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x425640]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push ebx
push 0
push 0
push ebp
push str.open
push 0
mov dword [esp + 0x22c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40749a
lea eax, [esp + 0xc]
push eax
push str..htm
push 0x80000000
call fcn.004072f0
add esp, 0xc
test eax, eax
jne 0x40749a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
lea ecx, [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
mov eax, edx
push eax
push 0x80000000
call fcn.004072f0
add esp, 0xc
test eax, eax
jne 0x407481
lea ecx, [esp + 0x10]
push str.__1_
push ecx
call dword [sym.imp.MSVCR71.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40744f
lea edx, [esp + 0x10]
push 0x41cc70
push edx
call dword [sym.imp.MSVCR71.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40744f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x407452
mov byte [esi], 0
push 0x41cc6c
push esi
call edi
push ebp
push esi
call edi
push ebx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x208]
call fcn.004177e1
add esp, 0x20c
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x208]
call fcn.004177e1
add esp, 0x20c
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
pop ebp
pop ebx
call fcn.004177e1
add esp, 0x20c
ret

Function at 0x4083c0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
mov esi, ecx
push 1
push 0
mov dword [esi], 0x41d250
mov byte [esi + 4], 0
mov dword [esi + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x408400
test eax, eax
je 0x408400
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete cl
mov byte [esi + 4], cl
mov eax, esi
pop esi
ret 4
Function at 0x411480
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4199bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
push 0x41bfb8
lea ecx, [esi + 8]
mov dword [esp + 0xc], esi
mov dword [esi], 0x41ddac
mov dword [esi + 4], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x41bfb8
lea ecx, [esi + 0xc]
mov dword [esp + 0x18], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x3c], 0x40
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x414110
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x419bf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebx
push ebp
push edi
push eax
lea ecx, [esp + 0x10]
call sub.MFC71.DLL_CBrush::CBrush
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call sub.MFC71.DLL_CDC::SelectObject_1
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov edx, dword [esi + 4]
push 0xf00021
push 0xd
push 0xd
push edi
push ebx
push edx
mov ebp, eax
call dword [sym.imp.GDI32.dll_PatBlt]
push ebp
mov ecx, esi
call sub.MFC71.DLL_CDC::SelectObject_1
lea eax, [edi + 0xf]
push eax
lea ecx, [ebx + 0xf]
push ecx
add edi, 0xfffffffe
push edi
add ebx, 0xfffffffe
push ebx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov ebx, dword [esp + 0x40]
mov edx, dword [esi + 4]
xor eax, eax
test ebx, ebx
sete al
push 0xf
lea ecx, [esp + 0x18]
lea eax, [eax + eax + 2]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawEdge]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0xc], 0x41cca0
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x414f20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x419dc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d4
mov eax, dword [0x425640]
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1dc], eax
mov byte [edi + 0x17c], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea eax, [esp + 0xc]
lea esi, [edi + 0xd4]
push eax
mov ecx, esi
mov dword [esp + 0x1ec], 0
call sub.MFC71.DLL_CWnd::GetWindowTextA
push 0
push edi
lea ecx, [edi + 0xd0]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x1800
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0
push 1
lea ecx, [esp + 0x30]
call sub.MFC71.DLL_CFileDialog::CFileDialog
lea ecx, [esp + 0x14]
mov byte [esp + 0x1e8], 1
call sub.MFC71.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x414ff5
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC71.DLL_CFileDialog::GetPathName
mov ecx, eax
mov byte [esp + 0x1e8], 2
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call sub.MFC71.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x10]
mov byte [esp + 0x1e8], 1
call dword [0x41b1d8]
mov edx, dword [esi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x20]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call sub.MFC71.DLL_CWnd::SetFocus
lea ecx, [esp + 0x14]
mov byte [edi + 0x17c], 0
mov byte [esp + 0x1e8], 0
call fcn.004174e4
lea ecx, [esp + 0xc]
call dword [0x41b1d8]
mov ecx, dword [esp + 0x1e0]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1d4]
pop ebp
call fcn.004177e1
add esp, 0x1e0
ret
Function at 0x417a32
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x41f0b8
call fcn.00417c34
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x417a72
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417a72
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x417a8a
cmp eax, 0x20b
je 0x417a77
mov dword [ebp - 0x1c], ebx
jmp 0x417a9e
cmp dword [ecx + 0x84], 0xe
jbe 0x417a72
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x417a98
cmp dword [ecx + 0x74], 0xe
jbe 0x417a72
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x426a8c], 0xffffffff
or dword [0x426a90], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x426a44]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x426a40]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x426a88], eax
call fcn.00417e20
call fcn.00417ec9
cmp dword [0x425660], ebx
jne 0x417afe
push 0x417ec6
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00417eae
push 0x4250d0
push 0x4250cc
call sub.MSVCR71.dll__initterm
push 0x417e64
call fcn.0041782e
mov eax, dword [0x426a3c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x426a38]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x417b52
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x4250c8
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x417bd0
cmp al, bl
je 0x417b7c
cmp dword [ebp - 0x20], ebx
jne 0x417bd0
mov al, byte [esi]
cmp al, bl
je 0x417b8c
cmp al, 0x20
ja 0x417b8c
inc esi
mov dword [ebp - 0x24], esi
jmp 0x417b7c
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x417ba8
movzx eax, word [ebp - 0x54]
jmp 0x417bab
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.0041883a
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x417bc8
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x417c25
cmp al, 0x22
jne 0x417bdf
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x417bf2
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x417b6a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00417c6f
ret
Function at 0x40f0a6
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040f256
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40f1a4
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40f147
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x40f18a
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40f15e
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40f179
test al, 0x40
je 0x40f170
mov ecx, dword [edi + 0x20]
jmp 0x40f177
test al, 0x80
je 0x40f18a
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x40f18a
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40f116
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4029e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x402a0c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x402a34
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x402a3a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x402aa2
jg 0x402a51
test esi, esi
je 0x402aa2
test ecx, ecx
jl 0x402a9d
jg 0x402a5b
test eax, eax
je 0x402a9d
cmp edi, ecx
jg 0x402a6f
jl 0x402a65
cmp esi, eax
jae 0x402a6f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x402aa5
mov ecx, dword [ebp + 8]
jmp 0x402aaf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x402ac9
jg 0x402aaf
test esi, esi
je 0x402ac9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x402ac9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x402b0c
jl 0x402b00
test ecx, ecx
jne 0x402b0c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x402b25
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x402b73
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x402b79
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x402b79
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x402be6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x402ba2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x402bd4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x402be6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x402bb0
test edi, edi
je 0x402be6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x410008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402f90
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aac2
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x402fcc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x402fcc
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aac2
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4030a3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x402ff4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x403000
movsx eax, bl
jmp 0x403038
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x403062
sub eax, 1
je 0x403062
sub eax, 2
jne 0x4030a3
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aac2
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403080
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4030a3
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aac2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aac2
mov esp, ebp
pop ebp
ret 4

Function at 0x403260
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x403291
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x403280
pop edi
mov eax, edx
pop esi
pop ebp
ret 8