joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4587f8
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 0x4589a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x458984
mov dl, 1
mov eax, dword [0x41bb8c]
call fcn.00404544
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00405490
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x458973
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.0046fef0
test al, al
je 0x458966
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, 0x4589b4
lea eax, [ebp - 0x254]
call fcn.0040bf84
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x458966
xor eax, eax
push ebp
push 0x45895f
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 0x4589ec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x458948
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405700
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 0x458948
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405700
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458966
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x458869
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.004214a0
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 0x4589aa
lea eax, [ebp - 0x260]
call fcn.00405490
ret

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

Disassembly:
push ecx
mov eax, dword [0x5c4518]
cmp byte [eax + 0xa9], 0
jne 0x45942d
cmp dword [0x5c4530], 0
jne 0x4593ee
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x459378
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5c4530], eax
cmp dword [0x5c452c], 0
jne 0x459409
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5c452c], eax
cmp dword [0x5c4534], 0
jne 0x45942d
push esp
push 0
push 0
push 0x45931c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5c4534], eax
pop edx
ret
Function at 0x459600
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x459617
add esp, 0xfffffff0
call fcn.00404898
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004267ec
mov eax, dword [0x5bfba0]
cmp word [eax + 2], 0
jne 0x45963f
mov eax, dword [0x5bfba0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045af94
mov eax, dword [0x5bfee8]
cmp word [eax + 2], 0
jne 0x459659
mov eax, dword [0x5bfee8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b1a0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b5f4]
call fcn.00404544
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b5f4]
call fcn.00404544
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x41b5f4]
call fcn.00404544
mov dword [ebx + 0xac], 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 + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x42b25c]
call fcn.004336b4
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x459810
mov eax, dword [0x5bf7b8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00433ac4
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45b860
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5bf7b8]
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.004107f8
test eax, eax
je 0x459760
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040b7f4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00410848
test eax, eax
je 0x459774
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405700
mov byte [ebx + 0xd0], 0
push ebx
push 0x45aadc
call fcn.004280f4
mov dword [ebx + 0xc4], eax
mov eax, dword [0x5bf21c]
cmp byte [eax], 0
jne 0x4597c5
mov eax, ebx
call fcn.00459954
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa2], 1
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.0045ba3c
mov eax, ebx
call fcn.0045c59c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459805
call fcn.004048f0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45a7d4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x45a809
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.00405580
jmp 0x45a816
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004054e4
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x45bc20
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45bc8e
mov eax, esi
call fcn.0046ab04
test al, al
je 0x45bc8e
mov eax, dword [ebx + 0x84]
call fcn.0046a764
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45bc8e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45bc82
push 0
mov eax, dword [ebx + 0x84]
call fcn.0046a764
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00462ac4
jmp 0x45bc8e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045ba5c
pop esi
pop ebx
ret

Function at 0x46034c
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 - 9]
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 [0x5c4588], 0
je 0x460495
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5bfe5c]
mov edx, dword [edx]
xor al, byte [edx + 0xb8]
je 0x460495
mov eax, dword [0x5c458c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5c4588]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x460464
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5c4588]
call fcn.0041e0ec
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x46045c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x46045c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x46045c
mov eax, dword [ebp - 0x14]
call fcn.0046a764
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46045c
push ebp
call fcn.00460308
pop ecx
test al, al
jne 0x46045c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00404770
test al, al
je 0x46045c
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
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.00404770
cmp byte [ebp - 1], 0
je 0x46045c
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x46045c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5c458c]
call fcn.0045fa78
inc edi
dec ebx
jne 0x4603b1
mov eax, dword [0x5c458c]
cmp dword [eax + 8], 0
jle 0x46047c
mov eax, dword [0x5c458c]
call fcn.0045fb30
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x460495
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0046016c
pop ecx
test al, al
jne 0x460495
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 0x4678bc
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.00407a38
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.004626d4
test ebx, ebx
jne 0x46790f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004677f8
mov ebx, eax
test ebx, ebx
je 0x4679fa
cmp esi, ebx
je 0x467938
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 0x46794d
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 0x467985
add eax, 0xffffff5f
sub eax, 2
jb 0x46799d
dec eax
sub eax, 2
jb 0x4679b1
dec eax
sub eax, 2
jb 0x4679a7
jmp 0x4679bb
add eax, 0xfffffdff
sub eax, 2
jb 0x46799d
dec eax
sub eax, 2
jb 0x4679b1
dec eax
sub eax, 2
jb 0x4679a7
jmp 0x4679bb
mov byte [esp + 0x120], 0
jmp 0x4679c3
mov byte [esp + 0x120], 2
jmp 0x4679c3
mov byte [esp + 0x120], 1
jmp 0x4679c3
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0045110c
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00463e78
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4679fc
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x468694
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 + 0x240], 0
je 0x4686b0
cmp dword [esi + 4], 0
je 0x4686dd
test byte [ebx + 0x55], 1
jne 0x4686cf
mov eax, ebx
call fcn.00466a50
test eax, eax
jne 0x4686cf
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4687ed
mov edx, esi
mov eax, ebx
call fcn.0046809c
jmp 0x4687ed
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 0x4687e6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0046a764
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.00463e78
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00468694
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.0046a764
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4687ed
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 0x46fb94
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x5c0594]
cmp byte [eax + 0xc], 0
je 0x46fd01
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46fcfa
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [fcn.005c4598], 0
jne 0x46fbe8
push 0x46fd08
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x46fd10
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [fcn.005c4598], eax
cmp dword [0x5af960], 0
jne 0x46fce3
push 0x46fd20
call sub.kernel32.dll_LoadLibraryA
mov dword [0x5af960], eax
cmp dword [0x5af960], 0
je 0x46fce3
push 0x46fd2c
mov eax, dword [0x5af960]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5c459c], eax
push 0x46fd3c
mov eax, dword [0x5af960]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5c45a0], eax
push 0x46fd50
mov eax, dword [0x5af960]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5c45a4], eax
push 0x46fd68
mov eax, dword [0x5af960]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5c45a8], eax
push 0x46fd80
mov eax, dword [0x5af960]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5c45ac], eax
push 0x46fd94
mov eax, dword [0x5af960]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5c45b0], eax
push 0x46fdac
mov eax, dword [0x5af960]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5c45b4], eax
push 0x46fdc4
mov eax, dword [0x5af960]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5c45b8], eax
push 0x46fde0
mov eax, dword [0x5af960]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [fcn.005c45bc], eax
push 0x46fdec
mov eax, dword [0x5af960]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5c45c0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fd01
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x471574
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.00405490
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4715c2
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.00405700
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475684
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4757b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x429584]
call fcn.0042968c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x47578d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004297b8
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00405700
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x4757cc
call fcn.004057a0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004299a4
lea ecx, [ebp - 4]
mov edx, 0x475808
mov eax, dword [ebp - 0xc]
call fcn.00429c14
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00411c70
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x475770
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x475814
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x5afa4c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475777
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x475864
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 0x4758ab
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47588e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47589f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4758ab
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x47d14c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x2001f
push 0
push 0x47d1f8
push 0
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x47d1d5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x47d1a5
mov eax, dword [ebp - 0x1c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
inc eax
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405954
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00405954
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp dword [ebp - 0x14], 0
je 0x47d1f2
mov ecx, dword [0x5bf7a8]
mov dl, 1
mov eax, dword [0x47b070]
call fcn.0040f3ac
call fcn.00404de8
mov esp, ebp
pop ebp
ret 4

Function at 0x47d1fc
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegDeleteKeyA
pop ecx
pop ecx
pop ebp
ret
Function at 0x47d33c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
mov edx, dword [0x4121a0]
call fcn.004060c0
xor eax, eax
push ebp
push 0x47d515
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5afa80], 0
jne 0x47d398
mov ecx, dword [0x5bf27c]
mov dl, 1
mov eax, dword [0x409040]
call fcn.0040f3ac
call fcn.00404de8
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x10
call fcn.00403b84
mov eax, dword [ebp - 4]
call fcn.00405e08
mov dword [ebp - 0x3c], eax
mov esi, 0x47d524
lea edi, [ebp - 0x50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
call fcn.00407290
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
call fcn.00405e18
test eax, eax
jle 0x47d4b3
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x47d497
lea eax, [ebp - 0x64]
lea edx, [ebp - 0x60]
mov ecx, 0x10
call fcn.00405700
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x47d424
mov eax, dword [ebp - 0x1c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 4]
call fcn.00405718
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x47d446
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 4]
call fcn.00405718
mov eax, dword [ebp - 0x6c]
call fcn.00405954
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x70]
lea edx, [ebp - 0x60]
mov ecx, 0x10
call fcn.00405700
mov eax, dword [ebp - 0x70]
call fcn.00405954
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
sete byte [ebp - 0x21]
jmp 0x47d49b
mov byte [ebp - 0x21], 0
cmp byte [ebp - 0x21], 0
je 0x47d4aa
mov dword [ebp - 0x10], 0x15
jmp 0x47d4ba
mov dword [ebp - 0x10], 0x10
jmp 0x47d4ba
mov dword [ebp - 0x10], 0x15
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call dword [0x5afa80]
call fcn.0047cffc
mov eax, dword [ebp - 0x28]
call fcn.0047cffc
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x2c]
call fcn.004072a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d51c
lea eax, [ebp - 0x70]
mov edx, 4
call fcn.004054b4
lea eax, [ebp - 0x30]
mov edx, dword [0x4121a0]
call fcn.00406190
ret
Function at 0x47fee4
Capabilities:
Encode data using xor

Disassembly:
and edx, edx
je 0x47ff07
and ecx, ecx
jle 0x47ff07
push ebx
push edi
xor ebx, ebx
lea edi, cs:[0x47ff0d]
mov bl, al
shr eax, 8
xor bl, byte [edx]
xor eax, dword [edi + ebx*4]
inc edx
dec ecx
jne 0x47fef7
pop edi
pop ebx
ret

Function at 0x4865bc
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov edx, dword [eax + 4]
cmp edx, 0x12
jl 0x4865e4
mov ecx, dword [eax + edx*4 + 4]
xor dword [eax + edx*4 - 0x40], ecx
lea ecx, [edx + 3]
mov ebx, dword [eax + edx*4 + 4]
xor dword [eax + ecx*4 - 0x40], ebx
xor ecx, ecx
mov dword [eax + edx*4 + 4], ecx
dec edx
cmp edx, 0x11
jne 0x4865c5
cmp dword [eax + 4], 0x11
jle 0x486604
mov dword [eax + 4], 0x11
jmp 0x4865f6
dec dword [eax + 4]
mov edx, dword [eax + 4]
test edx, edx
je 0x486604
cmp dword [eax + edx*4 + 4], 0
je 0x4865f3
pop ebx
ret

Function at 0x486718
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, dword [ecx + 4]
mov esi, dword [edx + 4]
cmp edi, esi
jge 0x48675f
mov esi, edi
test esi, esi
jle 0x486740
mov ebx, 1
mov edi, dword [ecx + ebx*4 + 4]
xor edi, dword [edx + ebx*4 + 4]
mov dword [eax + ebx*4 + 4], edi
inc ebx
dec esi
jne 0x486730
mov ebx, dword [ecx + 4]
inc ebx
cmp ebx, 0x23
jg 0x486757
mov ecx, dword [edx + ebx*4 + 4]
mov dword [eax + ebx*4 + 4], ecx
inc ebx
cmp ebx, 0x24
jne 0x486749
mov edx, dword [edx + 4]
mov dword [eax + 4], edx
jmp 0x4867c7
cmp edi, esi
jle 0x48679b
test esi, esi
jle 0x48677c
mov ebx, 1
mov edi, dword [ecx + ebx*4 + 4]
xor edi, dword [edx + ebx*4 + 4]
mov dword [eax + ebx*4 + 4], edi
inc ebx
dec esi
jne 0x48676c
mov ebx, dword [edx + 4]
inc ebx
cmp ebx, 0x23
jg 0x486793
mov edx, dword [ecx + ebx*4 + 4]
mov dword [eax + ebx*4 + 4], edx
inc ebx
cmp ebx, 0x24
jne 0x486785
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
jmp 0x4867c7
mov ebx, esi
jmp 0x4867a0
dec ebx
mov esi, dword [ecx + ebx*4 + 4]
xor esi, dword [edx + ebx*4 + 4]
je 0x48679f
mov esi, ebx
mov dword [eax + 4], esi
mov ebx, esi
cmp ebx, 1
jl 0x4867c7
mov esi, dword [ecx + ebx*4 + 4]
xor esi, dword [edx + ebx*4 + 4]
mov dword [eax + ebx*4 + 4], esi
dec ebx
test ebx, ebx
jne 0x4867b6
pop edi
pop esi
pop ebx
ret