joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413220
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00407bb0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4132eb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4132eb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41329e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4132a9
or bh, 8
and edi, 0x8000000
je 0x4132c4
mov eax, dword [0x42a15c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4132eb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4136c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4136eb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41370f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41372a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x41705e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x417096
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00414cfa
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00414cd2
jmp 0x4170a2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4185ae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4185f0
call fcn.0041b636
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4185f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4185e7
xor eax, eax
jmp 0x4185f8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004185fe
pop edi
pop esi
pop ebx
ret 4

Function at 0x41bdcd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41bdfb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41be19
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041bd33
jmp 0x41be19
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41be19
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041bd33
test edi, edi
mov eax, edi
jne 0x41be03
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40144f
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x41be39
call fcn.0041baa0
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401499
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [ebp + 8], eax
ja 0x4014a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x401558
push eax
mov dword [ebp - 0x18], ebx
call sub.MFC42.DLL_operatornew
pop ecx
mov edi, eax
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x18]
push ebx
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 4
mov byte [ebp + 0xb], bl
jbe 0x40154e
push 4
lea eax, [ebp - 0x14]
push edi
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ecx + 4]
cmp eax, dword [ebp - 0x18]
jne 0x40154e
mov eax, ecx
push 8
cdq
pop esi
idiv esi
test edx, edx
jne 0x40154e
inc ecx
push ecx
call sub.MFC42.DLL_operatornew
mov esi, dword [ebp + 0xc]
cmp eax, ebx
pop ecx
mov dword [esi], eax
je 0x40154e
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [ebp - 0x14]
lea eax, [edi + 4]
push eax
push dword [esi]
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
push 0x429ea8
push 1
mov byte [eax + ecx], bl
push dword [ebp - 0x14]
mov dword [ebp - 4], ebx
push dword [esi]
call fcn.00401310
add esp, 0x28
or dword [ebp - 4], 0xffffffff
mov byte [ebp + 0xb], 1
push edi
call sub.MFC42.DLL_operatordelete
mov al, byte [ebp + 0xb]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40158c
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
cmp dword [ebp + 0xc], 1
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jae 0x4015d5
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push eax
mov dword [ebp + 0xc], 0x4270e0
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
lea eax, [ebp - 0x1c]
push 0x421a48
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0x38
pop eax
cmp dword [ebp + 0xc], eax
jbe 0x4015e0
mov dword [ebp + 0xc], eax
push ebx
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
lea edi, [esi + 0x10]
push 0x48
push 0x41f8ac
push edi
call sub.MSVCRT.dll_memcpy
lea eax, [esi + 0x58]
push 0x1000
push 0x41f8f4
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x24
and dword [ebp + 0x10], 0
lea eax, [ebp - 0x54]
mov ecx, edi
push 4
mov dword [ebp - 8], 0x12
pop ebx
and dword [ebp + 8], 0
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 8]
movzx ebx, byte [eax]
shl edx, 8
or edx, ebx
inc eax
inc dword [ebp + 0x10]
mov dword [ebp + 8], edx
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp + 0xc]
jne 0x401652
and dword [ebp + 0x10], 0
lea eax, [ebp - 0x54]
dec dword [ebp - 4]
jne 0x401631
mov edx, dword [ebp + 8]
push 4
xor dword [ecx], edx
pop ebx
add ecx, ebx
dec dword [ebp - 8]
jne 0x40162a
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.004016e3
mov eax, dword [ebp - 0x10]
inc dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
add edi, ebx
inc dword [ebp + 0xc]
mov dword [edi], eax
add edi, ebx
cmp dword [ebp + 0xc], 0x12
jb 0x401671
lea eax, [esi + 0x58]
mov dword [ebp + 8], ebx
mov dword [ebp + 0x10], eax
and dword [ebp + 0xc], 0
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.004016e3
mov eax, dword [ebp - 0x10]
inc dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
add edi, ebx
inc dword [ebp + 0xc]
mov dword [edi], eax
add edi, ebx
cmp dword [ebp + 0xc], 0x100
jl 0x4016a6
add dword [ebp + 0x10], 0x400
dec dword [ebp + 8]
jne 0x40169f
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret 0xc
Function at 0x4059aa
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x41c658
call fcn.0041baa0
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov edi, 0x429ea8
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [esi + 8]
mov dword [ebp - 0x10], esi
mov dword [esi + 4], eax
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
push edi
lea ecx, [esi + 0xc]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
mov dword [esi + 0x20], 0x2710
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 6
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call sub.MFC42.DLL_CString::CString_1
push edi
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 7
mov dword [esi + 0x40], ebx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x48], bl
mov byte [esi + 0x49], bl
mov dword [esi + 0x4c], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x405a78
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x41c6bc
call fcn.0041baa0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x44]
mov dword [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4087ea
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
push ebx
push esi
push edi
mov esi, 0x113
xor edi, edi
push esi
lea eax, [ebp - 0x21c]
push edi
push eax
call sub.MSVCRT.dll_memset
push edi
push 1
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004191bd
add esp, 0x1c
lea eax, [ebp - 0x21c]
mov ecx, 0x42bca8
push eax
call fcn.0041b4e4
push edi
push dword [0x42bca8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
mov esi, 0x42bc8c
push eax
mov ecx, esi
call fcn.0041b4e4
mov edi, 0x4281ec
mov ecx, esi
push edi
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x108]
mov esi, 0x42bcbc
push eax
mov ecx, esi
call fcn.0041b4e4
push edi
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp - 0x320]
push eax
call fcn.0041a0b4
pop ecx
lea eax, [ebp - 0x320]
push eax
mov ecx, 0x42bcac
call fcn.0041b4e4
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40899b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41cb4f
call fcn.0041baa0
sub esp, 0x42c
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x38]
xor ebx, ebx
push 0x428748
push eax
mov dword [ebp - 0x14], ebx
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x38]
push 0x428744
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x38]
push 0x42873c
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x38]
push 0x428738
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x38]
push 0x428734
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x38]
push 0x428730
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x30
cmp edi, ebx
jne 0x408a14
lea edi, [ebp - 0x38]
push 0x429ea8
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString_1
push 1
lea eax, [ebp - 0x10]
pop esi
push eax
push 0x20019
push ebx
push edi
push SysReAllocStringLen
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408a7d
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x400
push eax
lea eax, [ebp - 0x438]
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408a74
lea eax, [ebp - 0x438]
lea ecx, [ebp + 0x10]
push eax
call fcn.0041b4e4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x14], esi
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x409455
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push dword [0x42bca8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x148]
push eax
call sub.MSVCRT.dll_strcpy
push dword [0x420974]
lea eax, [ebp - 0x148]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x44]
push 0x40
push eax
push 0x429ea8
push dword [0x4209b8]
push dword [0x4209b4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 8]
leave
ret
Function at 0x40a2eb
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x41d065
call fcn.0041baa0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x88]
mov dword [ebp - 4], 0x1d
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x84]
mov byte [ebp - 4], 0x1c
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 0x19
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 0x18
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 0x17
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 0x16
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40ca81
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call fcn.0041844d
test eax, eax
je 0x40caf4
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
push 1
mov ebx, 0x428b1c
push ebp
mov edi, SysReAllocStringLen
push ebx
push edi
call esi
test eax, eax
jne 0x40cacc
push dword [esp + 0x14]
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
push eax
push 2
push ebp
push ebx
push edi
call esi
test eax, eax
jne 0x40cba3
push dword [esp + 0x14]
or dword [esp + 0x14], 2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40cba3
lea eax, [esp + 0x120]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x120]
push eax
lea eax, [esp + 0x1c]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [esp + 0x20]
push 0x428ae8
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0x80
lea eax, [esp + 0x18]
push ebp
push edi
push 4
push ebp
push ebp
push SysReAllocStringLen
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
jne 0x40cb68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40cb73
mov dword [esp + 0x10], 1
jmp 0x40cb73
push eax
mov dword [esp + 0x14], 1
call ebx
push ebp
push edi
push 3
push ebp
push ebp
lea eax, [esp + 0x2c]
push 0x40000000
push eax
call esi
cmp eax, 0xffffffff
jne 0x40cb9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40cba3
or dword [esp + 0x10], eax
jmp 0x40cba3
or dword [esp + 0x10], 2
push eax
call ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
Function at 0x40da35
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
lea eax, [ebp - 4]
push edi
push eax
push 0x20019
push 0
push 0x427a84
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40db38
xor edi, edi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0x104
push eax
lea eax, [ebp - 0x318]
push eax
push 0
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x41c]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40db2f
cmp byte [ebp + 0xc], al
jne 0x40db07
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x624]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x624]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x18
test eax, eax
je 0x40daef
inc eax
push eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x40db22
jmp 0x40db1c
push dword [ebp + 8]
lea eax, [ebp - 0x318]
push eax
call fcn.004189b7
pop ecx
test al, al
pop ecx
jne 0x40db22
inc edi
jmp 0x40da64
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40db3a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
leave
ret

Function at 0x40dbf6
Capabilities:
Reference cloudflare dns server

Disassembly:
push esi
mov esi, ecx
xor al, al
push edi
cmp byte [esi + 0x40], al
jne 0x40dc0f
cmp byte [esi + 0x42], al
jne 0x40dc0a
xor eax, eax
jmp 0x40dc5d
push 0x19
pop edi
jmp 0x40dc1c
cmp byte [esi + 0x42], al
mov edi, 0x3e8
je 0x40dc1c
add edi, 0x64
cmp byte [esi + 0x41], al
je 0x40dc24
add edi, 0x19
push 0x429ea8
push dword [esi + 0x30]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x40dc3e
mov eax, edi
push 0x64
cdq
jmp 0x40dc56
push 1
push str.1.1.1.1
lea ecx, [esi + 0x14]
call fcn.0040f6b3
test eax, eax
jg 0x40dc5b
mov eax, edi
push 0xa
cdq
pop ecx
idiv ecx
mov edi, eax
mov eax, edi
pop edi
pop esi
ret