joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440d20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e1a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00466f20
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004406c0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00466e4e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00463717
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00463717
push 1
push 0
push 0
mov ecx, esi
call fcn.004636bf
push 1
push 0
push 1
mov ecx, esi
call fcn.004636bf
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00466f92
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x440ea0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e1c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00466f20
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004406c0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00466e4e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x440f64
cmp dword [esp + 0x40], 1
jne 0x440f62
cmp ecx, eax
jge 0x440f64
mov eax, ecx
cmp eax, 0xc8
jge 0x440f70
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00440d20
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00466f92
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4416f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e233
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00461b32
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004671c8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004686e4
test eax, eax
je 0x44180c
mov ecx, dword [esp + 0x3c]
call fcn.004671f5
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4417d0
push edi
mov ecx, esi
call fcn.00464861
mov ecx, esi
call fcn.00441970
cmp dword [esp + 0x38], 1
jne 0x441805
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046499c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x444230
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444263
push esi
call fcn.00447330
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44425c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4442e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4442d2
mov eax, dword [esi + 8]
test eax, eax
je 0x444287
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4442ce
cmp eax, 2
je 0x4442d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44427a
cmp eax, 3
je 0x4442ad
cmp eax, 1
jne 0x44427a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44427a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44427a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444310
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4442f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444310
add esp, 4
pop esi
ret

Function at 0x462928
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462960
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.004609dc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004609b4
jmp 0x46296c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46401b
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 0x46405d
call fcn.00469aca
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46405d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x464054
xor eax, eax
jmp 0x464065
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046406b
pop edi
pop esi
pop ebx
ret 4

Function at 0x469ffa
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 0x46a028
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a046
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00469f60
jmp 0x46a046
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a046
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00469f60
test edi, edi
mov eax, edi
jne 0x46a030
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x444198
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x44419e
ret
Function at 0x4016e0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
mov dword [esi + 0x14], 0
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [esi + 4], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 4]
mov dword [esi + 0xc], eax
test edx, edx
mov ecx, 1
jne 0x401722
xor ecx, ecx
mov edx, dword [esi + 8]
test edx, edx
jne 0x40172b
xor ecx, ecx
test eax, eax
je 0x401763
test ecx, ecx
je 0x401763
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x401480
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x401763
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x14], 1
pop edi
mov eax, 1
pop esi
ret
mov ecx, esi
call fcn.00401770
pop edi
xor eax, eax
pop esi
ret

Function at 0x401ac0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
mov esi, dword [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
mov edi, ecx
test esi, esi
mov dword [esp + 0x14], eax
mov word [esp + 8], 2
jne 0x401b29
push 0xffffffffffffffff
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov word [esp + 0xa], ax
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0xc]
push 0x10
push eax
push ecx
push edx
mov ecx, edi
call fcn.00401d00
pop edi
pop esi
add esp, 0x10
ret 0x14
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x401af4
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x401b4d
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
jmp 0x401af0
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0x14
Function at 0x403b70
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40ab76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [esp + 0x338]
lea eax, [esp + 0x18]
push eax
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x33c]
lea ecx, [esp + 8]
push eax
call sub.MFC42.DLL_CString::CString_2
push 0x4103d8
lea ecx, [esp + 0xc]
mov dword [esp + 0x334], ebx
call fcn.0040a03e
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x10]
push 0x4103d0
push ecx
mov byte [esp + 0x340], 1
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 4]
mov dword [esp + 4], ebx
push edx
push 0x40de90
push 1
push ebx
push 0x40de80
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x403d1d
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x340]
mov dword [esp + 0x10], ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0x348]
cmp eax, ebx
je 0x403c85
mov ecx, dword [esp + 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x344]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 4]
lea edx, [esp + 0x10]
push edx
push 0x40dea0
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, ebx
jl 0x403ce8
mov ecx, dword [esp + 8]
lea eax, [esp + 0x120]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x120]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [esp + 0xc]
mov byte [esp + 0x330], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x330], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x403d43
lea ecx, [esp + 0xc]
mov byte [esp + 0x330], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x330], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x328]
pop ebx
mov dword fs:[0], ecx
add esp, 0x330
ret 0x14
Function at 0x404a20
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push ebx
push esi
push edi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x404ab4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x404ab4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x404ab4
mov edx, dword [esp + 0x18]
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404ab4
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
je 0x404aae
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret 0xc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x404ac0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0x410644
mov edi, ecx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x404c83
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push eax
mov esi, 1
push 0x4106f4
push edx
mov dword [esp + 0x30], esi
call ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.ErrorControl
push ecx
mov dword [esp + 0x30], esi
call ebx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push 4
push edx
push 4
push 0
push str.Start
push eax
mov dword [esp + 0x30], 3
call ebx
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
push 0x41068c
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x404c73
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push 0x41067c
push eax
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404c65
mov ecx, dword [esp + 0x14]
push 0x410670
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, edi
call fcn.00404ca0
test eax, eax
jne 0x404c4b
mov edi, 0x410670
or ecx, 0xffffffff
mov edx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + edx + 0x23]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x14], esi
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x410670
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], edx
mov byte [esp + edx + 0x24], al
inc edx
push edx
mov edx, dword [esp + 0x24]
push ecx
push edx
push eax
mov eax, dword [esp + 0x20]
push 0x41067c
push eax
call ebx
test eax, eax
jne 0x404c4f
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], 1
push ecx
call ebp
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x118
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x118
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x118
ret
Function at 0x404d10
Capabilities:
Persist via winlogon helper dll registry key

Disassembly:
push 0xffffffffffffffff
push 0x40ac40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
lea ecx, [esp + 0xc]
xor ebx, ebx
xor esi, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x18], ebx
mov dword [esp + 8], ebx
push 0x4102bc
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.00408950
test eax, eax
je 0x404d93
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push 0x4106fc
call fcn.00408a60
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x404d8a
mov esi, 1
lea ecx, [esp + 8]
call fcn.00408b10
lea ecx, [esp + 8]
mov byte [esp + 0x18], bl
call fcn.00408b10
lea ecx, [esp + 0xc]
mov dword [esp + 8], ebx
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x404dd0
Capabilities:
Persist via winlogon helper dll registry key

Disassembly:
push 0xffffffffffffffff
push 0x40ac66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
xor ebx, ebx
mov dword [esp + 0x154], ebx
mov dword [esp + 4], ebx
push 0x4102bc
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 1
call fcn.00408950
test eax, eax
je 0x404e80
push esi
mov esi, dword [esp + 0x160]
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x404e76
test byte [esp + 0x10], 0x10
jne 0x404e76
lea ecx, [esp + 0xc]
push ecx
push 0x4106fc
lea ecx, [esp + 0x10]
call fcn.00408a60
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push edx
push 0x410708
call fcn.004089d0
push esi
push 0x4106fc
lea ecx, [esp + 0x10]
call fcn.004089d0
lea ecx, [esp + 8]
call fcn.00408b10
pop esi
lea ecx, [esp + 4]
mov byte [esp + 0x154], bl
call fcn.00408b10
lea ecx, [esp + 8]
mov dword [esp + 4], ebx
mov dword [esp + 0x154], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14c]
pop ebx
mov dword fs:[0], ecx
add esp, 0x154
ret 4
Function at 0x4062a0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x84
push esi
push edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0xc]
push 0x80
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x4062d8
lea ecx, [esp + 0xc]
push ecx
jmp 0x4062dd
push 0x4108f4
mov esi, dword [esp + 0x94]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop edi
pop esi
add esp, 0x84
ret

Function at 0x406300
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x84
lea eax, [esp + 4]
push ebx
push esi
push 0x80
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x40638b
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x40638b
mov ecx, dword [esp + 0x90]
push 0xffffffffffffffff
push 0
call sub.MFC42.DLL_CStringArray::SetSize
mov edx, dword [ebx + 0xc]
mov esi, dword [edx]
test esi, esi
je 0x40638b
push ebp
push edi
xor ebp, ebp
movsx ecx, word [ebx + 0xa]
mov eax, ecx
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [esp + 0x98]
push eax
mov edx, dword [ecx + 8]
push edx
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [ebx + 0xc]
add ebp, 4
mov esi, dword [eax + ebp]
test esi, esi
jne 0x40634a
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x84
ret
Function at 0x4079b0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x408a20
Capabilities:
Set registry value

Disassembly:
push esi
lea eax, [esp + 0xc]
mov esi, ecx
push 4
mov ecx, dword [esp + 0xc]
push eax
mov edx, dword [esi]
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x408a52
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x408a60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x400
mov dword [esp + 0x18], 1
xor ebp, ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
mov edx, dword [esp + 0x20]
mov ecx, 0x100
xor eax, eax
mov edi, esi
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [ebx]
push esi
push ecx
push ebp
push edx
push eax
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408ac5
mov ecx, dword [esp + 0x20]
push esi
mov ebp, 1
call sub.MFC42.DLL_CString::operator_1
jmp 0x408ace
mov ecx, dword [esp + 0x20]
call sub.MFC42.DLL_CString::Empty
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x4097c0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b2d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
xor ebx, ebx
mov eax, dword [esi]
mov dword [ebp - 0x10], esp
cmp eax, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
je 0x40980b
lea eax, [ebp - 0x1c]
push 0x40ecb8
push eax
mov dword [ebp - 0x1c], 1
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x18]
push ecx
push 0x410c18
push 1
push edi
push 0x410c08
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jge 0x40983b
lea edx, [ebp - 0x20]
push 0x40ecb8
push edx
mov dword [ebp - 0x20], 2
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp eax, edi
jge 0x409861
lea eax, [ebp - 0x24]
push 0x40ecb8
push eax
mov dword [ebp - 0x24], 3
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp eax, edi
jge 0x409895
lea edx, [ebp - 0x28]
push 0x40ecb8
push edx
mov dword [ebp - 0x28], 4
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, 0x409890
ret
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x4098a9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x4098b6
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret