joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400463ec
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rdx, [0x140059780]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea rax, [0x140046338]
mov rcx, rbx
lea r9, str.get_error
mov qword [rsp + 0x20], rax
lea r8, str.getmime
lea rdx, [0x14005208c]
call qword [sym.luart_static.exe_lua_registermodule]
lea rax, str.__gc
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea r9, [0x14003e5b0]
lea rax, str.accept
lea r8, str.Socket
mov qword [rsp + 0x20], rax
lea rdx, [0x140059f64]
call qword [sym.luart_static.exe_lua_registerobject]
lea rax, str.__gc
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea r9, [0x1400418d8]
lea rax, [0x140051750]
lea r8, str.Http
mov qword [rsp + 0x20], rax
lea rdx, [0x140059768]
call qword [sym.luart_static.exe_lua_registerobject]
lea rax, str.__gc
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea r9, [0x1400451a0]
lea rax, str.get_hostname
lea r8, [0x140052098]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005976c]
call qword [sym.luart_static.exe_lua_registerobject]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x140047048
Capabilities:
Encode data using xor

Disassembly:
mov r9d, ecx
test rdx, rdx
jne 0x140047053
xor eax, eax
ret
not r9d
test r8, r8
je 0x140047094
lea r10, [0x140052420]
movzx ecx, byte [rdx]
mov eax, r9d
xor rax, rcx
shr r9d, 4
and eax, 0xf
shr rcx, 4
inc rdx
xor r9d, dword [r10 + rax*4]
mov eax, r9d
shr r9d, 4
and eax, 0xf
xor rax, rcx
xor r9d, dword [r10 + rax*4]
sub r8, 1
jne 0x140047062
not r9d
mov eax, r9d
ret

Function at 0x1400470c4
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, str.AdvAPI32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
mov qword [0x140059978], rax
lea rdx, str.CryptDecrypt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140059970], rax
lea r9, [0x140052590]
lea rax, [0x14004709c]
mov rcx, rbx
lea r8, str.hash
mov qword [rsp + 0x20], rax
lea rdx, str.crypto
call sym.luart_static.exe_lua_registermodule
lea rax, str.__gc
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea r9, [0x140046af0]
lea rax, str.encrypt
lea r8, str.Cipher
mov qword [rsp + 0x20], rax
lea rdx, [0x140059f60]
call sym.luart_static.exe_lua_registerobject
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [0x140059968]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x140047dcc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140047e16
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140047e16
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140047e16
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140047e16
cmp dword [rcx + 0x84], 0xe
jbe 0x140047e16
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140047e18
xor al, al
add rsp, 0x28
ret
Function at 0x14118483c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x141184846
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14118486f
pop rbp
sub rbp, 0x33
sub rbp, 0x118483c
sub rsp, 0x20
jmp 0x14118488e
mov rax, 0x118483c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x4e23e500
xor byte [rax], dl
inc rax
dec rcx
jne 0x1411848ad
jmp 0x1411848c4
mov rcx, rbp
mov ecx, dword [rcx + 0x3c]
add rcx, 0x108
add rcx, rbp
mov rax, 7
mov rdx, 0x28
mul rdx
add rcx, rax
mov eax, dword [rcx + 0xc]
add rax, rbp
push rax
push rax
movabs rax, 0x2e08a0
movabs rcx, 0xea3f9b
add rcx, rbp
movabs rdx, 0x1855d487
call fcn.141184921
jmp 0x141184937
pop rax
pop rdx
push rdx
push rax
movabs rax, 0x2e08a0
movabs rcx, 0xea3f9b
add rcx, rbp
call fcn.14118495c
jmp 0x141184be9
pop rdi
pop rsi
jmp 0x141184bf4
mov rax, 0x118483c
add rax, rbp
add rax, 0x3ea
mov rcx, 0x2a5
mov rdx, 0x1b162c09
xor byte [rax], dl
inc rax
dec rcx
jne 0x141184c13
jmp 0x141184c2a
pop rdi
xor r15b, 0x56
invalid

Function at 0x141184921
Capabilities:
Encode data using xor

Disassembly:
shr eax, 2
xor dword [rcx], edx
add rcx, 4
dec rax
jne 0x141184924
ret
Function at 0x1411849df
Capabilities:
Decompress data using aplib

Disassembly:
push rsi
push rdi
push rbp
push rdx
mov rdi, rdx
mov rsi, rcx
cld
mov dl, 0x80
mov al, byte [rsi]
add rsi, 1
mov byte [rdi], al
add rdi, 1
mov rbx, 2
add dl, dl
jne 0x141184a14
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411849ec
add dl, dl
jne 0x141184a29
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141184aae
xor rax, rax
add dl, dl
jne 0x141184a41
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141184bad
add dl, dl
jne 0x141184a56
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x141184a68
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x141184a7a
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x141184a8c
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
je 0x141184a9d
mov rbx, rdi
sub rbx, rax
mov al, byte [rbx]
mov byte [rdi], al
inc rdi
mov rbx, 2
jmp 0x141184a05
mov rax, 1
add dl, dl
jne 0x141184ac4
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x141184ad6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141184ab5
sub rax, rbx
mov rbx, 1
jne 0x141184b29
mov rcx, 1
add dl, dl
jne 0x141184b02
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rcx, rcx
add dl, dl
jne 0x141184b14
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141184af3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141184a05
dec rax
shl rax, 8
mov al, byte [rsi]
inc rsi
mov rbp, rax
mov rcx, 1
add dl, dl
jne 0x141184b4e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rcx, rcx
add dl, dl
jne 0x141184b60
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141184b3f
cmp rax, 0x7d00
sbb rcx, 0xffffffffffffffff
cmp rax, 0x500
sbb rcx, 0xffffffffffffffff
cmp rax, 0x80
adc rcx, 0
cmp rax, 0x80
adc rcx, 0
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141184a05
mov al, byte [rsi]
inc rsi
xor rcx, rcx
shr al, 1
je 0x141184bde
adc rcx, 2
mov rbp, rax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov rbx, 1
jmp 0x141184a05
pop rdx
sub rdi, rdx
mov rax, rdi
pop rbp
pop rdi
pop rsi
ret
Function at 0x1400038a0
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 0x1400038fd
lea rbx, [0x14003ab50]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400038e4
cmp r10, 2
jb 0x1400038e4
cmp byte [r9], r8b
jne 0x1400038e4
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 0x1400038c0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000393f
lea rbx, [0x14003ab50]
cmp r8b, 0x23
jne 0x140003923
cmp byte [r9], r8b
jne 0x140003923
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 0x140003910
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003a40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rsi, r8
test r8, r8
je 0x140003a5e
mov qword [r8], r14
lea rdx, [0x14003a6b0]
call fcn.140003950
mov rbx, rax
test rax, rax
jne 0x140003a83
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140003bad
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 0x140003bad
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003bad
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003bad
cmp rdi, 0xffffffffffffffff
je 0x140003bad
mov rcx, rdi
call fcn.140007490
mov rbp, rax
test rax, rax
je 0x140003bad
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 0x140003b9a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x140046748]
test r8, r8
je 0x140003b8f
movsx rdx, word [r8 + 0x6030]
lea rcx, [r8 + 0x6034]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140003b84
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6030], cx
movsx rax, cx
lea rcx, [r8 + 0x6034]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x602c]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140003bb6
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140003ba8
mov qword [rsi], rdi
mov rax, rbp
jmp 0x140003bb8
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140006fa0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r11, [0x14003ab50]
mov rax, qword [rcx + 0xf8]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x4050], ebx
jne 0x140007036
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.1400195d0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140012d30
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140046010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140046748]
mov edi, ecx
cmp byte [rbx + 0x4cf1], 0
jne 0x140012d91
cmp byte [rbx + 0x4cf2], 0
jne 0x140012d91
movsx r9d, word [rbx + 0x5e24]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140003820
test dil, 2
je 0x140012ebf
jmp 0x140012e1a
movss xmm1, dword [rbx + 0x39c0]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5e24]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14003fe40]
mulss xmm1, dword [0x14003fe38]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe48]
addss xmm1, dword [rbx + 0xe4c]
mov qword [rbx + 0x49d0], rax
mov dword [rbx + 0x49bc], 1
movss dword [rbx + 0x49c8], xmm0
movss dword [rbx + 0x49cc], xmm1
movss xmm0, dword [rbx + 0x3a1c]
mulss xmm0, dword [0x14003fdc8]
or dword [rbx + 0x49b8], 0x41
movss dword [rbx + 0x4a18], xmm0
call fcn.140003820
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140012e70
lea r11, [0x14003ab50]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140012e53
cmp byte [r8], r9b
jne 0x140012e53
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 0x140012e40
not ecx
call fcn.14000a550
test rax, rax
je 0x140012ebf
cmp byte [rax + 0xb6], 0
je 0x140012ebf
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5e24]
movsx r9d, word [rbx + 0x5e24]
call fcn.140003820
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000cd20
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140036ac0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140017fa0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5f78], 0
lea rbx, [rcx + 0x5f80]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140018047
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x140017ffa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001a670
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003f00
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5f78]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5f88]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140046721]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001804f
mov rcx, rbx
call fcn.140003f00
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140018370
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x140046748]
xor ebp, ebp
cmp byte [rbx + 0x5ed0], bpl
jne 0x14001844f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140018448
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140003a40
mov rsi, rax
test rax, rax
je 0x140018448
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1400183d4
mov rcx, rax
call fcn.1400185a0
mov r8, qword [0x140046748]
test r8, r8
je 0x14001843f
movsx rdx, word [r8 + 0x6030]
lea rcx, [r8 + 0x6034]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140018434
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6030], cx
movsx rax, cx
lea rcx, [r8 + 0x6034]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x602c]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5ed0], 1
movss xmm0, dword [rbx + 0x5ed4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1400184de
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5ed4], xmm0
jb 0x1400184de
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x1400184d1
mov rax, qword [0x140046748]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5ed4], ebp
call fcn.140018800
lea rdx, [0x14003a6b4]
mov rcx, rdi
mov rsi, rax
call fcn.140003950
mov rdi, rax
test rax, rax
je 0x1400184d8
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400184d8
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5ed4], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140018500
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140046748]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140018563
mov qword [rsp], rbx
lea rbx, [0x14003ab50]
nop dword [rax]
cmp r9b, 0x23
jne 0x140018543
cmp byte [r8], r9b
jne 0x140018543
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140018530
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5ee8]
not eax
mov r8, qword [r10 + 0x5ef0]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14001858f
cmp dword [r8 + 8], eax
je 0x140018596
add r8, 0x48
cmp r8, rcx
jne 0x140018580
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x14002d1a0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x140046010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x140046748]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14002d3be
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14002d3be
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x140046748]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x14002d274
movsx rdx, word [r8 + 0x6030]
lea rax, [r8 + 0x6034]
mov r9d, dword [r8 + 0x3f60]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x14002d269
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6030], cx
movsx rax, cx
lea rax, [rax*8 + 0x6034]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6028]
test rdi, rdi
je 0x14002d291
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x14002d294
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x14003f798]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x14002d2d7
mov rsi, qword [r8 + 0x90]
jmp 0x14002d2da
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14002d305
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x140046748]
mov rcx, qword [rax + 0x4ad0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14002d37e
inc rbx
cmp rbx, 5
jl 0x14002d360
jmp 0x14002d3aa
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x14002d3c0
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140036ac0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x140037588
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400375d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400375d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400375d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400375d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400375d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400375d4
xor al, al
add rsp, 0x28
ret
Function at 0x140011168
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001cc10
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400430f6]
call fcn.140011c58
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001cc67
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001cd73
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001cd0c
cmp qword [rbp + 0x28], 0
jle 0x14001cd0c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001ccac
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011ba4
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14001cd62
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001cd62
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret