joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008dab7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1008db54
push ebx
push esi
call fcn.1008da80
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1008aa09
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1008db01
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008db53
push edi
push eax
call fcn.1008663d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1008db21
call fcn.10085a4f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008db52
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1008aa09
add esp, 0x20
test eax, eax
jne 0x1008db40
push edi
call fcn.10085a4f
jmp 0x1008db48
push ebx
call fcn.10085a4f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1008db57
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1008db68
pop esi
ret
push ebx
push edi
push esi
call fcn.1008da80
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1008663d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1008db90
push ebx
push esi
push edi
call fcn.1006d7c0
add esp, 0xc
push 0
call fcn.10085a4f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1008df60
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008dba5

Function at 0x10091fcd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10087a1b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1009203c
cmp esi, dword [ebp - 4]
je 0x10092037
cmp dword [ebp + 0xc], 0
je 0x10092037
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10092014
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10091b1f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1009203e
xor eax, eax
inc eax
jmp 0x1009203e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100920a3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b6540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10087a1b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10087a1b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1009211a
cmp word [ecx], dx
je 0x1009211a
mov eax, dword [0x100b025c]
push edi
dec eax
push eax
push 0x100b0148
call fcn.10092042
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1009218d
cmp word [eax], dx
je 0x1009218d
mov eax, dword [edi]
test eax, eax
je 0x1009213e
cmp word [eax], dx
je 0x1009213e
lea eax, [ebp - 0x10]
push eax
call fcn.10091a25
jmp 0x10092147
lea eax, [ebp - 0x10]
push eax
call fcn.10091ac0
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100921b7
mov eax, dword [0x100b0144]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100afe38
call fcn.10092042
add esp, 0xc
test al, al
je 0x100921b7
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10092182
cmp word [eax], di
je 0x10092182
lea eax, [ebp - 0x10]
push eax
call fcn.10091a25
pop ecx
jmp 0x100921b9
lea eax, [ebp - 0x10]
push eax
call fcn.10091ac0
jmp 0x1009217f
mov eax, dword [edi]
test eax, eax
je 0x100921a4
cmp word [eax], dx
je 0x100921a4
lea eax, [ebp - 0x10]
push eax
call fcn.100919da
pop ecx
jmp 0x100921b7
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10092282
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10091ec7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10092282
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10092282
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10092282
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1009220f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1008619e
test ebx, ebx
je 0x1009227d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1008619e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10092282
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10092282
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100936a4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10092284
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006bb34
leave
ret
Function at 0x100923e7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b6540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1009242a
call fcn.10076937
mov dword [eax], 0xf
call fcn.1007694a
mov dword [eax], 0xd
call fcn.10076579
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006bb34
leave
ret
test eax, eax
jne 0x10092431
inc eax
jmp 0x1009241e
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x1009241c
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1009241e

Function at 0x100949e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10094a0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10094a0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10004430
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10083338
push 0x1006b0dc
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10086400]
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 0x100044a0
mov byte [esi + eax], 0x90
inc eax
jmp 0x10004492
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100044ba
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.1006b10b
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10086400]
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.1006b10b
mov esp, ebp
pop ebp
ret
Function at 0x10007120
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x10086400]
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 0x100071b2
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x100071b2
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 0x100071a6
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x10007180
jmp 0x100071b2
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.1006b10b
mov esp, ebp
pop ebp
ret
Function at 0x10007ef0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10086400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10087748]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [0x10087998], eax
lea edi, [eax + 0x10]
cmp edi, 0x1000
jbe 0x10007f43
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10007ee0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x10087998]
lea edi, [eax + 0x3c]
cmp edi, 0x1000
jbe 0x10007f70
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10007ee0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x10087998]
lea edi, [eax + 0x40]
cmp edi, 0x1000
jbe 0x10007f9d
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10007ee0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x10087998]
lea edi, [eax + 0x44]
cmp edi, 0x1000
jbe 0x10007fca
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10007ee0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x10087998]
lea edi, [eax + 0x48]
cmp edi, 0x1000
jbe 0x10007ff7
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10007ee0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x10087998]
lea edi, [eax + 0x4c]
cmp edi, 0x1000
jbe 0x10008024
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10007ee0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x10087998]
lea edi, [eax + 0x50]
cmp edi, 0x1000
jbe 0x10008051
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10007ee0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x10087998]
lea edi, [eax + 0x54]
cmp edi, 0x1000
jbe 0x1000807e
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10007ee0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x10087998]
lea edi, [eax + 0x58]
cmp edi, 0x1000
jbe 0x100080ab
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10007ee0
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x10087998]
cmp dword [0x10087884], 0
jne 0x100080ea
lea edi, [eax + 0x34]
push ebx
cmp edi, 0x1000
jbe 0x100080e1
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], 0x10007670
push eax
push dword [ebp - 8]
push 4
push edi
call esi
jmp 0x100080e3
xor ebx, ebx
mov dword [0x10087884], ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1006b10b
mov esp, ebp
pop ebp
ret
Function at 0x1000aea0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10086400]
xor eax, ebp
mov dword [ebp - 4], eax
movss xmm0, dword [0x1008284c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
or esi, 0xffffffff
movss dword [ebp - 8], xmm0
xor ebx, ebx
nop dword [eax + eax]
mov ecx, ebx
call fcn.10008130
test eax, eax
jle 0x1000b04e
mov ecx, dword [0x10087800]
sub ecx, dword [0x10088e1c]
add ecx, dword [0x10088f4c]
mov eax, dword [0x10088fdc]
mov cl, byte [ecx + eax]
mov al, bl
not cl
not al
xor cl, al
test cl, 1
je 0x1000b04e
mov eax, dword [0x10087ad0]
lea ecx, [ebp - 0x14]
mov edx, ebx
push dword [eax*4 + 0x1007e504]
call fcn.100081c0
add esp, 4
test al, al
je 0x1000b04e
movq xmm0, qword [ebp - 0x14]
sub esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x20]
call fcn.10008290
add esp, 0xc
test al, al
je 0x1000b04e
mov eax, dword [0x10087868]
cvttss2si edx, dword [ebp - 0x1c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
cvttss2si ecx, dword [ebp - 0x20]
addsd xmm0, qword [eax*8 + 0x10082860]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x1008276c]
cvttss2si eax, xmm0
push eax
mov eax, dword [0x10087864]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10082860]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x1008276c]
cvttss2si eax, xmm0
push eax
call fcn.1000acc0
movss xmm1, dword [ebp - 8]
add esp, 8
cvtps2pd xmm1, xmm1
comisd xmm1, xmm0
jbe 0x1000b04e
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movd xmm0, dword [0x10087a14]
cvtdq2ps xmm0, xmm0
movss dword [ebp - 8], xmm1
comiss xmm0, xmm1
jbe 0x1000b04e
mov ecx, dword [0x1008767c]
lea eax, [ecx - 1]
cmp eax, 3
ja case.default.0x1000aff4
jmp dword [eax*4 + 0x1000b078]
mov eax, 1
mov dword [0x10087984], eax
jmp 0x1000b030
mov eax, 2
mov dword [0x10087984], eax
jmp 0x1000b030
mov eax, 0x11
mov dword [0x10087984], eax
jmp 0x1000b030
mov eax, 0x10
mov dword [0x10087984], eax
jmp 0x1000b030
mov eax, dword [0x10087984]
test ecx, ecx
je 0x1000b045
push eax
call edi
test ax, ax
js 0x1000b045
cmp dword [0x1008767c], 0
jne 0x1000b04e
mov esi, ebx
mov byte [0x100877ec], 1
inc ebx
cmp ebx, 0xf
jle 0x1000aed0
mov eax, esi
cmp esi, 0xffffffff
jne 0x1000b066
mov byte [0x100877ec], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006b10b
mov esp, ebp
pop ebp
ret
Function at 0x1000affb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10086400]
xor eax, ebp
mov dword [ebp - 4], eax
movss xmm0, dword [0x1008284c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
or esi, 0xffffffff
movss dword [ebp - 8], xmm0
xor ebx, ebx
nop dword [eax + eax]
mov ecx, ebx
call fcn.10008130
test eax, eax
jle 0x1000b04e
mov ecx, dword [0x10087800]
sub ecx, dword [0x10088e1c]
add ecx, dword [0x10088f4c]
mov eax, dword [0x10088fdc]
mov cl, byte [ecx + eax]
mov al, bl
not cl
not al
xor cl, al
test cl, 1
je 0x1000b04e
mov eax, dword [0x10087ad0]
lea ecx, [ebp - 0x14]
mov edx, ebx
push dword [eax*4 + 0x1007e504]
call fcn.100081c0
add esp, 4
test al, al
je 0x1000b04e
movq xmm0, qword [ebp - 0x14]
sub esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x20]
call fcn.10008290
add esp, 0xc
test al, al
je 0x1000b04e
mov eax, dword [0x10087868]
cvttss2si edx, dword [ebp - 0x1c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
cvttss2si ecx, dword [ebp - 0x20]
addsd xmm0, qword [eax*8 + 0x10082860]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x1008276c]
cvttss2si eax, xmm0
push eax
mov eax, dword [0x10087864]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10082860]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x1008276c]
cvttss2si eax, xmm0
push eax
call fcn.1000acc0
movss xmm1, dword [ebp - 8]
add esp, 8
cvtps2pd xmm1, xmm1
comisd xmm1, xmm0
jbe 0x1000b04e
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movd xmm0, dword [0x10087a14]
cvtdq2ps xmm0, xmm0
movss dword [ebp - 8], xmm1
comiss xmm0, xmm1
jbe 0x1000b04e
mov ecx, dword [0x1008767c]
lea eax, [ecx - 1]
cmp eax, 3
ja case.default.0x1000aff4
jmp dword [eax*4 + 0x1000b078]
mov eax, 1
mov dword [0x10087984], eax
jmp 0x1000b030
mov eax, 2
mov dword [0x10087984], eax
jmp 0x1000b030
mov eax, 0x11
mov dword [0x10087984], eax
jmp 0x1000b030
mov eax, 0x10
mov dword [0x10087984], eax
jmp 0x1000b030
mov eax, dword [0x10087984]
test ecx, ecx
je 0x1000b045
push eax
call edi
test ax, ax
js 0x1000b045
cmp dword [0x1008767c], 0
jne 0x1000b04e
mov esi, ebx
mov byte [0x100877ec], 1
inc ebx
cmp ebx, 0xf
jle 0x1000aed0
mov eax, esi
cmp esi, 0xffffffff
jne 0x1000b066
mov byte [0x100877ec], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006b10b
mov esp, ebp
pop ebp
ret

Function at 0x1000b090
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 0x1000b0ea
cmp byte [edi*8 + 0x10089948], 0
lea esi, [edi*8 + 0x1008994c]
je 0x1000b0cf
cmp dword [esi], 0
je 0x1000b0f2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi]
add ecx, dword [ebp - 4]
cmp ecx, eax
ja 0x1000b0f2
mov byte [edi*8 + 0x10089948], 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 + 0x10089948], 0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000e320
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10086400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10089138]
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 0x1000e3fe
cmp byte [0x10087682], 0
jne 0x1000e3fe
mov esi, dword [0x10089004]
lea eax, [ebp - 8]
push eax
push 0x40
push 2
add esi, 0xfffffffe
mov byte [0x10087682], 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 [0x10088e3c]
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 esi, dword [0x10088e38]
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 [0x10089138]
cmp dword [eax], 0
jne 0x1000e413
cmp byte [0x10087682], 1
jne 0x1000e413
mov byte [0x10087682], 0
cmp dword [0x10087d44], 0
je 0x1000e471
cmp byte [0x10087681], 0
jne 0x1000e4b1
mov esi, dword [0x10088e2c]
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
pop edi
pop esi
mov byte [0x10087681], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006b10b
mov esp, ebp
pop ebp
ret
cmp byte [0x10087681], 1
jne 0x1000e4b1
mov esi, dword [0x10088e2c]
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 [0x10087681], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006b10b
mov esp, ebp
pop ebp
ret
Function at 0x1000fa50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10089138]
cmp dword [eax], 1
jne 0x1000fb3f
mov eax, dword [0x10087ac8]
cmp dword [eax], 0
je 0x1000fb3f
cmp dword [0x10087a24], 0
je 0x1000fb3f
mov ecx, dword [0x10087800]
sub ecx, dword [0x10088e1c]
add ecx, dword [0x10088f4c]
mov eax, dword [0x10088fdc]
mov ecx, dword [ecx + eax]
call fcn.10008130
test eax, eax
jle 0x1000fac1
mov eax, dword [0x10087ac8]
mov ecx, dword [eax]
add ecx, dword [0x10088e08]
call fcn.10010c10
mov ecx, dword [0x10088e28]
add ecx, eax
call fcn.10010c30
jmp 0x1000fac4
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1000fb3f
mov eax, dword [0x10087ac8]
push edi
push 1
mov edi, dword [eax]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x1000fb37
cmp byte [0x10089950], 0
je 0x1000fb08
cmp dword [0x10089954], 0
je 0x1000fb3e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x10089954]
add ecx, 0xc8
cmp ecx, eax
ja 0x1000fb3e
mov byte [0x10089950], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 2
mov ecx, edi
mov dword [0x10089954], eax
call dword [0x10088e48]
push 0
push 0
mov ecx, edi
call dword [0x10088e48]
pop edi
mov esp, ebp
pop ebp
ret
mov byte [0x10089950], 0
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10010500
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10089138]
sub esp, 0xc
cmp dword [eax], 1
push edi
jne 0x10010606
mov eax, dword [0x10087ac8]
cmp dword [eax], 0
je 0x10010563
mov ecx, dword [0x10087800]
sub ecx, dword [0x10088e1c]
add ecx, dword [0x10088f4c]
mov eax, dword [0x10088fdc]
mov ecx, dword [ecx + eax]
call fcn.10008130
test eax, eax
jle 0x10010563
mov eax, dword [0x10087ac8]
mov ecx, dword [eax]
add ecx, dword [0x10088e08]
call fcn.10010c10
mov ecx, dword [0x10088e28]
add ecx, eax
call fcn.10010c30
jmp 0x10010566
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10010606
cmp dword [0x10087688], eax
je 0x10010606
mov eax, dword [0x10088f44]
lea edx, [ebp - 0xc]
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [0x10088e84]
mov ecx, esp
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push ecx
push eax
push edx
call fcn.10011ee0
mov ecx, dword [0x10089014]
call fcn.10005430
add esp, 0xc
mov edi, eax
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
shr ecx, 0x10
test ecx, ecx
je 0x100105ff
cmp byte [0x10089950], 0
je 0x100105e2
cmp dword [0x10089954], 0
je 0x10010606
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x10089954]
inc ecx
cmp ecx, eax
ja 0x10010606
mov byte [0x10089950], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10089954], eax
mov dword [edi], 5
pop edi
mov esp, ebp
pop ebp
ret
mov byte [0x10089950], 0
pop edi
mov esp, ebp
pop ebp
ret