joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4490e1
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x44faaf
call fcn.00431f68
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0044560e
xor edi, edi
lea ecx, [esi + 0x24]
mov dword [ebp - 4], edi
mov dword [esi], vtable.CInternetFile.0
call fcn.00403460
mov ebx, dword [ebp + 0x10]
push dword [ebx + 0xc]
mov ecx, 0x46a434
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00448818
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.00404ca0
mov eax, dword [ebx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
mov ecx, ebx
call fcn.004280aa
push eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.004035d0
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00403590
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x18], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x44927b
Capabilities:
Connect to http server

Disassembly:
mov eax, 0x44facc
call fcn.00431f68
push ecx
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
push edi
call fcn.0044923d
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00403460
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x4492e2
push eax
push dword [esi + 8]
call fcn.004489a2
push dword [esi + 0xc]
mov ecx, 0x46a434
push eax
call fcn.00448818
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x44a2be
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x4664b0]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x44a31c
push 0x4577cc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00432169
add esp, 0x10
cmp eax, 0xffffffff
je 0x44a330
cmp eax, esi
jae 0x44a330
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x44a332
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x44a2e7
jmp 0x44a333
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.00430af0
leave
ret
Function at 0x44a353
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4664b0]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x44a3f5
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x44a4f7
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x44a4a5
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44a4f8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44a49a
cmp dword [ebp - 0x24], 1
jne 0x44a49a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x4577dc
push eax
call fcn.00430fe7
add esp, 0xc
cmp eax, 1
jne 0x44a49a
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44a4f8
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x44a4f8
lea ecx, [ebp - 0x18]
push ecx
push 0x44a33d
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x44a4f8
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x44a51e
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.0044a2be
cmp eax, ebx
pop ecx
pop ecx
jne 0x44a520
inc edi
cmp edi, esi
jl 0x44a507
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00430af0
leave
ret 4
Function at 0x44a52f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x465a1c
je 0x44a5eb
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44a5d3
mov esi, dword [ebx + 4]
jmp 0x44a5cd
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44a5bd
cmp dword [ebp - 0xc], 4
jne 0x44a5bd
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x44a5b5
or dword [eax + 0x9c], ecx
jmp 0x44a5bd
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x44a581
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x44a564
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x44a9a4
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x44f984
call fcn.00431f68
sub esp, 0x11c
mov eax, dword [0x4664b0]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x44aa9d
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x44aa71
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00405620
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0044a9a4
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00403590
test bl, bl
jne 0x44aa71
or dword [ebp - 4], 0xffffffff
jmp 0x44a9e2
cmp esi, 0x103
je 0x44aa81
cmp esi, 0x3f2
jne 0x44aa91
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00430af0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44b004
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x44b039
cmp edi, dword [esi + 0xc]
jge 0x44b039
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44b039
cmp edi, dword [eax + 8]
jge 0x44b039
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x44b03b
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x44b13f
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x44b173
jmp fcn.0043dd61
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x44b1e4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x44b2dd
cmp eax, dword [edi + 0xc]
jge 0x44b2dd
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x44b235
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x44b2c6
cmp dword [ebp + 0xc], ebx
je 0x44b2c6
jmp 0x44b25f
push 0x10
call fcn.0044aed0
cmp eax, ebx
je 0x44b24b
mov ecx, eax
call fcn.0044b136
mov esi, eax
jmp 0x44b24d
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x44b276
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x44b286
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x44b298
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0043dd61
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00431350
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x44b2d8
cmp ecx, dword [esi + 8]
jge 0x44b2d8
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x44b2de
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44b39d
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 0x44b3cb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44b3e9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044b307
jmp 0x44b3e9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44b3e9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0044b307
test edi, edi
mov eax, edi
jne 0x44b3d3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x46a4cc]
test ecx, ecx
je 0x44b49c
jmp 0x44b39c
ret 8
Function at 0x10001670
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
sub eax, 0
je 0x100016a5
dec eax
jne 0x100016c7
mov eax, dword [esp + 4]
push 0
push 0
push 0
push 0x100016d0
push 0
push 0
mov dword [0x100048e8], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov eax, 1
ret 0xc
mov eax, dword [0x100048f8]
mov byte [0x100048ec], 1
test eax, eax
je 0x100016bc
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
ret 0xc

Function at 0x10001750
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x100048f0]
cmp esi, eax
je 0x10001794
push ebx
push esi
mov dword [0x100048f0], esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
lea eax, [edi + 2]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
inc edi
mov ebx, eax
push edi
push ebx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, ebx
pop ebx
pop edi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x10001020
Capabilities:
Encode data using xor

Disassembly:
call 0x3090be49
adc al, byte [edx + 0x28]
inc ecx
fsubr dword [eax + 0x6c]
and dl, byte [edx]
inc edx
sub byte [ecx - 0x28], al
push 0x4212226c
mov ebp, ebx
out dx, al
rcl dh, cl
pop eax
jnp 0x1000101b
or dl, byte [eax - 0x263741dc]
cmpsd dword [esi], dword es:[edi]
cmpsb byte [esi], byte es:[edi]
aam 0xb7
mov ebp, dword [ebx - 0x6b]
insd dword es:[edi], dx
test eax, 0xedadbcc8
mov esp, 0x6a751eef
sbb dword [edx + 0x33], 0x48
xor esp, edx
sal dword [esi + 0x1976202], 1
mov ebp, 0x91ade495
shr byte [eax + edx - 0x873fb5f], cl
jge 0x1000103d
inc ebx
sar byte [ebx - 0x2a], 1
rcr dword [edi + 0x67de788f], cl
jns 0x100010e9
jle 0x10000ff3
invalid
push 0xffffffffffffffc0
outsd dx, dword [esi]
jnp 0x100010fd
add ebp, dword [ecx - 0x50]
jns 0x10001022
inc ecx
imul edx, dword [eax + 0x41727b6f], 0xa6bc2053
inc ecx
mov dh, 0xb9
pop es
jb 0x100010d5
push ebx
and byte [esi + 0x7b9b641], bh
loop 0x10001082
pop es
jecxz 0x100010c3
fdivrp st(6)
in al, 0x85
stosd dword es:[edi], eax
nop
pop ebx
pop esp
xchg edx, eax
pop ds
sbb dword [edx], esp
pop edx
or esi, dword fs:[edx - 0x1e]
idiv dword [ecx - 0x3124]
invalid
dec ebp
fyl2xp1
dec edi
ret 0xf779
pop ebp
mov bh, 0x80
pushal
mov al, 0x6d
adc dword [0x431d90dc], esp
call 0xb3ce2898
mov al, 0x21
pop edx
add dword [eax], edi
rcl dword [edi], cl
and dword [edx + 1], ebx
cmp bl, dl
pop ss
rcr byte [0x2700e5b1], 0xe0
jecxz 0x10001132
add al, 0xad
jle 0x10001092
push es
arpl word [ecx], cx
or byte [eax + 0x3e], cl
push cs
sub ebx, dword [edx + ecx*2 - 0x16]
invalid
and eax, esi
mov cl, cl
jle 0x10001152
pop esi
or al, 0xc7
hlt
das
scasd eax, dword es:[edi]
dec ebp
cld
retf

Function at 0x43adb4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x43adb4
lcall 0x5de5, 0x8b10c483
jmp loc.01633b2c
Function at 0x408270
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [ecx + 0xc]
push ebx
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4082e4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4082e4
mov esi, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4082e4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
ret 4

Function at 0x409410
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push esi
xor esi, esi
cmp eax, 8
push edi
mov byte [esp + 0xc], 0
je 0x409467
cmp eax, 0x10
jne 0x409437
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
mov ax, word [ecx]
pop ebx
pop ecx
ret
cmp eax, 0x20
jne 0x409447
mov edx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov eax, dword [edx]
pop ecx
ret
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.getBgColour:_bpp__d__n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, 0x100
xor eax, eax
mov edi, 0x41d4d8
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
xor ecx, ecx
test edi, edi
jle 0x4094b2
mov edx, dword [esp + 0x14]
xor eax, eax
mov al, byte [ecx + edx]
cmp eax, 0x100
jge 0x4094c0
mov ebx, dword [eax*4 + 0x41d4d8]
inc ebx
mov dword [eax*4 + 0x41d4d8], ebx
mov eax, ebx
cmp eax, esi
jle 0x4094ad
mov esi, eax
mov al, byte [ecx + edx]
mov byte [esp + 0xc], al
inc ecx
cmp ecx, edi
jl 0x409483
mov eax, dword [esp + 0xc]
pop edi
pop esi
and eax, 0xff
pop ebx
pop ecx
ret
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push eax
push str.getBgColour
add ecx, 0x40
push str._s:_unusual_colour___d_n
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push 1
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x40b7b0
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push esi
xor esi, esi
cmp eax, 8
push edi
mov byte [esp + 0xc], 0
je 0x40b807
cmp eax, 0x10
jne 0x40b7d7
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
mov ax, word [ecx]
pop ebx
pop ecx
ret
cmp eax, 0x20
jne 0x40b7e7
mov edx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov eax, dword [edx]
pop ecx
ret
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.getBgColour:_bpp__d__n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, 0x100
xor eax, eax
mov edi, 0x41d8e8
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
xor ecx, ecx
test edi, edi
jle 0x40b852
mov edx, dword [esp + 0x14]
xor eax, eax
mov al, byte [ecx + edx]
cmp eax, 0x100
jge 0x40b860
mov ebx, dword [eax*4 + 0x41d8e8]
inc ebx
mov dword [eax*4 + 0x41d8e8], ebx
mov eax, ebx
cmp eax, esi
jle 0x40b84d
mov esi, eax
mov al, byte [ecx + edx]
mov byte [esp + 0xc], al
inc ecx
cmp ecx, edi
jl 0x40b823
mov eax, dword [esp + 0xc]
pop edi
pop esi
and eax, 0xff
pop ebx
pop ecx
ret
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push eax
push str.getBgColour
add ecx, 0x40
push str._s:_unusual_colour___d_n
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push 1
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x5c], edx
mov dword [ecx + 0x54], 0
call sub.omnithread_rt.dll_protected:_void___thiscall_omni_thread::start_undetached_void_
mov eax, 1
ret 8

Function at 0x40bfc0
Capabilities:
Check mutex on windows

Disassembly:
push str.WinVNC_Win32_Instance_Mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
jne 0x40bfd4
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
ret

Function at 0x40c030
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push esi
push edi
mov edi, ebx
and edi, 0xff
push edi
call ebp
mov esi, dword [esp + 0x18]
shr eax, 0xf
and eax, 1
je 0x40c0c1
test esi, esi
jne 0x40c0bc
mov ecx, 0x41b780
test eax, eax
mov eax, str.down
jne 0x40c06c
mov eax, 0x41b780
push ecx
push eax
push edi
push str.D:ORL_vsswinvnc_vncKeymap.cpp_:_setshiftstate__d_____s___s__n
push 9
push 0x41d498
call fcn.004018c0
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 2
push esi
push ebx
call fcn.0040c000
add esp, 0x20
push edi
call ebp
test ah, 0x80
mov eax, str.down
jne 0x40c0a6
mov eax, 0x41b780
push eax
push edi
push str.D:ORL_vsswinvnc_vncKeymap.cpp_:_new_state__d___s__n
push 9
push 0x41d498
call fcn.004018c0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
ret
test esi, esi
je 0x40c0bc
mov ecx, str.down
jmp 0x40c05e
Function at 0x40c890
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x10c
lea eax, [esp + 0xc]
push ebx
push ebp
push 0x100
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
je 0x40c8d3
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push ecx
push str.Host_name_unavailable
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
pop ebp
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
jne 0x40c90b
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push ecx
push str.IP_address_unavailable
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
pop ebp
pop ebx
add esp, 0x10c
ret
mov ebp, dword [esp + 0x118]
mov byte [ebp], 0
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0
je 0x40c9e2
push esi
push edi
mov dword [esp + 0x10], 0
xor esi, esi
cmp word [ebx + 0xa], si
jle 0x40c983
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + ecx]
xor ecx, ecx
lea edx, [esp + 0x14]
mov cl, byte [eax + esi]
push ecx
push 0x41b8d0
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x130]
not ecx
dec ecx
sub eax, ecx
lea ecx, [esp + 0x20]
dec eax
push eax
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll_strncat]
movsx edx, word [ebx + 0xa]
add esp, 0x18
inc esi
cmp esi, edx
jl 0x40c934
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + ebp - 1], al
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + eax + 4]
test edx, edx
je 0x40c9c8
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, ecx
dec edx
push edx
push 0x41b8cc
push ebp
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0xc]
add eax, 4
mov dword [esp + 0x10], eax
cmp dword [eax + ecx], 0
jne 0x40c92c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret

Function at 0x40ded0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
mov esi, 4
push eax
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40df11
mov eax, dword [esp + 0x18]
pop esi
add esp, 8
ret 0xc
cmp dword [esp + 4], esi
je 0x40df22
mov eax, dword [esp + 0x18]
pop esi
add esp, 8
ret 0xc
mov eax, dword [esp + 8]
cmp eax, esi
mov eax, dword [esp + 0x18]
jne 0x40df32
mov eax, dword [esp + 0x14]
pop esi
add esp, 8
ret 0xc