joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c20
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
mov dword [esp + 4], 0x104
push eax
push 0xf003f
push 0
push str.SOFTWAREMICROSOFTWINDOWSCURRENTVERSIONRUN
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c89
lea ecx, [esp + 4]
push esi
lea edx, [esp + 0xc]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push 0x414dac
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x401c89
mov eax, 1
add esp, 0x10c
ret
xor eax, eax
add esp, 0x10c
ret

Function at 0x4052cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41aaa8
cmp edx, dword [eax]
je 0x4052ef
add eax, 8
inc ecx
cmp eax, 0x41ab38
jl 0x4052e0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41aaa8]
jne 0x40541d
mov eax, dword [0x41d4e8]
cmp eax, 1
je 0x4053f7
test eax, eax
jne 0x405320
cmp dword [0x41a69c], 1
je 0x4053f7
cmp edx, 0xfc
je 0x40541d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405357
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405550
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405640
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40539a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405640
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x416574
push edi
call fcn.00406c20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405550
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405560
lea eax, [ebp - 0xa0]
push 0x416554
push eax
call fcn.00405560
push dword [esi + 0x41aaac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405560
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406b89
add esp, 0x2c
pop edi
jmp 0x40541d
lea eax, [ebp + 8]
lea esi, [esi + 0x41aaac]
push 0
push eax
push dword [esi]
call fcn.00405640
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40abb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004039e0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40ac7b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40ac7b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40ac2e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40ac39
or bh, 8
and edi, 0x8000000
je 0x40ac54
mov eax, dword [0x41ec7c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40ac7b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40b07b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40b09f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40b0ba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x40c68b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x40c6ad
cmp dword [edi + 0x3c], 0
jne 0x40c6ad
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00412107
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0040c6da
pop edi
pop esi
pop ebx
ret 8

Function at 0x40f16a
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 0x40f1ac
call fcn.00412107
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40f1ac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40f1a3
xor eax, eax
jmp 0x40f1b4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040f1ba
pop edi
pop esi
pop ebx
ret 4

Function at 0x412897
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]
cmp dword [esp + 0x10], 0
jne 0x4128c5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4128e3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004127fd
jmp 0x4128e3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4128e3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004127fd
test edi, edi
mov eax, edi
jne 0x4128cd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10004590
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10091820
push 0x100773bc
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10096400]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, edx
mov esi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub ebx, esi
sub ebx, 5
mov byte [esi], 0xe9
mov dword [esi + 1], ebx
mov eax, 5
mov dword [ebp - 0x28], eax
cmp eax, edi
jae 0x10004600
mov byte [esi + eax], 0x90
inc eax
jmp 0x100045f2
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1000461a
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100773eb
mov esp, ebp
pop ebp
ret

Function at 0x100059b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10096400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov edi, edx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call esi
push 1
call esi
push dword [ebp + 8]
push edi
mov edi, dword [ebp - 0xc]
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
push 1
call esi
push 1
call esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100773eb
mov esp, ebp
pop ebp
ret
Function at 0x10007800
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x10096400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10007892
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10007892
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop
push dword [ebp - 0x138]
lea eax, [ebp - 0x10c]
push eax
call edi
add esp, 8
test eax, eax
je 0x10007886
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x10007860
jmp 0x10007892
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x134], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x134]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100773eb
mov esp, ebp
pop ebp
ret
Function at 0x100094e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10096400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10097a8c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [0x100988a4], eax
lea edi, [eax + 0x10]
cmp edi, 0x1000
jbe 0x10009533
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.100094d0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100988a4]
lea edi, [eax + 0x3c]
cmp edi, 0x1000
jbe 0x10009560
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.100094d0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100988a4]
lea edi, [eax + 0x40]
cmp edi, 0x1000
jbe 0x1000958d
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.100094d0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100988a4]
lea edi, [eax + 0x44]
cmp edi, 0x1000
jbe 0x100095ba
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.100094d0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100988a4]
lea edi, [eax + 0x48]
cmp edi, 0x1000
jbe 0x100095e7
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.100094d0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100988a4]
lea edi, [eax + 0x4c]
cmp edi, 0x1000
jbe 0x10009614
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.100094d0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100988a4]
lea edi, [eax + 0x50]
cmp edi, 0x1000
jbe 0x10009641
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.100094d0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100988a4]
lea edi, [eax + 0x54]
cmp edi, 0x1000
jbe 0x1000966e
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.100094d0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100988a4]
lea edi, [eax + 0x58]
cmp edi, 0x1000
jbe 0x1000969b
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.100094d0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100988a4]
cmp dword [0x100987a0], 0
jne 0x100096da
lea edi, [eax + 0x34]
push ebx
cmp edi, 0x1000
jbe 0x100096d1
mov ebx, dword [edi]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], 0x10007fe0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
jmp 0x100096d3
xor ebx, ebx
mov dword [0x100987a0], ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100773eb
mov esp, ebp
pop ebp
ret
Function at 0x1000c9d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x10096400]
xor eax, esp
mov dword [esp + 0x28], eax
movss xmm0, dword [0x10090c60]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
or esi, 0xffffffff
movss dword [esp + 0xc], xmm0
xor ebx, ebx
mov ecx, ebx
call fcn.10009720
test eax, eax
jle 0x1000cbce
mov ecx, dword [0x10098718]
sub ecx, dword [0x1009a75c]
add ecx, dword [0x1009a88c]
mov eax, dword [0x1009a934]
mov cl, byte [ecx + eax]
mov al, bl
not cl
not al
xor cl, al
test cl, 1
je 0x1000cbce
mov eax, dword [0x100989fc]
lea ecx, [esp + 0x1c]
mov edx, ebx
push dword [eax*4 + 0x1008cab8]
call fcn.100097b0
add esp, 4
test al, al
je 0x1000cbce
movq xmm0, qword [esp + 0x1c]
sub esp, 0xc
mov eax, dword [esp + 0x30]
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [esp + 0x34]
call fcn.10009890
add esp, 0xc
test al, al
je 0x1000cbce
mov eax, dword [0x10098780]
cvttss2si ecx, dword [esp + 0x28]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
neg ecx
movsd xmm1, qword [0x10090bb0]
addsd xmm0, qword [eax*8 + 0x10090c70]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x10090c64]
cvttss2si eax, xmm0
sub ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
mov eax, dword [0x10098784]
cvttss2si ecx, dword [esp + 0x2c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
neg ecx
movsd qword [esp + 0x10], xmm0
addsd xmm1, qword [eax*8 + 0x10090c70]
cvtpd2ps xmm1, xmm1
mulss xmm1, dword [0x10090c64]
cvttss2si eax, xmm1
movsd xmm1, qword [0x10090bb0]
sub ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
addsd xmm0, qword [esp + 0x10]
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x1000cb31
sqrtsd xmm0, xmm0
jmp 0x1000cb36
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [esp + 0xc]
cvtps2pd xmm1, xmm1
comisd xmm1, xmm0
jbe 0x1000cbce
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movd xmm0, dword [0x10098928]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xc], xmm1
comiss xmm0, xmm1
jbe 0x1000cbce
mov ecx, dword [0x100979b4]
lea eax, [ecx - 1]
cmp eax, 3
ja case.default.0x1000cb74
jmp dword [eax*4 + 0x1000cbf8]
mov eax, 1
mov dword [0x10098894], eax
jmp 0x1000cbb0
mov eax, 2
mov dword [0x10098894], eax
jmp 0x1000cbb0
mov eax, 0x11
mov dword [0x10098894], eax
jmp 0x1000cbb0
mov eax, 0x10
mov dword [0x10098894], eax
jmp 0x1000cbb0
mov eax, dword [0x10098894]
test ecx, ecx
je 0x1000cbc5
push eax
call edi
test ax, ax
js 0x1000cbc5
cmp dword [0x100979b4], 0
jne 0x1000cbce
mov esi, ebx
mov byte [0x10097aa7], 1
inc ebx
cmp ebx, 0xf
jle 0x1000ca00
mov eax, esi
cmp esi, 0xffffffff
jne 0x1000cbe6
mov byte [0x10097aa7], 0
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100773eb
mov esp, ebp
pop ebp
ret
Function at 0x1000cc10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x1000cc6a
cmp byte [edi*8 + 0x1009b2b0], 0
lea esi, [edi*8 + 0x1009b2b4]
je 0x1000cc4f
cmp dword [esi], 0
je 0x1000cc72
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi]
add ecx, dword [ebp - 4]
cmp ecx, eax
ja 0x1000cc72
mov byte [edi*8 + 0x1009b2b0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [edi*8 + 0x1009b2b0], 0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10018410
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10096400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1009aaa0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
cmp dword [eax], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x100184b1
cmp byte [0x100979ba], 0
jne 0x100184b1
mov esi, dword [0x1009a95c]
lea eax, [ebp - 8]
push eax
push 0x40
push 2
add esi, 0xfffffffe
mov byte [0x100979ba], 1
push esi
call ebx
push 1
call edi
push 1
call edi
mov eax, 0xe084
push 1
mov word [esi], ax
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 2
push esi
call ebx
mov esi, dword [0x1009a778]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xcc
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov eax, dword [0x1009aaa0]
mov eax, dword [eax]
test eax, eax
jne 0x100184ca
cmp byte [0x100979ba], 1
jne 0x100184ca
mov byte [0x100979ba], al
cmp dword [0x10098c74], 0
je 0x100185c0
cmp eax, 1
jne 0x10018569
cmp byte [0x100979b9], 0
jne 0x10018520
mov esi, dword [0x1009a76c]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xcc
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov byte [0x100979b9], 1
cmp dword [0x10097ac4], 0
je 0x10018569
cmp byte [0x10098ba9], 0
jne 0x10018569
mov esi, dword [0x1009a76c]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xa5
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov byte [0x10098ba9], 1
mov eax, dword [0x1009aaa0]
cmp dword [eax], 4
jne 0x100185a3
mov esi, dword [0x1009a76c]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xa5
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov eax, dword [0x1009aaa0]
cmp dword [eax], 0
jne 0x10018600
mov byte [0x10098ba9], 0
mov dword [0x10097ac4], 0
jmp 0x100185f9
cmp byte [0x100979b9], 1
jne 0x10018600
mov esi, dword [0x1009a76c]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xa5
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov byte [0x100979b9], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100773eb
mov esp, ebp
pop ebp
ret
Function at 0x10019970
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1009aaa0]
inc dword [0x10096cec]
cmp dword [eax], 1
jne 0x10019a7d
mov eax, dword [0x100989ec]
cmp dword [eax], 0
je 0x10019a7d
cmp dword [0x10098938], 0
je 0x10019a7d
mov ecx, dword [0x10098718]
sub ecx, dword [0x1009a75c]
add ecx, dword [0x1009a88c]
mov eax, dword [0x1009a934]
mov ecx, dword [ecx + eax]
call fcn.10009720
test eax, eax
jle 0x100199e7
mov eax, dword [0x100989ec]
mov ecx, dword [eax]
add ecx, dword [0x1009a748]
call fcn.1001afb0
mov ecx, dword [0x1009a768]
add ecx, eax
call fcn.1001aff0
jmp 0x100199ea
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10019a7d
mov eax, dword [0x100989ec]
push edi
push 1
mov edi, dword [eax]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x10019a75
cmp byte [0x1009b2b8], 0
je 0x10019a32
cmp dword [0x1009b2bc], 0
je 0x10019a7c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x1009b2bc]
add ecx, 0x96
cmp ecx, eax
ja 0x10019a7c
mov byte [0x1009b2b8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1009b2bc], eax
mov eax, dword [0x10096cec]
cmp eax, dword [0x10097a98]
jl 0x10019a7c
push 0
push 2
mov ecx, edi
call dword [0x1009a788]
push 0
push 0
mov ecx, edi
call dword [0x1009a788]
mov dword [0x10096cec], 0
jmp 0x10019a7c
mov byte [0x1009b2b8], 0
pop edi
mov eax, dword [0x100970f4]
test eax, eax
jne 0x10019a8f
mov dword [0x10097a98], eax
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x10019aa2
mov dword [0x10097a98], 0xa
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10019ab5
mov dword [0x10097a98], 0x14
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x10019ac8
mov dword [0x10097a98], 0x1e
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x10019adb
mov dword [0x10097a98], 0x28
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x10019aee
mov dword [0x10097a98], 0x32
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x10019b01
mov dword [0x10097a98], 0x3c
mov esp, ebp
pop ebp
ret
cmp eax, 7
jne 0x10019b14
mov dword [0x10097a98], 0x46
mov esp, ebp
pop ebp
ret
cmp eax, 8
jne 0x10019b27
mov dword [0x10097a98], 0x50
mov esp, ebp
pop ebp
ret
cmp eax, 9
jne 0x10019b3a
mov dword [0x10097a98], 0x5a
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x10019b4d
mov dword [0x10097a98], 0x64
mov esp, ebp
pop ebp
ret
cmp eax, 0xb
jne 0x10019b60
mov dword [0x10097a98], 0x6e
mov esp, ebp
pop ebp
ret
cmp eax, 0xc
jne 0x10019b6f
mov dword [0x10097a98], 0x78
mov esp, ebp
pop ebp
ret