joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce818
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ce9c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4ce9a6
mov dl, 1
mov eax, dword [0x42e2b0]
call fcn.0043a6f4
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.0040788c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4ce995
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004b0e78
test al, al
je 0x4ce988
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4ce9d4
lea eax, [ebp - 0x394]
call fcn.0041580c
push eax
push reloc.shell32.dll_SHChangeNotifyRegister
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4ce988
xor eax, eax
push ebp
push 0x4ce981
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4cea44
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4ce96a
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407a9c
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jne 0x4ce96a
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407a9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce988
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4ce88b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.0043a630
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce9cc
lea eax, [ebp - 0x3a0]
call fcn.0040787c
ret

Function at 0x4cf524
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x58d2bc]
cmp byte [eax + 0xad], 0
jne 0x4cf596
cmp dword [0x58d2d4], 0
jne 0x4cf556
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x584910]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x58d2d4], eax
cmp dword [0x58d2d0], 0
jne 0x4cf571
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x58d2d0], eax
cmp dword [0x58d2d8], 0
jne 0x4cf596
push esp
push 0
push 0
mov eax, dword [0x58490c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x58d2d8], eax
pop edx
ret
Function at 0x4cf8bc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4cf8d3
add esp, 0xfffffff0
call fcn.00405b00
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00442d48
mov eax, dword [0x586f88]
cmp byte [eax], 0
jne 0x4cf900
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x5874bc]
cmp word [eax + 2], 0
jne 0x4cf91a
mov eax, dword [0x5874bc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004d19b4
mov eax, dword [0x5876ac]
cmp word [eax + 2], 0
jne 0x4cf934
mov eax, dword [0x5876ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004d1bc4
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x45209c]
call fcn.00458370
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4d2174
mov dl, 1
mov eax, dword [0x42bbb0]
call fcn.0040559c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x42bbb0]
call fcn.0040559c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x456534]
call fcn.004617e0
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4cfb14
mov eax, dword [0x5872bc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00461c74
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4d245c
mov dl, 1
mov eax, dword [0x42bbb0]
call fcn.0040559c
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5872bc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004155ec
test eax, eax
je 0x4cfa45
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00415360
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004155d0
test eax, eax
je 0x4cfa5d
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00407a9c
push ebx
push 0x4d1384
call fcn.004c55cc
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x586f88]
cmp byte [eax], 0
jne 0x4cfaae
mov eax, ebx
call fcn.004cfc88
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004d2688
mov eax, ebx
call fcn.004d32bc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4cfb0b
call fcn.00405b58
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cff5c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4cfffe
cmp dword [ebx + 0x94], 0
jne 0x4cfff8
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4cfea8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4cfff8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4cffbe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4cfff8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00436e28
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4cffcd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4d021c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x58d2bc]
cmp dword [eax + 0x170], 0
je 0x4d0381
test bl, bl
jne 0x4d02cf
cmp dword [esi + 0x9c], 0
jne 0x4d02c4
mov eax, esi
call fcn.004d310c
push eax
push 0x4d0128
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4d0295
mov eax, dword [0x58d2bc]
cmp byte [eax + 0xd3], 0
je 0x4d0295
mov eax, dword [esi + 0xd8]
call fcn.0040912c
mov edi, eax
cmp edi, 0
jl 0x4d0295
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4d027e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4d02c4
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00436e28
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4d02a4
inc dword [esi + 0x9c]
jmp 0x4d0381
cmp dword [esi + 0x9c], 0
jle 0x4d0381
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4d0381
cmp dword [esi + 0x44], 0
je 0x4d032c
mov eax, dword [0x58d2bc]
cmp byte [eax + 0xd3], 0
je 0x4d032c
mov eax, dword [esi + 0xd8]
call fcn.0040912c
mov edi, eax
cmp edi, 0
jl 0x4d032c
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4d0315
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4d035b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00436e28
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4d033b
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4c34a4]
call fcn.004092ec
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4d0fd0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4d103b
cmp byte [ebx + 0xd3], 0
jne 0x4d103b
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004079c8
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4d1028
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4d1048
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040788c
jmp 0x4d1048
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040788c
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4d2870
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4d28de
mov eax, esi
call fcn.004aad84
test al, al
je 0x4d28de
mov eax, dword [ebx + 0x84]
call fcn.004aa9d8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4d28de
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4d28d2
push 0
mov eax, dword [ebx + 0x84]
call fcn.004aa9d8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004a19ac
jmp 0x4d28de
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004d26a8
pop esi
pop ebx
ret
Function at 0x5016f8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x501719
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x501719
mov edx, dword [esi]
mov eax, esi
xor ecx, ecx
call fcn.00406aa8
test eax, eax
je 0x501722
sub eax, 4
mov eax, dword [eax]
mov edi, eax
test edi, edi
jle 0x501751
mov ebx, 1
mov eax, esi
call fcn.00407094
mov edx, dword [esi]
movzx edx, byte [edx + ebx - 1]
mov ecx, ebx
and ecx, 3
movzx ecx, byte [ecx + str.RobS]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec edi
jne 0x50172d
pop edi
pop esi
pop ebx
ret

Function at 0x502b98
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040700c
xor eax, eax
push ebp
push 0x502c51
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00407ab8
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00413c68
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.00407ae0
mov eax, dword [ebp - 4]
call fcn.00502b10
test al, al
je 0x502c11
mov bl, 1
mov eax, dword [ebp - 4]
call fcn.0040701c
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
jmp 0x502c2e
mov eax, dword [ebp - 4]
call fcn.0040701c
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x502c2e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi], eax
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x502c58
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00407884
lea eax, [ebp - 4]
call fcn.0040688c
ret

Function at 0x502cac
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe48
push esp
push 2
call sub.wsock32.dll_WSAStartup
test eax, eax
sete byte [0x58d358]
lea eax, [esp + 0x190]
xor ecx, ecx
mov edx, 0x28
call fcn.00404c94
mov eax, 0x502c60
mov dword [esp + 0x194], eax
mov eax, dword [0x58ac3c]
mov dword [esp + 0x1a0], eax
mov dword [esp + 0x198], 4
mov eax, dword [0x586460]
call fcn.0040701c
mov dword [esp + 0x1b4], eax
lea eax, [esp + 0x190]
push eax
call sub.user32.dll_RegisterClassW
add esp, 0x1b8
ret
Function at 0x502fe0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.005030e0
test al, al
jne 0x5030cc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0
jne 0x5030cc
xor edx, edx
push ebp
push 0x5030c5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x503025
mov edx, dword [eax]
call dword [edx]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x114]
call fcn.005011dc
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.005011cc
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea eax, [ebp - 0x114]
push eax
push 0
call sub.wsock32.dll_select
cmp eax, 1
jne 0x503083
push 2
push 8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
test eax, eax
jne 0x50308a
or eax, 0xffffffff
jmp 0x50308a
test eax, eax
je 0x50308a
or eax, 0xffffffff
mov edx, dword [ebp - 4]
cmp byte [edx + 8], 3
jne 0x503096
inc eax
jne 0x5030a4
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00503200
jmp 0x5030a8
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5030d7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x5030c4
mov edx, dword [eax]
call dword [edx + 4]
ret
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 3
sete byte [ebp - 5]
movzx eax, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x503488
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov byte [esi + 0x38], 0
mov eax, esi
call fcn.00503200
mov bl, 1
cmp byte [esi + 8], 4
jne 0x5034c3
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edi, eax
mov dword [esi + 4], edi
inc edi
jne 0x5034bf
xor ebx, ebx
call sub.wsock32.dll_WSAGetLastError
mov dword [esi + 0x10], eax
jmp 0x5034c3
mov byte [esi + 8], 0
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x503564
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov ebp, ecx
mov esi, edx
mov ebx, eax
cmp word [ebx + 0x2a], 0
je 0x503580
mov edx, ebp
mov eax, dword [ebx + 0x2c]
call dword [ebx + 0x28]
mov dword [esp + 8], esi
xor esi, esi
imul eax, dword [ebx + 0x18], 0x3e8
mov dword [esp + 0x10], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [esp + 0xc], eax
mov byte [esp], 0
cmp ebp, esi
jle 0x50361d
push 0
mov eax, ebp
sub eax, esi
push eax
mov eax, dword [esp + 0x10]
add eax, esi
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x5035ec
call sub.wsock32.dll_WSAGetLastError
mov dword [esp + 4], eax
cmp dword [esp + 4], 0x2733
je 0x5035dc
mov eax, dword [esp + 4]
mov dword [ebx + 0x10], eax
jmp 0x503621
push 1
call sub.kernel32.dll_Sleep_2
mov eax, ebx
call fcn.005031c4
jmp 0x5035fb
add esi, edi
test edi, edi
jle 0x5035fb
call sub.kernel32.dll_GetTickCount_1
mov dword [esp + 0xc], eax
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jbe 0x503619
cmp dword [ebx + 0x18], 0
je 0x503619
mov eax, ebx
call fcn.00503200
jmp 0x503621
cmp ebp, esi
jg 0x5035a2
mov byte [esp], 1
movzx eax, byte [esp]
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x504078
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
cmp word [eax + 0x32], 0
je 0x5040a6
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x34]
call dword [esi + 0x30]
mov dword [ebp - 0x18], ebx
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
imul eax, dword [eax + 0x18], 0x3e8
mov dword [ebp - 0x1c], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 1
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 8], 0
jle 0x504273
xor eax, eax
push ebp
push 0x5041ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
test esi, esi
je 0x5040f7
mov eax, esi
mov edx, dword [eax]
call dword [edx]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0
jne 0x50418f
lea eax, [ebp - 0x12c]
call fcn.005011dc
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.005011cc
lea eax, [ebp - 0x28]
push eax
push 0
push 0
lea eax, [ebp - 0x12c]
push eax
push 0
call sub.wsock32.dll_select
mov ebx, eax
cmp ebx, 1
jne 0x504177
push 2
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x10], eax
push 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x10], eax
jmp 0x5041ab
mov dword [ebp - 0x10], 0xffffffff
test ebx, ebx
jne 0x5041ab
mov ebx, 0x2733
push ebx
call sub.wsock32.dll_WSASetLastError
jmp 0x5041ab
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5041d1
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x14]
test edi, edi
je 0x5041c9
mov eax, edi
mov edx, dword [eax]
call dword [edx + 4]
ret
mov byte [ebp - 9], 1
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50449c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x5044af
add esp, 0xfffffff0
call fcn.00405b00
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x58], 0
xor eax, eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], eax
mov byte [ebx + 8], 4
mov eax, dword [0x586460]
call fcn.0040701c
mov esi, eax
mov dword [ebx + 4], edi
cmp byte [ebp + 0xc], 0
je 0x504549
push 0
push 0
push 0x32
push 0x32
push 0
push 0
mov eax, dword [0x58ac3c]
push eax
push 0
mov edx, 0x504584
xor ecx, ecx
mov eax, esi
call fcn.0040d40c
mov edi, eax
mov dword [ebx + 0x1c], edi
test edi, edi
jne 0x50451c
mov dword [ebx + 0x10], 0xfffffffe
jmp 0x504563
push ebx
push 0xffffffffffffffeb
mov eax, dword [ebx + 0x1c]
push eax
call sub.user32.dll_SetWindowLongW
push 0
mov eax, dword [ebx + 0x1c]
push eax
call sub.user32.dll_ShowWindow
push 0x30
push 0x400
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
jmp 0x50454e
xor eax, eax
mov dword [ebx + 0x1c], eax
mov edx, dword [ebp + 8]
mov eax, ebx
call fcn.00504494
mov dword [ebx + 0xc], 0x1000
mov byte [ebx + 8], 3
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x50457a
call fcn.00405b58
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x50b8e0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00407874
xor eax, eax
push ebp
push 0x50b95e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407918
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x50b929
mov eax, dword [ebx + 4]
call fcn.00407918
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceW
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50b965
lea eax, [ebp - 4]
call fcn.0040787c
ret

Function at 0x50c9ac
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x50cb54
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.00404620
cmp word [ebx + 0xaa], 0
je 0x50c9f5
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
mov eax, dword [ebx + 0x98]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x50ca09
lea esi, [ebp - 0xc]
jmp 0x50ca0b
xor esi, esi
cmp dword [ebx + 0x88], 0
jne 0x50ca18
xor edi, edi
jmp 0x50ca25
mov eax, dword [ebx + 0x88]
call fcn.00407918
mov edi, eax
mov eax, dword [ebx + 0x84]
call fcn.00407918
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0050c0d8
mov eax, dword [ebp - 0x14]
call fcn.00407918
push eax
push esi
mov eax, dword [ebx + 0x7c]
call fcn.00407918
push eax
mov eax, dword [ebp - 4]
call fcn.00407918
push eax
mov eax, ebx
call fcn.0050c220
push eax
mov eax, ebx
call fcn.0050c1f4
push eax
mov eax, ebx
call fcn.0050c1ac
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0050bf80
mov eax, dword [ebp - 0x18]
call fcn.00407918
push eax
mov eax, dword [ebx + 8]
call fcn.00407918
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x98], eax
cmp dword [ebp - 0x10], 0
jne 0x50cab1
call fcn.0041c904
xor edx, edx
push ebp
push 0x50cb2a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x50caef
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xb2], 0
je 0x50cae5
mov edx, ebx
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50cb13
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50cb31
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x50cb64
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xba], 0
je 0x50cb90
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xbc]
call dword [esi + 0xb8]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00407918
push eax
push ebx
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x50cbb5
call fcn.0041c904
xor eax, eax
push ebp
push 0x50cbec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x50cbd5
call fcn.0041c904
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50cbf3
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret