joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457858
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4578a4
mov eax, esi
call fcn.0046d608
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4578a4
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4578a4
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4579e3
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4578e4
cmp eax, 0x108
ja 0x4578e4
mov eax, esi
call fcn.0046d608
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4579da
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x4579e3
jmp 0x4579da
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4579c3
cmp eax, 0x20a
ja 0x4579c3
test byte [esi + 0x50], 0x80
jne 0x457916
sub eax, 0x203
je 0x457913
sub eax, 3
je 0x457913
sub eax, 3
jne 0x457916
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x45792a
dec eax
je 0x45793f
dec eax
je 0x45795c
dec eax
je 0x45793f
jmp 0x457963
mov ecx, ebx
mov eax, dword [0x48ab80]
mov eax, dword [eax]
mov edx, esi
call fcn.00476e5c
jmp 0x4579da
cmp byte [esi + 0x5d], 1
jne 0x457955
mov eax, esi
mov si, 0xffed
call fcn.00403488
jmp 0x4579e3
or word [esi + 0x54], 1
jmp 0x4579da
and word [esi + 0x54], 0xfffe
jmp 0x4579da
mov eax, dword [0x48be30]
cmp byte [eax + 0x20], 0
je 0x4579da
mov eax, dword [0x48be30]
cmp dword [eax + 0x1c], 0
je 0x4579da
mov eax, dword [ebx]
mov edx, dword [0x48be30]
cmp eax, dword [edx + 0x1c]
jne 0x4579da
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0046d54c
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403488
jmp 0x4579e3
cmp eax, 0xb00b
jne 0x4579da
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00456160
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45af50
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x45af6c
cmp dword [esi + 4], 0
je 0x45af99
test byte [ebx + 0x55], 1
jne 0x45af8b
mov eax, ebx
call fcn.00459af0
test eax, eax
jne 0x45af8b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x45b0a9
mov edx, esi
mov eax, ebx
call fcn.0045aa74
jmp 0x45b0a9
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45b0a2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0045cdc0
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0045778c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0045af50
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0045cdc0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b0a9
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46177c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x48ae00]
cmp byte [eax + 0xc], 0
je 0x4618e9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4618e2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48be84], 0
jne 0x4617d0
push 0x4618f0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4618f8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48be84], eax
cmp dword [0x48a424], 0
jne 0x4618cb
push 0x461908
call sub.kernel32.dll_LoadLibraryA
mov dword [0x48a424], eax
cmp dword [0x48a424], 0
je 0x4618cb
push 0x461914
mov eax, dword [0x48a424]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48be88], eax
push 0x461924
mov eax, dword [0x48a424]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48be8c], eax
push 0x461938
mov eax, dword [0x48a424]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48be90], eax
push 0x461950
mov eax, dword [0x48a424]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48be94], eax
push 0x461968
mov eax, dword [0x48a424]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48be98], eax
push 0x46197c
mov eax, dword [0x48a424]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48be9c], eax
push 0x461994
mov eax, dword [0x48a424]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48bea0], eax
push 0x4619ac
mov eax, dword [0x48a424]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48bea4], eax
push 0x4619c8
mov eax, dword [0x48a424]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48bea8], eax
push 0x4619d4
mov eax, dword [0x48a424]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48beac], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4618e9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404060
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x465bcb
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004042d0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46d4bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46d50c]
test si, 4
je 0x46d4d0
or bl, 1
test si, 8
je 0x46d4da
or bl, 4
test si, 1
je 0x46d4e4
or bl, 8
test si, 2
je 0x46d4ee
or bl, 0x10
test si, 0x10
je 0x46d4f8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46d507
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x46d510
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46d548]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46d529
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46d538
or bl, 4
test esi, 0x20000000
je 0x46d543
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x473bf0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x473c02
add esp, 0xfffffff0
call fcn.004035b0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b6a0
mov eax, dword [0x48a820]
mov dword [eax + 4], ebx
mov dword [eax], 0x473f94
mov eax, dword [0x48a830]
mov dword [eax + 4], ebx
mov dword [eax], 0x473fa0
mov eax, ebx
call fcn.00473fac
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412350]
call fcn.0040325c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412350]
call fcn.0040325c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412350]
call fcn.0040325c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412350]
call fcn.0040325c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412350]
call fcn.0040325c
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, 0x4703c8
push eax
push 0
push 0
mov eax, dword [0x48aa9c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x43690c]
call fcn.00438120
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x43690c]
call fcn.00438120
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x43690c]
call fcn.00438120
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004743cc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4742a8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4742a8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4742a8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x473d3f
call fcn.00403608
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47408c
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 0x474237
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x474218
mov dl, 1
mov eax, dword [0x4129b4]
call fcn.0040325c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404060
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x474207
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.00461adc
test al, al
je 0x4741fa
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, 0x474248
lea eax, [ebp - 0x254]
call fcn.0040906c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4741fa
xor eax, eax
push ebp
push 0x4741f3
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 0x474280
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4741dc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042d0
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 0x4741dc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4741fa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4740fd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004171c4
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 0x47423e
lea eax, [ebp - 0x260]
call fcn.00404060
ret

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

Disassembly:
push ecx
mov eax, dword [0x48bed0]
cmp byte [eax + 0xa5], 0
jne 0x474bdd
cmp dword [0x48bee8], 0
jne 0x474b9e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x474b28
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x48bee8], eax
cmp dword [0x48bee4], 0
jne 0x474bb9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48bee4], eax
cmp dword [0x48beec], 0
jne 0x474bdd
push esp
push 0
push 0
push 0x474acc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x48beec], eax
pop edx
ret
Function at 0x474cd4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x474ceb
add esp, 0xfffffff0
call fcn.004035b0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b6a0
mov eax, dword [0x48aa70]
cmp word [eax + 2], 0
jne 0x474d13
mov eax, dword [0x48aa70]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00476454
mov eax, dword [0x48abc4]
cmp word [eax + 2], 0
jne 0x474d2d
mov eax, dword [0x48abc4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047664c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412350]
call fcn.0040325c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412350]
call fcn.0040325c
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4373ec]
call fcn.0043eaa0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x474eb4
mov eax, dword [0x48a8e4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0043ee70
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x476bec
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x48a8e4]
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.0040cd0c
test eax, eax
je 0x474e22
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408a4c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cd34
test eax, eax
je 0x474e36
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004042d0
mov eax, dword [0x48a6a4]
cmp byte [eax], 0
jne 0x474e6a
mov eax, ebx
call fcn.00474fdc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00476dc8
mov eax, ebx
call fcn.0047778c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x474eaa
call fcn.00403608
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47525c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48bed0]
cmp dword [eax + 0x30], 0
je 0x475306
cmp dword [ebx + 0x94], 0
jne 0x475300
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4751ec
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x475300
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 0x4752c6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x475300
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.00414a08
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4752d5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x475e68
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x475e9d
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.00404150
jmp 0x475eaa
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040b4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x476fa4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x476fe5
mov eax, esi
call fcn.0045d0c4
test al, al
je 0x476fe5
mov eax, dword [ebx + 0x84]
call fcn.0045cdc0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x476fe5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045cdc0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4808b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4808e8]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4808c6
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4808d5
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4808e4
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4812b0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [0x45253c]
call fcn.00403418
test al, al
je 0x4812f2
mov eax, dword [0x48ab80]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4812f2
mov edx, dword [0x48ab80]
xor edx, edx
call fcn.0046f8a8
push 0
mov eax, dword [0x48ab80]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret

Function at 0x4865a4
Capabilities:
Create process on windows

Disassembly:
call fcn.0040c804
mov eax, dword [0x48abfc]
mov eax, dword [eax]
mov dl, 5
call fcn.00470888
mov eax, dword [0x48abfc]
mov eax, dword [eax]
mov eax, dword [eax + 0x310]
mov edx, 0x48660c
call fcn.004565f0
mov eax, dword [0x48abfc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0xec]
dec eax
jne 0x486600
push 5
push 0
push 0
push 0x486708
push 0x486740
mov eax, dword [0x48ab80]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
mov al, 1
ret

Function at 0x486860
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x486893
mov al, 1
call fcn.00486748
push 0
push 6
call sub.user32.dll_ExitWindowsEx
xor eax, eax
call fcn.00486748
jmp 0x48689c
push 0
push 6
call sub.user32.dll_ExitWindowsEx
add esp, 0x94
ret
Function at 0x402fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x402fa9
xor ecx, ecx
jne 0x402fa9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402ff0
mov eax, dword [ebp - 0xc]
jmp 0x40304d
cmp dword [ebp - 4], 1
je 0x403003
cmp dword [ebp - 4], 2
je 0x403003
mov eax, 0xd
jmp 0x40304d
cmp dword [ebp + 0xc], 0
je 0x403041
cmp dword [ebp - 8], 0
je 0x403039
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x403030
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x403037
mov eax, 0xd
jmp 0x40304d
jmp 0x403041
mov edx, dword [ebp + 0xc]
mov word [edx], 0
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e7a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f556
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x414044]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], ecx
mov eax, dword [ebp - 0x24c]
cmp dword [eax + 8], 1
jne 0x40e7f0
mov ecx, dword [ebp - 0x24c]
xor eax, eax
cmp dword [ecx], 0
setne al
jmp 0x40e931
mov edx, dword [ebp - 0x24c]
mov dword [edx + 8], 1
lea ecx, [ebp - 0x30]
call fcn.00403500
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov word [ebp - 0x23c], 0
push 0x206
push 0
lea eax, [ebp - 0x23a]
push eax
call fcn.004059e0
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x40e851
push 0x104
lea ecx, [ebp - 0x23c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x10], eax
jmp 0x40e871
push 0x104
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40e88e
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00403540
lea ecx, [ebp - 0x30]
call fcn.004035e0
push str.kispublic.dll
lea ecx, [ebp - 0x30]
call fcn.00403470
lea ecx, [ebp - 0x30]
call fcn.00402ae0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e8cf
mov dword [ebp - 0x240], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403520
mov eax, dword [ebp - 0x240]
jmp 0x40e931
lea ecx, [ebp - 0x30]
call fcn.00402ae0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0x24c]
mov dword [edx], eax
mov eax, dword [ebp - 0x24c]
cmp dword [eax], 0
jne 0x40e912
mov dword [ebp - 0x244], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403520
mov eax, dword [ebp - 0x244]
jmp 0x40e931
mov dword [ebp - 0x248], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403520
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00405118
mov esp, ebp
pop ebp
ret 4
Function at 0x40ec30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f586
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x414044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0040e950
test eax, eax
je 0x40ed46
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x10]
call fcn.00402950
mov dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x10]
push eax
call fcn.00402260
mov ecx, eax
call fcn.004022e0
lea ecx, [ebp - 0x10]
call fcn.00401160
test eax, eax
jg 0x40ecb8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401090
mov eax, dword [ebp - 0x1c]
jmp 0x40ed4b
mov dword [ebp - 0x14], 0
push str.ksafetray.exe
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004029b0
add esp, 0xc
push 1
lea ecx, [ebp - 0x10]
call fcn.00401360
push eax
push 0
lea ecx, [ebp - 0x18]
call fcn.00401360
push eax
push 0x411fc4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040ea70
test eax, eax
jne 0x40ed1c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp eax, 0xa
jl 0x40ed26
lea ecx, [ebp - 0x18]
call fcn.00401090
jmp 0x40ed37
lea ecx, [ebp - 0x18]
call fcn.00401090
mov edx, 1
test edx, edx
jne 0x40ecbf
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401090
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret