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

Disassembly:
push 0xffffffffffffffff
push 0x67992972
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.6797d7b4
xor edi, edi
lea ecx, [esi + 0x28]
mov dword [esp + 0x1c], edi
call sub.MFC42.DLL_CString::CString_4
mov dword [esi + 0x44], 0x67998cd8
mov dword [esi + 0x48], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
lea eax, [esi + 0x34]
or ebp, 0xffffffff
push eax
mov byte [esp + 0x20], 2
mov dword [esi], sym.MfcHlpr520.dll_const_CMHPRibbonGroup::vftable
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x30], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x17c
mov dword [esi + 0x60], ebp
mov dword [esi + 0x64], ebp
mov dword [esi + 0x70], edi
mov dword [esi + 0x7c], 4
mov dword [esi + 0x78], 1
mov dword [esi + 0x20], edi
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ebp
cmp ebp, edi
mov byte [esp + 0x1c], 3
je 0x6795d098
mov ecx, ebp
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPControlButton::constructor_void_
mov dword [ebp], 0x679b6104
mov dword [ebp + 0x20], 0x679b60a8
jmp 0x6795d09a
xor ebp, ebp
mov dword [esi + 0x68], ebp
push 0x190
mov byte [esp + 0x20], 2
mov dword [ebp + 0x160], esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov byte [esp + 0x1c], 4
je 0x6795d0cc
push esi
mov ecx, eax
call fcn.6795cb50
jmp 0x6795d0ce
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x6c], eax
mov dword [eax + 0x158], 4
mov dword [esi + 0x74], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x80], 2
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x6795e4e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
and esi, 0xffff
push edi
mov dword [esp + 0xc], ebx
jne 0x6795e4ff
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
push 0xf1
push esi
call sub.MFC42.DLL_AfxFindResourceHandle
mov edi, eax
test edi, edi
jne 0x6795e517
pop edi
pop esi
pop ebx
pop ecx
ret 8
push 0xf1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x6795e52f
pop edi
pop esi
pop ebx
pop ecx
ret 8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x6795e542
pop edi
pop esi
pop ebx
pop ecx
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x6795e556
pop edi
pop esi
pop ebx
pop ecx
ret 8
xor eax, eax
push ebp
mov ax, word [esi + 6]
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
xor edi, edi
add esp, 4
cmp word [esi + 6], di
mov ebp, eax
jbe 0x6795e596
mov ebx, ebp
mov ecx, esi
call fcn.678a3e50
xor ecx, ecx
xor edx, edx
mov cx, word [eax + edi*2]
inc edi
mov dword [ebx], ecx
mov dx, word [esi + 6]
add ebx, 4
cmp edi, edx
jl 0x6795e575
mov ebx, dword [esp + 0x10]
xor eax, eax
mov ecx, ebx
mov ax, word [esi + 6]
push eax
push ebp
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPRibbonGroup::SetButtons_unsigned_int___int_
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x6795e5e5
mov ecx, dword [ebx + 0x5c]
call sym.MfcHlpr520.dll_public:_class_CMHPImageManager____thiscall_CMHPCommandBar::GetImageManager_void_const
xor edi, edi
xor edx, edx
mov di, word [esi + 4]
mov dx, word [esi + 2]
xor ecx, ecx
push 0
mov cx, word [esi + 6]
push edi
push edx
mov edx, dword [esp + 0x24]
push ecx
push ebp
push edx
mov ecx, eax
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPImageManager::SetIcons_unsigned_int__unsigned_int___int__class_CSize__enum_MHPImageState_
test eax, eax
jne 0x6795e5e5
mov dword [esp + 0x10], eax
push ebp
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x14]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x67963260
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x67992d60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
call sym.MfcHlpr520.dll_public:_class_CMHPBarPaintManager____thiscall_CMHPControl::GetPaintManager_void_const
mov edi, dword [esp + 0x38]
mov ebx, eax
push esi
push edi
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x78]
mov edx, dword [ebx]
push esi
mov ecx, ebx
call dword [edx + 0x7c]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x38]
push 1
mov ecx, edi
call sub.MFC42.DLL_CDC::SetBkMode
lea eax, [esi + 0xc4]
mov ebx, eax
mov eax, dword [ebx]
add eax, 7
mov ecx, dword [ebx + 4]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x1c], ecx
mov edx, dword [ebx + 8]
push eax
mov dword [esp + 0x24], edx
mov edx, dword [esi]
mov ebx, dword [ebx + 0xc]
mov ecx, esi
mov dword [esp + 0x28], ebx
call dword [edx + 0x58]
mov eax, dword [esi + 0x17c]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x30], ebx
je 0x67963370
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
cmp ecx, 2
jle 0x6796334a
cmp byte [eax], 0x26
jne 0x6796334a
cmp byte [eax + 2], 0x20
jne 0x6796334a
lea ecx, [esp + 0x38]
push 2
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
mov edx, dword [edi]
lea esi, [esp + 0x18]
push 0x24
mov ecx, dword [eax - 8]
push esi
push ecx
push eax
mov ecx, edi
mov byte [esp + 0x40], 1
call dword [edx + 0x70]
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
push 3
push ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Delete
mov ecx, dword [edi + 8]
lea eax, [esp + 0x10]
push eax
push 1
push 0x67a74a18
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
lea ecx, [edx + eax + 7]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0xc]
mov edx, dword [edi]
lea esi, [esp + 0x18]
push 0x8024
mov ecx, dword [eax - 8]
push esi
push ecx
push eax
mov ecx, edi
call dword [edx + 0x70]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x679646b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x67992fc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Theme::constructor_void_
xor edi, edi
mov ebx, 1
mov dword [esp + 0x18], edi
mov dword [esi + 0x6b0], edi
mov dword [esi + 0x6ac], 0x67997334
mov dword [esi + 0x6b4], ebx
lea ecx, [esi + 0x6e0]
mov byte [esp + 0x18], bl
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPPaintManagerColorGradient::constructor_void_
mov ecx, esi
mov dword [esi], sym.MfcHlpr520.dll_const_CMHPRibbonTheme::vftable
mov dword [esi + 0x6a4], ebx
mov dword [esi + 0x5e0], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0xc8], 0xc
mov dword [esi + 0xcc], 0x1a
mov dword [esi + 0xd4], 0x16
call sym.MfcHlpr520.dll_protected_virtual:_class_CMHPTabPaintManager____thiscall_CMHPRibbonTheme::CreateTabPaintManager_void_
mov dword [esi + 0x6c0], eax
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x6c]
push str.Segoe_UI
lea ecx, [esi + 0x124]
call sub.MFC42.DLL_CString::operator_2
push ebx
push edi
push edi
lea eax, [esi + 0xe8]
push edi
push eax
mov dword [esi + 0x120], ebx
mov dword [esi + 0x90], edi
mov dword [esi + 0x6bc], edi
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esi + 0x468]
mov eax, esi
pop edi
pop esi
mov dword [ecx + 0x30], ebx
mov ecx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x6797d4d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x67993358
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
mov ebp, ecx
push esi
mov dword [ebp + 8], 0
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, dword [esp + 0x48]
test esi, esi
je 0x6797d577
push edi
mov edi, dword [esp + 0x48]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
pop edi
je 0x6797d577
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x6797d577
cmp ebx, 0xa
jb 0x6797d577
push 0
push ebx
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CMemFile::CMemFile_1
lea eax, [esp + 0xc]
mov ecx, ebp
push eax
mov dword [esp + 0x40], 0
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPGraphicBitmapPng::LoadFromFile_class_CFile__
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CMemFile::CMemFile
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov ecx, dword [esp + 0x34]
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8
Function at 0x405e80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x42a6b0
push 0x67
push edi
call esi
push 0x64
push 0x42a5e8
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push edi
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x405ff0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6c
push dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x28], 0x6d
mov dword [ebp - 0x24], 0x42a5e8
call esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0xbe
push 0x1f4
push 0x12c
push 0x12c
push 0xcf0000
push 0x42a6b0
push 0x42a5e8
push 0
mov dword [0x42a5e4], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x405f5c
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push ebx
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffaffff
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [ebp + 8], eax
lea eax, [ebp - 0x1c]
push 0
push eax
call ebx
test eax, eax
je 0x405fe4
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x405fd4
lea eax, [ebp - 0x1c]
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call ebx
test eax, eax
jne 0x405fb4
mov eax, dword [ebp - 0x14]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406fc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408d77
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], edx
mov ebx, ecx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x248], 1
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push 0
mov dword [ebp - 4], 0
push 2
mov dword [ebp - 0x248], 1
mov dword [ebp - 0x240], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x244], esi
cmp esi, 0xffffffff
jne 0x407074
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_take_a_snapshot_of_the_processes.
call fcn.00404480
push 0x404dc0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x40714d
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4070b0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_retrieve_information_about_the_first_process.
call fcn.00404480
push 0x404dc0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x407146
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4070c0
mov eax, dword [ebp - 0x24c]
sub ecx, edx
sar ecx, 1
mov edi, eax
cmp dword [eax + 0x14], 7
mov esi, dword [eax + 0x10]
jbe 0x4070e2
mov edi, dword [eax]
cmp esi, ecx
jne 0x40712a
lea eax, [ebp - 0x21c]
test esi, esi
je 0x407105
mov ecx, eax
sub edi, ecx
mov dx, word [edi + eax]
cmp dx, word [eax]
jne 0x40712a
add eax, 2
sub esi, 1
jne 0x4070f4
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx + 8]
je 0x40711b
mov eax, dword [ebp - 0x238]
mov dword [ecx], eax
add dword [ebx + 4], 4
jmp 0x40712a
lea eax, [ebp - 0x238]
push eax
push ecx
mov ecx, ebx
call fcn.00405c70
mov esi, dword [ebp - 0x244]
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4070b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004076c0
mov esp, ebp
pop ebp
ret
Function at 0x40718f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4071b6
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4071b9
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0040716b
pop esi
leave
ret 8

Function at 0x4081c4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408203
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408203
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408203
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408203
cmp dword [ecx + 0x74], 0xe
jbe 0x408203
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x401000
Capabilities:
Allocate or change rwx memory
Check for foreground window switch
Check for time delay via gettickcount
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x403008]
cmp eax, 0
jne 0x401021
mov eax, dword [0x40300c]
cmp eax, 0
jne 0x401021
jmp 0x4010b6
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 4], eax
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x401021
mov dword [ebp - 0x14], eax
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, 0x1388
jl 0x401021
lea eax, [ebp - 8]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401021
mov eax, dword [0x403008]
cmp eax, 0
je 0x401093
push 0x3e8
call sub.KERNEL32.dll_Sleep
lea eax, [ebp - 0x10]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401067
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
cmp eax, ebx
je 0x401021
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
je 0x401067
mov eax, dword [0x40300c]
cmp eax, 0
je 0x4010b6
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x401093
cmp eax, dword [ebp - 0x14]
je 0x401093
push dword [0x403000]
mov eax, 0x40301a
mov ebx, 0x40322a
sub ebx, eax
push ebx
push 0x40301a
call fcn.00402bce
lea eax, [ebp - 4]
push eax
push 0x40
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call sub.KERNEL32.dll_VirtualProtect
push dword [0x403004]
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call fcn.00402bce
lea eax, [ebp - 4]
push eax
push dword [eax]
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call sub.KERNEL32.dll_VirtualProtect
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
cmp al, 0x2d
int 0
add byte [esp + ecx - 0x43ffff30], bh
invalid
Function at 0x438cc4
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
sub edi, ecx
add ecx, 0x1e85e4f1
mov ecx, edi
call fcn.00438cf3
sub ecx, ecx
mov ecx, 0xeafcfa2d
xor dword [edx], eax
dec ecx
inc edx
and ecx, ecx
inc edi
or edi, edi
cmp edx, ebx
jne fcn.00438cc4
or ecx, ecx
dec edi
inc edi
ret
Function at 0x4040e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43bfc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x38], 0
je 0x404152
cmp byte [ebx + 0x3d], 0
je 0x404152
mov eax, dword [ebx]
push edi
mov esi, dword [eax + 0xc]
call fcn.0040464b
mov edi, eax
mov ecx, ebx
push edi
call esi
push eax
push edi
call fcn.0040464f
pop ecx
pop ecx
pop edi
test al, al
jne 0x40418c
mov ecx, dword [ebx + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
xor ecx, ecx
sub eax, ecx
je 0x404162
sub eax, 1
je 0x404165
dec eax
sub eax, 1
jne 0x40418c
mov byte [ebx + 0x3d], cl
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d5bd
leave
ret
mov byte [ebx + 0x3d], cl
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x404183
push dword [ebx + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40418c
cmp byte [ebx + 0x3d], 0
sete al
jmp 0x404154
xor al, al
jmp 0x404154
Function at 0x404891
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x43bfc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
call fcn.0040464b
push dword [ebp + 8]
mov ebx, eax
push ebx
call fcn.0040464f
pop ecx
pop ecx
test al, al
je 0x4048c9
push dword [ebp + 8]
call fcn.0040480f
pop ecx
jmp 0x4049a7
push esi
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
test eax, eax
je 0x404909
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const]
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp eax, esi
jae 0x404909
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
push dword [ebp + 8]
mov esi, eax
call fcn.00404df1
mov byte [esi], al
mov eax, dword [ebp + 8]
pop ecx
jmp 0x4049a6
cmp dword [edi + 0x4c], 0
je 0x4049a4
mov ecx, edi
call fcn.0040433b
push dword [ebp + 8]
call fcn.00404df1
cmp dword [edi + 0x38], 0
pop ecx
jne 0x404938
push dword [edi + 0x4c]
push eax
call fcn.004034af
pop ecx
pop ecx
test al, al
jmp 0x4049a0
mov ecx, dword [edi + 0x38]
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 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 0x404978
sub eax, 1
je 0x404978
dec eax
sub eax, 1
jne 0x4049a4
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x40492d
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x404996
push dword [edi + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x4049a4
lea eax, [ebp - 0x28]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x30], eax
cmovne ebx, dword [ebp + 8]
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041d5bd
leave
ret 4
Function at 0x404fd5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43bfc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
mov dword [ebp - 0x10], eax
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jg 0x405009
jl 0x405000
test edi, edi
jne 0x405009
xor eax, eax
xor edx, edx
jmp 0x4050d1
cmp dword [ebx + 0x38], 0
je 0x40501d
push esi
push edi
push eax
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__]
jmp 0x4050d1
mov dword [ebp - 8], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x405065
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040387b
pop ecx
pop ecx
mov ecx, ebx
mov esi, dword [eax]
push esi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
push eax
push dword [ebp - 0x10]
call fcn.004045f3
add dword [ebp - 0x10], esi
add esp, 0xc
sub dword [ebp - 8], esi
mov ecx, ebx
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
mov esi, dword [ebp + 0x10]
cmp dword [ebx + 0x4c], 0
je 0x4050c5
mov ecx, ebx
call fcn.0040433b
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, 0xfff
cmp ecx, eax
jbe 0x4050aa
push dword [ebx + 0x4c]
push eax
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [ebp - 8]
add edx, eax
sub ecx, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
cmp eax, 0xfff
jne 0x4050c8
jmp 0x405078
test ecx, ecx
je 0x4050c8
push dword [ebx + 0x4c]
push ecx
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [ebp - 8]
add esp, 0x10
sub ecx, eax
jmp 0x4050c8
mov ecx, dword [ebp - 8]
sub edi, ecx
mov eax, edi
sbb esi, 0
mov edx, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d5bd
leave
ret 0xc