joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e747
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0049c3d0]
jne 0x457f6a
rol rcx, 0x10
test cx, 0xffff
jne 0x457f66
repz ret
ror rcx, 0x10
jmp 0x45e6a0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x004a1f70]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x004a2068]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x45e725
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x004a1f70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x45e747
mov rax, qword [rsp + 0x88]
mov qword [0x004a2068], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x004a2008], rax
mov rax, qword [0x004a2068]
mov qword [0x004a1ee0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x004a1ff0], rax
mov dword [0x004a1ed0], 0xc0000409
mov dword [0x004a1ed4], 1
mov rax, qword [0x0049c3d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0049c3d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x004a1f68], eax
mov ecx, 1
call fcn.0045e940
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00483058]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x004a1f68], 0
jne 0x45e7ce
mov ecx, 1
call fcn.0045e940
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x468f30
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.0045e010
xor ebx, ebx
cmp qword [0x004a2810], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x469061
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x468f93
xor eax, eax
jmp 0x469141
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x468f8c
mov rcx, rax
call fcn.0045dfa0
lea rdx, [0x004831f8]
mov rcx, rbp
mov qword [0x004a2810], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0045dfa0
lea rdx, [0x004831e0]
mov rcx, rbp
mov qword [0x004a2818], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0045dfa0
lea rcx, [rsp + 0x30]
mov qword [0x004a2820], rax
call fcn.00459dc0
test eax, eax
je 0x469017
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00458380
cmp dword [rsp + 0x30], 2
jne 0x469061
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0045dfa0
test rax, rax
mov qword [0x004a2830], rax
je 0x469061
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0045dfa0
mov qword [0x004a2828], rax
mov rcx, qword [0x004a2828]
cmp rcx, rsi
je 0x4690f3
cmp qword [0x004a2830], rsi
je 0x4690f3
call fcn.0045e070
call rax
test rax, rax
mov rbp, rax
je 0x4690be
mov rcx, qword [0x004a2830]
call fcn.0045e070
lea rcx, [rsp + 0x38]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x4690be
test byte [rsp + 0x48], 1
jne 0x4690f3
lea rcx, [rsp + 0x34]
call fcn.00459e10
test eax, eax
je 0x4690e0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00458380
cmp dword [rsp + 0x34], 4
jb 0x4690ed
bts edi, 0x15
jmp 0x469127
bts edi, 0x12
jmp 0x469127
mov rcx, qword [0x004a2818]
cmp rcx, rsi
je 0x469127
call fcn.0045e070
call rax
test rax, rax
mov rbx, rax
je 0x469127
mov rcx, qword [0x004a2820]
cmp rcx, rsi
je 0x469127
call fcn.0045e070
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x004a2810]
call fcn.0045e070
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret

Function at 0x1004010e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sub.cygwin1.dll___getreent
mov rcx, qword [rax + 0x18]
lea r9, str._______________Q_msgkey____M_shmkey____S_semkey__...
lea r8, str.usage:_ipcrm___q_msqid____m_shmid____s_semid_
lea rdx, str._s_n_s_n
call sub.cygwin1.dll_fprintf
mov ecx, 1
call sub.cygwin1.dll_exit
nop
nop word cs:[rax + rax]
Function at 0x140006d20
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 0x140006d7d
lea rbx, [0x14011dc90]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140006d64
cmp r10, 2
jb 0x140006d64
cmp byte [r9], r8b
jne 0x140006d64
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 0x140006d40
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140006dbf
lea rbx, [0x14011dc90]
cmp r8b, 0x23
jne 0x140006da3
cmp byte [r9], r8b
jne 0x140006da3
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 0x140006d90
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140016b30
Capabilities:
Hash data with crc32

Disassembly:
movsxd r8, dword [rcx + 0x108]
mov r9, rdx
mov rax, qword [rcx + 0x110]
mov r10d, dword [rax + r8*4 - 4]
lea r8, [0x14011dc90]
not r10d
movzx eax, dl
movzx ecx, r10b
xor rcx, rax
shr r10d, 8
mov rax, rdx
shr rax, 8
movzx edx, al
mov rax, r9
xor r10d, dword [r8 + rcx*4]
movzx ecx, r10b
xor rdx, rcx
shr r10d, 8
shr rax, 0x10
xor r10d, dword [r8 + rdx*4]
movzx ecx, r10b
shr r10d, 8
movzx edx, al
mov rax, r9
xor rdx, rcx
shr rax, 0x18
xor r10d, dword [r8 + rdx*4]
movzx ecx, r10b
shr r10d, 8
movzx edx, al
mov rax, r9
xor rdx, rcx
shr rax, 0x20
xor r10d, dword [r8 + rdx*4]
movzx ecx, r10b
shr r10d, 8
movzx edx, al
mov rax, r9
xor rdx, rcx
shr rax, 0x28
xor r10d, dword [r8 + rdx*4]
movzx ecx, r10b
shr r10d, 8
movzx edx, al
mov rax, r9
xor rdx, rcx
shr rax, 0x30
shr r9, 0x38
xor r10d, dword [r8 + rdx*4]
movzx ecx, r10b
shr r10d, 8
movzx edx, al
xor rdx, rcx
xor r10d, dword [r8 + rdx*4]
movzx edx, r10b
shr r10d, 8
xor rdx, r9
xor r10d, dword [r8 + rdx*4]
not r10d
mov eax, r10d
ret
Function at 0x140016c20
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
movss xmm0, dword [rcx + 0x128]
lea r10, [0x14011dc90]
mov rax, qword [rcx + 0x110]
movss xmm1, dword [rcx + 0x12c]
movss xmm2, dword [rdx]
movss xmm4, dword [rdx + 8]
subss xmm2, xmm0
movss xmm3, dword [rdx + 4]
subss xmm4, xmm0
movss xmm0, dword [rdx + 0xc]
subss xmm3, xmm1
movsxd rcx, dword [rcx + 0x108]
subss xmm0, xmm1
movd r8d, xmm2
movss dword [rsp], xmm2
mov r9d, dword [rax + rcx*4 - 4]
movzx eax, byte [rsp]
not r9d
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
movss dword [rsp + 4], xmm3
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
movss dword [rsp + 8], xmm4
movss dword [rsp + 0xc], xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 4]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm3
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 8]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm4
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
shr eax, 8
movzx edx, al
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
mov eax, r8d
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 0xc]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
shr r8, 0x18
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx edx, r9b
shr r9d, 8
xor r8, rdx
xor r9d, dword [r10 + r8*4]
not r9d
mov eax, r9d
add rsp, 0x18
ret
Function at 0x140016fd0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [0x14017c5f0]
lea r9, [0x14011dc90]
mov r8d, ecx
mov rbx, qword [rax + 0x40c8]
movzx eax, r8b
movsxd rdi, dword [rbx + 0x108]
mov rsi, qword [rbx + 0x110]
mov ebp, dword [rsi + rdi*4 - 4]
not ebp
movzx ecx, bpl
xor rcx, rax
shr ebp, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor ebp, dword [r9 + rcx*4]
movzx ecx, bpl
xor rdx, rcx
shr ebp, 8
shr eax, 0x10
xor ebp, dword [r9 + rdx*4]
movzx ecx, bpl
shr ebp, 8
movzx edx, al
mov eax, r8d
xor rdx, rcx
shr rax, 0x18
xor ebp, dword [r9 + rdx*4]
movzx ecx, bpl
xor rcx, rax
shr ebp, 8
xor ebp, dword [r9 + rcx*4]
mov ecx, dword [rbx + 0x10c]
not ebp
cmp edi, ecx
jne 0x1400170d9
inc edi
test ecx, ecx
je 0x140017082
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140017087
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x1400170d9
movsxd rcx, edi
shl rcx, 2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rbx + 0x110]
mov rsi, rax
test rdx, rdx
je 0x1400170cc
movsxd r8, dword [rbx + 0x108]
mov rcx, rax
shl r8, 2
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x110]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x110], rsi
mov dword [rbx + 0x10c], edi
movsxd rax, dword [rbx + 0x108]
mov dword [rsi + rax*4], ebp
inc dword [rbx + 0x108]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001acc0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14013e040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14017c5f0]
mov edi, ecx
cmp byte [rbx + 0x4e1d], 0
jne 0x14001ad21
cmp byte [rbx + 0x4e1e], 0
jne 0x14001ad21
movsx r9d, word [rbx + 0x5240]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140006b00
test dil, 2
je 0x14001ae5f
jmp 0x14001adbb
movss xmm0, dword [rbx + 0x3a08]
mov eax, dword [rbx + 0x4ae8]
movaps xmm1, xmm0
mulss xmm1, dword [0x140126414]
mulss xmm0, dword [0x140126404]
addss xmm1, dword [rbx + 0xe0]
addss xmm0, dword [rbx + 0xe4]
test al, 1
jne 0x14001ad7c
xor ecx, ecx
movss dword [rbx + 0x4af8], xmm1
mov qword [rbx + 0x4b00], rcx
or eax, 1
movss dword [rbx + 0x4afc], xmm0
mov dword [rbx + 0x4aec], 1
movss xmm0, dword [rbx + 0x3a70]
lea r8, str.Tooltip__02d
mulss xmm0, dword [0x14012634c]
lea rcx, [rsp + 0x20]
movsx r9d, word [rbx + 0x5240]
or eax, 0x40
mov edx, 0x10
mov dword [rbx + 0x4ae8], eax
movss dword [rbx + 0x4b48], xmm0
call fcn.140006b00
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14001ae10
lea r11, [0x14011dc90]
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x14001adf3
cmp byte [r8], r9b
jne 0x14001adf3
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 0x14001ade0
not ecx
call fcn.140010620
test rax, rax
je 0x14001ae5f
cmp byte [rax + 0xca], 0
je 0x14001ae5f
mov byte [rax + 0xcf], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd2], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xec], 1
mov edx, 0x10
inc word [rbx + 0x5240]
movsx r9d, word [rbx + 0x5240]
call fcn.140006b00
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.1400135f0
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400fb110
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400206a0
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 + 0x53a8], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x140020723
xor edx, edx
add rcx, 0x53b0
call fcn.140021d10
mov r8, rsi
lea rcx, [rbx + 0x53b0]
mov rdx, rbp
call fcn.140007580
mov eax, dword [rbx + 0x53b0]
xor edx, edx
mov r9, qword [rbx + 0x53a8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x53b8]
cmove ecx, edx
test rax, rax
movsxd r8, ecx
mov edx, 1
lea rcx, [0x14017c5e8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x14002072f
add rcx, 0x53b0
call fcn.140007580
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140020b70
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14017c5f0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140020bd3
mov qword [rsp], rbx
lea rbx, [0x14011dc90]
nop dword [rax]
cmp r9b, 0x23
jne 0x140020bb3
cmp byte [r8], r9b
jne 0x140020bb3
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 0x140020ba0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5308]
not eax
mov r8, qword [r10 + 0x5310]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x140020bff
cmp dword [r8 + 8], eax
je 0x140020c06
add r8, 0x48
cmp r8, rcx
jne 0x140020bf0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x140020e50
Capabilities:
Write file on windows

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x20
mov rsi, qword [0x14017c5f0]
xor r15d, r15d
mov r14, rcx
mov dword [rsi + 0x52f4], r15d
test rcx, rcx
je 0x140020f9b
mov qword [rsp + 0x40], rbx
xor edx, edx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rdi
lea rdi, [rsi + 0x52f8]
mov rcx, rdi
mov dword [rsi + 0x52f4], r15d
call fcn.140021d10
mov ecx, dword [rdi + 4]
mov ebx, dword [rdi]
cmp ebx, ecx
jne 0x140020ef7
inc ebx
test ecx, ecx
je 0x140020eb8
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x140020ebd
mov eax, 8
cmp eax, ebx
cmovg ebx, eax
cmp ebx, ecx
jle 0x140020ef7
movsxd rcx, ebx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rdi + 8]
mov rbp, rax
test rdx, rdx
je 0x140020ef0
movsxd r8, dword [rdi]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 8], rbp
mov dword [rdi + 4], ebx
movsxd rcx, dword [rdi]
mov rax, qword [rdi + 8]
mov byte [rcx + rax], r15b
inc dword [rdi]
mov rbx, qword [rsi + 0x5310]
movsxd rax, dword [rsi + 0x5308]
lea rcx, [rax + rax*8]
lea rbp, [rbx + rcx*8]
cmp rbx, rbp
je 0x140020f35
nop
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call qword [rbx + 0x38]
add rbx, 0x48
cmp rbx, rbp
jne 0x140020f20
mov eax, dword [rdi]
lea rdx, [0x14011d884]
test eax, eax
lea rdi, [0x14017c5e8]
lea ecx, [rax - 1]
mov rax, qword [rsi + 0x5300]
cmove ecx, r15d
test rax, rax
movsxd rbp, ecx
mov rcx, r14
cmovne rdi, rax
call fcn.140006dd0
mov rbx, rax
test rax, rax
je 0x140020f8c
mov r9, rax
mov r8, rbp
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 rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
Function at 0x140030fb0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x14013e040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x14017c5f0]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14003116e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003116e
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]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x140031036
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
jmp 0x140031039
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x140122f08]
mov qword [rsi + 0x88], rax
mov qword [rsi + 0x98], 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 rax, qword [0x14017c5f0]
mov dword [rdi + 0x28], 9
test rax, rax
je 0x140031083
mov rsi, qword [rax + 0x98]
jmp 0x140031086
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 0x1400310b1
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x14017c5f0]
mov rcx, qword [rax + 0x4bf8]
mov rax, qword [rdi]
mov rdx, qword [rcx]
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x28], rax
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 dword [rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14003112e
inc rbx
cmp rbx, 5
jl 0x140031110
jmp 0x14003115a
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 0x140031170
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400fb110
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x14004fab0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14004fad8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14004fafe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14004fb00
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14004fb59
test ecx, ecx
jle 0x14004fb39
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14004fb59
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14004fb59
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x14004fb80
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14004fba2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14004fbb8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14004fbd4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004fbd6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14004fc12
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14004fcae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14004fc4d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14004fc8e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14004fcae
cmp rbx, rax
ja 0x14004fc60
test rbx, rbx
je 0x14004fcae
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret