joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800a27f0
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov ecx, dword [0x18015f800]
mov edx, 0x44
movups xmm0, xmmword [0x18015f7f0]
movzx eax, word [0x18015f804]
mov dword [rbp + 7], ecx
xor ax, 0x3f
xor word [rbp + 9], 0x3e
xor cx, 0x3d
movups xmmword [rbp - 9], xmm0
xor word [rbp - 7], 0x36
xor word [rbp - 5], 0x37
xor word [rbp - 3], 0x38
xor word [rbp - 1], 0x39
xor word [rbp + 1], 0x3a
xor word [rbp + 3], 0x3b
xor word [rbp + 5], 0x3c
mov word [rbp + 7], cx
lea rcx, [rbp - 9]
mov word [rbp - 9], dx
mov word [rbp + 0xb], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r9, rax
test rax, rax
je 0x1800a2a80
cmp byte [0x18015f9a7], 0
movups xmm0, xmmword [str.qAZqJyTQMQL_5_]
movups xmmword [rbp + 0xd], xmm0
movsd xmm0, qword [0x18015f9a0]
movsd qword [rbp + 0x1d], xmm0
je 0x1800a2a4d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1800a2a12
movdqa xmm0, xmmword [0x180160240]
lea rcx, [rbp + 0x11]
movdqa xmm5, xmmword [0x1801600f0]
mov eax, 4
movdqa xmm4, xmmword [0x1801602e0]
xor edx, edx
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm7
movdqa xmm7, xmmword [0x180160120]
movd xmm6, eax
mov eax, 0x1f
movdqa xmmword [rbp - 0x19], xmm0
mov r8d, dword [rbp - 0x19]
movaps xmmword [rsp + 0x60], xmm8
movd xmm8, eax
nop word [rax + rax]
movd xmm2, edx
lea eax, [rdx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add edx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x180160210]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180160210]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x18
jl 0x1800a2900
movaps xmm8, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x80]
jmp 0x1800a2a4d
lea r8, [rbp + 0xd]
xor ecx, ecx
nop dword [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x32
movzx eax, cl
inc ecx
sub al, dl
add al, 0x35
xor byte [r8 - 1], al
cmp ecx, 0x18
jl 0x1800a2a20
lea rdx, [rbp + 0xd]
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800a2a80
lea rcx, [rbp + 0x67]
mov dword [rbp + 0x67], 0
call rax
test eax, eax
js 0x1800a2a80
cmp dword [rbp + 0x67], 0
setne al
add rsp, 0x90
pop rbp
ret
mov al, 1
add rsp, 0x90
pop rbp
ret
Function at 0x1800a3020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov r15, rdx
mov r8, rcx
test rcx, rcx
je 0x1800a3135
movsxd rax, dword [rcx + 0x3c]
test eax, eax
je 0x1800a3135
mov rcx, rax
add rcx, r8
je 0x1800a3135
movzx eax, word [r8]
add eax, dword [rcx]
cmp eax, 0x9f9d
jne 0x1800a3135
mov eax, dword [rcx + 0x50]
mov ecx, dword [rcx + 0x88]
add rcx, r8
je 0x1800a3135
mov edx, eax
cmp rcx, r8
jbe 0x1800a3135
add rax, r8
cmp rcx, rax
jae 0x1800a3135
mov r14d, dword [rcx + 0x1c]
lea rsi, [rdx + r8]
mov r11d, dword [rcx + 0x20]
add r14, r8
mov ebx, dword [rcx + 0x24]
add r11, r8
add rbx, r8
cmp r14, r8
jbe 0x1800a3135
cmp r14, rsi
jae 0x1800a3135
cmp r11, r8
jbe 0x1800a3135
cmp r11, rsi
jae 0x1800a3135
cmp rbx, r8
jbe 0x1800a3135
cmp rbx, rsi
jae 0x1800a3135
mov ebp, dword [rcx + 0x14]
xor edi, edi
test ebp, ebp
je 0x1800a3135
nop dword [rax + rax]
movzx eax, word [rbx]
mov r10d, dword [r14 + rax*4]
mov eax, dword [r11]
add r10, r8
add rax, r8
cmp rax, r8
jbe 0x1800a3127
cmp rax, rsi
jae 0x1800a3127
cmp r10, r8
jbe 0x1800a3127
cmp r10, rsi
jae 0x1800a3127
mov r9, r15
sub r9, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x1800a3123
inc rax
test ecx, ecx
jne 0x1800a3110
test edx, edx
je 0x1800a3150
inc edi
add rbx, 2
add r11, 4
cmp edi, ebp
jb 0x1800a30e0
xor eax, eax
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
mov rax, r10
jmp 0x1800a3137
Function at 0x1800a3a50
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov rbx, rcx
mov dword [rsp + 0x20], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800a3ae5
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1800a3adb
lea rax, [rsp + 0x20]
mov qword [rsp + 0x278], rax
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1800a3b13
mov rax, qword [rcx]
lea rdx, [rsp + 0x278]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rdi
test al, al
je 0x1800a3ade
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800a3aa1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1800a3b02
cmp rcx, rbx
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], 0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
call fcn.1800bbbf0
nop
int3
Function at 0x1800a4ee0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov r15, r8
mov r14, rdx
mov rdi, rcx
xor r12d, r12d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x45], xmm0
movups xmmword [rbp - 0x35], xmm0
movups xmmword [rbp - 0x25], xmm0
movups xmmword [rbp - 0x15], xmm0
movups xmmword [rbp - 5], xmm0
movups xmmword [rbp + 0xb], xmm0
mov dword [rbp + 0x1b], eax
mov dword [rbp - 0x49], 0x68
movups xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1801600c0]
movdqu xmmword [rbp - 0x79], xmm1
mov word [rsp + 0x50], r12w
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.180009a10
mov rbx, qword [r14]
mov rsi, qword [r14 + 8]
cmp rbx, rsi
je 0x1800a5021
movabs r13, 0x7ffffffffffffffe
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
mov rax, r13
sub rax, rcx
cmp rax, 1
jb 0x1800a512b
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1800a4fa1
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 1
lea r9, [0x18015ab68]
lea rcx, [rbp - 0x69]
call fcn.180009cd0
nop
lea rdx, [rbp - 0x69]
lea rcx, [rsp + 0x50]
call fcn.180009a10
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 8
jb 0x1800a5014
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a500f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a513d
call fcn.1800bdc0c
add rbx, 0x20
cmp rbx, rsi
jne 0x1800a4f80
lea rdx, [rsp + 0x50]
cmp qword [rbp - 0x71], 8
cmovae rdx, qword [rsp + 0x50]
mov qword [rsp + 0x48], r15
lea rax, [rbp - 0x49]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
mov rdx, qword [rbp - 0x71]
cmp rdx, 8
jb 0x1800a50a7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a50a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a5137
call fcn.1800bdc0c
movdqa xmm0, xmmword [0x1801600c0]
movdqu xmmword [rbp - 0x79], xmm0
mov word [rsp + 0x50], r12w
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1800a50f5
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1800a50f0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800a5131
mov rcx, r8
call fcn.1800bdc0c
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
mov rcx, r14
call fcn.180013b10
movzx eax, bl
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180003190
nop
call fcn.1800c9ad0
nop
call fcn.1800c9ad0
nop
call fcn.1800c9ad0
int3
Function at 0x1800a6130
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov dword [rsp + 0x68], 4
cmp qword [rdx + 0x18], 8
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x58], ebp
jb 0x1800a615a
mov rdx, qword [rdx]
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x1800a6186
mov ecx, dword [rsp + 0x58]
mov dword [rdi], ecx
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1800a61c1
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1800a61bc
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800a61df
mov rcx, r8
call fcn.1800bdc0c
mov qword [rbx + 0x10], rbp
mov eax, esi
mov qword [rbx + 0x18], 7
mov word [rbx], bp
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
call fcn.1800c9ad0
int3

Function at 0x1800a61f0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 8
mov rbx, rdx
jb 0x1800a620c
mov rdx, qword [rdx]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rbx + 0x18]
mov edi, eax
cmp rdx, 8
jb 0x1800a626a
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1800a6265
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800a6288
mov rcx, r8
call fcn.1800bdc0c
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
mov word [rbx], ax
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call fcn.1800c9ad0
int3
Function at 0x1800a7d30
Capabilities:
Encode data using xor

Disassembly:
sub byte [rbp + 0x33], al
sal byte [rbx], 0xd2
mov dword [rsp + 0x20], 6
mov ecx, 0xc0000374
call qword [0x180366cb8]
mov r14, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x60]
add rsp, 0x48
ret
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0xd8
call fcn.1803771f8
push rax
cmp dword [rax + rdx*8], eax
jne 0x1800a5db8
out 0, eax
mov bl, 0xbd
xor eax, 0x768f92d7
xchg dword [rbx + rsi*8 + 0x3876f5], esp
and dword [rbp + 0x28], 0x57
cli
invalid
mov qword [rsp + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x40
mov ecx, 2
call 0x1800a5df0
cmp byte [0x18015f7ef], 0
mov rax, qword [str.fCT_IH_q]
mov qword [rbp + 0x10], rax
je 0x1800a7ead
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1800a7e78
movdqa xmm2, xmmword [0x1801600f0]
mov eax, 4
movdqa xmm4, xmmword [0x1801602e0]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x180160100]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movaps xmmword [rsp + 0x30], xmm6
movd xmm6, eax
mov eax, 0x1f
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movd xmm5, eax
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180160120]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rbp + 0x10]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x180160210]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x180160240]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rbp + 0x10], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movaps xmm6, xmmword [rsp + 0x30]
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180160120]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rbp + 0x14]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180160210]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x180160240]
xorps xmm2, xmm0
movd dword [rbp + 0x14], xmm2
jmp 0x1800a7ead
lea r8, [rbp + 0x10]
nop dword [rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x32
movzx eax, cl
inc ecx
sub al, dl
add al, 0x35
xor byte [r8 - 1], al
cmp ecx, 8
jl 0x1800a7e80
movzx eax, word [0x18015f7e0]
lea r8, [rbp + 0x10]
movsd xmm0, qword [str.gSDLXHOUSY_]
lea rdx, [rbp - 0x20]
movsd qword [rbp - 0x20], xmm0
xor r9d, r9d
xor byte [rbp - 0x1f], 0x36
xor ecx, ecx
xor byte [rbp - 0x1e], 0x37
xor byte [rbp - 0x1d], 0x38
xor byte [rbp - 0x1c], 0x39
xor byte [rbp - 0x1b], 0x3a
xor byte [rbp - 0x1a], 0x3b
xor byte [rbp - 0x19], 0x3c
mov word [rbp - 0x18], ax
movzx eax, byte [0x18015f7e2]
xor byte [rbp - 0x18], 0x3d
xor al, 0x3f
xor byte [rbp - 0x17], 0x3e
mov byte [rbp - 0x16], al
mov byte [rbp - 0x20], 0x52
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 3
add rsp, 0x40
pop rbp
jmp 0x1800a5df0
Function at 0x1800a9820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x1800a982e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800a9844
test al, 0x10
je 0x1800a9844
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x1800a9930
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x130
mov dword [rsp + 0x80], 0
lea rdx, [0x18015ac14]
lea rcx, [rsp + 0xd0]
call fcn.180007640
nop
lea r8, [rsp + 0xd0]
mov rdx, qword [rsp + 0x140]
lea rcx, [rsp + 0x68]
call fcn.1800a9670
nop
lea rcx, [rsp + 0xd0]
call fcn.1800074f0
lea rcx, [rsp + 0x68]
call fcn.180007180
movzx eax, al
test eax, eax
je 0x1800a99c2
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x68]
call fcn.180013a40
nop
mov rcx, qword [rsp + 0x148]
call fcn.1800071e0
movzx eax, byte [rsp + 0x40]
jmp 0x1800a9c20
lea rcx, [rsp + 0x68]
call fcn.1800aa4a0
lea rcx, [rsp + 0xb0]
call fcn.1800077b0
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1800071a0
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x60]
call fcn.180007190
mov qword [rsp + 0x88], rax
jmp 0x1800a9a15
mov rax, qword [rsp + 0x50]
add rax, 0x20
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x50], rax
je 0x1800a9abd
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x90], rax
lea r8, [0x18015ac10]
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0xf0]
call fcn.180008660
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0xb0]
call fcn.180009a10
nop
lea rcx, [rsp + 0xf0]
call fcn.1800074f0
lea rcx, [rsp + 0xb0]
call fcn.1800a9820
movzx eax, al
test eax, eax
jne 0x1800a9ab8
lea rcx, [rsp + 0xb0]
call fcn.1800074a0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x1800a9a07
call fcn.1803771f8
push rax
invalid
add rsp, 0x130
pop rdi
ret
Function at 0x1800affe0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x180362c40], 0
jne 0x1800afff5
xor edx, edx
mov ecx, 0x10001
jmp fcn.1800b03f0
jmp 0x1800b10e0
push rbx
sub rsp, 0xa0
mov rax, qword [0x180175398]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1800b117a
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1800b1145
mov rbx, qword [0x180363030]
test rbx, rbx
je 0x1800b115b
mov rcx, rbx
call fcn.1800af7f0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800b1133
jmp 0x1800b115b
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1800b1120
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1800b1277
lea rdx, str.GLFW
mov qword [rsp + 0xc0], rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x1800b126f
movdqa xmm0, xmmword [0x180113300]
xor ebx, ebx
movdqa xmm1, xmmword [0x180113310]
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
lea r15, [0x180363f98]
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
nop word [rax + rax]
movsxd rbp, dword [rsp + rbx*8 + 0x64]
mov ecx, dword [rsp + rbx*8 + 0x60]
movsx r14d, word [r15 + rbp*2]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x1800b123e
cmp byte [rbp + rdi + 0x80], 1
jne 0x1800b123e
call fcn.1800b2600
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1800b3da0
inc rbx
cmp rbx, 4
jl 0x1800b1200
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [0x180364938]
test rbx, rbx
je 0x1800b12f9
mov rcx, qword [rbx + 0x348]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
cmp dword [rbx + 0x378], eax
jne 0x1800b12bd
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x37c], eax
je 0x1800b12f9
mov eax, r8d
mov dword [rsp + 0x60], ecx
cdq
mov dword [rbx + 0x378], ecx
mov rcx, qword [rbx + 0x348]
sub eax, edx
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x37c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800be620
add rsp, 0xa0
pop rbx
ret
Function at 0x1800b0000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x180362c40], 0
mov r10d, r9d
mov r11d, r8d
jne 0x1800b001b
xor edx, edx
mov ecx, 0x10001
jmp fcn.1800b03f0
mov r8d, dword [rsp + 0x28]
mov r9d, dword [rsp + 0x30]
test r8d, r8d
jle 0x1800b0070
test r9d, r9d
jle 0x1800b0070
mov eax, dword [rsp + 0x38]
cmp eax, 0xfffffffe
jg 0x1800b004c
mov r8d, eax
lea rdx, str.Invalid_refresh_rate__i
mov ecx, 0x10004
jmp fcn.1800b03f0
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x28], r8d
mov dword [rcx + 0x28], r8d
mov r8d, r11d
mov dword [rcx + 0x2c], r9d
mov r9d, r10d
mov dword [rcx + 0x3c], eax
jmp fcn.1800b1600
lea rdx, str.Invalid_window_size__ix_i
mov ecx, 0x10004
jmp fcn.1800b03f0
Function at 0x1800b10e0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x180362c40], 0
jne 0x1800afff5
xor edx, edx
mov ecx, 0x10001
jmp fcn.1800b03f0
jmp 0x1800b10e0
push rbx
sub rsp, 0xa0
mov rax, qword [0x180175398]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1800b117a
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x1800b1145
mov rbx, qword [0x180363030]
test rbx, rbx
je 0x1800b115b
mov rcx, rbx
call fcn.1800af7f0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800b1133
jmp 0x1800b115b
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1800b1120
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x1800b1277
lea rdx, str.GLFW
mov qword [rsp + 0xc0], rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x1800b126f
movdqa xmm0, xmmword [0x180113300]
xor ebx, ebx
movdqa xmm1, xmmword [0x180113310]
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
lea r15, [0x180363f98]
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
nop word [rax + rax]
movsxd rbp, dword [rsp + rbx*8 + 0x64]
mov ecx, dword [rsp + rbx*8 + 0x60]
movsx r14d, word [r15 + rbp*2]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x1800b123e
cmp byte [rbp + rdi + 0x80], 1
jne 0x1800b123e
call fcn.1800b2600
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.1800b3da0
inc rbx
cmp rbx, 4
jl 0x1800b1200
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [0x180364938]
test rbx, rbx
je 0x1800b12f9
mov rcx, qword [rbx + 0x348]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
cmp dword [rbx + 0x378], eax
jne 0x1800b12bd
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x37c], eax
je 0x1800b12f9
mov eax, r8d
mov dword [rsp + 0x60], ecx
cdq
mov dword [rbx + 0x378], ecx
mov rcx, qword [rbx + 0x348]
sub eax, edx
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x37c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800be620
add rsp, 0xa0
pop rbx
ret
Function at 0x1800b2600
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, send
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, send
and ax, si
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
and ax, si
mov ecx, 0x5c
mov esi, edi
or esi, 4
test ax, ax
cmove esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, socket
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
and al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
and al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x1800b53a0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x1800b53d0
lea rdx, [0x180113550]
mov ecx, 0x10008
call fcn.1800b5640
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret