joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006040
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400ce010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000606d
xor eax, eax
jmp 0x1400061c2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140006098
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140006098
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x1400061c2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400061b5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400060db
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140006106
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400061ba
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140006175
sub eax, 1
je 0x140006175
cmp eax, 2
jne 0x1400061b5
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400061ba
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400061a3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400061b5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x1400061ba
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140095000
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140006600
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400ce010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400066d3
cmp byte [rcx + 0x71], 0
je 0x1400066d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400066cf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140006694
sub eax, 1
je 0x140006698
cmp eax, 2
jne 0x1400066cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140095000
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400066c6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400066cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000667c
xor al, al
jmp 0x14000667c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140095000
add rsp, 0x60
pop rbx
ret
Function at 0x140010210
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 0x14001026d
lea rbx, [0x1400aabf0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140010254
cmp r10, 2
jb 0x140010254
cmp byte [r9], r8b
jne 0x140010254
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 0x140010230
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400102af
lea rbx, [0x1400aabf0]
cmp r8b, 0x23
jne 0x140010293
cmp byte [r9], r8b
jne 0x140010293
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 0x140010280
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400103f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14001040a
mov qword [r8], 0
lea rdx, [0x1400aa9f0]
call fcn.1400102c0
mov rbx, rax
test rax, rax
jne 0x14001042a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140010515
xor edx, edx
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 0x140010515
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140010515
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 0x140010515
cmp rdi, 0xffffffffffffffff
je 0x140010515
mov rax, qword [0x1400dd780]
test rax, rax
je 0x1400104a6
inc dword [rax + 0x3b4]
mov rdx, qword [0x1400dd770]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x140010515
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]
mov rcx, rbx
cmp rax, rdi
je 0x140010502
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400dd780]
test rax, rax
je 0x1400104f1
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400dd770]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x14001051e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140010510
mov qword [r14], rdi
mov rax, rsi
jmp 0x140010520
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400129e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x1400dd780]
test rax, rax
je 0x140012a06
inc dword [rax + 0x3b4]
mov rdx, qword [0x1400dd770]
mov ecx, 0x3f70
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rbp + 0x40], rax
lea rcx, [rbp + 0x38]
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], rax
xor r14d, r14d
test rax, rax
je 0x140012a3e
xor edx, edx
mov rcx, rax
call fcn.14000ea40
mov rbx, rax
jmp 0x140012a41
mov rbx, r14
mov rax, qword [0x1400dd780]
test rax, rax
cmove rax, rbx
mov qword [0x1400dd780], rax
mov dword [rbp - 0x4c], r14d
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x18], r14
lea rax, str.Window
mov qword [rbp - 0x58], rax
mov esi, 0xffffffff
mov edx, esi
lea r8, [0x1400aa915]
mov r9b, 0x57
lea r15, [0x1400aabf0]
cmp r9b, 0x23
jne 0x140012a97
cmp byte [r8], r9b
jne 0x140012a97
cmp byte [r8 + 1], r9b
cmove edx, esi
movzx ecx, dl
movzx eax, r9b
xor rcx, rax
shr edx, 8
xor edx, dword [r15 + rcx*4]
movzx r9d, byte [r8]
inc r8
test r9b, r9b
jne 0x140012a85
not edx
mov dword [rbp - 0x50], edx
lea rax, [0x140021c00]
mov qword [rbp - 0x48], rax
lea rax, [0x140021c90]
mov qword [rbp - 0x38], rax
lea rax, [0x140021d60]
mov qword [rbp - 0x30], rax
lea rax, [0x140021e40]
mov qword [rbp - 0x28], rax
lea rax, [0x140021f20]
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x58]
lea rcx, [rbx + 0x30e8]
call fcn.140022440
mov dword [rbp - 0x4c], r14d
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x18], r14
lea rax, str.Table
mov qword [rbp - 0x58], rax
mov eax, esi
lea r8, [0x1400afe9d]
mov r9b, 0x54
cmp r9b, 0x23
jne 0x140012b35
cmp byte [r8], r9b
jne 0x140012b35
cmp byte [r8 + 1], r9b
cmove eax, esi
movzx edx, al
movzx ecx, r9b
xor rdx, rcx
shr eax, 8
xor eax, dword [r15 + rdx*4]
movzx r9d, byte [r8]
inc r8
test r9b, r9b
jne 0x140012b23
not eax
mov dword [rbp - 0x50], eax
lea rax, [0x1400359c0]
mov qword [rbp - 0x48], rax
lea rax, [0x140035a90]
mov qword [rbp - 0x38], rax
lea rax, [0x140035b90]
mov qword [rbp - 0x30], rax
lea rax, [0x140035a50]
mov qword [rbp - 0x28], rax
lea rax, [0x140035e10]
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x58]
lea rcx, [rbx + 0x30e8]
call fcn.140022440
mov byte [rbx], 1
mov rax, rbx
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14001b800
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rax, qword [0x1400dd780]
mov r8d, ecx
mov rbx, qword [rax + 0x1ae0]
add rbx, 0xc8
movzx eax, r8b
lea r8, [0x1400aabf0]
movsxd rdx, dword [rbx]
mov r9, qword [rbx + 8]
mov edi, dword [r9 + rdx*4 - 4]
not edi
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x31]
xor edi, dword [r8 + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x32]
xor edi, dword [r8 + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x33]
xor edi, dword [r8 + rcx*4]
movzx ecx, dil
shr edi, 8
xor rcx, rax
xor edi, dword [r8 + rcx*4]
mov r8d, dword [rbx + 4]
not edi
cmp edx, r8d
jne 0x14001b8c0
lea ecx, [rdx + 1]
test r8d, r8d
je 0x14001b8a6
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x14001b8ab
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.140023280
mov edx, dword [rbx]
mov r9, qword [rbx + 8]
movsxd rax, edx
mov dword [r9 + rax*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001c680
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400ce010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400dd780]
mov edi, edx
cmp byte [rbx + 0x1ff5], 0
jne 0x14001c6e0
cmp byte [rbx + 0x1ff6], 0
jne 0x14001c6e0
mov r9d, dword [rbx + 0x3098]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140010100
test dil, 1
je 0x14001c801
jmp 0x14001c768
movss xmm1, dword [rbx + 0x1614]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x3098]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1400b4d9c]
mulss xmm1, dword [0x1400b4d88]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1ba0], rax
mov dword [rbx + 0x1b8c], 1
movss dword [rbx + 0x1b98], xmm0
movss dword [rbx + 0x1b9c], xmm1
movss xmm0, dword [rbx + 0x1670]
mulss xmm0, dword [0x1400b4cc4]
or dword [rbx + 0x1b88], 0x41
movss dword [rbx + 0x1be8], xmm0
call fcn.140010100
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14001c7b8
lea r11, [0x1400aabf0]
cmp r9b, 0x23
jne 0x14001c79b
cmp byte [r8], r9b
jne 0x14001c79b
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14001c788
not ecx
call fcn.140016490
test rax, rax
je 0x14001c801
cmp byte [rax + 0x86], 0
je 0x14001c801
mov byte [rax + 0x8d], 1
lea r8, str.Tooltip__02d
mov dword [rax + 0xa4], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x3098]
mov edx, 0x10
mov r9d, dword [rbx + 0x3098]
call fcn.140010100
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140018bc0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140095000
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140021310
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x1400dd780]
cmp byte [rbx + 0x3128], 0
je 0x1400213fc
cmp qword [rbx + 0x3130], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x3138]
je 0x1400213e4
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x14002138b
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140022fd0
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.140010c60
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3130]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x3140]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400dd778]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.140010c60
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x14004daa0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x58]
mov edi, ecx
mov ecx, 8
mov rdx, qword [rax]
mov eax, dword [rcx + rdx]
cmp dword [0x1400e3214], eax
jle 0x14004db69
lea rcx, [0x1400e3214]
call fcn.1400955a8
cmp dword [0x1400e3214], 0xffffffff
jne 0x14004db69
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x14004db03
imul rax, rax, 0x64
jmp 0x14004db21
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
xor edx, edx
mov qword [0x1400e28b0], rax
mov r8d, 0x950
lea rcx, [0x1400e28c0]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1400e28b8]
mov edx, 0x12b
xor r8d, r8d
nop dword [rax + rax]
mov qword [rax], r8
lea rax, [rax + 8]
sub rdx, 1
jne 0x14004db50
lea rcx, [0x1400e3214]
call fcn.140095548
mov edx, 1
mov qword [rsp + 0x30], rsi
mov ecx, edi
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
movsxd rdi, eax
test eax, eax
je 0x14004dc1b
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x14004dba4
imul rax, rax, 0x64
jmp 0x14004dbc2
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
lea rsi, sym.ZeruaS.exe_HqHpN8U:rF.N_o_Z8_Kq3OYFmO7.Ge
mov qword [0x1400ddaa8], rax
sub rax, qword [rsi + rdi*8 + 0xe28b0]
xorps xmm0, xmm0
cmp byte [rdi + rsi + 0xddab0], 0
mov rbx, rdi
cvtsi2ss xmm0, rax
divss xmm0, dword [0x1400b4e08]
movss dword [0x1400e3210], xmm0
je 0x14004dc2d
comiss xmm0, dword [0x1400b4dbc]
jbe 0x14004dc1b
cmp rbx, 0x12c
jae 0x14004dc9a
mov byte [rdi + rsi + 0xddab0], 0
xor al, al
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
je 0x14004dc1b
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rdi, 0x989680
jne 0x14004dc5a
imul rax, rax, 0x64
jmp 0x14004dc78
cqo
idiv rdi
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rdi
add rax, rcx
mov qword [rsi + rbx*8 + 0xe28b0], rax
mov al, 1
mov byte [rbx + rsi + 0xddab0], 1
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.1400957c0
int3
Function at 0x14004e1b0
Capabilities:
Enumerate process modules

Disassembly:
push rdi
mov eax, 0x2060
call fcn.1400a3c00
sub rsp, rax
mov rax, qword [0x1400ce010]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rdi, rcx
xor edx, edx
lea rcx, str.RiotWindowClass
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14004e337
lea rdx, [rdi + 8]
mov qword [rsp + 0x2078], rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rdi + 8]
test r8d, r8d
je 0x14004e35a
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rdi], rax
test rax, rax
je 0x14004e37d
lea rdx, [rdi + 0x24]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x14004e2f1
mov rcx, qword [rdi]
lea r9, [rsp + 0x48]
mov r8d, 0x2000
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x14004e314
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0x18], rax
mov qword [rsp + 0x2080], rsi
lea rsi, [rdi + 0x30]
mov rdi, qword [rdi + 0x30]
mov rbx, qword [rdi + 8]
cmp byte [rbx + 0x19], 0
jne 0x14004e2b5
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx + 0x10]
mov rdx, rsi
mov rcx, rsi
call fcn.1400509b0
mov rcx, rbx
mov edx, 0x20
mov rbx, qword [rbx]
call fcn.14009505c
cmp byte [rbx + 0x19], 0
je 0x14004e290
mov rbx, qword [rsp + 0x2078]
mov qword [rdi + 8], rdi
mov qword [rdi], rdi
mov qword [rdi + 0x10], rdi
mov qword [rsi + 8], 0
mov rsi, qword [rsp + 0x2080]
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.140095000
add rsp, 0x2060
pop rdi
ret
lea rdx, str.Failed_to_identify_if_process_has_32_or_64_bit_architecture
lea rcx, [rsp + 0x20]
call fcn.14004de30
lea rdx, [0x1400c9b60]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Couldnt_retrieve_league_base_address
lea rcx, [rsp + 0x20]
call fcn.14004de30
lea rdx, [0x1400c9b60]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.League_window_not_found
lea rcx, [rsp + 0x20]
call fcn.14004de30
lea rdx, [0x1400c9b60]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Couldnt_retrieve_league_process_id
lea rcx, [rsp + 0x20]
call fcn.14004de30
lea rdx, [0x1400c9b60]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Couldnt_open_league_process
lea rcx, [rsp + 0x20]
call fcn.14004de30
lea rdx, [0x1400c9b60]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400595d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
mov rbx, rcx
mov r10d, edx
mov r9d, edx
and r10d, 7
je 0x14005965d
cmp edx, r10d
jge 0x14005964e
mov r9d, dword [rcx + 0x14]
mov eax, 1
mov ecx, edx
mov r8d, edx
shl eax, cl
cmp r9d, eax
jae 0x140059647
mov r11, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r11
jb 0x140059612
xor cl, cl
jmp 0x14005961b
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
movzx eax, cl
lea edx, [r8 + 8]
mov ecx, r8d
mov dword [rbx + 0x10], edx
shl eax, cl
or r9d, eax
mov dword [rbx + 0x14], r9d
cmp edx, 0x18
jg 0x14005964e
mov ecx, edx
mov eax, 1
shl eax, cl
mov r8d, edx
cmp r9d, eax
jb 0x140059606
mov rax, qword [rbx + 8]
mov qword [rbx], rax
mov ecx, r10d
shr dword [rbx + 0x14], cl
sub edx, r10d
mov dword [rbx + 0x10], edx
mov r9d, edx
xor r10d, r10d
test edx, edx
jle 0x140059692
mov ecx, dword [rbx + 0x14]
lea r8, [rsp + 0x30]
nop dword [rax]
movzx eax, byte [rbx + 0x14]
lea edx, [r9 - 8]
shr ecx, 8
inc r10d
mov byte [r8], al
lea r8, [r8 + 1]
mov dword [rbx + 0x14], ecx
mov r9d, edx
test edx, edx
jg 0x140059670
mov dword [rbx + 0x10], edx
jns 0x1400596b8
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r10d
cmp rcx, 4
jge 0x1400596e7
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x1400596d1
xor dl, dl
jmp 0x1400596da
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x1400596c8
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x140059694
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x140059751
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x14005976b
mov rcx, rbx
call fcn.140058a70
test eax, eax
je 0x140059744
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1400956b8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14009fd10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [r8]
mov qword [r8], 0
mov qword [rcx], rax
mov byte [rcx + 8], 7
lea rcx, [0x1400d94f0]
mov qword [rbx + 0x10], rcx
mov r8, qword [rdx + 0x10]
mov edx, dword [r8]
mov eax, dword [0x1400d94f4]
cmp rdx, rax
jbe 0x14009fd6f
mov rcx, rbx
call fcn.1400a2f10
mov rcx, qword [rbx + 0x10]
mov r8, qword [rdi + 0x10]
mov qword [rsp + 0x28], rbx
lea rdi, [r8 + 0x10]
mov eax, dword [r8]
cmp dword [rcx + 4], 0x12
ja 0x14009fdfa
lea rsi, [rax*4 + 2]
add rsi, rax
lea rsi, [r8 + rsi*8]
cmp rdi, rsi
je 0x14009fed9
nop dword [rax]
mov rdx, qword [rbx + 0x10]
mov eax, dword [rdx]
lea rcx, [rax*4 + 2]
add rcx, rax
lea rcx, [rdx + rcx*8]
mov rdx, qword [rbx]
mov qword [rsp + 0x88], rdx
movzx eax, dl
and al, 1
je 0x14009fdd6
and rdx, 0xfffffffffffffffc
mov eax, 1
lock xadd qword [rdx + 8], rax
lea r8, [rsp + 0x88]
mov rdx, rdi
call fcn.14009f740
mov rax, qword [rbx + 0x10]
inc dword [rax]
add rdi, 0x28
cmp rdi, rsi
jne 0x14009fda0
jmp 0x14009fed9
lea rbp, [rax*4 + 2]
add rbp, rax
lea rbp, [r8 + rbp*8]
cmp rdi, rbp
je 0x14009fed9
movabs r12, 0x340d631b7bdddcdb
movabs r15, 0x100000001b3
nop word [rax + rax]
mov edx, dword [rdi + 0x20]
mov r9, qword [rbx + 0x10]
mov r8, qword [rdi + 0x18]
mov rax, qword [r9 + 8]
sub rax, r12
test rdx, rdx
je 0x14009fe65
nop word [rax + rax]
movsx rcx, byte [r8]
xor rax, rcx
imul rax, r15
lea r8, [r8 + 1]
sub rdx, 1
jne 0x14009fe50
mov ecx, dword [r9 + 4]
xor edx, edx
div rcx
lea rax, [rcx + rcx*4]
lea rcx, [rdx + rax*2]
lea rsi, [r9 + rcx*4]
mov eax, dword [r9]
lea rcx, [rax*4 + 2]
add rcx, rax
lea rcx, [r9 + rcx*8]
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rdx
movzx eax, dl
and al, 1
je 0x14009feaa
and rdx, 0xfffffffffffffffc
mov eax, 1
lock xadd qword [rdx + 8], rax
lea r8, [rsp + 0x20]
mov rdx, rdi
call fcn.14009f740
mov ecx, dword [rsi + 0x10]
mov dword [rax + 0x24], ecx
mov rax, qword [rbx + 0x10]
mov ecx, dword [rax]
mov dword [rsi + 0x10], ecx
mov rax, qword [rbx + 0x10]
inc dword [rax]
add rdi, 0x28
cmp rdi, rbp
jne 0x14009fe30
test byte [r14], 1
je 0x14009ff08
mov rcx, qword [r14]
and rcx, 0xfffffffffffffffc
mov rax, 0xffffffffffffffff
lock xadd qword [rcx + 8], rax
cmp rax, 1
jne 0x14009ff08
test rcx, rcx
je 0x14009ff08
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, rbx
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret