joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f99c8
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 0x4f9b75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4f9b56
mov dl, 1
mov eax, dword [0x48b308]
call fcn.00491a9c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.00406ddc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4f9b45
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.0051fb1c
test al, al
je 0x4f9b38
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, 0x4f9b84
lea eax, [ebp - 0x394]
call fcn.004732d0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4f9b38
xor eax, eax
push ebp
push 0x4f9b31
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 0x4f9bf4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4f9b1a
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406fdc
mov edx, dword [ebp - 0x3a0]
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 0x4f9b1a
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9b38
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4f9a3b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00491888
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 0x4f9b7c
lea eax, [ebp - 0x3a0]
call fcn.00406dcc
ret

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

Disassembly:
push ecx
mov eax, dword [0x73b354]
cmp byte [eax + 0xa9], 0
jne 0x4fa626
cmp dword [0x73b36c], 0
jne 0x4fa5e6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x718260]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x73b36c], eax
cmp dword [0x73b368], 0
jne 0x4fa601
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x73b368], eax
cmp dword [0x73b370], 0
jne 0x4fa626
push esp
push 0
push 0
mov eax, dword [0x71825c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x73b370], eax
pop edx
ret
Function at 0x4fa868
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4fa87f
add esp, 0xfffffff0
call fcn.00404be4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0049a250
mov eax, dword [0x732ff4]
cmp byte [eax], 0
jne 0x4fa8ac
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x733800]
cmp word [eax + 2], 0
jne 0x4fa8c6
mov eax, dword [0x733800]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004fc7cc
mov eax, dword [0x733ae0]
cmp word [eax + 2], 0
jne 0x4fa8e0
mov eax, dword [0x733ae0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004fc9dc
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x4a1470]
call fcn.004a324c
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4fce60
mov dl, 1
mov eax, dword [0x48a9b0]
call fcn.004046d0
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x48a9b0]
call fcn.004046d0
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x4a2024]
call fcn.004ab078
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x4faabc
mov eax, dword [0x7334ac]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004ab47c
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4fd110
mov dl, 1
mov eax, dword [0x48a9b0]
call fcn.004046d0
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x7334ac]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00472904
test eax, eax
je 0x4fa9ee
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00472594
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004728ec
test eax, eax
je 0x4faa06
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 + 0x88]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406fdc
push ebx
push 0x4fc1c8
call fcn.004f0d58
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x732ff4]
cmp byte [eax], 0
jne 0x4faa57
mov eax, ebx
call fcn.004fac30
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.004fd338
mov eax, ebx
call fcn.004fdefc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4faab4
call fcn.00404c3c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4faed8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4faf7a
cmp dword [ebx + 0x90], 0
jne 0x4faf74
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4fae50
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x4faf74
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 0x4faf3a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4faf74
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.0048dbfc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4faf49
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x73b354]
cmp dword [eax + 0x170], 0
je 0x4fb2fd
test bl, bl
jne 0x4fb24b
cmp dword [esi + 0x98], 0
jne 0x4fb240
mov eax, esi
call fcn.004fdd4c
push eax
push 0x4fb0a4
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x4fb211
mov eax, dword [0x73b354]
cmp byte [eax + 0xcf], 0
je 0x4fb211
mov eax, dword [esi + 0xd4]
call fcn.00408634
mov edi, eax
cmp edi, 0
jl 0x4fb211
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4fb1fa
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4fb240
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0048dbfc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4fb220
inc dword [esi + 0x98]
jmp 0x4fb2fd
cmp dword [esi + 0x98], 0
jle 0x4fb2fd
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x4fb2fd
cmp dword [esi + 0x40], 0
je 0x4fb2a8
mov eax, dword [0x73b354]
cmp byte [eax + 0xcf], 0
je 0x4fb2a8
mov eax, dword [esi + 0xd4]
call fcn.00408634
mov edi, eax
cmp edi, 0
jl 0x4fb2a8
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4fb291
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4fb2d7
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0048dbfc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4fb2b7
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x4f0764]
call fcn.004087f4
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4fbeb8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x4fbf23
cmp byte [ebx + 0xcf], 0
jne 0x4fbf23
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.00406f18
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4fbf10
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4fbf30
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00406ddc
jmp 0x4fbf30
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00406ddc
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4fd50c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x4fd57a
mov eax, esi
call fcn.0051a390
test al, al
je 0x4fd57a
mov eax, dword [ebx + 0x80]
call fcn.00519fe4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4fd57a
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x4fd56e
push 0
mov eax, dword [ebx + 0x80]
call fcn.00519fe4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.00511610
jmp 0x4fd57a
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.004fd358
pop esi
pop ebx
ret

Function at 0x4ff4f0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406ddc
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4ff537
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406fdc
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x504950
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 0x504a89
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x49fee0]
call fcn.004a0214
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x504a5f
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004a02f0
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00406fdc
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x504aa4
call fcn.004071b0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004a055c
test al, al
je 0x504a49
lea ecx, [ebp - 4]
mov edx, 0x504b18
mov eax, dword [ebp - 0xc]
call fcn.004a0964
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0047b2b8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x504a42
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x504b30
mov eax, dword [ebp - 8]
push eax
call fcn.0040a3ec
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x7183c0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504a49
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504a66
mov eax, dword [ebp - 0xc]
call fcn.00404700
ret

Function at 0x504b94
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 0x504bdb
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x504bbe
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x504bcf
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x504bdb
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x50eda4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x73b3f0], 0
je 0x50eee5
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x733a48]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x50eee5
mov eax, dword [0x73b3f4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x73b3f0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x50eeb4
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x73b3f0]
call fcn.0048dbfc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x50eeac
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1e2], 0
je 0x50eeac
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x50eeac
mov eax, dword [ebp - 0x14]
call fcn.00519fe4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x50eeac
push ebp
call fcn.0050ed60
pop ecx
test al, al
jne 0x50eeac
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00404948
test al, al
je 0x50eeac
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00404948
cmp byte [ebp - 1], 0
je 0x50eeac
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00409d64
test al, al
je 0x50eeac
mov edx, dword [ebp - 0x14]
mov eax, dword [0x73b3f4]
call fcn.0050e4d8
inc edi
dec ebx
jne 0x50ee09
mov eax, dword [0x73b3f4]
cmp dword [eax + 8], 0
jle 0x50eecc
mov eax, dword [0x73b3f4]
call fcn.0050e590
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x50eee5
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0050ebc4
pop ecx
test al, al
jne 0x50eee5
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x516cd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00409d4c
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00511220
test ebx, ebx
jne 0x516d23
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00516b64
mov ebx, eax
test ebx, ebx
je 0x516e0e
cmp esi, ebx
je 0x516d4c
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x516d61
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x516d99
add eax, 0xffffff5f
sub eax, 2
jb 0x516db1
dec eax
sub eax, 2
jb 0x516dc5
dec eax
sub eax, 2
jb 0x516dbb
jmp 0x516dcf
add eax, 0xfffffdff
sub eax, 2
jb 0x516db1
dec eax
sub eax, 2
jb 0x516dc5
dec eax
sub eax, 2
jb 0x516dbb
jmp 0x516dcf
mov byte [esp + 0x120], 0
jmp 0x516dd7
mov byte [esp + 0x120], 2
jmp 0x516dd7
mov byte [esp + 0x120], 1
jmp 0x516dd7
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004f0e0c
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00512a2c
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x516e10
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x521cb4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x14]
mov edx, dword [0x434af4]
call fcn.00407868
xor eax, eax
push ebp
push 0x521e75
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x7185b4], 0
jne 0x521d08
mov ecx, dword [0x73303c]
mov dl, 1
mov eax, dword [0x46ec5c]
call fcn.00478568
call fcn.00405598
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov edx, 0x10
call fcn.00403cd8
mov eax, ebx
call fcn.00406af4
mov dword [ebp - 0x28], eax
push esi
mov esi, 0x521e84
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
call fcn.00409124
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
test eax, eax
je 0x521d4f
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x521e1b
mov dword [ebp - 0x1c], 0x20
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x521e07
lea eax, [ebp - 4]
lea edx, [ebp - 0x5c]
mov ecx, 0x10
call fcn.00406fdc
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00407044
mov eax, dword [ebp - 4]
test eax, eax
je 0x521daa
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x521daa
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405f7c
mov ebx, eax
test ebx, ebx
je 0x521db5
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 8]
test eax, eax
je 0x521dd2
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x521dd2
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00405f7c
mov edi, eax
test edi, edi
je 0x521ddd
sub edi, 4
mov edi, dword [edi]
push edi
mov eax, dword [ebp - 8]
call fcn.00406e68
push eax
push ebx
mov eax, dword [ebp - 4]
call fcn.00406e68
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringW_1
sub eax, 2
test eax, eax
sete al
jmp 0x521e09
xor eax, eax
test al, al
je 0x521e14
mov ebx, 0x15
jmp 0x521e20
mov ebx, 0x10
jmp 0x521e20
mov ebx, 0x15
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0
push esi
call dword [0x7185b4]
call fcn.00521b20
mov eax, dword [ebp - 0xc]
call fcn.00521b20
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.0040913c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x521e7c
lea eax, [ebp - 0x14]
mov edx, dword [0x434af4]
call fcn.00407940
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406dd4
ret
Function at 0x52344c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
xor eax, eax
push ebp
push 0x523544
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004720c0
cmp dword [ebp - 4], 0
je 0x52348d
mov eax, dword [ebp - 4]
mov edx, 0x523560
call fcn.00407428
jne 0x5234a1
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov eax, dword [ebp - 8]
mov edx, 0x523570
call fcn.004071b0
jmp 0x523503
xor eax, eax
push ebp
push 0x5234d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x65
mov eax, dword [ebp - 4]
call fcn.00471bb0
test al, al
jne 0x5234cb
mov eax, dword [ebp - 4]
call fcn.00471bd4
dec ebx
jne 0x5234b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x523503
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
call fcn.00406e68
push eax
call sub.kernel32.dll_GetFileAttributesW
test al, 1
setne al
test al, al
je 0x52352e
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00471cfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52354b
lea eax, [ebp - 4]
call fcn.00406dcc
ret

Function at 0x5240ac
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov byte [ebp - 1], dl
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [ebp - 0x18]
push eax
push 0x5241f4
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
push ebp
push 0x5241df
push dword fs:[eax]
mov dword fs:[eax], esp
cmp esi, 8
jg 0x524133
je 0x5241a6
sub esi, 1
jb 0x52415b
je 0x52418c
dec esi
je 0x524172
jmp 0x5241d5
sub esi, 0x40
je 0x5241c0
sub esi, 0xfffffc0
jne 0x5241d5
xor ecx, ecx
or edx, 0xffffffff
xor eax, eax
call sub.powrprof.dll_SetSuspendState
cmp al, 1
sbb ebx, ebx
inc ebx
jmp 0x5241d5
push 0
movzx eax, byte [ebp - 1]
or eax, 0
push eax
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x5241d5
push 0xffff
movzx eax, byte [ebp - 1]
or eax, 2
push eax
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x5241d5
push 0xffff
movzx eax, byte [ebp - 1]
or eax, 1
push eax
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x5241d5
push 0xffff
movzx eax, byte [ebp - 1]
or eax, 9
push eax
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x5241d5
push 0
movzx eax, byte [ebp - 1]
or eax, 0x40
push eax
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5241eb
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret