joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fc7b0
Capabilities:
Resolve dns
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.004fc880
test eax, eax
je 0x4fc872
push 0xdf
push 0
push 0
mov ecx, esi
call fcn.004fc6d0
mov ecx, esi
call fcn.004fc8b0
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4fc7f7
mov ecx, dword [esi + 0x120]
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x4fc826
push 0xdb
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0xa0]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 0xa0], 0
mov eax, dword [esi + 0x104]
test eax, eax
je 0x4fc872
mov eax, dword [esi + 0x64]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4fc84a
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 4], eax
jmp 0x4fc852
mov dword [esp + 4], 0
mov esi, dword [esi + 0x104]
test esi, esi
je 0x4fc85f
mov esi, dword [esi + 0x20]
lea ecx, [esp + 4]
push 0
push ecx
push 0x4a1
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
pop esi
pop ecx
ret
Function at 0x4ff330
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
mov esi, ecx
call sub.MFC42.DLL_CWnd::GetStyle
test ah, 8
je 0x4ff341
xor eax, eax
pop esi
ret
push 0
mov ecx, esi
call sub.MFC42.DLL_CRichEditCtrl::CanPaste
test eax, eax
jne 0x4ff38a
mov eax, dword [0x5f42d0]
push eax
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x4ff38a
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4ff36e
pop esi
ret
push 2
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
jne 0x4ff384
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
pop esi
ret
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, 1
pop esi
ret
Function at 0x514810
Capabilities:
Change the wallpaper

Disassembly:
push 0xffffffffffffffff
push 0x58b282
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x224
mov dword [esp + 0x18], esi
call sub.MFC42.DLL_CDialog::CDialog_1
lea ecx, [esi + 0x98]
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [ecx], 0x59765c
mov dword [ecx + 4], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], edi
lea ebx, [esi + 0xac]
mov dword [ebx], 0x5934ec
mov dword [ebx + 4], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
lea ebp, [esi + 0xc0]
mov dword [ebp], 0x5934ec
mov dword [ebp + 4], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
push 0xffffffffffffffff
push edi
mov byte [esp + 0x34], 3
mov dword [esi], 0x5b88f8
call fcn.004374d0
push 0xffffffffffffffff
push edi
mov ecx, ebx
call fcn.004374d0
push 0xffffffffffffffff
push edi
mov ecx, ebp
call fcn.004374d0
lea ecx, [esp + 0x14]
push edi
push ecx
push edi
push 0x30
mov dword [esi + 0x84], 1
mov dword [esi + 0x88], 2
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
sub edx, ebx
sub eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x90], eax
mov dword [esi + 0x60], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x8c], edx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x51b030
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x5f42d8]
push esi
test eax, eax
mov esi, ecx
je 0x51b064
mov eax, dword [eax + 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x5f42d8]
push 0xffffffffffffffff
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [0x5f42d8], 0
mov eax, dword [esi + 0x70]
cmp eax, 0xffffffff
je 0x51b072
push eax
call sub.WSOCK32.dll_closesocket
mov eax, dword [esi + 0x74]
cmp eax, 0xffffffff
je 0x51b080
push eax
call sub.WSOCK32.dll_closesocket
mov eax, dword [esi + 0x6c]
cmp eax, 0xffffffff
je 0x51b08e
push eax
call sub.WSOCK32.dll_closesocket
mov dword [esi + 0x70], 0xffffffff
mov dword [esi + 0x74], 0xffffffff
mov dword [esi + 0x6c], 0xffffffff
mov esi, dword [esi + 0x80]
test esi, esi
je 0x51b0bd
push 0
push 0
push 0x4c1
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
pop esi
ret
Function at 0x51ef20
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58c068
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 4], edi
je 0x51efd4
cmp dword [esi + 8], edi
je 0x51f033
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.0051f9b0
mov eax, dword [eax]
add esi, 0x14
push eax
mov ecx, esi
mov dword [esp + 0x90], edi
call fcn.004acaa0
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x8c], 0xffffffff
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x51f033
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.00491eb0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
mov ecx, dword [esp + 0x9c]
add esp, 4
mov dword [ecx], eax
lea ecx, [esp + 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], edi
call sub.MFC42.DLL_CString::CString
jmp 0x51f047
mov ebx, dword [esp + 0x98]
mov ecx, dword [esi + 0x50]
mov eax, 4
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
push edx
mov edx, dword [esi + ecx*4 + 0x50]
lea eax, [esp + 0x1c]
push ebx
push eax
push edi
mov edi, dword [esp + 0xa4]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x51f047
mov edx, dword [esi + 0x50]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0x64
push eax
mov eax, dword [esi + edx*4 + 0x50]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x51f037
xor eax, eax
jmp 0x51f04c
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov dword [ebx], eax
mov eax, 1
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret 8

Function at 0x51f070
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58c088
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x51f0f1
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0051f9b0
mov eax, dword [eax]
add esi, 0x14
push 0
push 0
push eax
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.004afcb0
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
push edx
push eax
mov ecx, esi
call fcn.004af0a0
and eax, 0xff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8
mov eax, dword [esi + 0x50]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 4
push ecx
mov ecx, dword [esi + eax*4 + 0x50]
push 4
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
pop esi
neg eax
sbb eax, eax
mov dword fs:[0], ecx
inc eax
add esp, 0xc
ret 8
Function at 0x51f130
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x58c0b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 4], ebp
je 0x51f237
cmp dword [esi + 8], ebp
je 0x51f233
cmp dword [esp + 0x30], ebp
je 0x51f1a9
lea eax, [esp + 0x24]
lea ecx, [esi + 0x14]
push eax
call fcn.00491eb0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
mov dword [esp + 0x28], ebp
call fcn.0043bab0
add esp, 0xc
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x51f287
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.0051f9b0
mov eax, dword [eax]
add esi, 0x14
push eax
mov ecx, esi
mov dword [esp + 0x20], 1
call fcn.004acaa0
or edi, 0xffffffff
lea ecx, [esp + 0x24]
mov bl, al
mov dword [esp + 0x1c], edi
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x51f233
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00491eb0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
mov dword [esp + 0x28], 2
call fcn.0043bab0
add esp, 0xc
lea ecx, [esp + 0x30]
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
mov dword [esi + 0x1c], ebp
mov dword [esp + 0x1c], edi
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x51f287
xor eax, eax
jmp 0x51f287
mov edi, dword [esp + 0x28]
mov eax, dword [esi + 0x50]
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x14]
push edi
mov dword [esp + 0x18], 1
mov ecx, dword [esi + eax*4 + 0x50]
push edx
push ebp
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x51f26d
mov eax, 1
jmp 0x51f287
mov eax, dword [esi + 0x50]
lea edx, [esp + 0x2c]
push edx
push edi
mov ecx, dword [esi + eax*4 + 0x50]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x51f2a0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58c0d8
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x51f383
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x51f331
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0051f9b0
mov eax, dword [eax]
add esi, 0x14
push 0
push 0
push eax
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.004afcb0
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0xc]
push 0
push edx
push eax
mov ecx, esi
call fcn.004af0e0
and eax, 0xff
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
add esi, 0x14
push 0
push 0
push str.Item
mov ecx, esi
call fcn.004afcb0
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0xc]
push ecx
push 0x5ecb9c
push edx
mov ecx, esi
call fcn.004aeb30
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc]
push 0
push eax
push ecx
mov ecx, esi
call fcn.004af0e0
and eax, 0xff
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0xc
mov edx, dword [esp + 0x1c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x20]
push 1
push eax
mov eax, dword [esi + 0x50]
push edx
mov ecx, dword [esi + eax*4 + 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
pop edi
neg eax
sbb eax, eax
mov dword fs:[0], ecx
inc eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x51f3d0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58c0f8
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 4], edi
je 0x51f4ad
cmp dword [esi + 8], edi
je 0x51f497
cmp dword [esp + 0x28], edi
je 0x51f42a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea ecx, [esi + 0x14]
call fcn.004b0660
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, esi
call fcn.0051f9b0
mov eax, dword [eax]
add esi, 0x14
push eax
mov ecx, esi
mov dword [esp + 0x18], edi
call fcn.004acaa0
lea ecx, [esp + 0x1c]
mov bl, al
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x51f497
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.004b0660
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x50]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 3
push edx
mov edx, dword [esi + ecx*4 + 0x50]
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x10
Function at 0x51f500
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58c118
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x51f5de
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x51f58e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0051f9b0
mov eax, dword [eax]
add esi, 0x14
push 0
push 0
push eax
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.004afcb0
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.004b0820
and eax, 0xff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x10
add esi, 0x14
push 0
push 0
push str.Item
mov ecx, esi
call fcn.004afcb0
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xc]
push ecx
push 0x5ecb9c
push edx
mov ecx, esi
call fcn.004aeb30
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.004b0820
and eax, 0xff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x10
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esi + 0x50]
push eax
push 3
push 0
mov eax, dword [esi + edx*4 + 0x50]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
pop esi
neg eax
sbb eax, eax
mov dword fs:[0], ecx
inc eax
add esp, 0xc
ret 0x10

Function at 0x51f680
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x58c140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [ecx + 4]
test eax, eax
je 0x51f755
mov eax, dword [ecx + 8]
test eax, eax
je 0x51f742
push esi
lea esi, [ecx + 0x14]
push edi
push str.Item
mov ecx, esi
call fcn.004acaa0
and eax, 0xff
mov edi, eax
je 0x51f72d
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_5
lea eax, [esp + 8]
push 0x5ecb9c
push eax
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.00452e40
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 1
call fcn.00572d3c
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.0043bab0
add esp, 0xc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
lea edx, [esp + 0x28]
push 0
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [ecx + 0x50]
push edx
mov ecx, dword [ecx + eax*4 + 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 4]
neg eax
sbb eax, eax
mov dword fs:[0], ecx
inc eax
add esp, 0x10
ret 0xc
Function at 0x51f790
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58c160
push eax
mov dword fs:[0], esp
mov eax, dword [ecx + 4]
push esi
push edi
test eax, eax
je 0x51f866
mov eax, dword [ecx + 8]
test eax, eax
je 0x51f851
lea esi, [ecx + 0x14]
push str.Item
mov ecx, esi
call fcn.004acaa0
and eax, 0xff
mov edi, eax
je 0x51f83c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_5
lea eax, [esp + 0x18]
push 0x5ecb9c
push eax
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.00452e40
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x14], 1
call fcn.00572d3c
lea ecx, [esp + 0x18]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
call fcn.0043bab0
add esp, 0xc
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0x10
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0x10
mov edx, dword [esp + 0x24]
push 0
push 0
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push 0
push eax
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [ecx + 0x50]
push eax
mov eax, dword [ecx + edx*4 + 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, dword [esp + 8]
pop edi
neg eax
sbb eax, eax
mov dword fs:[0], ecx
inc eax
pop esi
add esp, 0xc
ret 0x10

Function at 0x51fb00
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x5f42e0]
sub esp, 0x94
test eax, eax
jne 0x51fc0c
push edi
mov ecx, 0x25
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
jne 0x51fb43
mov dword [0x5f42e0], eax
add esp, 0x94
ret
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x51fb5c
mov eax, 1
mov dword [0x5f42e0], eax
add esp, 0x94
ret
cmp eax, 2
jne 0x51fbc5
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x51fb7b
mov eax, 6
mov dword [0x5f42e0], eax
add esp, 0x94
ret
cmp eax, 5
jne 0x51fbaf
mov eax, dword [esp + 8]
test eax, eax
jne 0x51fb99
mov eax, 7
mov dword [0x5f42e0], eax
add esp, 0x94
ret
cmp eax, 1
jne 0x51fbaf
mov eax, 8
mov dword [0x5f42e0], eax
add esp, 0x94
ret
mov dword [0x5f42e0], 5
mov eax, 5
add esp, 0x94
ret
mov ecx, dword [esp + 4]
mov eax, 4
cmp ecx, eax
jne 0x51fbfd
mov ecx, dword [esp + 8]
cmp ecx, 0xa
jne 0x51fbec
mov eax, 3
mov dword [0x5f42e0], eax
add esp, 0x94
ret
cmp ecx, 0x5a
jne 0x51fbfd
mov dword [0x5f42e0], eax
add esp, 0x94
ret
mov dword [0x5f42e0], 2
mov eax, 2
add esp, 0x94
ret
Function at 0x520830
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x520922
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocString
mov ecx, edi
call fcn.00466a20
test eax, eax
jne 0x520922
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocString
mov ecx, edi
call fcn.00466a20
test eax, eax
jne 0x520922
mov edi, dword [sym.imp.MSVCRT.dll__mbsstr]
lea edx, [esp + 0x10]
push str.__1_
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x5208f3
lea eax, [esp + 0x10]
push 0x5e3904
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x5208f3
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x5208f6
mov byte [esi], 0
push 0x5e34fc
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x52c840
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push ebx
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
mov edi, ecx
push SysReAllocString
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esi + 0x44], eax
je 0x52c947
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
xor edx, edx
mov ebx, ecx
xor ebp, ebp
or edx, eax
or ebx, ebp
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ebx
mov edx, dword [esi + 0x20]
or edx, ebx
jne 0x52c8ac
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
push 0
push eax
mov eax, dword [esi + 0x44]
push ecx
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
mov ebp, dword [esi + 0x24]
mov dword [esi + 0x48], ebx
mov edi, dword [edi + 0x78]
mov ecx, dword [esi + 0x20]
mov eax, dword [edi + 0x5660]
cdq
cmp ebp, edx
jl 0x52c8e3
jg 0x52c8dd
cmp ecx, eax
jbe 0x52c8e3
mov dword [esp + 0x1c], eax
jmp 0x52c8e7
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x2c]
mov ebp, dword [esi + 0x28]
mov dword [esp + 0x18], ecx
mov edi, dword [edi + 0x5660]
mov edx, ecx
mov eax, edi
sar edx, 0x1f
cdq
push edx
push eax
push ecx
push ebp
call fcn.00573c00
imul eax, edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push eax
push edx
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x40], eax
je 0x52c947
push 1
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x52c947
mov ecx, dword [esp + 0x10]
push esi
call fcn.0052c960
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov ecx, dword [esi + 0x40]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
pop ecx
ret 8