joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005c738
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140063e80
sub rsp, rax
mov rax, qword [0x140084008]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400536b0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005c787
mov rax, rbp
jmp 0x14005c88f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x86d10]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005d874
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x86d10]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005c88b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005c88b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005d874
test rax, rax
js 0x14005c88b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005c88b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005c87d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005c87d
cmp byte [rcx], 0xd
jne 0x14005c863
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005c872
cmp byte [rcx + 1], 0xa
jne 0x14005c872
inc rcx
jmp 0x14005c872
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x84980]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005c845
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005c88f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140038990
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005cbf0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140086d10]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14005cc4e
cmp word [rdx], r12w
jne 0x14005cc4e
or byte [rax + r8*8 + 0x38], cl
jmp 0x14005cc54
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14005cdaf
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14005cd8a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14005cc8d
mov rcx, r9
jmp 0x14005ccb0
cmp r9, rdx
jae 0x14005ccc7
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14005cc71
jmp 0x14005cdaf
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005cd84
cmp dword [rsp + 0x80], edi
je 0x14005cd84
mov rdx, r14
lea r11, [0x140086d10]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14005cd5d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14005cd30
mov word [rbx], r12w
jmp 0x14005cdab
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14005cd39
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14005cdab
cmp word [rsp + 0x70], r12w
jne 0x14005cd6a
cmp rbx, rsi
je 0x14005cd2a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14005d87c
cmp word [rsp + 0x70], r12w
je 0x14005cdaf
mov word [rbx], r13w
jmp 0x14005cdab
lea r11, [0x140086d10]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14005cda7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14005cdaf
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140061e4c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140046888
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140061ed6
cmp byte [rbp - 0x21], r15b
je 0x140061ed1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140061f0c
call fcn.140054bf4
test eax, eax
jne 0x140061ef8
cmp byte [rbp - 0x21], r15b
je 0x140061ef0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140061f0c
cmp byte [rbp - 0x21], r15b
je 0x140061f09
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140051530
test eax, eax
jne 0x140061fac
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140046888
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140061f4b
cmp byte [rbp - 0x21], r15b
je 0x140061f80
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140061f80
call fcn.140054bf4
test eax, eax
jne 0x140061f6c
cmp byte [rbp - 0x21], r15b
je 0x140061f65
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140061f80
cmp byte [rbp - 0x21], r15b
je 0x140061f7d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140051530
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140061fac
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140061faf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140061fbd
mov rcx, rdi
call fcn.140051cac
cmp byte [rbp + 0x3f], r15b
je 0x140061fcc
mov rcx, qword [rbp + 0x27]
call fcn.140051cac
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140063f70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140063f98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140063f98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800041d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push r14
sub rsp, 0x30
sub r8, rdx
mov r14, rdx
sar r8, 2
test r8, r8
je 0x1800043d1
mov r9, qword [rcx + 8]
sub r9, qword [rcx]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x28], rbp
sar r9, 2
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], rdi
cmp r8, 0x26f
jb 0x18000421d
mov eax, 0xb
jmp 0x18000424b
cmp r8, 0x44
jb 0x18000422a
mov eax, 7
jmp 0x18000424b
cmp r8, 0x27
jb 0x180004237
mov eax, 5
jmp 0x18000424b
cmp r8, 7
jb 0x180004244
mov eax, 3
jmp 0x18000424b
lea rax, [r8 - 1]
shr rax, 1
mov r10, r8
lea rbx, [r9 + 1]
sub r10, rax
shr r10, 1
lea rdx, [r10 + rax]
mov qword [rsp + 0x48], rdx
cmp r8, r9
jbe 0x180004269
mov rbx, r8
xor esi, esi
mov qword [rsp + 0x10], r12
mov qword [rsp], r15
mov eax, 0x8b8b8b8b
mov rdi, r14
mov rcx, r8
rep stosd dword [rdi], eax
test rbx, rbx
je 0x180004333
mov qword [rsp + 8], r13
nop
xor edx, edx
lea rax, [rsi + r10]
div r8
mov r12d, dword [r14 + rdx*4]
lea r15, [r14 + rdx*4]
xor edx, edx
mov rax, rsi
div r8
lea r13, [r14 + rdx*4]
mov rdi, rdx
lea rax, [rsi - 1]
xor edx, edx
div r8
mov ecx, dword [r14 + rdx*4]
xor ecx, r12d
xor ecx, dword [r13]
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul r11d, eax, 0x19660d
test rsi, rsi
jne 0x1800042dc
mov rax, r9
jmp 0x1800042fd
cmp rsi, r9
ja 0x1800042fa
xor edx, edx
lea rax, [rsi - 1]
div r9
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov eax, dword [rax + rdx*4]
add rax, rdi
jmp 0x1800042fd
mov rax, rdi
lea ecx, [rax + r11]
xor edx, edx
lea eax, [r12 + r11]
mov dword [r15], eax
mov rax, qword [rsp + 0x48]
add rax, rsi
inc rsi
div r8
add dword [r14 + rdx*4], ecx
mov dword [r13], ecx
cmp rsi, rbx
jb 0x180004290
mov rdx, qword [rsp + 0x48]
mov r13, qword [rsp + 8]
lea rbp, [rbx + r8]
cmp rsi, rbp
jae 0x1800043b4
lea r15, [r10 + 1]
lea r12, [rdx + 1]
nop dword [rax]
nop dword [rax + rax]
xor edx, edx
lea rbx, [rsi - 1]
lea rax, [r15 + rbx]
div r8
mov r10d, dword [r14 + rdx*4]
lea r11, [r14 + rdx*4]
xor edx, edx
mov rax, rsi
div r8
mov rax, rbx
inc rsi
mov r9, rdx
xor edx, edx
div r8
mov ecx, dword [r14 + rdx*4]
xor edx, edx
add ecx, r10d
add ecx, dword [r14 + r9*4]
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul ecx, eax, 0x5d588b65
lea rax, [r12 + rbx]
div r8
xor r10d, ecx
mov edi, ecx
sub edi, r9d
mov dword [r11], r10d
xor dword [r14 + rdx*4], edi
mov dword [r14 + r9*4], edi
cmp rsi, rbp
jb 0x180004350
mov r12, qword [rsp + 0x10]
mov r15, qword [rsp]
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x18]
add rsp, 0x30
pop r14
ret
Function at 0x18000f340
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x18000f3b3
mov qword [0x18032a5b8], rcx
lea r8, [0x18001bbf0]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor ebx, ebx
xor edx, edx
mov qword [rsp + 0x28], rbx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x1800019e0]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x18001b750]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180017320
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x80
mov rdx, qword [rcx + 0x270]
mov rbx, rcx
mov byte [rcx + 0x238], 0
mov rcx, qword [rcx + 0x240]
call fcn.1800180a0
movaps xmm0, xmmword [0x180329e70]
lea rax, [rsp + 0x40]
movaps xmm1, xmmword [0x180329e80]
xor ecx, ecx
movaps xmm2, xmmword [0x180329e90]
xor r9d, r9d
movaps xmm3, xmmword [0x180329ea0]
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor edx, edx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov byte [rbx + 0x238], 1
mov qword [rsp + 0x78], rcx
mov rcx, qword [rbx + 0x148]
call fcn.1800dd5e0
mov rcx, qword [rbx + 0x130]
mov rdx, qword [rbx + 0x270]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbx + 0x270]
mov rdx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, qword [rbx + 0x128]
call fcn.1800e4a10
add rsp, 0x80
pop rbx
jmp 0x180036fe0
push rbx
sub rsp, 0x40
mov rax, qword [0x1801b0238]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x18032a5f0], 0
jne 0x180037004
call fcn.180036620
mov rcx, qword [0x18032a648]
lea rdx, [rsp + 0x28]
mov rbx, qword [0x1801b0270]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x20]
sub eax, dword [rsp + 0x28]
movd xmm1, eax
mov eax, dword [rsp + 0x34]
sub eax, dword [rsp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
unpcklps xmm1, xmm0
movsd qword [rbx + 8], xmm1
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
xorps xmm1, xmm1
sub rax, qword [0x18032a658]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x18032a650]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rbx + 0x10], xmm1
mov rax, qword [rsp + 0x20]
mov qword [0x18032a658], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rbx + 0x10d], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rbx + 0x10e], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x110], 0
cmp byte [rbx + 0x10c], 0
mov byte [rbx + 0x10f], al
je 0x1800370d9
xor eax, eax
jmp 0x1800370e6
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
call fcn.1800236b0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800e5f40
add rsp, 0x40
pop rbx
ret
Function at 0x180021e20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x18032e754], 0
lea rdi, [0x18032e750]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x180021ef8
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x180021e50
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x180021f32
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
mov ecx, eax
shr ecx, 8
mov eax, dword [rdi + rdx*4]
xor eax, ecx
sub r9d, 1
jne 0x180021f10
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x180021f73
nop
cmp r9b, 0x23
jne 0x180021f53
cmp byte [r8], r9b
jne 0x180021f53
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
mov ecx, eax
inc r8
shr ecx, 8
mov eax, dword [rdi + rdx*4]
xor eax, ecx
test r9b, r9b
jne 0x180021f40
not eax
pop rdi
ret
Function at 0x180022490
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x1800224a9
mov dword [r8], 0
lea rdx, [0x180188c78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
jne 0x1800224c9
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
xor edx, edx
mov qword [rsp + 0x30], rbp
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800225b4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rbp, eax
cmp ebp, 0xffffffff
je 0x1800225b4
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800225b4
mov rdx, qword [0x1801b0270]
lea eax, [rbp + 1]
movsxd rcx, eax
mov qword [rsp + 0x38], rdi
inc dword [rdx + 0x33c]
call qword [rdx + 0xd8]
mov rdi, rax
test rax, rax
jne 0x180022543
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
jmp 0x180022587
mov r9, rbx
mov qword [rsp + 0x40], r14
mov r8, rbp
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x18002259c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1801b0270]
mov rcx, rdi
dec dword [rax + 0x33c]
call qword [rax + 0xe0]
xor eax, eax
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
xor eax, eax
mov byte [rbp + rdi], al
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x1800225af
mov dword [rsi], ebp
mov rax, rdi
jmp 0x180022582
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbp, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x180036fe0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x80
mov rdx, qword [rcx + 0x270]
mov rbx, rcx
mov byte [rcx + 0x238], 0
mov rcx, qword [rcx + 0x240]
call fcn.1800180a0
movaps xmm0, xmmword [0x180329e70]
lea rax, [rsp + 0x40]
movaps xmm1, xmmword [0x180329e80]
xor ecx, ecx
movaps xmm2, xmmword [0x180329e90]
xor r9d, r9d
movaps xmm3, xmmword [0x180329ea0]
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor edx, edx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov byte [rbx + 0x238], 1
mov qword [rsp + 0x78], rcx
mov rcx, qword [rbx + 0x148]
call fcn.1800dd5e0
mov rcx, qword [rbx + 0x130]
mov rdx, qword [rbx + 0x270]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbx + 0x270]
mov rdx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, qword [rbx + 0x128]
call fcn.1800e4a10
add rsp, 0x80
pop rbx
jmp 0x180036fe0
push rbx
sub rsp, 0x40
mov rax, qword [0x1801b0238]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x18032a5f0], 0
jne 0x180037004
call fcn.180036620
mov rcx, qword [0x18032a648]
lea rdx, [rsp + 0x28]
mov rbx, qword [0x1801b0270]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x20]
sub eax, dword [rsp + 0x28]
movd xmm1, eax
mov eax, dword [rsp + 0x34]
sub eax, dword [rsp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
unpcklps xmm1, xmm0
movsd qword [rbx + 8], xmm1
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
xorps xmm1, xmm1
sub rax, qword [0x18032a658]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x18032a650]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rbx + 0x10], xmm1
mov rax, qword [rsp + 0x20]
mov qword [0x18032a658], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rbx + 0x10d], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rbx + 0x10e], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x110], 0
cmp byte [rbx + 0x10c], 0
mov byte [rbx + 0x10f], al
je 0x1800370d9
xor eax, eax
jmp 0x1800370e6
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
call fcn.1800236b0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800e5f40
add rsp, 0x40
pop rbx
ret
Function at 0x18003b220
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push rbp
push r13
push r14
sub rsp, 0xb0
xor eax, eax
movsxd r13, r9d
mov dword [rsp + 0xe8], eax
mov r14, rdx
mov qword [rsp + 0x60], r13
mov rbp, rcx
test r9d, r9d
jle 0x18003b46f
mov qword [r11 + 8], rbx
lea rbx, [r8 + 0x20]
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 - 0x20], r12
xor r12d, r12d
mov qword [r11 - 0x28], r15
movaps xmmword [r11 - 0x38], xmm6
movaps xmmword [r11 - 0x48], xmm7
xorps xmm7, xmm7
movaps xmmword [r11 - 0x58], xmm8
mov r11d, 0x100
movss xmm8, dword [0x18018a070]
nop dword [rax + rax]
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x18003b2e3
movsxd r10, dword [r14 + 0x24]
mov r9, qword [r14 + 8]
movsx ecx, r11w
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, r11w
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm6, xmm0
jmp 0x18003b309
movsxd rcx, dword [r14 + 0x1c]
mov rax, qword [r14 + 8]
movzx edx, byte [rcx + rax + 0x12]
movzx eax, byte [rcx + rax + 0x13]
shl edx, 8
add edx, eax
movd xmm0, edx
cvtdq2ps xmm0, xmm0
divss xmm6, xmm0
xorps xmm6, xmm8
movzx eax, byte [rbp + 0x20]
xor edi, edi
mov byte [rbx], al
movzx eax, byte [rbp + 0x24]
mov byte [rbx + 1], al
cmp dword [rbx - 0x10], edi
jle 0x18003b417
mov r15, qword [rsp + 0xf0]
mov rax, r12
mov r13d, dword [rsp + 0xe8]
add r15, 6
shl rax, 4
xor esi, esi
add r15, rax
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x18003b351
mov edx, dword [rbx - 0x1c]
add edx, edi
jmp 0x18003b354
mov edx, dword [rax + rsi]
mov eax, dword [rbp + 0x24]
xorps xmm3, xmm3
xorps xmm2, xmm2
mov rcx, r14
cvtsi2ss xmm3, rax
mov eax, dword [rbp + 0x20]
cvtsi2ss xmm2, rax
mulss xmm3, xmm6
mulss xmm2, xmm6
call fcn.180037cb0
mov edx, eax
mov rcx, r14
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
movss dword [rsp + 0x20], xmm7
call fcn.1800390c0
movzx eax, word [rbp + 0x20]
inc r13d
sub ax, word [rsp + 0x50]
inc r12
dec ax
inc edi
add ax, word [rsp + 0x54]
add rsi, 4
add ax, word [rbp + 0x1c]
mov word [r15 - 2], ax
movzx eax, word [rbp + 0x24]
sub ax, word [rsp + 0x58]
dec ax
add ax, word [rsp + 0x5c]
add ax, word [rbp + 0x1c]
mov word [r15], ax
add r15, 0x10
cmp edi, dword [rbx - 0x10]
jl 0x18003b341
mov dword [rsp + 0xe8], r13d
mov r11d, 0x100
mov r13, qword [rsp + 0x60]
add rbx, 0x28
sub r13, 1
mov qword [rsp + 0x60], r13
jne 0x18003b290
mov eax, dword [rsp + 0xe8]
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop r14
pop r13
pop rbp
ret
Function at 0x180041c10
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
mov r10, rdx
mov eax, 0x5e6ea9af
mul r8d
mov edi, r8d
xor r9d, r9d
shr edx, 0xb
mov esi, r8d
imul eax, edx, 0x15b0
mov ecx, 1
sub edi, eax
test r8d, r8d
je 0x180041d4c
mov qword [rsp + 0x10], rbx
xor edx, edx
cmp edi, 7
jbe 0x180041cb2
lea r8d, [rdx + 7]
movzx eax, byte [r10]
add edx, 8
add ecx, eax
add r8d, 8
movzx eax, byte [r10 + 1]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 2]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 3]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 4]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 5]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 6]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 7]
add r9d, ecx
add ecx, eax
add r10, 8
add r9d, ecx
cmp r8d, edi
jb 0x180041c53
xor r8d, r8d
xor r11d, r11d
cmp edx, edi
jae 0x180041d14
mov eax, edi
sub eax, edx
cmp eax, 2
jb 0x180041cfd
mov eax, edi
sub eax, edx
sub eax, 2
shr eax, 1
inc eax
mov ebx, eax
lea edx, [rdx + rax*2]
nop word [rax + rax]
movzx eax, byte [r10]
add ecx, eax
movzx eax, byte [r10 + 1]
add r8d, ecx
add r10, 2
add ecx, eax
add r11d, ecx
sub rbx, 1
jne 0x180041ce0
cmp edx, edi
jae 0x180041d0d
movzx eax, byte [r10]
add ecx, eax
add r9d, ecx
inc r10
lea eax, [r11 + r8]
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
sub esi, edi
mov edi, 0x15b0
jne 0x180041c48
mov rbx, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
shl r9d, 0x10
lea eax, [rcx + r9]
pop rdi
ret

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

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rdi, rcx
mov edx, dword [rcx + 0xa8]
mov rcx, qword [rcx + 0x98]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x38], 0x40
lea r9, [rsp + 0x3c]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov r8d, dword [rdi + 0x84]
lea rdx, [rdi + 0x41]
mov rcx, qword [rdi + 0x98]
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [rdi + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov r8d, ebx
mov rdx, qword [rdi + 0x98]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x38]
nop
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret