joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425f50
Capabilities:
Create thread
Power down monitor

Disassembly:
push ebp
push ebx
push esi
mov ebp, ecx
movzx ebx, byte [esp + 0x10]
push 0x4b8024
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x4b802c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x426125
mov ecx, ebp
call fcn.004270d4
test eax, eax
je 0x425f94
push 0
mov ecx, dword [ebp + 0xdbb0]
mov eax, dword [ecx]
call dword [eax + 0x25c]
call fcn.0045b2e8
cmp eax, 1
jne 0x425fad
mov eax, dword [ebp + 0xe110]
test eax, eax
je 0x425fc6
push ebx
call eax
jmp 0x425fc6
push ebx
mov ecx, dword [ebp + 0xdbb0]
mov eax, dword [ecx]
call dword [eax + 0x114]
mov dword [ebp + 0xe0e8], 1
mov ecx, dword [ebp + 0xdbb0]
mov eax, dword [ecx]
call dword [eax + 0x1c8]
test eax, eax
je 0x42611f
test ebx, ebx
je 0x426091
mov ecx, dword [ebp + 0xdbb0]
mov eax, dword [ecx]
call dword [eax + 0x260]
test eax, eax
jne 0x426050
push 0
push 0x100
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
xor edx, edx
lea eax, [ebp + 0xe0dc]
push edx
push eax
push edx
push 0x50
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
xor eax, eax
push eax
push eax
push 0x64
push 0x52
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
xor eax, eax
push eax
push eax
push 1
push 0x56
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 2
push 0xf170
push 0x112
push dword [ebp + 0xdbb8]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ecx
pop ebx
pop ebp
ret 4
xor edx, edx
lea eax, [esp]
push eax
push edx
push edx
push 0x4012b8
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xdbac], 0
mov eax, 0
setne al
mov byte [ebp + 0xe0e0], al
mov dword [ebp + 0xdbac], 0
pop ecx
pop ebx
pop ebp
ret 4
mov ecx, dword [ebp + 0xdbb0]
mov eax, dword [ecx]
call dword [eax + 0x260]
test eax, eax
jne 0x4260f4
mov edx, dword [ebp + 0xe0dc]
test edx, edx
je 0x4260ba
xor eax, eax
push eax
push eax
push edx
push 0x52
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
xor eax, eax
push eax
push eax
push eax
push 0x56
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [ebp + 0xdbb8]
test eax, eax
je 0x4260e4
push 0xffffffffffffffff
push 0xf170
push 0x112
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp + 0xe0dc], 0
pop ecx
pop ebx
pop ebp
ret 4
push 0
push 0x4b8018
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x426112
xor edx, edx
push edx
push edx
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
movzx eax, byte [ebp + 0xe0e0]
mov dword [ebp + 0xdbac], eax
pop ecx
pop ebx
pop ebp
ret 4
push 0
mov ecx, dword [ebp + 0xdbb0]
mov eax, dword [ecx]
call dword [eax + 0x25c]
jmp 0x425f79
Function at 0x428130
Capabilities:
Create process on windows
Terminate process

Disassembly:
push edi
push esi
push ebp
sub esp, 0x170
mov ebp, ecx
cmp dword [esp + 0x180], 0
jne 0x428176
mov eax, dword [ebp + 0xe0f8]
test eax, eax
je 0x42832f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov dword [ebp + 0xe0f8], eax
mov dword [ebp + 0xe0d8], eax
add esp, 0x170
pop ebp
pop esi
pop edi
ret 4
xor edx, edx
lea eax, [esp]
mov dword [ebp + 0xe0f8], edx
push 0x104
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4281c7
lea eax, [esp]
push 0x5c
push eax
call fcn.00486200
add esp, 8
test eax, eax
je 0x42832f
mov byte [eax], 0
lea edi, [esp]
mov edx, 0x4beba0
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x4281bd
xor eax, eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], eax
mov dword [esp + 0x104], 0x44
xor edi, edi
lea esi, [esp]
lea edx, [esp + 0x104]
lea eax, [esp + 0x160]
push eax
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4282c7
mov dword [esp + 0x14c], 0
mov ecx, 0x4a3b98
mov dword [esp + 0x148], ecx
mov dword [esp + 0x150], 0x4bebc0
cmp dword [0x4a3ba4], 0
jl 0x4282b1
lea eax, [esp + 0x154]
push eax
push dword [esp + 0x154]
call fcn.0045763c
mov dword [ebp + 0xe0d8], 0
add esp, 0x170
pop ebp
pop esi
pop edi
ret 4
mov dword [esp + 0x158], 0
mov ecx, 0x4a3b98
mov dword [esp + 0x154], ecx
mov dword [esp + 0x15c], 0x4bec20
cmp dword [0x4a3ba4], 0
jl 0x428306
lea eax, [esp + 0x160]
push eax
push dword [esp + 0x160]
call fcn.0045763c
mov dword [ebp + 0xe0d8], 1
push 0x2710
push dword [esp + 0x164]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 0x160]
mov dword [ebp + 0xe0f8], eax
add esp, 0x170
pop ebp
pop esi
pop edi
ret 4
Function at 0x428848
Capabilities:
Create thread

Disassembly:
push ebp
sub esp, 0x4c
mov ebp, ecx
movzx eax, word [0x4a3bf0]
test eax, eax
jne 0x4288f6
mov dword [esp], 0x30
xor edx, edx
mov eax, dword [0x4b5fbc]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x423394
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
push edx
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x20], eax
xor eax, eax
lea edx, [esp]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], str.WinVNC_desktop_sink
mov dword [esp + 0x2c], eax
push edx
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov word [0x4a3bf0], ax
movzx eax, ax
test eax, eax
jne 0x4288f6
mov dword [esp + 0x38], 0
mov ecx, 0x4a3b98
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], 0x4bdd20
cmp dword [0x4a3ba4], 0
jl 0x4288ef
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x40]
call fcn.0045763c
xor eax, eax
add esp, 0x4c
pop ebp
ret
xor edx, edx
mov eax, accept
push edx
push dword [0x4b5fbc]
push edx
push edx
push 0xc8
push 0x190
push eax
push eax
push 0xcf0000
push 0x4bbe60
push str.WinVNC_desktop_sink
push edx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp + 0xdbb8], eax
test eax, eax
jne 0x428969
mov dword [esp + 0x44], 0
mov ecx, 0x4a3b98
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], 0x4bdda0
cmp dword [0x4a3ba4], 0
jl 0x428962
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x4c]
call fcn.0045763c
xor eax, eax
add esp, 0x4c
pop ebp
ret
push ebp
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push dword [ebp + 0xdbb8]
call dword [sym.imp.USER32.dll_SetClipboardViewer]
mov dword [ebp + 0xdbc0], eax
mov ecx, ebp
mov byte [ebp + 0xb8], 0
call fcn.004270d4
test eax, eax
je 0x4289b9
xor edx, edx
lea eax, [esp + 0x30]
push eax
push edx
push dword [ebp + 0xdbb8]
push 0x4232c0
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x4c
pop ebp
ret
Function at 0x450ec0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, ecx
push str.WinVNC_Win32_Instance_Mutex
xor eax, eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp], eax
test eax, eax
je 0x450ee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x450eea
xor eax, eax
pop ebp
ret
mov eax, 1
pop ebp
ret
Function at 0x4574f4
Capabilities:
Move file

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x1c
mov ebx, ecx
mov edi, dword [ebx + 0x14]
test edi, edi
je 0x457603
mov byte [ebx + 4], 1
movzx eax, byte [ebx + 0x18]
test eax, eax
jne 0x457573
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x457526
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x45751e
add eax, 5
push eax
call fcn.00485d1c
pop ecx
mov ebp, eax
test ebp, ebp
je 0x457573
mov esi, ebp
mov edi, dword [ebx + 0x14]
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x45753b
mov edi, ebp
mov edx, 0x4c2670
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x457556
push 1
push ebp
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push ebp
call fcn.00485bcc
pop ecx
mov ecx, ebx
call fcn.004573e0
xor eax, eax
push eax
push 0x80
push 4
push eax
push 1
push 0x40000000
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx + 0x10], eax
cmp eax, 0xffffffff
je 0x4575c9
movzx edx, byte [ebx + 0x18]
test edx, edx
je 0x4575ba
push 2
xor edx, edx
push edx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0x1c
pop ebx
pop ebp
pop esi
pop edi
ret
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
add esp, 0x1c
pop ebx
pop ebp
pop esi
pop edi
ret
mov byte [ebx + 5], 1
xor edx, edx
mov ebp, dword [ebx + 0x14]
mov byte [ebx + 4], dl
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], 0x4c2678
mov dword [esp + 0xc], ebp
cmp dword [ebx + 0xc], 0
jl 0x45759d
lea eax, [esp + 0xc]
mov ecx, ebx
push eax
push dword [esp + 0xc]
call fcn.0045763c
mov eax, dword [ebx + 0x10]
jmp 0x45759d
mov byte [ebx + 5], 1
xor eax, eax
mov byte [ebx + 4], al
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x4c2658
cmp dword [ebx + 0xc], 0
jl 0x457632
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
push dword [esp + 0x1c]
call fcn.0045763c
add esp, 0x1c
pop ebx
pop ebp
pop esi
pop edi
ret
Function at 0x45763c
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0xc14
mov ebx, ecx
push 0
call fcn.00485bd7
pop ecx
cmp eax, dword [ebx + 0x1c]
je 0x4576e2
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x1c]
push eax
call fcn.00487c5a
pop ecx
mov edi, eax
movzx edx, byte [ebx + 5]
test edx, edx
je 0x457677
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movzx edx, byte [ebx + 6]
test edx, edx
je 0x4576ae
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x45769b
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x457693
lea edx, [esp + 0xc04]
push 0
push edx
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
movzx edx, byte [ebx + 4]
test edx, edx
je 0x4576e2
mov ebp, dword [ebx + 0x10]
test ebp, ebp
je 0x4576e2
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4576cf
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x4576c7
lea edx, [esp + 0xc08]
push 0
push edx
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
mov esi, 0x400
lea edx, [esp + 0x804]
push edi
push esi
push edx
push esi
push ebp
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [esp]
push dword [esp + 0xc2c]
push dword [esp + 0xc2c]
push 0x400
push eax
call fcn.00487c73
add esp, 0x10
lea edi, [esp]
mov edx, 0x4c2654
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x457742
lea edi, [esp]
lea edx, [esp + 0x804]
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
dec edi
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x457760
movzx eax, byte [ebx + 5]
test eax, eax
je 0x45777c
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movzx eax, byte [ebx + 6]
test eax, eax
je 0x4577ba
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
lea edi, [esp]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4577a3
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x45779b
lea edx, [esp + 0xc0c]
push 0
push edx
push eax
lea esi, [esp + 0xc]
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
movzx eax, byte [ebx + 4]
test eax, eax
je 0x4577f1
mov ebx, dword [ebx + 0x10]
test ebx, ebx
je 0x4577f1
lea edi, [esp]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x4577de
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x4577d6
lea edx, [esp + 0xc10]
push 0
push edx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc14
pop ebx
pop ebp
pop esi
pop edi
ret 8
Function at 0x458228
Capabilities:
Get hostname
Resolve dns

Disassembly:
test dword [0x4b63ec], 0xffffff80
jne 0x41f3f0
test dword [0x4b63ec], 0xffffffff
jne 0x41f564
call fcn.00490ee4
jmp fcn.00458228

Function at 0x4599c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4985e0
push 0x487ccc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
mov edx, 4
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 1
push 0
push 0x4c30c8
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x459a5c
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x30]
push eax
push edx
push ecx
push 0
push 0x4c30e0
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x459a5c
mov eax, dword [ebp - 0x28]
cmp eax, 4
jne 0x459a5c
mov eax, dword [ebp - 0x30]
cmp eax, 4
jne 0x459a5c
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00459a83
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov esp, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x45af64
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
push esi
push ebx
sub esp, 8
mov edi, edx
mov esi, eax
xor eax, eax
lea ebx, [esp]
mov dword [esp], 1
lea ecx, [esp + 4]
mov dword [esp + 4], 0x100
push ecx
push eax
push ebx
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45afe7
mov ecx, dword [esp]
cmp ecx, 3
je 0x45afa7
xor eax, eax
add esp, 8
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], 0x100
push 0x100
call fcn.00485d1c
pop ecx
mov ebx, eax
test ebx, ebx
je 0x45afe7
lea eax, [esp]
lea ecx, [esp + 4]
push ecx
push ebx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45aff9
mov edx, dword [esp]
cmp edx, 3
je 0x45aff0
push ebx
call fcn.00485bcc
pop ecx
xor eax, eax
add esp, 8
pop ebx
pop esi
pop edi
ret
mov eax, ebx
add esp, 8
pop ebx
pop esi
pop edi
ret
push ebx
call fcn.00485bcc
xor eax, eax
add esp, 0xc
pop ebx
pop esi
pop edi
ret

Function at 0x45b0dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0xc
mov ebp, ecx
mov ecx, 4
mov dword [esp], ecx
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 8]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45b11c
mov eax, dword [esp]
cmp eax, 4
jne 0x45b11c
mov eax, dword [esp + 4]
cmp eax, 4
je 0x45b123
mov eax, ebp
add esp, 0xc
pop ebp
ret
mov eax, dword [esp + 8]
add esp, 0xc
pop ebp
ret

Function at 0x45b270
Capabilities:
Set registry value

Disassembly:
mov edx, 4
lea eax, [esp + 0xc]
push edx
push eax
push edx
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret

Function at 0x45b2e8
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x45b359
mov edx, dword [esp + 4]
cmp edx, 5
jne 0x45b324
cmp dword [esp + 8], 0
jne 0x45b324
mov eax, 1
add esp, 0x94
ret
cmp edx, 5
jne 0x45b33e
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x45b33e
mov eax, 1
add esp, 0x94
ret
cmp edx, 5
je 0x45b332
cmp edx, 6
je 0x45b332
cmp edx, 4
ja 0x45b35e
mov eax, 3
add esp, 0x94
ret
cmp eax, 1
jne 0x45b37d
cmp dword [esp + 8], 0
jne 0x45b371
mov eax, 5
add esp, 0x94
ret
mov eax, 4
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret
Function at 0x4656e8
Capabilities:
Get session user name

Disassembly:
push edi
push esi
sub esp, 0x18
mov edi, edx
mov esi, eax
mov ecx, dword [0x4b4ab0]
cmp ecx, 2
jne 0x465771
cmp dword [0x4b4aec], 0
je 0x465771
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov edx, eax
test edx, edx
je 0x465749
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
push eax
push eax
push 4
push edx
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0x10], 0
je 0x465803
cmp dword [0x4b4ab4], 0
jne 0x46576b
test edi, edi
ja 0x465751
xor eax, eax
add esp, 0x18
pop esi
pop edi
ret
mov edi, 0x4b82ac
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x465756
mov eax, 1
add esp, 0x18
pop esi
pop edi
ret
mov ecx, dword [0x4b4ab0]
cmp ecx, 1
jb 0x465749
cmp ecx, 2
ja 0x465749
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x465760
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x4657c2
test edi, edi
ja 0x4657a8
xor eax, eax
add esp, 0x18
pop esi
pop edi
ret
mov edi, 0x4b82ac
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x4657ad
mov eax, 1
add esp, 0x18
pop esi
pop edi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], 0
mov ecx, 0x4a3b98
mov dword [esp], ecx
mov dword [esp + 8], 0x4c6000
mov dword [esp + 0xc], eax
cmp dword [0x4a3ba4], 0
jl 0x4657fb
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
call fcn.0045763c
xor eax, eax
add esp, 0x18
pop esi
pop edi
ret
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov dword [0x4b4ab4], 0
test edi, edi
ja 0x46581f
xor eax, eax
add esp, 0x18
pop esi
pop edi
ret
mov edi, 0x4b82ac
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x465824
mov eax, 1
add esp, 0x18
pop esi
pop edi
ret

Function at 0x466514
Capabilities:
Access the windows event log

Disassembly:
push ebx
sub esp, 0x108
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4b4ae4], eax
push 0x4c6160
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov ebx, eax
lea edx, [esp]
push dword [0x4b4ae4]
push 0x4c6160
push 0x4c62b8
push 0x100
push edx
call fcn.004866af
add esp, 0x14
test ebx, ebx
je 0x46659b
mov edx, dword [esp + 0x110]
lea ecx, [esp]
mov dword [esp + 0x104], edx
mov dword [esp + 0x100], ecx
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
xor ecx, ecx
lea edx, [esp + 0x100]
push ecx
push edx
push ecx
push 2
push ecx
push ecx
push ecx
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
add esp, 0x108
pop ebx
ret
Function at 0x46678c
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
push esi
push ebx
sub esp, 8
mov edi, dword [esp + 0x18]
mov dword [esp], 1
mov esi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 4], 0x100
lea edx, [esp]
lea eax, [esp + 4]
push eax
push ecx
push edx
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x466815
mov eax, dword [esp]
cmp eax, 3
je 0x4667d5
xor eax, eax
add esp, 8
pop ebx
pop esi
pop edi
ret 8
mov dword [esp + 4], 0x100
push 0x100
call fcn.00485d1c
pop ecx
mov ebx, eax
test ebx, ebx
je 0x466815
lea ecx, [esp]
lea edx, [esp + 4]
push edx
push ebx
push ecx
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46682b
mov edx, dword [esp]
cmp edx, 3
je 0x466820
push ebx
call fcn.00485bcc
pop ecx
xor eax, eax
add esp, 8
pop ebx
pop esi
pop edi
ret 8
mov eax, ebx
add esp, 8
pop ebx
pop esi
pop edi
ret 8
push ebx
call fcn.00485bcc
xor eax, eax
add esp, 0xc
pop ebx
pop esi
pop edi
ret 8

Function at 0x466908
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, 4
lea ecx, [esp]
mov dword [esp], eax
lea edx, [esp + 4]
mov dword [esp + 4], eax
lea eax, [esp + 8]
push edx
push eax
push ecx
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46694a
mov eax, dword [esp]
cmp eax, 4
jne 0x46694a
mov eax, dword [esp + 4]
cmp eax, 4
je 0x466954
mov eax, dword [esp + 0x18]
add esp, 0xc
ret 0xc
mov eax, dword [esp + 8]
add esp, 0xc
ret 0xc

Function at 0x466ef0
Capabilities:
Set registry value

Disassembly:
mov edx, 4
lea eax, [esp + 0xc]
push edx
push eax
push edx
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc

Function at 0x4678ac
Capabilities:
Initialize winsock library

Disassembly:
push edi
sub esp, 0x190
mov edi, ecx
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x4678d5
mov dword [edi], 0
mov eax, edi
add esp, 0x190
pop edi
ret
mov dword [edi], 0xffffffff
movzx edx, word [esp]
mov eax, edi
mov word [0x4b4b0c], dx
add esp, 0x190
pop edi
ret

Function at 0x4678fc
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebx
push esi
mov ebx, ecx
mov dword [esp], 1
cmp dword [ebx + 4], 0
jl 0x467914
mov ecx, ebx
call fcn.00467848
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov ecx, eax
mov dword [ebx + 4], ecx
test ecx, ecx
jl 0x467960
mov eax, 4
lea edx, [esp]
push eax
push edx
push eax
push 0xffff
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x467949
xor eax, eax
pop ecx
pop ebx
ret
lea eax, [esp]
push 4
push eax
push 1
push 6
push dword [ebx + 4]
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x467965
xor eax, eax
pop ecx
pop ebx
ret
mov eax, 0xffffffff
pop ecx
pop ebx
ret