joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404570
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
push esi
add eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push 0x40f65c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4045de
mov eax, dword [esp + 8]
cmp eax, 1
je 0x4045af
cmp eax, 2
jne 0x4045ca
test esi, esi
mov eax, dword [esp]
je 0x4045d8
test eax, eax
je 0x4045d3
test al, 1
jne 0x4045ca
mov edx, eax
shr edx, 1
cmp word [esi + edx*2 - 2], 0
je 0x4045d8
mov eax, 0xd
pop ecx
ret 4
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 4

Function at 0x4046c0
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Execute shellcode via indirect call
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40df68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41501c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0xc
push 0
mov dword [esi], vtable.CDlgBase.0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push 0x40
push 0xc
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 0x404650
sub ecx, edi
sub ecx, 0xa
mov byte [edi], 0xb9
mov byte [edi + 5], 0xe9
mov dword [edi + 1], esi
mov dword [edi + 6], ecx
mov dword [esi + 8], edi
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
lea ecx, [esi + 0xc]
mov dword [esi], vtable.CBugWarningDlg.0
call edi
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call edi
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 2
call edi
lea ebx, [esi + 0x18]
mov ecx, ebx
mov byte [ebp - 4], 3
call edi
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call edi
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 5
call edi
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 6
call edi
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 7
call edi
mov edx, dword [ebp + 0xc]
mov byte [ebp - 4], 8
mov edi, dword [reloc.Common.dll___4CTXStringW__QAEAAV0_ABV0__Z]
push edx
lea ecx, [esi + 0x30]
call edi
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [esi + 0x2c]
call edi
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, ebx
mov byte [esi + 0x27], 0
mov byte [esi + 0x25], 1
mov byte [esi + 0x24], 1
mov byte [esi + 0x26], 0
call edi
mov edx, dword [ebp + 0x18]
push edx
lea ecx, [esi + 0x1c]
call edi
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x28], 0
push eax
lea ecx, [esi + 0x20]
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4047f0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d98c
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x41501c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CBugWarningDlg.0
mov dword [ebp - 4], 7
mov eax, dword [esi + 0x28]
test eax, eax
je 0x404832
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [esi + 0x30]
call edi
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 6
call edi
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 5
call edi
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call edi
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 3
call edi
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 2
call edi
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call edi
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0
call edi
mov eax, dword [esi + 8]
push eax
push 0
mov dword [esi], vtable.CDlgBase.0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x404dc0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x41501c]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCR80.dll_srand]
add esp, 4
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov word [esp + 0x1c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x10]
push 0x5c
push edx
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x404e3e
mov word [eax], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.00404a70
mov esi, eax
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040c926
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d90c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x41501c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push eax
mov edx, str..txt
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
call section..text
add esp, 4
push 0
push 0x80
push 2
push 0
push 1
mov dword [ebp - 4], 1
mov ebx, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push 0x40000000
lea ecx, [ebp - 0x10]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404f84
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
mov dword [ebp - 0x18], 0
call ebx
push eax
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.Common.dll_class_CTXStringA___cdecl_Util::Convert::Utf8FromWS_wchar_t_const___int_]
add esp, 0xc
push 0
lea edx, [ebp - 0x18]
push edx
push 3
push 0x4106ac
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebx
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringA::GetLength_void_const]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.Common.dll_public:_char_const____thiscall_CTXStringA::operator_char_const__void_const]
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringA::destructor_void_]
jmp 0x404f98
push 0x40f5f8
mov ecx, edi
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__]
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405480
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d573
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x41501c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 0
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 1
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
jne 0x4054e6
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
jmp 0x40551a
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
add eax, 1
push eax
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXStringW::GetBuffer_int_]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::ReleaseBuffer_int_]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 0
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4055d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x405601
test byte [ebp + 0x10], 2
jne 0x405601
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0xfffbff00
add eax, 0x40100
pop ebp
ret 0xc
mov eax, 0x40101
pop ebp
ret 0xc
Function at 0x405b80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e174
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x41501c]
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
push 0x422
lea eax, [ebp - 0x436]
push 0
push eax
mov word [ebp - 0x438], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x212
lea ecx, [ebp - 0x438]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x438]
push 0x5c
push edx
mov esi, str.bugreport.ini
call dword [sym.imp.MSVCR80.dll_wcsrchr]
lea ecx, [eax + 2]
add esp, 8
sub ecx, esi
lea ecx, [ecx]
movzx eax, word [esi]
mov word [ecx + esi], ax
add esi, 2
test ax, ax
jne 0x405c00
push 0x8000
call fcn.0040c916
add esp, 4
mov edi, eax
lea eax, [ebp - 0x438]
push eax
push 0x4000
push edi
push str.STRINGTABLE
mov dword [ebp - 0x448], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x405d5b
cmp word [edi], 0
mov dword [ebp - 0x440], edi
je 0x405d5b
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
jmp 0x405c66
mov edi, dword [ebp - 0x440]
push edi
lea ecx, [ebp - 0x43c]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t__]
lea ecx, [ebp - 0x43c]
mov dword [ebp - 4], 0
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::Trim_void_]
push 0
push 0x410764
lea ecx, [ebp - 0x43c]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::Find_wchar_t_const___int_const]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d1d
lea ecx, [ebp - 0x43c]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::GetLength_void_const]
sub eax, esi
sub eax, 1
push eax
lea ecx, [ebp - 0x44c]
push ecx
lea ecx, [ebp - 0x43c]
call dword [sym.imp.Common.dll_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_]
mov edi, eax
push esi
lea edx, [ebp - 0x444]
push edx
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_class_CTXStringW___thiscall_CTXStringW::Left_int_]
push edi
push ecx
push eax
mov ecx, 0x415578
mov byte [ebp - 4], 2
call fcn.00403620
add esp, 4
mov ecx, eax
call dword [0x40f120]
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 1
call ebx
lea ecx, [ebp - 0x44c]
mov byte [ebp - 4], 0
call ebx
mov edi, dword [ebp - 0x440]
lea ecx, [ebp - 0x43c]
mov dword [ebp - 4], 0xffffffff
call ebx
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405d31
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 + 2], cx
lea eax, [edi + eax*2 + 2]
mov dword [ebp - 0x440], eax
jne 0x405c60
mov edi, dword [ebp - 0x448]
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, 1
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.0040c926
mov esp, ebp
pop ebp
ret
Function at 0x406a60
Capabilities:
Create process on windows
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x419
mov esi, ecx
jne 0x406ac0
cmp eax, 0x2b
jne 0x406ac0
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi + 0x34]
mov edx, dword [ecx + 0x24]
push 3
push 0
push 0
push 0
push 0
push eax
mov eax, dword [ecx + 0x1c]
lea eax, [edx + eax - 0x23]
cdq
sub eax, edx
mov edx, dword [ecx + 0x28]
sar eax, 1
push eax
mov eax, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x18]
lea eax, [edx + eax - 0x26]
cdq
sub eax, edx
sar eax, 1
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawIconEx]
pop edi
mov eax, 1
pop esi
pop ebp
ret 0xc
cmp eax, 0x133
jne 0x406b03
mov edx, dword [esi + 4]
push 0x3e9
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 0x10], eax
jne 0x406bee
cmp byte [esi + 0x26], 0
jne 0x406bee
push 0x808080
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
pop edi
pop esi
pop ebp
ret 0xc
cmp eax, 0x4e
jne 0x406bc2
cmp edi, 0x3f2
jne 0x406bee
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 0xfffffffd
jne 0x406b7e
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x406b4f
push 1
push eax
push eax
lea ecx, [esi + 0x2c]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
mov eax, dword [esi + 4]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
cmp eax, 1
jne 0x406bee
push eax
push 0
push 0
lea ecx, [esi + 0x30]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
mov ecx, dword [esi + 4]
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
cmp eax, 0xffffff65
jne 0x406baf
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x43
call edi
movsx edx, ax
test edx, edx
jns 0x406bee
push 0x11
call edi
movsx eax, ax
test eax, eax
jns 0x406bee
push esi
call fcn.004074b0
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
cmp eax, 0xffffff93
jne 0x406bee
push esi
call fcn.004076c0
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
cmp eax, 0x7b
jne 0x406bee
mov ecx, dword [esi + 4]
push 0x3f2
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, edi
jne 0x406bee
mov ecx, dword [ebp + 0x10]
mov edx, ecx
shr edx, 0x10
push edx
movzx ecx, cx
push ecx
push eax
push esi
call fcn.00406c00
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x407f80
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d490
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x41501c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
lea ecx, [esi + 4]
call edi
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
call edi
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call edi
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
call edi
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 3
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringA::constructor_void_]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 5
call edi
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 6
call edi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x20]
mov byte [ebp - 4], 7
mov edi, dword [reloc.Common.dll___4CTXStringW__QAEAAV0_ABV0__Z]
push ecx
lea ecx, [esi + 0x38]
mov dword [esi], eax
call edi
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [esi + 4]
call edi
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [esi + 8]
call edi
push 0
push 0
push 0
push 0
push str.QQ_Bug_Report_Tool
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp + 0x24]
mov dword [esi + 0x4c], eax
xor eax, eax
push ecx
lea ecx, [esi + 0x14]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
call dword [sym.imp.Common.dll_public:_class_CTXStringA____thiscall_CTXStringA::operator_class_CTXStringA_const__]
mov edx, dword [ebp + 0x18]
push edx
lea ecx, [esi + 0xc]
call edi
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [esi + 0x10]
call edi
mov ecx, dword [ebp + 0x28]
push ecx
lea ecx, [esi + 0x34]
call edi
mov edx, dword [ebx]
mov dword [esi + 0x3c], edx
mov eax, dword [ebx + 4]
mov dword [esi + 0x40], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 0x44], ecx
mov edx, dword [ebx + 0xc]
mov dword [esi + 0x48], edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x24
Function at 0x4081b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
test eax, eax
je 0x40826d
cmp word [eax], 0
je 0x40826d
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4081eb
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], 0
mov ebx, eax
jne 0x40825e
cmp ebx, 0x500000
ja 0x40825e
push esi
push ebx
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x40822f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 0
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40824e
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40aef0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, eax
mov esi, ecx
lea ecx, [edi + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
cmp edx, 0x40000000
jae 0x40b027
mov eax, dword [ebp + 0xc]
add edx, edx
add edx, edx
cmp dword [eax], edx
jb 0x40b027
cmp edi, 2
mov ecx, dword [ebp + 8]
jbe 0x40afaa
lea edx, [edi - 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
add edx, 1
push ebx
lea esp, [esp]
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + 0x411110]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
movzx eax, byte [eax + ebx + 0x411110]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
add ecx, 1
and eax, 0xf
shr ebx, 6
movzx eax, byte [ebx + eax*4 + 0x411110]
add ecx, 1
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + 0x411110]
add ecx, 1
mov byte [ecx], al
add ecx, 1
add esi, 3
sub edi, 3
sub edx, 1
jne 0x40af40
pop ebx
test edi, edi
je 0x40b014
movzx edx, byte [esi]
shr edx, 2
mov al, byte [edx + 0x411110]
mov byte [ecx], al
add ecx, 1
cmp edi, 1
jbe 0x40aff4
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shl edx, 4
shr eax, 4
movzx edx, byte [edx + eax + 0x411110]
mov byte [ecx], dl
movzx eax, byte [esi + 1]
add ecx, 1
and eax, 0xf
movzx edx, byte [eax*4 + 0x411110]
mov byte [ecx], dl
jmp 0x40b00b
movzx eax, byte [esi]
and eax, 3
shl eax, 4
mov dl, byte [eax + 0x411110]
mov byte [ecx], dl
add ecx, 1
mov byte [ecx], 0x3d
add ecx, 1
mov byte [ecx], 0x3d
add ecx, 1
mov edx, dword [ebp + 0xc]
mov eax, ecx
sub eax, dword [ebp + 8]
pop edi
mov dword [edx], eax
mov byte [ecx], 0
xor eax, eax
pop esi
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x40b450
Capabilities:
Allocate or change rwx memory

Disassembly:
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b4aa
push 0x40
call fcn.0040c916
add esp, 4
push 0
push 0x40
push 0x40
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esi + 8]
mov byte [ecx], 0xb9
mov edx, dword [esi + 8]
mov byte [edx + 5], 0xe9
mov eax, dword [esi + 8]
mov dword [eax + 1], esi
mov eax, dword [esi + 8]
mov ecx, 0x40b4f0
sub ecx, eax
sub ecx, 0xa
mov dword [eax + 6], ecx
mov eax, dword [esi + 8]
mov ecx, dword [esi]
push eax
push 0xfffffffffffffffc
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [esi + 4], eax
mov eax, esi
ret
Function at 0x40b910
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov edi, eax
test edi, edi
jne 0x40b935
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebx + 8]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebx]
mov edx, dword [eax]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx + 4]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x40b977
mov esi, dword [eax]
push 0
push 0x2710
push 0x64
push edi
add esi, 0xc
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ecx, dword [esi]
push eax
mov eax, dword [ebp - 0xc]
push edi
push eax
call ecx
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push edi
mov ecx, ebx
call eax
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 8]
push ecx
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebx + 4], 0
mov dword [ebp - 0xc], eax
je 0x40ba00
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 8], eax
jne 0x40ba00
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0xc], eax
jne 0x40ba00
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
je 0x40b9d7
mov eax, esi
lea esi, [ebp - 0x1c]
call fcn.0040b450
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
push esi
push 0
push edx
push eax
push 0x100
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
lea esi, [ebp - 0x1c]
mov dword [ebp + 0xc], eax
call fcn.0040b4b0
mov esi, dword [ebp + 0x10]
jmp 0x40ba1c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push esi
push 0
push ecx
push edx
push 0x100
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov dword [ebp + 0xc], eax
push edi
call dword [sym.imp.USER32.dll_DestroyMenu]
mov ecx, dword [ebp + 0xc]
lea eax, [ecx - 0x64]
cmp eax, 0x26ac
ja 0x40ba79
mov ebx, dword [ebx + 4]
xor eax, eax
add ecx, 0xffffff9c
movzx ecx, cx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x24
mov dword [ebp - 0x28], 1
mov edx, dword [ebx]
mov ecx, dword [edx + 0x10]
push eax
push ebx
call ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push esi
push ecx
mov ecx, ebx
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc