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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5c9b51
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x8c5650], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4f54c4]
call fcn.004f6ca8
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5c9b25
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004f6d90
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040c8d8
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x5c9b6c
call fcn.0040ca8c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004f7020
test al, al
je 0x5c9b0d
lea ecx, [ebp - 4]
mov edx, 0x5c9be0
mov eax, dword [ebp - 0xc]
call fcn.004f7858
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0043b6f4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5c9b0d
xor edx, edx
push ebp
push 0x5c9b06
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x5c9bf8
mov eax, dword [ebp - 8]
push eax
call fcn.00416c20
test eax, eax
je 0x5c9aed
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x5c9aed
call fcn.005c9978
test eax, eax
je 0x5c9add
mov eax, dword [ebx + 0x50]
jmp 0x5c9ae0
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x8c5650]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c9b0d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c9b2c
mov eax, dword [ebp - 0xc]
call fcn.004099cc
pop eax
jmp eax

Function at 0x5c9c5c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x5c9ca3
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5c9c86
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5c9c97
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x5c9ca3
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x5d61c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x5d61e1
test edi, 0x40000
je 0x5d61fb
test bl, bl
jne 0x5d627c
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x5d627c
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
add dword [ebx], ebx
rol byte [eax - 0x78], 0x44
and al, 1
Function at 0x5d6520
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 0x5d6546
mov eax, esp
push eax
push 0x5d64e8
call sub.user32.dll_EnumWindows
jmp 0x5d6559
mov eax, esp
push eax
push 0x5d64c8
call sub.kernel32.dll_GetCurrentThreadId
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x5d661c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
xor eax, eax
mov si, ax
mov esi, eax
test bl, 4
je 0x5d662e
or si, 1
test bl, 8
je 0x5d6637
or si, 4
test bl, 1
je 0x5d6640
or si, 8
test bl, 2
je 0x5d6649
or si, 0x10
test bl, 0x10
je 0x5d6652
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5d6662
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x5d6668
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
xor eax, eax
mov bx, ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5d6681
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5d6691
or bx, 4
test esi, 0x20000000
je 0x5d669d
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x5e4a20
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x5e4a32
add esp, 0xfffffff0
call fcn.00409fb0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c74e8
mov eax, dword [0x8d1968]
mov dword [eax + 4], ebx
mov dword [eax], 0x5e4f10
mov eax, dword [0x8d199c]
mov dword [eax + 4], ebx
mov dword [eax], 0x5e4f1c
mov eax, ebx
call fcn.005e4f28
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x489980]
call fcn.0040999c
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x489980]
call fcn.0040999c
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x489980]
call fcn.0040999c
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x489980]
call fcn.0040999c
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x489980]
call fcn.0040999c
mov dword [ebx + 0x84], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x50], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x68]
push eax
mov eax, 0x5de608
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4fc40c]
call fcn.005049d8
mov esi, eax
mov dword [ebx + 0x8c], esi
mov byte [esi + 0x25], 1
mov dl, 1
mov eax, dword [0x4fc40c]
call fcn.005049d8
mov esi, eax
mov dword [ebx + 0x90], esi
mov byte [esi + 0x25], 1
mov dl, 1
mov eax, dword [0x4fc40c]
call fcn.005049d8
mov esi, eax
mov dword [ebx + 0x88], esi
mov byte [esi + 0x25], 1
mov dl, 1
mov eax, dword [0x4fc40c]
call fcn.005049d8
mov esi, eax
mov dword [ebx + 0x94], esi
mov byte [esi + 0x25], 1
mov dl, 1
mov eax, dword [0x4fc40c]
call fcn.005049d8
mov esi, eax
mov dword [ebx + 0x98], esi
mov byte [esi + 0x25], 1
mov eax, ebx
call fcn.005e5688
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5e5338
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5e5338
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5e5338
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5e5338
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5e5338
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5e4bd0
call fcn.0040a008
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5e50d4
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 0x5e5284
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5e5263
mov dl, 1
mov eax, dword [0x48d820]
call fcn.004b9700
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.0040b8b4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5e5252
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.00545404
test al, al
je 0x5e5245
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5e5294
lea eax, [ebp - 0x394]
call fcn.00431318
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5e5245
xor eax, eax
push ebp
push 0x5e523e
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 0x5e5304
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5e5225
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040c8d8
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5e5225
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040c8d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e5245
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5e5145
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.004b9628
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e528b
lea eax, [ebp - 0x3a0]
call fcn.0040b8b4
pop eax
jmp eax

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

Disassembly:
push ecx
mov eax, dword [0x8ea908]
cmp byte [eax + 0xc5], 0
jne 0x5e608e
cmp dword [0x8ea92c], 0
jne 0x5e604e
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x8c580c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x8ea92c], eax
cmp dword [0x8ea928], 0
jne 0x5e6069
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x8ea928], eax
cmp dword [0x8ea930], 0
jne 0x5e608e
push esp
push 0
push 0
mov eax, dword [0x8c5808]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x8ea930], eax
pop edx
ret
Function at 0x5e6438
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5e644f
add esp, 0xfffffff0
call fcn.00409fb0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c74e8
mov eax, dword [0x8d1398]
cmp byte [eax], 0
jne 0x5e647c
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x19c], al
mov eax, dword [0x8d2178]
cmp word [eax + 2], 0
jne 0x5e6496
mov eax, dword [0x8d2178]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005e88c0
mov eax, dword [0x8d261c]
cmp word [eax + 2], 0
jne 0x5e64b0
mov eax, dword [0x8d261c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005e8cd8
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4fc40c]
call fcn.005049d8
mov esi, eax
mov dword [ebx + 0x54], esi
mov byte [esi + 0x25], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5e9188
mov dl, 1
mov eax, dword [0x489980]
call fcn.0040999c
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x489980]
call fcn.0040999c
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x50169c]
call fcn.0050e9ec
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5e66a4
mov eax, dword [0x8d1be0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0050ef50
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5e944c
mov dl, 1
mov eax, dword [0x489980]
call fcn.0040999c
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x8d1be0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00431160
test eax, eax
je 0x5e65c7
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00430e70
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00431144
test eax, eax
je 0x5e65df
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040c8d8
push ebx
push 0x5e8298
call fcn.005d6600
mov dword [ebx + 0x198], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x8d1398]
cmp byte [eax], 0
jne 0x5e6630
mov eax, ebx
call fcn.005e686c
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.005e97f4
mov eax, ebx
call fcn.005ea32c
mov byte [ebx + 0x19e], 0
mov byte [ebx + 0xf5], 1
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5e669b
call fcn.0040a008
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5e6b9c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x190]
test eax, eax
je 0x5e6c3e
cmp dword [ebx + 0xac], 0
jne 0x5e6c38
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5e6adc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5e6c38
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 0x5e6bfe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5e6c38
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.004b4af4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5e6c0d
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x8ea908]
cmp dword [eax + 0x190], 0
je 0x5e70d9
test bl, bl
jne 0x5e702e
cmp dword [esi + 0xb4], 0
jne 0x5e7023
mov eax, esi
call fcn.005ea17c
push eax
push 0x5e6e7c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5e6ff4
mov eax, dword [0x8ea908]
cmp byte [eax + 0xeb], 0
je 0x5e6ff4
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5e6fd5
mov eax, dword [eax - 4]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5e6ff4
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5e6fdd
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5e7023
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004b4af4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5e7003
inc dword [esi + 0xb4]
jmp 0x5e70d9
cmp dword [esi + 0xb4], 0
jle 0x5e70d9
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5e70d9
cmp dword [esi + 0x58], 0
je 0x5e708e
mov eax, dword [0x8ea908]
cmp byte [eax + 0xeb], 0
je 0x5e708e
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5e706f
mov eax, dword [eax - 4]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5e708e
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5e7077
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5e70bd
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004b4af4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5e709d
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5d29a0]
call fcn.0040f2c4
pop edi
pop esi
pop ebx
ret
Function at 0x5e7ea4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5e7eff
cmp byte [ebx + 0xeb], 0
jne 0x5e7eff
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x190]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040ba4c
mov eax, dword [esi]
test eax, eax
je 0x5e7eec
mov eax, dword [eax - 4]
test eax, eax
jne 0x5e7f0c
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040bca4
jmp 0x5e7f0c
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040bca4
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5e9a08
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5e9a79
mov eax, esi
call fcn.0053eaac
test al, al
je 0x5e9a79
mov eax, dword [ebx + 0x98]
call fcn.0053e644
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5e9a79
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x17c]
test al, al
je 0x5e9a6a
push 0
mov eax, dword [ebx + 0x98]
call fcn.0053e644
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.005346c8
jmp 0x5e9a79
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005e9814
pop esi
pop ebx
ret
Function at 0x5f8f60
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.0040b9a8
xor eax, eax
push ebp
push 0x5f8fe0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040c824
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x5f8fa9
mov eax, dword [ebx + 4]
call fcn.0040c824
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 0x5f8fe7
lea eax, [ebp - 4]
call fcn.0040b8b4
pop eax
jmp eax

Function at 0x5fa0b8
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 0x5fa297
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.00407a88
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x5fa2b4
call fcn.0040cdb0
test eax, eax
jle 0x5fa119
push 0x5fa2c4
push dword [ebp - 4]
push 0x5fa2c4
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040cb14
cmp word [ebx + 0xb2], 0
je 0x5fa131
mov edx, ebx
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
mov eax, dword [ebx + 0xa0]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x5fa145
lea esi, [ebp - 0xc]
jmp 0x5fa147
xor esi, esi
cmp dword [ebx + 0x90], 0
jne 0x5fa154
xor edi, edi
jmp 0x5fa161
mov eax, dword [ebx + 0x90]
call fcn.0040c824
mov edi, eax
mov eax, dword [ebx + 0x8c]
call fcn.0040c824
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.005f979c
mov eax, dword [ebp - 0x14]
call fcn.0040c824
push eax
push esi
mov eax, dword [ebx + 0x84]
call fcn.0040c824
push eax
mov eax, dword [ebp - 4]
call fcn.0040c824
push eax
mov eax, ebx
call fcn.005f98d8
push eax
mov eax, ebx
call fcn.005f98ac
push eax
mov eax, ebx
call fcn.005f9860
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.005f9640
mov eax, dword [ebp - 0x18]
call fcn.0040c824
push eax
mov eax, dword [ebx + 8]
call fcn.0040c824
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 + 0xa0], eax
cmp dword [ebp - 0x10], 0
jne 0x5fa1f0
call fcn.0043ab30
xor edx, edx
push ebp
push 0x5fa26b
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x5fa22e
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xba], 0
je 0x5fa224
mov edx, ebx
mov eax, dword [ebx + 0xbc]
call dword [ebx + 0xb8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5fa252
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fa272
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
pop eax
jmp eax
Function at 0x5fa2c8
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 + 0xc2], 0
je 0x5fa2f4
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xc4]
call dword [esi + 0xc0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0040c824
push eax
push ebx
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5fa319
call fcn.0043ab30
xor eax, eax
push ebp
push 0x5fa352
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 0x5fa339
call fcn.0043ab30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fa359
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
pop eax
jmp eax

Function at 0x5facf4
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [edx + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
mov eax, dword [eax]
lea ebx, [eax + 0x18]
movzx edx, word [eax + 0x14]
add ebx, edx
movzx edi, word [eax + 6]
dec edi
test edi, edi
jl 0x5fad88
inc edi
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
add eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
test edx, edx
jne 0x5fad5b
mov esi, dword [esp + 8]
test esi, esi
jle 0x5fad82
push 0x40
push 0x1000
push esi
push eax
call sub.kernel32.dll_VirtualAlloc
mov ebp, eax
mov dword [ebx + 8], ebp
mov edx, esi
mov eax, ebp
xor ecx, ecx
call fcn.00408280
jmp 0x5fad82
mov esi, edx
push 0x40
push 0x1000
push esi
push eax
call sub.kernel32.dll_VirtualAlloc
mov ebp, eax
mov eax, dword [ebx + 0x14]
mov edx, dword [esp]
lea eax, [edx + eax]
mov ecx, esi
mov edx, ebp
call fcn.00407720
mov dword [ebx + 8], ebp
add ebx, 0x28
dec edi
jne 0x5fad22
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5fb110
Capabilities:
Inspect section memory permissions

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, eax
xor esi, esi
mov ebx, dword [edi]
add ebx, 0xf8
mov eax, dword [edi]
movzx ebp, word [eax + 6]
dec ebp
test ebp, ebp
jl 0x5fb1f2
inc ebp
xor edx, edx
mov eax, dword [ebx + 0x24]
mov ecx, eax
and ecx, 0x20000000
cmp ecx, 0x20000000
jne 0x5fb149
or edx, 0x10
mov ecx, eax
and ecx, 0x40000000
cmp ecx, 0x40000000
jne 0x5fb15c
or edx, 2
mov ecx, eax
and ecx, 0x80000000
cmp ecx, 0x80000000
jne 0x5fb16f
or edx, 8
mov ecx, eax
and ecx, 0x4000000
cmp ecx, 0x4000000
jne 0x5fb185
or edx, 0x200
and eax, 0x2000000
cmp eax, 0x2000000
jne 0x5fb1a7
push 0x4000
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 8]
or eax, esi
push eax
call sub.kernel32.dll_VirtualFree
jmp 0x5fb1eb
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x5fb1d6
mov ecx, dword [ebx + 0x24]
and ecx, 0x40
cmp ecx, 0x40
jne 0x5fb1c0
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
jmp 0x5fb1d6
mov ecx, dword [ebx + 0x24]
and ecx, 0x80
cmp ecx, 0x80
jne 0x5fb1d6
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
test eax, eax
jle 0x5fb1e8
push esp
push edx
push eax
mov eax, dword [ebx + 8]
or eax, esi
push eax
call sub.kernel32.dll_VirtualProtect
add ebx, 0x28
dec ebp
jne 0x5fb131
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret