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

Disassembly:
push 0xffffffffffffffff
push 0x4c13d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push ecx
push ebx
push edx
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea eax, [esp + 0x20]
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004aad30
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], edx
je 0x4a9f7b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4a9f72
cmp al, 0xff
je 0x4a9f72
dec al
mov byte [ecx], al
jmp 0x4a9f7b
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4a9fac
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4a9fa3
cmp al, 0xff
je 0x4a9fa3
dec al
mov byte [ecx], al
jmp 0x4a9fac
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x47b100
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x46517f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push esi
push edi
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0
call 0x4dd82e
push 0x4852b4
lea ecx, [esp + 0x14]
mov dword [esp + 0x58], 1
call 0x4dd810
push 0x485234
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 2
call 0x4dd810
push 0x485230
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 3
call 0x4dd810
push 0x48522c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 4
call 0x4dd810
push 0x485228
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 5
call 0x4dd810
push 0x485224
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 6
call 0x4dd810
push 0x485220
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 7
call 0x4dd810
push 0x48521c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 8
call 0x4dd810
push 0x485218
lea ecx, [esp + 0x30]
mov byte [esp + 0x58], 9
call 0x4dd810
push 0x485214
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 0xa
call 0x4dd810
push 0x485210
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 0xb
call 0x4dd810
push 0x48520c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 0xc
call 0x4dd810
push 0x485208
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 0xd
call 0x4dd810
push 0x485200
lea ecx, [esp + 0x44]
mov byte [esp + 0x58], 0xe
call 0x4dd810
push 0x4851fc
lea ecx, [esp + 0x48]
mov byte [esp + 0x58], 0xf
call 0x4dd810
mov eax, dword [esp + 0x64]
mov byte [esp + 0x54], 0x10
test eax, eax
mov edi, 0x4851f8
jne 0x47b262
mov edi, 0x49e9f4
mov esi, dword [esp + 0x60]
xor eax, eax
push 2
lea ecx, [esp + 0x68]
mov ax, word [esi + 6]
shl eax, 1
push eax
push ecx
lea ecx, [esp + 0x18]
call 0x4dd840
mov edx, dword [eax]
xor eax, eax
mov ax, word [esi + 2]
push edx
lea edx, [esp + 0xc]
mov byte [esp + 0x58], 0x11
mov ecx, dword [esp + eax*4 + 0x18]
push ecx
push edi
push 0x4851e8
push edx
call 0x4dd83a
add esp, 0x14
lea ecx, [esp + 0x64]
mov byte [esp + 0x54], 0x10
call 0x4dd816
mov esi, dword [esp + 0x5c]
lea eax, [esp + 8]
push eax
mov ecx, esi
call 0x4dd822
mov dword [esp + 0x48], 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x54], 0xf
call 0x4dd816
lea ecx, [esp + 0x40]
mov byte [esp + 0x54], 0xe
call 0x4dd816
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0xd
call 0x4dd816
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 0xc
call 0x4dd816
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 0xb
call 0x4dd816
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 0xa
call 0x4dd816
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 9
call 0x4dd816
lea ecx, [esp + 0x28]
mov byte [esp + 0x54], 8
call 0x4dd816
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], 7
call 0x4dd816
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 6
call 0x4dd816
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 5
call 0x4dd816
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 4
call 0x4dd816
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 3
call 0x4dd816
lea ecx, [esp + 0xc]
mov byte [esp + 0x54], 2
call 0x4dd816
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 1
call 0x4dd816
mov byte [esp + 0x54], 0
lea ecx, [esp + 8]
call 0x4dd816
mov ecx, dword [esp + 0x4c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x50
ret 0xc
Function at 0x499110
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468b14
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 0x64
mov eax, dword [esi + 0x40]
lea ecx, [esp + 0x14]
push ebx
push ecx
push 0x50000000
push edi
push eax
mov ecx, esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call 0x4dd954
push 0x4c
call 0x4dd870
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, edi
mov dword [esp + 0x24], edi
je 0x49917c
mov ecx, eax
call fcn.0049a1e0
jmp 0x49917e
xor eax, eax
push 1
lea edx, [esp + 0x10]
push esi
push edx
mov dword [esp + 0x30], 0xffffffff
push 0x50010080
mov ecx, eax
mov dword [esi + 0x9c], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call 0x4ddf06
mov ecx, dword [esi + 0x9c]
push 1
push 0x14
push 0x1f4
push edi
push edi
call 0x4dd9ea
mov eax, dword [ebx + 0x20]
mov ebx, dword [fcn.00471cdc]
push edi
push edi
push 0x31
push eax
call ebx
push eax
call 0x4dded0
mov ecx, dword [esi + 0x9c]
cmp eax, edi
jne 0x4991ea
xor eax, eax
jmp 0x4991ed
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push 1
push eax
push 0x30
push ecx
call ebx
mov eax, dword [esi + 0x9c]
push 0x10001
push 3
push 0xd3
mov edx, dword [eax + 0x20]
push edx
call ebx
mov eax, dword [esi + 0x9c]
mov ecx, dword [0x49372c]
push 0xac
mov dword [eax + 0x44], ecx
call 0x4dd870
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, edi
mov dword [esp + 0x24], 1
je 0x499246
push edi
mov ecx, eax
call fcn.0047c020
jmp 0x499248
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
push 0x66
mov ecx, eax
mov dword [esi + 0xa0], eax
call 0x4ddf00
mov ecx, dword [esi + 0xa0]
push edi
push 0x80
push 0x40000
call 0x4ddefa
mov edx, dword [esi + 0xa0]
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x1c]
pop edi
mov dword [edx + 0x64], eax
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x4a3050
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x469998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, ecx
mov ecx, dword [0x49ec38]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
lea edx, [esp + 0x38]
mov ebp, eax
push edx
call fcn.0047ba80
add esp, 4
lea ebx, [edi + 0xa4]
push eax
mov ecx, ebx
mov dword [esp + 0x34], 0
call 0x4dda5c
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call 0x4dd816
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push ecx
mov edx, dword [eax - 8]
push edx
push eax
mov eax, dword [esi + 8]
push eax
call dword [fcn.00471074]
lea ecx, [edi + 0x94]
mov edx, ecx
mov eax, dword [edx]
add eax, 2
mov ecx, dword [edx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0xa8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx + 8]
sub ecx, 2
mov edx, dword [edx + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov edx, dword [esi]
mov dword [esp + 0x24], eax
mov eax, dword [0x493730]
push eax
mov ecx, esi
call dword [edx + 0x38]
push 1
mov ecx, esi
call 0x4dde22
mov ebx, dword [ebx]
mov edx, dword [esi]
mov edi, eax
lea eax, [esp + 0x18]
mov ecx, dword [ebx - 8]
push 0x8025
push eax
push ecx
push ebx
mov ecx, esi
call dword [edx + 0x70]
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x30]
push edi
mov ecx, esi
call 0x4dde22
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x401140
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x473d5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call sub.MFC42.DLL_CWnd::CWnd
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [esp + 0x30], ebx
call sub.MFC42.DLL_CString::CString_2
lea edi, [esi + 0x44]
mov byte [esp + 0x30], 1
mov ecx, edi
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [edi + 4]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString_2
mov al, byte [esp + 0xf]
mov cl, byte [esp + 0xf]
mov byte [edi + 0xc], al
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov byte [edi + 0x1c], cl
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x2c], ebx
mov ecx, 0x11
mov eax, 0xa
mov dword [esi + 0x78], 0x47d2bc
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], 0x47d2a8
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ecx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], eax
mov byte [esp + 0x30], 5
mov dword [esi], 0x47d1e8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push ebx
push ebx
lea edx, [esp + 0x20]
push eax
push edx
push ebx
push 0x4eba90
push ebx
mov ecx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call sub.MFC42.DLL_CWnd::Create
push ebx
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x403770
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4741c8
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push 0x65
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ebp, eax
test ebp, ebp
je 0x4038ab
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esi + 0x60]
call sub.MFC42.DLL_CListCtrl::GetItemText_1
add esi, 0x1a0
push eax
lea edx, [esp + 0x24]
push esi
push edx
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_operator_2
push str..txt
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0x20], 1
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
push 0x4e7268
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x403845
push 0x4eba90
mov ecx, ebp
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
pop ebp
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
push ebx
push edi
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push esi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_rewind]
lea edx, [ebx + 1]
push edx
call sub.MFC42.DLL_operatornew
push esi
mov edi, eax
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x28
mov ecx, ebp
mov byte [edi + ebx], 0
push edi
call sub.MFC42.DLL_CWnd::SetWindowTextA
push edi
call dword [sym.imp.MSVCRT.dll_free]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebx
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4038c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4741e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [esi + 0x188]
mov dword [esp + 0x10], 0
test esi, esi
je 0x403929
push edi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [esi + 8]
lea ecx, [esp + 8]
push eax
call fcn.0041f172
mov ecx, dword [esp + 8]
mov esi, dword [esi]
push 5
push 0x4eba90
push 0x4eba90
push ecx
push str.open
push 0
call edi
test esi, esi
jne 0x4038fb
pop edi
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404c50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x474413
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x47d7c0
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.0041f400
mov dword [ebx], 0x47d7ac
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.0041f400
or eax, 0xffffffff
push 0x4ebaf8
mov dword [ebx], 0x47d770
push edi
mov dword [esi], 0x47d784
mov dword [esi + 0x54], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], 0xc0c0c0
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x58], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x408290
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x474840
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x47d804
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_3
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [edi + 2]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
push ebx
call sub.MFC42.DLL_CDC::LineTo
lea ebp, [edi + 3]
lea eax, [ebx + 1]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 1]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 4]
lea ecx, [ebx + 2]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 7]
mov ecx, esi
push eax
lea eax, [ebx + 2]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [ebx + 3]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 3]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
lea eax, [ebx + 4]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [edi + 1]
lea eax, [ebx + 5]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 4]
mov ecx, esi
push eax
lea eax, [ebx + 5]
push eax
call sub.MFC42.DLL_CDC::LineTo
add ebx, 6
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
push ebp
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_3
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x10], 0x47d7dc
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x4094b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4749f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov eax, esi
mov ebp, ecx
push edi
xor edi, edi
mov ecx, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0x47d818
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], edi
call fcn.00404db0
test eax, eax
je 0x40950e
push 0xf
jmp 0x409510
push 4
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
call ebx
cmp dword [esp + 0x40], edi
jne 0x409531
push 0x3fe33333
push 0x33333333
push eax
call fcn.00405cd0
add esp, 0xc
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
call fcn.00404da0
test eax, eax
je 0x409589
mov eax, dword [edi + 4]
push 0xf
lea edx, [esp + 0x1c]
push 2
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
push 7
test eax, eax
jne 0x4095ad
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 4
push eax
add edx, 4
push ecx
push edx
push edi
mov ecx, ebp
call fcn.00408290
jmp 0x4095c5
call ebx
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 4]
add ecx, 5
add eax, 4
push eax
push ecx
push edi
mov ecx, ebp
call fcn.00408170
mov dword [esp + 0x10], 0x47d7dc
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10

Function at 0x409b20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
and esi, 0xffff
push 2
push esi
call sub.MFC42.DLL_AfxFindResourceHandle
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push 2
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x409b5d
xor ebx, ebx
push 2
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x409b5d
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409b6e
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x409b7e
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call fcn.00409ae0
add esp, 4
cmp ax, 0x10
je 0x409b94
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push edi
push ebx
call sub.MFC42.DLL_AfxLoadSysColorBitmap
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x409d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x4ebb18]
sub esp, 0x134
test eax, eax
jne 0x409e35
lea eax, [esp]
mov dword [0x4ebb18], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409e35
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409e28
mov ecx, 5
mov esi, str.Windows_Classic.theme
lea edi, [esp + 0x14]
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x409e28
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x409e28
mov dword [0x4ebb14], 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [0x4ebb14]
add esp, 0x134
ret

Function at 0x40a8b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x474b2b
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
mov dword [esi], 0x47d848
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x40a940
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x40a907
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x40a931
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x40a946
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x40a946
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x47d7dc
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x47d2d0
mov dword [esp + 0x1c], 0xffffffff
call fcn.0041f4f6
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret