joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4832d4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4832e6
add esp, 0xfffffff0
call fcn.00404e48
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042a8dc
mov eax, dword [0x5d48e4]
mov dword [eax + 4], ebx
mov dword [eax], 0x483678
mov eax, dword [0x5d4900]
mov dword [eax + 4], ebx
mov dword [eax], 0x483684
mov eax, ebx
call fcn.00483690
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41c088]
call fcn.00404ab4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41c088]
call fcn.00404ab4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41c088]
call fcn.00404ab4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41c088]
call fcn.00404ab4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41c088]
call fcn.00404ab4
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x47ec48
push eax
push 0
push 0
mov eax, dword [0x5d4c18]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4318cc]
call fcn.0043323c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4318cc]
call fcn.0043323c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4318cc]
call fcn.0043323c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00483b50
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4839d8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4839d8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4839d8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x483423
call fcn.00404ea0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4837bc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x483967
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x483948
mov dl, 1
mov eax, dword [0x41c6f4]
call fcn.00404ab4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00405a44
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x483937
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.004753fc
test al, al
je 0x48392a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x483978
lea eax, [ebp - 0x254]
call fcn.0040c50c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48392a
xor eax, eax
push ebp
push 0x483923
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4839b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x48390c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405cb4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
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 + 0x3c]
jne 0x48390c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405cb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48392a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x48382d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00421ba0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48396e
lea eax, [ebp - 0x260]
call fcn.00405a44
ret

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

Disassembly:
push ecx
mov eax, dword [0x5dacf0]
cmp byte [eax + 0xad], 0
jne 0x484461
cmp dword [0x5dad0c], 0
jne 0x484422
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4843ac
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5dad0c], eax
cmp dword [0x5dad08], 0
jne 0x48443d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5dad08], eax
cmp dword [0x5dad10], 0
jne 0x484461
push esp
push 0
push 0
push 0x484350
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5dad10], eax
pop edx
ret
Function at 0x484634
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x48464b
add esp, 0xfffffff0
call fcn.00404e48
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042a8dc
mov eax, dword [0x5d4bc4]
cmp word [eax + 2], 0
jne 0x484673
mov eax, dword [0x5d4bc4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00486090
mov eax, dword [0x5d4db8]
cmp word [eax + 2], 0
jne 0x48468d
mov eax, dword [0x5d4db8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048629c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41c088]
call fcn.00404ab4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41c088]
call fcn.00404ab4
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41c088]
call fcn.00404ab4
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 [0x43247c]
call fcn.0043b168
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x484844
mov eax, dword [0x5d49d0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0043b550
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x486960
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5d49d0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00410538
test eax, eax
je 0x484794
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040be88
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0041056c
test eax, eax
je 0x4847a8
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405cb4
mov byte [ebx + 0xd4], 0
push ebx
push 0x485d5c
call fcn.0042ba58
mov dword [ebx + 0xc8], eax
mov eax, dword [0x5d46c4]
cmp byte [eax], 0
jne 0x4847f9
mov eax, ebx
call fcn.00484988
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00486b38
mov eax, ebx
call fcn.0048769c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x484839
call fcn.00404ea0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x484c08
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x484ca7
cmp dword [ebx + 0x94], 0
jne 0x484ca1
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x484b90
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x484ca1
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_GetWindowLongA
test al, 8
je 0x484c67
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x484ca1
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.0041eb48
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x484c76
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5dacf0]
cmp dword [eax + 0x30], 0
je 0x48501d
test bl, bl
jne 0x484f6e
cmp dword [esi + 0x9c], 0
jne 0x484f63
mov eax, esi
call fcn.00487518
push eax
push 0x484dec
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x484f34
mov eax, dword [0x5dacf0]
call fcn.00487bf8
test al, al
je 0x484f34
mov eax, dword [0x5dad14]
call fcn.0040727c
mov edi, eax
cmp edi, 0
jl 0x484f34
push 0
mov eax, dword [0x5dad14]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x484f1e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x484f63
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041eb48
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x484f43
inc dword [esi + 0x9c]
jmp 0x48501d
cmp dword [esi + 0x9c], 0
jle 0x48501d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x48501d
cmp dword [esi + 0x44], 0
je 0x484fc9
mov eax, dword [0x5dacf0]
call fcn.00487bf8
test al, al
je 0x484fc9
mov eax, dword [0x5dad14]
call fcn.0040727c
mov edi, eax
cmp edi, 0
jl 0x484fc9
push 5
mov eax, dword [0x5dad14]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x484fb3
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x484ff8
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041eb48
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x484fd8
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x5dad14
mov ecx, 1
mov edx, dword [0x484dcc]
call fcn.00407430
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x485ab0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x485b1a
mov eax, ebx
call fcn.00487bf8
test al, al
jne 0x485b1a
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405b34
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x485b07
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x485b27
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405a98
jmp 0x485b27
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405a98
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x486d1c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x486d8a
mov eax, esi
call fcn.00470034
test al, al
je 0x486d8a
mov eax, dword [ebx + 0x84]
call fcn.0046fc84
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x486d8a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x486d7e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0046fc84
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00467b84
jmp 0x486d8a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00486b58
pop esi
pop ebx
ret

Function at 0x48e1bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405ed4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret

Function at 0x4b0498
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
xor ecx, ecx
push ebp
push 0x4b056e
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor ecx, ecx
push ebp
push 0x4b0547
push dword fs:[ecx]
mov dword fs:[ecx], esp
test al, al
je 0x4b04d3
mov esi, 0x400
jmp 0x4b04d8
mov esi, 0x800
test dl, dl
je 0x4b04e3
mov edi, 9
jmp 0x4b04e8
mov edi, 1
mov eax, 0x104
call fcn.00402fb0
mov ebx, eax
push 0x104
push ebx
push edi
push esi
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x108]
mov edx, ebx
call fcn.00404440
lea edx, [ebp - 0x108]
lea eax, [ebp - 8]
call fcn.00405ca8
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x4b0588
call fcn.00405d5c
mov eax, dword [ebp - 4]
call fcn.0040b2d4
mov esi, eax
mov eax, ebx
call fcn.00402fcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b0553
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0575
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405a68
ret
Function at 0x4b0740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405ec4
xor eax, eax
push ebp
push 0x4b07c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00405a44
mov eax, dword [ebp - 4]
test eax, eax
je 0x4b077c
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x4b07a8
mov edi, 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
movzx edx, byte [edx + edi - 1]
xor dl, 0x27
call fcn.00405c2c
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00405d10
inc edi
dec ebx
jne 0x4b0787
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b07ca
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405a68
ret

Function at 0x4b0828
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405ec4
xor eax, eax
push ebp
push 0x4b087e
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_SetFileApisToANSI
mov eax, dword [ebp - 4]
call fcn.00405ed4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4b0862
test al, 0x10
jne 0x4b0866
xor ebx, ebx
jmp 0x4b0868
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0885
lea eax, [ebp - 4]
call fcn.00405a44
ret

Function at 0x4b095c
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x4b09a6
push ebx
push ecx
push dword fs:[0]
mov dword fs:[0], esp
mov ebx, 0
mov eax, 1
invalid
Function at 0x4b135c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x411e94]
call fcn.00406740
xor eax, eax
push ebp
push 0x4b14fd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5ce1dc], 0
jne 0x4b13b7
mov ecx, dword [0x5d4708]
mov dl, 1
mov eax, dword [0x409a18]
call fcn.0040f5c0
call fcn.00405398
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403d20
mov eax, ebx
call fcn.004063f4
mov dword [ebp - 0x24], eax
mov esi, 0x4b150c
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00407c68
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00406404
test eax, eax
jle 0x4b14a0
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4b148c
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405cb4
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x4b1432
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00405ccc
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4b1448
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00405ccc
mov eax, dword [ebp - 0x54]
call fcn.00405ed4
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405cb4
mov eax, dword [ebp - 0x58]
call fcn.00405ed4
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x4b148e
xor eax, eax
test al, al
je 0x4b1499
mov ebx, 0x15
jmp 0x4b14a5
mov ebx, 0x10
jmp 0x4b14a5
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x5ce1dc]
call fcn.004b1180
mov eax, dword [ebp - 4]
call fcn.004b1180
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00407c80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1504
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00405a68
lea eax, [ebp - 0xc]
mov edx, dword [0x411e94]
call fcn.00406810
ret
Function at 0x4c236c
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
mov eax, dword [0x5d510c]
cmp dword [eax], 1
jne 0x4c2461
push 0x4c2558
push 0x4c2570
call sub.user32.dll_FindWindowA
test eax, eax
je 0x4c239e
mov byte [ebp - 1], 1
jmp 0x4c254b
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00403d20
mov dword [ebp - 0x54], 0x44
mov eax, 0x104
call fcn.00402fb0
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c245a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0x104
push 0
push 0x4c2580
push 0
call sub.kernel32.dll_SearchPathA
test eax, eax
jne 0x4c23fb
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x4c2444
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x210
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4c242e
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x4c2444
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle_1
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c254b
mov eax, dword [ebp - 8]
call fcn.00402fcc
ret
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jne 0x4c2482
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x4c254b
push 4
push 0x4c258c
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jne 0x4c24a4
push 0x10
push 0x4c258c
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
push ebx
call sub.advapi32.dll_CloseServiceHandle
test esi, esi
jne 0x4c24be
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x4c254b
lea eax, [ebp - 0x80]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x4c24df
push esi
call sub.advapi32.dll_CloseServiceHandle
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x4c254b
cmp dword [ebp - 0x7c], 4
jne 0x4c24f1
push esi
call sub.advapi32.dll_CloseServiceHandle
mov byte [ebp - 1], 1
jmp 0x4c254b
xor eax, eax
mov dword [ebp - 0x10], eax
push esi
call sub.advapi32.dll_CloseServiceHandle
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
push 0x10
push 0x4c258c
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
push ebx
call sub.advapi32.dll_CloseServiceHandle
lea eax, [ebp - 0x10]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
jne 0x4c2541
push esi
call sub.advapi32.dll_CloseServiceHandle
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete byte [ebp - 1]
jmp 0x4c254b
push esi
call sub.advapi32.dll_CloseServiceHandle
mov byte [ebp - 1], 1
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c4524
Capabilities:
Find taskbar

Disassembly:
push 0
push 0x4c4534
call sub.user32.dll_FindWindowA
ret
Function at 0x4c47c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
call fcn.004c45cc
test al, al
je 0x4c47fa
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov al, 1
call fcn.004c45d8
jmp 0x4c47ef
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x7d0
jae 0x4c47fa
push 0
call sub.kernel32.dll_Sleep_2
xor eax, eax
call fcn.004c45d8
test al, al
jne 0x4c47da
pop ebx
ret

Function at 0x4c9668
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, 0x30
mov edi, 0x5ce380
mov ecx, dword [esp]
lea edx, [esp + 0xc]
movzx ebx, byte [edi]
movzx ebx, byte [eax + ebx - 1]
xor bl, byte [ecx]
mov byte [edx], bl
inc edx
inc ecx
inc edi
dec esi
jne 0x4c9687
mov esi, 1
mov edx, 0x5ce488
mov ecx, esi
dec ecx
mov eax, ecx
add eax, eax
lea eax, [eax + eax*2]
add ecx, ecx
add ecx, ecx
movzx ebx, byte [esp + eax + 0xc]
mov edi, ebx
add edi, edi
movzx ebx, byte [esp + eax + 0x11]
add edi, ebx
movzx ebx, byte [esp + eax + 0xd]
add ebx, ebx
add ebx, ebx
add ebx, ebx
movzx ebp, byte [esp + eax + 0xe]
add ebp, ebp
add ebp, ebp
add ebx, ebp
movzx ebp, byte [esp + eax + 0xf]
add ebp, ebp
add ebx, ebp
movzx eax, byte [esp + eax + 0x10]
add ebx, eax
mov dword [esp + 8], ebx
mov eax, 1
mov ebx, eax
dec ebx
je 0x4c9700
dec ebx
je 0x4c9722
dec ebx
je 0x4c9744
dec ebx
je 0x4c9765
jmp 0x4c977f
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 8
movzx ebx, bl
shr ebx, 3
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x4c977f
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 4
movzx ebx, bl
shr ebx, 2
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x4c977f
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 2
movzx ebx, bl
shr ebx, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x4c977f
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
inc eax
cmp eax, 5
jne 0x4c96f0
inc esi
add edx, 0x40
cmp esi, 9
jne 0x4c96a3
mov esi, 0x20
mov eax, 0x5ce3b0
mov edx, dword [esp + 4]
movzx ecx, byte [eax]
movzx ecx, byte [esp + ecx + 0x3b]
mov byte [edx], cl
inc edx
inc eax
dec esi
jne 0x4c97a4
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret