joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5002cc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x5002f3
test edi, 0x40000
je 0x50030d
test bl, bl
jne 0x50039c
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x50039c
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x500340
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x50035c
mov eax, esi
mov edx, 0xffffffec
mov ecx, 0x40000
or ecx, edi
push ecx
push edx
push eax
call sub.user32.dll_SetWindowLongW
jmp 0x500372
mov eax, esi
mov edx, 0xffffffec
mov ecx, 0xfffbffff
and ecx, edi
push ecx
push edx
push eax
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x500383
cmp byte [esp + 2], 0
je 0x50039c
cmp byte [esp + 2], 0
je 0x500394
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x50039c
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x500650
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x500676
mov eax, esp
push eax
push 0x500618
call sub.user32.dll_EnumWindows
jmp 0x500689
mov eax, esp
push eax
push 0x5005f8
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x50074c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x50079c]
test bl, 4
je 0x500760
or si, 1
test bl, 8
je 0x500769
or si, 4
test bl, 1
je 0x500772
or si, 8
test bl, 2
je 0x50077b
or si, 0x10
test bl, 0x10
je 0x500784
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x500794
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x5007a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x5007dc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5007bb
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5007cb
or bx, 4
test esi, 0x20000000
je 0x5007d7
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x50947c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x50948e
add esp, 0xfffffff0
call fcn.0040555c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00451fcc
mov eax, dword [0x52c760]
mov dword [eax + 4], ebx
mov dword [eax], 0x5098bc
mov eax, dword [0x52c770]
mov dword [eax + 4], ebx
mov dword [eax], 0x5098c8
mov eax, ebx
call fcn.005098d4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x4377ac]
call fcn.00404f20
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4377ac]
call fcn.00404f20
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4377ac]
call fcn.00404f20
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x4377ac]
call fcn.00404f20
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x4377ac]
call fcn.00404f20
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 + 0x48], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x60]
push eax
mov eax, 0x504238
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4608c0]
call fcn.00466b38
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4608c0]
call fcn.00466b38
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4608c0]
call fcn.00466b38
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x4608c0]
call fcn.00466b38
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4608c0]
call fcn.00466b38
mov dword [ebx + 0x90], eax
mov eax, ebx
call fcn.00509ecc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x509ce8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x509ce8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x509ce8
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x509ce8
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x509ce8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x50960b
call fcn.004055b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x509a88
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 0x509c33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x509c14
mov dl, 1
mov eax, dword [0x43af20]
call fcn.00449400
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00406b9c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x509c03
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.00495098
test al, al
je 0x509bf6
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, 0x509c44
lea eax, [ebp - 0x394]
call fcn.0041f8e0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x509bf6
xor eax, eax
push ebp
push 0x509bef
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 0x509cb4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x509bd8
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407778
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
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 + 0x44]
jne 0x509bd8
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407778
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509bf6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x509af9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0044933c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509c3a
lea eax, [ebp - 0x3a0]
call fcn.00406b9c
ret

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

Disassembly:
push ecx
mov eax, dword [0x532304]
cmp byte [eax + 0xb1], 0
jne 0x50a85e
cmp dword [0x532324], 0
jne 0x50a81e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x52c568]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x532324], eax
cmp dword [0x532320], 0
jne 0x50a839
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x532320], eax
cmp dword [0x532328], 0
jne 0x50a85e
push esp
push 0
push 0
mov eax, dword [0x52c564]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x532328], eax
pop edx
ret
Function at 0x50ab78
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x50ab8f
add esp, 0xfffffff0
call fcn.0040555c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00451fcc
mov eax, dword [0x52c634]
cmp byte [eax], 0
jne 0x50abbc
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x184], al
mov eax, dword [0x52c924]
cmp word [eax + 2], 0
jne 0x50abd6
mov eax, dword [0x52c924]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0050cd6c
mov eax, dword [0x52ca4c]
cmp word [eax + 2], 0
jne 0x50abf0
mov eax, dword [0x52ca4c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0050cf70
mov byte [ebx + 0x39], 0
mov dl, 1
mov eax, dword [0x4608c0]
call fcn.00466b38
mov esi, eax
mov dword [ebx + 0x40], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x50d4e8
mov dl, 1
mov eax, dword [0x4377ac]
call fcn.00404f20
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x4377ac]
call fcn.00404f20
mov dword [ebx + 0xb4], eax
xor eax, eax
mov dword [ebx + 0x64], eax
xor eax, eax
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x60], 0xff000018
mov dword [ebx + 0x7c], 0x1f4
mov byte [ebx + 0x80], 1
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x78], 0x9c4
mov byte [ebx + 0x8c], 0
mov byte [ebx + 0xa9], 1
mov byte [ebx + 0xc0], 1
mov dl, 1
mov eax, dword [0x465418]
call fcn.004704d0
mov esi, eax
mov dword [ebx + 0xa4], esi
push 0x50add4
mov eax, dword [0x52c7f8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00470960
mov eax, dword [ebx + 0xa4]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x50d7d0
mov dl, 1
mov eax, dword [0x4377ac]
call fcn.00404f20
mov dword [ebx + 0x9c], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x52c7f8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041f6f4
test eax, eax
je 0x50ad04
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041f4a4
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041f6d8
test eax, eax
je 0x50ad1c
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 + 0x90]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00407778
push ebx
push 0x50c744
call fcn.00500730
mov dword [ebx + 0x180], eax
mov byte [ebx + 0xd4], 0
mov eax, dword [0x52c634]
cmp byte [eax], 0
jne 0x50ad6d
mov eax, ebx
call fcn.0050af94
mov byte [ebx + 0x5d], 1
mov byte [ebx + 0x5e], 1
mov byte [ebx + 0x5f], 1
mov byte [ebx + 0xaa], 1
mov byte [ebx + 0xd5], 0
mov byte [ebx + 0xe0], 0
xor eax, eax
mov dword [ebx + 0xd8], eax
mov byte [ebx + 0xd7], 0
xor eax, eax
mov dword [ebx + 0xac], eax
mov eax, ebx
call fcn.0050da18
mov eax, ebx
call fcn.0050e644
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x50adca
call fcn.004055b4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50b2cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x178]
test eax, eax
je 0x50b378
cmp dword [ebx + 0x98], 0
jne 0x50b372
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x50b204
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x94]
cmp dword [eax + 8], 0
je 0x50b372
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x50b338
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x94]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x50b372
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x94]
call fcn.00444dd4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x50b347
inc dword [ebx + 0x98]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x532304]
cmp dword [eax + 0x178], 0
je 0x50b6fd
test bl, bl
jne 0x50b64b
cmp dword [esi + 0xa0], 0
jne 0x50b640
mov eax, esi
call fcn.0050e494
push eax
push 0x50b4a4
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x48], 0
je 0x50b611
mov eax, dword [0x532304]
cmp byte [eax + 0xd7], 0
je 0x50b611
mov eax, dword [esi + 0xdc]
call fcn.004088b4
mov edi, eax
cmp edi, 0
jl 0x50b611
push 0
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x50b5fa
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x50b640
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00444dd4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x50b620
inc dword [esi + 0xa0]
jmp 0x50b6fd
cmp dword [esi + 0xa0], 0
jle 0x50b6fd
dec dword [esi + 0xa0]
cmp dword [esi + 0xa0], 0
jne 0x50b6fd
cmp dword [esi + 0x48], 0
je 0x50b6a8
mov eax, dword [0x532304]
cmp byte [eax + 0xd7], 0
je 0x50b6a8
mov eax, dword [esi + 0xdc]
call fcn.004088b4
mov edi, eax
cmp edi, 0
jl 0x50b6a8
push 5
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x50b691
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x50b6d7
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00444dd4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x50b6b7
mov eax, dword [esi + 0x9c]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xdc]
mov ecx, 1
mov edx, dword [0x4fd0d0]
call fcn.00408a60
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x50c350
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xb0], 0
je 0x50c3bb
cmp byte [ebx + 0xd7], 0
jne 0x50c3bb
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x178]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406d24
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x50c3a8
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x50c3c8
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00406f7c
jmp 0x50c3c8
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00406f7c
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x50dc00
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x50dc6e
mov eax, esi
call fcn.0048f0c0
test al, al
je 0x50dc6e
mov eax, dword [ebx + 0x88]
call fcn.0048ed0c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x50dc6e
mov eax, dword [ebx + 0x88]
mov edx, dword [eax]
call dword [edx + 0x108]
test al, al
je 0x50dc62
push 0
mov eax, dword [ebx + 0x88]
call fcn.0048ed0c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x88]
call fcn.00485af0
jmp 0x50dc6e
mov cl, 1
mov edx, dword [ebx + 0x78]
mov eax, ebx
call fcn.0050da38
pop esi
pop ebx
ret
Function at 0x514630
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x5146aa
mov eax, dword [ebx + 8]
call fcn.0048ed0c
mov ecx, eax
mov dl, 1
mov eax, dword [0x49bb50]
call fcn.004890f8
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.004a0d48
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x2a0], 0x513f28
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.0048ed0c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.0048ed0c
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x514720
mov eax, dword [ebx + 8]
call fcn.0048ed0c
mov ecx, eax
mov dl, 1
mov eax, dword [0x49bb50]
call fcn.004890f8
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.004a0d48
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x2a0], 0x513f74
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0048ed0c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0048ed0c
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x51478c
mov eax, dword [ebx + 8]
call fcn.0048ed0c
mov ecx, eax
mov dl, 1
mov eax, dword [0x49c58c]
call fcn.004890f8
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x278], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.0048ed0c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.0048ed0c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x51a394
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x51a3ac
add esp, 0xfffffff0
call fcn.0040555c
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x51a4c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.00404508
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x51a4b0
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.004a44d4
xor eax, eax
push ebp
push 0x51a49d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.004a44d4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.004077b4
jmp 0x51a46e
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.00407ae0
mov eax, dword [ebx + 4]
call fcn.0040708c
dec eax
jle 0x51a482
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x51a45c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a4a4
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a4cd
lea eax, [ebp - 4]
call fcn.00406be4
ret

Function at 0x51e4b6
Capabilities:
Create service
Get number of processors
Persist via windows service

Disassembly:
in al, 0x51
add byte [edx], cl
add al, byte [eax]
add eax, dword [eax]
or byte [ebp + ecx*2 + 0x79], dl
Function at 0x51e550
Capabilities:
Create service
Persist via windows service

Disassembly:
push esp
push 0x3f646165
add al, ch
stc
push ecx
add byte [esi], al
inc ebx
jb 0x51e52e
popal
je 0x51e531
add eax, dword [eax]
add byte [eax], al
add byte [eax], al
or byte [eax], al
add cl, byte [eax]
sub ch, ah
push ecx
add byte [eax], al
add byte [ebx + edx*2], al
insb byte es:[edi], dx
add al, byte [eax]
add byte [eax], al
adc byte [eax], al
add al, byte [eax]
cmovae esi, dword [edx + 0x65]
popal
je 0x51e556
push ebx
jne 0x51e567
jo 0x51e55b
outsb dx, byte [esi]
add al, byte fs:[eax]
add al, byte [eax]
daa
add byte [eax], ah
cli
push ecx
add byte [edi], al
inc ebp
js 0x51e56d
arpl word [ebp + 0x74], si
add eax, dword gs:[eax]
add byte [eax], al
add byte [eax], al
or byte [eax], al
add dword [eax], ecx
sub ch, ah
push ecx
add byte [eax], al
add byte [ebx + edx*2], al
insb byte es:[edi], dx
add al, byte [eax]
add al, byte [eax]
add byte [eax], al
add byte [0x8070051], ch
push esp
dec ebp
jns 0x51e586
push esp
push 0x94646165
in al, 0x51
add byte [eax + 0x4400], ah
add byte [0x74696e55], al
xor dword [eax], eax
add byte [eax], al
add byte [edx], al
add byte [eax], al
add byte [ebx - 0x1374aa40], cl
push ebp
mov ebp, esp
push 0
push 0
push 0
add byte [edx], ch
push ebx
xor eax, eax
push ebp
push 0x51e61f
push dword fs:[eax]
rcl byte [ebp + 0x68], 0x1f
out 0x51, al
add byte [edi + edi*8 + 0x30], ah
mov dword fs:[eax], esp
push 0x64
and byte [edx + 0x64], ch
call sub.kernel32.dll_Sleep_2
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov ebx, eax
test ebx, ebx
jne 0x51e59d
invalid
lea eax, [ebp - 4]
mov edx, 0x51e630
call fcn.0040773c
mov eax, dword [ebp - 4]
push eax
call fcn.0051eaa0
xor ebx, ebx
jmp 0x51e604
lea eax, [ebp - 8]
mov ecx, 0x51e678
mov edx, dword [0x532360]
call fcn.00407928
mov eax, dword [ebp - 8]
call fcn.004076e4
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x51e6b8
push 0x51e6d0
push ebx
call sub.advapi32.dll_CreateServiceW
test eax, eax
jne 0x51e5fc
lea eax, [ebp - 0xc]
mov edx, 0x51e630
call fcn.0040773c
mov eax, dword [ebp - 0xc]
push eax
call fcn.0051eaa0
xor ebx, ebx
jmp 0x51e604
push eax
call sub.advapi32.dll_CloseServiceHandle
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e626
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406bfc
ret

Function at 0x51e8c0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf0
mov ebx, eax
mov eax, ebx
call fcn.00406b9c
push esp
push 0
mov eax, dword [0x532358]
call fcn.0048ed0c
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x104
call fcn.00404a64
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
mov eax, ebx
lea edx, [esp + 4]
call fcn.0040773c
add esp, 0x210
pop ebx
ret
Function at 0x51eaa0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
call fcn.00406c80
xor eax, eax
push ebp
push 0x51eb70
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x51eacc
xor eax, eax
push ebp
push 0x51eb46
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00404a64
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 0
lea eax, [ebp - 0x25c]
mov edx, dword [ebp + 8]
call fcn.0041f518
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x40
push 0
push 0
push 0
lea eax, [ebp - 0x25c]
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x51eb3c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51eb50
jmp 0x51eb5a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51eb77
lea eax, [ebp + 8]
call fcn.00406b9c
ret