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

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov ecx, dword [eax + 0x7c]
push esi
cmp ebp, 0xffffffff
push edi
mov dword [esp + 0x10], ecx
jne 0x48a135
mov edx, dword [esp + 0x1c]
mov ebp, dword [edx]
test ebp, ebp
je 0x48a10c
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call esi
push 0x10
mov edi, eax
call esi
push 0x12
mov ebx, eax
call esi
xor ecx, ecx
test edi, 0x8000
je 0x48a0cc
mov ecx, 2
test bh, 0x80
je 0x48a0d4
or ecx, 1
test ah, 0x80
je 0x48a0dc
or ecx, 4
mov esi, dword [esp + 0x28]
push ecx
mov ecx, esi
mov eax, dword [esp + 0x14]
shr ecx, 0x10
movsx edx, cx
mov eax, dword [eax + 8]
push edx
mov edx, dword [esp + 0x24]
movsx ecx, si
push ecx
mov ecx, dword [edx + 4]
push ecx
push eax
call ebp
test eax, eax
jne 0x48a112
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x28]
jmp 0x48a116
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push esi
push edx
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 4]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call esi
push 0x10
mov edi, eax
call esi
push 0x12
mov ebx, eax
call esi
xor ecx, ecx
test edi, 0x8000
je 0x48a15a
mov ecx, 2
test bh, 0x80
je 0x48a162
or ecx, 1
test ah, 0x80
je 0x48a16a
or ecx, 4
mov esi, dword [esp + 0x28]
push ecx
mov ecx, esi
mov edi, dword [esp + 0x1c]
shr ecx, 0x10
movsx edx, cx
movsx eax, si
push edx
push eax
push 3
push ebp
push edi
call fcn.00489fa0
add esp, 0x18
test eax, eax
je 0x48a104
cmp ebp, 0x18
je 0x48a19d
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 0x14]
push esi
push eax
mov eax, dword [edi + 4]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x48a9d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x5875b8]
test eax, eax
je 0x48a9e6
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x48aa33
mov eax, dword [eax]
test eax, eax
jne 0x48a9d9
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc_1]
test eax, eax
je 0x48aa33
lea ecx, [eax + 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov edx, dword [eax + 4]
mov dword [ecx], edx
mov dword [eax + 4], ecx
add ecx, 0x20
mov edx, ecx
sub edx, eax
cmp edx, 0xfe0
jbe 0x48aa0f
mov ecx, dword [0x5875b8]
mov dword [eax], ecx
mov dword [0x5875b8], eax
ret

Function at 0x48ae70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
mov cl, byte [esi]
test cl, cl
je 0x48ae89
cmp cl, 0x90
je 0x48ae89
cmp cl, 0xcc
je 0x48ae89
pop esi
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, 1
cmp edx, eax
jbe 0x48aea0
cmp byte [eax + esi], cl
jne 0x48ae85
inc eax
cmp eax, edx
jb 0x48ae96
pop esi
mov eax, 1
ret
Function at 0x48c71f
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 1
push dword [ebp + 0x10]
call fcn.0048b832
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.0048b863
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_ResumeThread]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x48c76c
push 6
call fcn.00493070
add esp, 4
jmp 0x48c771
mov esp, ebp
pop ebp
ret 0xc

Function at 0x48edbb
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
lea eax, [ebp + 8]
push eax
push 0x48eeb3
call dword [sym.imp.user32.dll_EnumWindows]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x48edec
push 6
call fcn.00493070
add esp, 4
mov eax, dword [ebp + 8]
jmp 0x48edf4
mov esp, ebp
pop ebp
ret 4

Function at 0x4935e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4935fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4935f3
pop esi
ret
Function at 0x493e40
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
push edi
ja 0x493ec0
je 0x493eb1
cmp eax, 0x80000101
ja 0x493eaa
je 0x493eb1
cmp eax, 0x80000004
je 0x493e8d
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x493ed5
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], 3
test eax, eax
je 0x493f1b
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x493f1b
mov ebp, dword [esp + 0x44]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 1
mov ebx, ecx
inc ebx
jmp 0x493f1b
cmp eax, 0x80000201
jne 0x493ed5
mov ebx, 4
lea ebp, [esp + 0x44]
mov dword [esp + 0xc], ebx
jmp 0x493f1b
cmp eax, 0x80000401
je 0x493f06
cmp eax, 0x80000501
je 0x493ef2
cmp eax, 0x80000601
je 0x493ede
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.004953b8
jmp 0x493f13
fld dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
call fcn.004953b8
jmp 0x493f13
mov eax, dword [esp + 0x44]
mov ebx, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
lea ebp, [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00494600
mov edi, dword [esp + 0x3c]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x20], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0
test edx, edx
je 0x493ff6
test ecx, ecx
je 0x493ff6
inc ecx
push esi
push ecx
call fcn.0049f343
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00495390
mov esi, eax
add esp, 0xc
test esi, esi
je 0x493f98
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0x493fec
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
jne 0x493fe1
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
push edi
call fcn.0049f36c
add esp, 4
pop esi
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4aa5f0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4aa693
test eax, eax
jbe 0x4aa693
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4aa693
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA_1]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4aa63e
xor esi, esi
jmp 0x4aa644
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4aa66f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004ac5c0
add esi, eax
push esi
mov ebx, esi
call fcn.004ac5c0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4aa650
pop ebp
test edi, edi
pop edi
jne 0x4aa693
test ebx, ebx
je 0x4aa693
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004c6e50
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4aa7f5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4aa90d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4aa90d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004d9ce8
mov esi, eax
test esi, esi
je 0x4aa90d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA_1]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4aa90d
mov ecx, esi
call fcn.004aa780
cmp edi, eax
jge 0x4aa90d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4aa893
mov dword [esp + 0x34], 1
jmp 0x4aa8ee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4aa90d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen_1]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004a9d20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4ad7c0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x52db8c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4ad7d3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4ad814
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x52dc34]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4ad846
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4ad84a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4ad83b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4ad868
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4ad86c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4ad85d
xor ecx, ecx
mov eax, 0x52db9c
xor ebx, ebx
mov bl, byte [ecx + 0x52dc44]
cmp byte [esp + ebx + 0x14], 0
je 0x4ad897
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x52dc5c]
cmp byte [esp + ebx + 0x14], 0
je 0x4ad8ae
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4ad87e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4ad807
lea edx, [esp + 0x84]
push edx
call fcn.004ad8f0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4b2230
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x57533c]
xor edx, edx
cmp eax, edx
jne 0x4b2256
xor eax, eax
mov byte [eax + 0x57523c], al
inc eax
cmp eax, 0x100
jl 0x4b223e
mov dword [0x57533c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x57523c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4b22e7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4b22ba
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4b2288
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4b22f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4b2343
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4b232a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b8cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e6bae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004b95f0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x504f6c
call fcn.004d7ffc
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4b8d63
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004d7ffc
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4b8d5c
push 0
mov ecx, eax
call fcn.004afe70
mov dword [esi + 0xc], eax
jmp 0x4b8d65
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4b8d65
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4da68c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4da6c4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d8716
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d86ee
jmp 0x4da6d0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4dbd7a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4dbdbc
call fcn.004e1838
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4dbdbc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4dbdb3
xor eax, eax
jmp 0x4dbdc4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004dbdca
pop edi
pop esi
pop ebx
ret 4

Function at 0x4e1d68
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [esp + 0x10], 0
jne 0x4e1d96
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x4e1db4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e1cce
jmp 0x4e1db4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e1db4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004e1cce
test edi, edi
mov eax, edi
jne 0x4e1d9e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x1013b98
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1046080]
push ebx
xor ebx, ebx
cmp dword [0x1047468], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], ebx
jne 0x1013c11
push esi
push 7
xor esi, esi
call fcn.0100f861
test eax, eax
je 0x102821e
call fcn.010193e2
cmp ax, bx
mov word [0x10474bc], ax
je 0x1013bfc
push 0x10
lea ecx, [ebp - 0x30]
push ecx
movzx eax, ax
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1013bfc
test byte [ebp - 0x21], 8
jne 0x1028203
xor eax, eax
cmp esi, ebx
sete al
inc eax
push eax
push 0x1047468
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop esi
cmp dword [0x1047468], 1
je 0x10282c3
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x1047468], 1
pop edi
sete al
pop ebx
call fcn.01001aff
leave
ret 4
xor eax, eax
mov ax, word [0x10474bc]
push eax
call 0x103cc59
test eax, eax
jne 0x10282bb
jmp 0x1013bfc
push 5
call fcn.0100f861
test eax, eax
je 0x1013bfc
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1013bfc
lea eax, [ebp - 0x38]
push eax
push 0x20019
push ebx
push 0x10282dc
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1013bfc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x10282d9
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0xc
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x38]
mov byte [ebp - 5], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
call 0x103cb5d
test eax, eax
je 0x1013bfc
mov eax, dword [ebp - 0x34]
and eax, 0x3ff
cmp eax, 1
je 0x10282b5
cmp eax, 0xd
jne 0x1013bfc
mov word [0x10474bc], ax
xor esi, esi
inc esi
jmp 0x1013bfc
cmp edi, ebx
je 0x1013c1e
mov ax, word [0x10474bc]
mov word [edi], ax
jmp 0x1013c1e

Function at 0x10141d6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1046080]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0x103e
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x1014230
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x1027ef3
push 1
push 0
push 0x101423c
push 0x100bde0
call dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueW]
mov ecx, dword [ebp - 4]
call fcn.01001aff
leave
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1d4]
lea eax, [ebp - 0x20c]
push 0x1027f38
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push 1
push 0
push 0x101423c
lea eax, [ebp - 0x20c]
push eax
jmp 0x101422a
Function at 0x10214ab
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x10]
add eax, ecx
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
je 0x10281bf
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push dword [ebp + 0x14]
xor ebx, ebx
cmp dword [ebp + 0xc], edi
push ecx
setne bl
push edi
lea eax, [ebp + 0xc]
push eax
push ebx
call esi
cmp eax, ebx
je 0x1021acb
pop esi
pop ebx
pop edi
leave
ret 0x10
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
jmp 0x1021adb
mov ecx, dword [ebp - 4]
jmp 0x10214d8
push 1
push edi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call ebx
test eax, eax
je 0x1021b0c
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp dword [ebp - 0x20], 0x20
je 0x10281cf
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1021adb
cmp dword [ebp + 0x10], 0xffffffff
je 0x1021ad3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 4], ecx
jmp 0x10214d8
or eax, 0xffffffff
cmp ecx, eax
jne 0x10214d0
jmp 0x10214f6
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x1021adb

Function at 0x1021e6a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
mov edi, ecx
cmp dword [edi + 0xc], ebx
mov dword [ebp - 4], ebx
je 0x1021ed0
cmp dword [ebp + 8], ebx
push esi
push 5
pop eax
lea esi, [edi + 8]
jne 0x1026b81
inc dword [esi]
cmp dword [esi], eax
ja 0x1021ecf
lea eax, [ebp - 4]
push eax
push 0x20006
push ebx
push 0x101fe68
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1021ecf
push 4
push esi
push 4
push ebx
push 0x101fee4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov dword [edi + 0xc], ebx
pop edi
pop ebx
leave
ret 4
mov dword [esi], eax
jmp 0x1021e90

Function at 0x1021f6c
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp word [eax + 0xc], 0x71
push edi
mov edi, ecx
je 0x1028ecc
xor eax, eax
pop edi
pop ebp
ret 4
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
test ax, ax
jl 0x1028f07
push 0x11
call esi
test ax, ax
jl 0x1028f07
push 0x12
call esi
test ax, ax
jl 0x1028f07
test byte [edi + 0x48], 8
je 0x1028f07
mov ecx, edi
call fcn.0101af9b
test eax, eax
jl 0x1028f07
push eax
mov ecx, edi
call 0x103ff03
pop esi
jmp 0x1021f82
Function at 0x103b9c1
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x1046080]
and dword [ebp - 0x418], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x14]
push 0x10
pop ecx
mov dword [ebp - 0x41c], eax
xor eax, eax
push ebx
lea edi, [ebp - 0x464]
rep stosd dword es:[edi], eax
push 0x102
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x468], 0x44
call fcn.0100660f
test eax, eax
jl 0x103ba97
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push 0x103baac
mov esi, 0x208
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0101e2d9
xor edi, edi
cmp eax, edi
jl 0x103ba96
push dword [ebp - 0x420]
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0101e2d9
cmp eax, edi
jl 0x103ba96
push dword [ebp - 0x41c]
lea eax, [ebp - 0x468]
push eax
push dword [ebp - 0x424]
lea eax, [ebp - 0x414]
push edi
push edi
push edi
push edi
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x418], eax
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop ebx
call fcn.01001aff
leave
ret 0x10

Function at 0x103d01b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10476e8]
cmp eax, 0xffffffff
jne 0x103d09f
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x103d0b0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x103d08e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x103d0a4
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x103d085
cmp dword [ebp - 0xc], 4
jne 0x103d085
cmp dword [ebp - 0x10], eax
je 0x103d085
mov dword [0x10476e8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x10476e8]
cmp eax, 0xffffffff
jne 0x103d09f
xor eax, eax
mov dword [0x10476e8], eax
leave
ret