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

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x18000c0fb
mov qword [r8], 0
call fcn.18000c200
mov rbx, rax
test rax, rax
jne 0x18000c111
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x18000c1db
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18000c1db
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18000c1db
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18000c1db
cmp rdi, 0xffffffffffffffff
je 0x18000c1db
lea rcx, [rdi + rbp]
call fcn.18000eef0
mov rsi, rax
test rax, rax
je 0x18000c1db
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
je 0x18000c1b3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rsi
call fcn.18000efa0
jmp 0x18000c1e4
test ebp, ebp
jle 0x18000c1c5
lea rcx, [rdi + rsi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18000c1d6
mov qword [r14], rdi
mov rax, rsi
jmp 0x18000c1e6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret

Function at 0x18000c6d0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18000c72d
lea rbx, [0x180076720]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x18000c714
cmp r10, 2
jb 0x18000c714
cmp byte [r9], r8b
jne 0x18000c714
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x18000c6f0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18000c76f
lea rbx, [0x180076720]
cmp r8b, 0x23
jne 0x18000c753
cmp byte [r9], r8b
jne 0x18000c753
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x18000c740
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x18000cb00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push r13
sub rsp, 0x18
mov qword [rsp + 0x30], rbx
lea r9, [0x180000000]
mov qword [rsp + 0x38], rbp
mov rsi, rdx
mov qword [rsp + 0x40], rdi
xor r13d, r13d
mov qword [rsp + 0x10], r12
mov qword [rsp + 8], r14
mov qword [rsp], r15
test rsi, rsi
je 0x18000cb40
cmp rcx, rsi
jae 0x18000ccc2
movzx r8d, byte [rcx]
test r8b, r8b
je 0x18000ccc2
xor edi, edi
mov eax, r8d
shr rax, 3
mov rdx, rsi
movsx r9, byte [rax + r9 + 0x773c0]
test r9d, r9d
sete dil
add edi, r9d
test rsi, rsi
jne 0x18000cb77
movsxd rdx, edi
add rdx, rcx
xor ebp, ebp
lea rax, [rcx + 1]
cmp rcx, rdx
cmovb ebp, r8d
cmp rax, rdx
jae 0x18000cb8f
movzx r12d, byte [rax]
jmp 0x18000cb92
xor r12b, r12b
lea rax, [rcx + 2]
cmp rax, rdx
jae 0x18000cba1
movzx r15d, byte [rax]
jmp 0x18000cba4
xor r15b, r15b
lea rax, [rcx + 3]
cmp rax, rdx
jae 0x18000cbb3
movzx r14d, byte [rax]
jmp 0x18000cbb6
xor r14b, r14b
lea rbx, [r9*4]
movzx eax, bpl
lea r8, [0x180000000]
movzx r9d, r15b
mov edx, dword [rbx + r8 + 0x773e0]
and edx, eax
movzx r10d, r12b
shl edx, 6
mov eax, r10d
and eax, 0x3f
movzx r11d, r14b
or edx, eax
and r10d, 0xc0
shl edx, 6
mov eax, r9d
and eax, 0x3f
and r9d, 0xc0
or edx, eax
mov eax, r11d
and eax, 0x3f
shr r11d, 2
or r11d, r9d
shl edx, 6
or edx, eax
shr r11d, 2
mov eax, dword [rbx + r8 + 0x77410]
lea r9, [0x180000000]
shrx r8d, edx, eax
or r11d, r10d
shr r11d, 2
cmp r8d, dword [rbx + r9 + 0x773f8]
sbb eax, eax
xor edx, edx
and eax, 0x40
or r11d, eax
mov eax, r8d
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
xor eax, eax
or r11d, edx
mov edx, 0x100
cmp r8d, 0xffff
cmova eax, edx
or r11d, eax
mov eax, dword [rbx + r9 + 0x77428]
xor r11d, 0x2a
sarx edx, r11d, eax
test edx, edx
je 0x18000ccb4
xor edx, edx
test r14b, r14b
setne dl
xor eax, eax
test r15b, r15b
setne al
add edx, eax
xor eax, eax
test r12b, r12b
setne al
add edx, eax
xor eax, eax
test bpl, bpl
setne al
add edx, eax
cmp edi, edx
cmovl edx, edi
mov edi, edx
movsxd rax, edi
add rcx, rax
inc r13d
jmp 0x18000cb32
mov r15, qword [rsp]
mov eax, r13d
mov r14, qword [rsp + 8]
mov r12, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x18
pop r13
pop rsi
ret
Function at 0x18000cd40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x20], rsi
xor edx, edx
mov rsi, r9
lea rax, [rcx + rax*2]
mov qword [rsp], rax
cmp rcx, rax
jae 0x18000cf53
mov qword [r11 - 0x18], r13
lea r13, [0x180000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
nop
test rsi, rsi
je 0x18000cd9e
cmp r8, rsi
jae 0x18000cf30
movzx edx, byte [r8]
test dl, dl
je 0x18000cf2e
xor ebx, ebx
mov eax, edx
shr rax, 3
mov rcx, rsi
movsx r9, byte [rax + r13 + 0x773c0]
test r9d, r9d
sete bl
add ebx, r9d
test rsi, rsi
jne 0x18000cdd2
movsxd rcx, ebx
add rcx, r8
xor ebp, ebp
lea rax, [r8 + 1]
cmp r8, rcx
cmovb ebp, edx
cmp rax, rcx
jae 0x18000cde9
movzx r12d, byte [rax]
jmp 0x18000cdec
xor r12b, r12b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x18000cdfb
movzx r15d, byte [rax]
jmp 0x18000cdfe
xor r15b, r15b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x18000ce0d
movzx r14d, byte [rax]
jmp 0x18000ce10
xor r14b, r14b
lea r11, [r9*4]
movzx eax, bpl
mov ecx, dword [r11 + r13 + 0x773e0]
and ecx, eax
movzx r9d, r12b
shl ecx, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r15b
or ecx, eax
movzx r10d, r14b
shl ecx, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or ecx, eax
mov eax, r10d
and eax, 0x3f
shr r10d, 2
or r10d, edx
shl ecx, 6
or ecx, eax
shr r10d, 2
mov eax, dword [r11 + r13 + 0x77410]
or r10d, r9d
shrx r13d, ecx, eax
shr r10d, 2
lea r9, [0x180000000]
cmp r13d, dword [r11 + r9 + 0x773f8]
sbb eax, eax
xor edx, edx
and eax, 0x40
mov ecx, edx
or r10d, eax
mov eax, r13d
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove ecx, eax
mov eax, edx
or r10d, ecx
mov ecx, 0x100
cmp r13d, 0xffff
cmova eax, ecx
or r10d, eax
mov eax, dword [r11 + r9 + 0x77428]
xor r10d, 0x2a
sarx ecx, r10d, eax
test ecx, ecx
je 0x18000cf0d
test r14b, r14b
mov eax, edx
mov ecx, edx
mov r13d, 0xfffd
setne cl
test r15b, r15b
setne al
add ecx, eax
mov eax, edx
test r12b, r12b
setne al
add ecx, eax
mov eax, edx
test bpl, bpl
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
mov ebx, ecx
mov word [rdi], r13w
add rdi, 2
movsxd rax, ebx
lea r13, [0x180000000]
add r8, rax
cmp rdi, qword [rsp]
jb 0x18000cd90
jmp 0x18000cf30
xor edx, edx
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov word [rdi], dx
test rax, rax
je 0x18000cf68
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x18000ede0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5f90], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x18000ee63
xor edx, edx
add rcx, 0x5f98
call fcn.18001e040
mov r8, rsi
lea rcx, [rbx + 0x5f98]
mov rdx, rbp
call fcn.18001d750
mov eax, dword [rbx + 0x5f98]
xor edx, edx
mov r9, qword [rbx + 0x5f90]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x5fa0]
cmove ecx, edx
test rax, rax
movsxd r8, ecx
mov edx, 1
lea rcx, [0x1800ad608]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x18000ee6f
add rcx, 0x5f98
call fcn.18001d750
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800179d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1800ad600]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5eec], ecx
test rbx, rbx
je 0x180017a3f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.180017a50
lea rdx, [0x180078204]
mov rcx, rbx
mov rdi, rax
call fcn.18000c200
mov rbx, rax
test rax, rax
je 0x180017a3a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x180030620
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x20
call fcn.18000b2d0
test rax, rax
je 0x18003063e
call fcn.18000b690
mov rbx, qword [rax + 0x88]
jmp 0x180030640
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x18003066b
mov dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
ret

Function at 0x180031ef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800ad600]
mov rcx, qword [rax + 0x4da8]
mov r10, qword [rax + 0x4008]
movsxd rax, dword [rcx + 0x74]
vmovss xmm4, dword [rcx + 0x170]
vmovss xmm3, dword [rcx + 0x174]
vmovss xmm2, dword [rcx + 0x178]
vmovss xmm1, dword [rcx + 0x17c]
vmovups xmm0, xmmword [rcx + 0x170]
vmovss dword [rsp + 0x20], xmm4
vmovss dword [rsp + 0x24], xmm3
vmovss dword [rsp + 0x28], xmm2
vmovss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2a8]
add r9, qword [rcx + 0x18]
vmovups xmmword [r10 + 0x248], xmm0
vmovss dword [rax + 0x88], xmm4
vmovss dword [rax + 0x8c], xmm3
vmovss dword [rax + 0x90], xmm2
vmovss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2a8]
vmovups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
vmovups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2a8]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.1800263f0

Function at 0x180031fc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800ad600]
mov rcx, qword [rax + 0x4da8]
mov r9, qword [rax + 0x4008]
vmovups xmm0, xmmword [r9 + 0x248]
vmovups xmmword [rcx + 0x170], xmm0
vmovss xmm4, dword [rcx + 0x150]
vmovss xmm3, dword [rcx + 0x154]
vmovss xmm2, dword [rcx + 0x158]
vmovss xmm1, dword [rcx + 0x15c]
vmovups xmm0, xmmword [rcx + 0x150]
mov rax, qword [r9 + 0x2a8]
vmovups xmmword [r9 + 0x248], xmm0
vmovss dword [rsp + 0x20], xmm4
vmovss dword [rsp + 0x24], xmm3
vmovss dword [rsp + 0x28], xmm2
vmovss dword [rsp + 0x2c], xmm1
vmovss dword [rax + 0x88], xmm4
vmovss dword [rax + 0x8c], xmm3
vmovss dword [rax + 0x90], xmm2
vmovss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a8]
vmovups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
vmovups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x232]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2a8]
add rsp, 0x38
jmp fcn.1800263f0
Function at 0x1800480f0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x180048130
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800ae750]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18004816e
cmp rsi, r14
jb 0x180048166
cmp rsi, r15
jae 0x180048166
cmp qword [rsi + 8], 0
jne 0x180048337
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180048151
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180048202
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800481f9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800481f9
cmp dword [rsp + 0x70], 0x10000
je 0x18004827b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800481f9
sub rbx, rbp
cmp rbx, r14
jae 0x1800481c0
test rsi, rsi
jne 0x1800482e0
cmp rdi, r15
ja 0x18004831f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18004831f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004831f
cmp dword [rsp + 0x70], 0x10000
je 0x1800482b1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180048232
jmp 0x18004831f
test rbx, rbx
je 0x1800481f9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800482e0
cmp rbx, r14
jae 0x1800481a0
jmp 0x180048202
test rdi, rdi
je 0x18004831f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800482e0
cmp rdi, r15
jbe 0x180048210
jmp 0x18004831f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800482f0
mov rax, qword [0x1800ae750]
mov qword [rsi], rax
mov qword [0x1800ae750], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x180048bb0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x1800ae74c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x180048bf7
mov rax, qword [0x1800ae740]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180048c04
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x180048be0
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x180048bf7
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180048f30
mov edi, eax
test eax, eax
jne 0x180048cef
mov r9d, dword [0x1800ae74c]
cmp ebx, r9d
jae 0x180048c7c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1800ae740]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x180048c75
mov edx, esi
mov ecx, ebx
call fcn.180048e20
mov edi, eax
test eax, eax
jne 0x180048c7c
mov r9d, dword [0x1800ae74c]
inc ebx
cmp ebx, r9d
jb 0x180048c40
cmp qword [rsp + 0x20], 0
je 0x180048ced
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180048cd9
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180048cca
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180048ca0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800ad658]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x180048e20
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1800ae740]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180048e84
mov eax, 0xa
jmp 0x180048f17
test esi, esi
je 0x180048ea6
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180048ec9
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180048ec9
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180048ec2
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180048ec9
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180048f30
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1800ad3c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov r14d, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
xor edx, edx
mov ecx, 4
mov ebp, r8d
mov edi, r15d
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800490da
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180049075
mov edi, 1
cmp dword [rsp + 0x20], 0x10
jb 0x180049030
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180049030
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180049030
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180048ff2
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x1800ad658]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180049058
jmp 0x180049023
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180049023
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rbx + 8], eax
mov rcx, qword [0x1800ad658]
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180049058
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180048fa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180049075
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x180049075
mov rcx, qword [0x1800ad658]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1800490da
cmp qword [rbx], r15
je 0x1800490d5
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x1800490d5
mov r8, qword [rbx]
xor edx, edx
mov eax, edi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800490ce
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.1800496c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180049090
mov eax, r15d
jmp 0x1800490df
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800712a0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180049870
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1800498e1
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1800498ca
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov ecx, 0x5a
mov r8d, dword [r8 + rbx*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800498be
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180049890
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1800ad658]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180052280
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov ecx, 0xe
call fcn.180052300
lea rcx, str.Starting_main_loop.._n
call fcn.180071080
cmp byte [0x1800ad729], 0
je 0x1800522f9
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x1800522c1
mov ecx, 0x24
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1800522cf
cmp byte [0x1800ad72a], 0
sete byte [0x1800ad72a]
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1800522e5
mov byte [0x1800ad729], 0
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x1800ad729], 0
jne 0x1800522a3
call fcn.18004d730
int3

Function at 0x180052730
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x1800527da
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x1800ad348], 0
je 0x180052763
lea rcx, str.d3d12.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1800527b4
cmp dword [0x1800ad344], 0
je 0x18005277e
lea rcx, str.d3d11.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1800527b4
cmp dword [0x1800ad340], 0
je 0x180052799
lea rcx, str.d3d10.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1800527b4
cmp dword [0x1800ad33c], 0
je 0x1800527da
lea rcx, str.d3d9.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1800527da
xor eax, eax
mov qword [0x1800ad738], rbx
mov qword [rsp + 0x28], rax
lea r8, [0x18004ca50]
xor r9d, r9d
mov dword [rsp + 0x20], eax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x1800723e0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18007241a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18007241f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180072468
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800a1a20]
cmp byte [rcx + rax], 0
je 0x180072468
dec r8
sub rdx, 1
jne 0x18007244e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret