joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ca4b0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400ca57c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400ca57c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x1400ca595
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x1400ca56c
cmp byte [rax], 0x5c
jne 0x1400ca566
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x1400ca566
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400ca552
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x1400ca563
test r8b, 0x10
jne 0x1400ca566
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x1400ca566
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400c5110
test edi, edi
jne 0x1400ca4d0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.1400c5100
int3
Function at 0x1400db770
Capabilities:
Hash data with crc32

Disassembly:
mov rax, rsp
sub rsp, 0x98
cmp byte [0x140166438], 0
je 0x1400db9a7
mov qword [rax + 8], rbx
lea r8, [0x140141de9]
mov qword [rax - 8], rdi
lea r11, [0x140133ed0]
mov rdi, qword [0x140164bc0]
xor ebx, ebx
movaps xmmword [rax - 0x18], xmm6
mov r10d, 0xffffffff
movaps xmmword [rax - 0x28], xmm7
mov edx, r10d
movsxd rax, dword [0x14016643c]
mov r9b, 0x45
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x39e8]
add rcx, rcx
movups xmm2, xmmword [rax + rcx*8]
or dword [rdi + 0x4b18], 3
xor eax, eax
mov dword [rdi + 0x4b20], 1
movaps xmm0, xmm2
movss dword [rdi + 0x4b2c], xmm2
shufps xmm0, xmm2, 0xaa
movaps xmm1, xmm2
shufps xmm1, xmm2, 0xff
movss dword [rdi + 0x4b3c], xmm0
xorps xmm0, xmm0
shufps xmm2, xmm2, 0x55
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x24], r10d
movss dword [rdi + 0x4b40], xmm1
movss dword [rdi + 0x4b30], xmm2
mov qword [rdi + 0x4b34], rbx
mov dword [rdi + 0x4b1c], 1
mov byte [rdi + 0x4b58], 1
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x39], 1
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x1400db863
cmp byte [r8], r9b
jne 0x1400db863
cmp byte [r8 + 1], r9b
cmove edx, r10d
movzx ecx, dl
movzx eax, r9b
movzx r9d, byte [r8]
xor rcx, rax
shr edx, 8
inc r8
xor edx, dword [r11 + rcx*4]
test r9b, r9b
jne 0x1400db850
cmp byte [0x140166439], bl
not edx
mov dword [rsp + 0x20], edx
mov eax, 0x89
mov r8d, 0x3022b
jne 0x1400db8a4
mov eax, 0x489
mov r8d, 0x302ab
movss xmm6, dword [rdi + 0x3a14]
lea rcx, str.ESP_Overlay
movups xmm7, xmmword [rdi + 0x3b08]
mov dword [rdi + 0x3a14], ebx
xor edx, edx
mov qword [rdi + 0x3b08], rbx
mov dword [rdi + 0x3b10], ebx
mov dword [rdi + 0x3b14], 0x3f800000
movsd xmm1, qword [rsp + 0x30]
or dword [rdi + 0x4b18], 0x800
mov dword [rsp + 0x28], eax
movups xmm0, xmmword [rsp + 0x20]
mov eax, dword [rsp + 0x38]
movups xmmword [rdi + 0x4b8c], xmm0
movsd qword [rdi + 0x4b9c], xmm1
mov dword [rdi + 0x4ba4], eax
call fcn.14002dc20
cmp byte [0x140166439], bl
jne 0x1400db961
mov rcx, qword [0x140164bc0]
mov edx, 0xffffffec
mov rax, qword [rcx + 0x4158]
mov byte [rax + 0xf5], 1
mov rax, qword [rcx + 0x4158]
mov rcx, qword [rax + 0x40]
mov rbx, qword [rcx + 0x48]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
mov edx, 0xffffffec
mov rcx, rbx
or rax, 0x80020
mov r8, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov rcx, qword [0x140164bc0]
add rcx, 8
call fcn.1400d06e0
call fcn.1400d3a70
call fcn.140030910
mov rbx, qword [rsp + 0xa0]
movss dword [rdi + 0x3a14], xmm6
movaps xmm6, xmmword [rsp + 0x80]
movups xmmword [rdi + 0x3b08], xmm7
mov rdi, qword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0x70]
add rsp, 0x98
ret
Function at 0x1400dca60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 0xf
mov rsi, rcx
mov r9, qword [rdx + 0x10]
mov r8, rdx
jbe 0x1400dca83
mov r8, qword [rdx]
xor ecx, ecx
movabs rdi, 0xcbf29ce484222325
test r9, r9
je 0x1400dcab4
movabs r10, 0x100000001b3
nop
movzx eax, byte [rcx + r8]
inc rcx
xor rdi, rax
imul rdi, r10
cmp rcx, r9
jb 0x1400dcaa0
mov r8, rdx
mov r9, rdi
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14001d830
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x1400dcb54
mov rdx, qword [rsi + 0x30]
and rdx, rdi
shl rdx, 4
add rdx, qword [rsi + 0x18]
mov rax, qword [rdx]
cmp qword [rdx + 8], rbx
jne 0x1400dcb08
cmp rax, rbx
jne 0x1400dcafe
mov rax, qword [rsi + 8]
mov qword [rdx], rax
mov qword [rdx + 8], rax
jmp 0x1400dcb13
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
jmp 0x1400dcb13
cmp rax, rbx
jne 0x1400dcb13
mov rax, qword [rbx]
mov qword [rdx], rax
mov rdx, qword [rbx]
lea rcx, [rbx + 0x10]
dec qword [rsi + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rdx
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
call fcn.140016e50
mov edx, 0x38
mov rcx, rbx
call fcn.140107254
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400e4670
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
mov rbx, qword [rsp + 0x90]
lea r14, [r8 - 1]
sar r14, 1
mov r12, r9
mov r13, r8
mov rsi, rdx
mov rbp, rcx
mov r15, rdx
mov rdi, rdx
cmp rdx, r14
jge 0x1400e46fe
nop word [rax + rax]
add rdi, rdi
mov rcx, rbx
lea rax, [rdi + 2]
imul rdx, rax, 0x598
add rdx, rbp
lea r8, [rdx - 0x598]
call fcn.1400d4100
movzx eax, al
xor rax, 1
inc rax
add rdi, rax
imul rdx, rdi, 0x598
imul rcx, rsi, 0x598
add rdx, rbp
add rcx, rbp
call fcn.1400e1c40
mov rsi, rdi
cmp rdi, r14
jl 0x1400e46b0
mov rsi, rdi
cmp rdi, r14
jne 0x1400e4730
test r13b, 1
jne 0x1400e4730
imul rdx, r13, 0x598
imul rcx, rdi, 0x598
add rdx, 0xfffffffffffffa68
add rdx, rbp
add rcx, rbp
call fcn.1400e1c40
lea rsi, [r13 - 1]
cmp r15, rsi
jge 0x1400e477d
nop word [rax + rax]
lea rdi, [rsi - 1]
mov r8, r12
sar rdi, 1
mov rcx, rbx
imul r14, rdi, 0x598
add r14, rbp
mov rdx, r14
call fcn.1400d4100
test al, al
je 0x1400e477d
imul rcx, rsi, 0x598
mov rdx, r14
add rcx, rbp
call fcn.1400e1c40
mov rsi, rdi
cmp r15, rdi
jl 0x1400e4740
imul rcx, rsi, 0x598
mov rdx, r12
add rcx, rbp
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.1400e1c40
Function at 0x1400f2c90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r10d, ecx
and r10d, 7
je 0x1400f2cc4
cmp ecx, r10d
jge 0x1400f2cb2
mov rcx, rbx
call fcn.1400f24a0
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor r8d, r8d
mov eax, ecx
test ecx, ecx
jle 0x1400f2cfe
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x1400f2ce0
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x1400f2d26
mov rax, qword gs:[0x58]
mov edx, 0x28
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, r8d
cmp rcx, 4
jge 0x1400f2d55
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x1400f2d3f
xor dl, dl
jmp 0x1400f2d48
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x1400f2d36
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 0x1400f2d02
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x1400f2dbf
mov rax, qword gs:[0x58]
mov edx, 0x28
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 0x1400f2dd9
mov rcx, rbx
call fcn.1400f25e0
test eax, eax
je 0x1400f2db2
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 0x1400fdf70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140163040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [0x140166f20]
mov esi, r8d
mov rdi, rdx
cmp rax, 0xffffffffffffffff
jne 0x1400fdfa0
xor eax, eax
jmp 0x1400fe01d
mov rcx, qword [0x140166f20]
lea rdx, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x1400fdfd7
cmp dword [rsp + 0x34], 0
jbe 0x1400fdfd7
mov rcx, qword [0x140166f20]
mov edx, 5
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov rcx, qword [0x140166f20]
lea rax, [0x140166f90]
xor ebx, ebx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], ebx
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400fe012
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400fe016
mov ebx, dword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140106fb0
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x1400fe0c0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140163040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [rcx + 0x10]
mov rbx, rcx
cmp rax, 0xffffffffffffffff
je 0x1400fe0e8
mov rax, qword [rcx]
call qword [rax + 0x18]
mov qword [rsp + 0x30], 0
lea rcx, [rbx + 0x18]
mov dword [rsp + 0x28], 0x40000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 0x10], rax
mov rax, qword [rbx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x1400fe176
lea rax, [rsp + 0x40]
mov byte [rbx + 0xb4], 1
mov qword [rsp + 0x28], rax
lea r8, [0x1400fe340]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xa0], rax
mov rax, qword [rbx + 0xa0]
test rax, rax
jne 0x1400fe18b
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], 0xffffffffffffffff
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140106fb0
add rsp, 0x50
pop rbx
ret
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140106fb0
add rsp, 0x50
pop rbx
ret
Function at 0x1400fe2a0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rbx, rcx
cmp rax, 0xffffffffffffffff
je 0x1400fe339
mov byte [rcx + 0xb4], 0
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetCommMask]
mov rcx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0xa0]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400fe2fc
mov rcx, qword [rbx + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xd8]
mov qword [rbx + 0xa0], 0
mov qword [rbx + 0x10], 0xffffffffffffffff
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_ResetEvent]
add rsp, 0x20
pop rbx
ret

Function at 0x1400fe4e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140163040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov ebx, 0x7f
mov eax, 0xffffff81
cmp ecx, ebx
jle 0x1400fe513
mov ecx, ebx
jmp 0x1400fe518
cmp ecx, eax
cmovl ecx, eax
cmp edx, ebx
jg 0x1400fe523
cmp edx, eax
mov ebx, edx
cmovl ebx, eax
test ecx, ecx
lea eax, [rcx + 0x100]
lea rdx, str._02X
cmovs ecx, eax
mov r8d, ecx
lea rcx, [rsp + 0x38]
call fcn.14004a470
lea eax, [rbx + 0x100]
test ebx, ebx
lea rdx, str._02X
cmovs ebx, eax
lea rcx, [rsp + 0x34]
mov r8d, ebx
call fcn.14004a470
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x38]
lea rdx, str.57AB0200_s_s00
lea rcx, [rsp + 0x50]
call fcn.14004a470
lea rax, [rsp + 0x50]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400fe590
mov rbp, rbx
shr rbp, 1
mov rcx, rbp
call fcn.140107478
xor edi, edi
mov rsi, rax
test rbx, rbx
je 0x1400fe5e1
lea rcx, [rsp + 0x50]
add rcx, rdi
lea r8, [rsp + 0x3c]
lea rdx, [0x1401433c0]
call fcn.14001eea0
movzx eax, byte [rsp + 0x3c]
mov rcx, rdi
shr rcx, 1
add rdi, 2
mov byte [rcx + rsi], al
cmp rdi, rbx
jb 0x1400fe5b1
mov rax, qword [0x140167060]
cmp rax, 0xffffffffffffffff
je 0x1400fe67c
mov rcx, qword [0x140167060]
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x1400fe624
cmp dword [rsp + 0x40], 0
jbe 0x1400fe624
mov rcx, qword [0x140167060]
mov edx, 5
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov rcx, qword [0x140167060]
lea rbx, [0x1401670d0]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov r8d, ebp
mov dword [rsp + 0x30], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400fe67c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400fe67c
mov rcx, qword [0x140167060]
lea r8, [rsp + 0x30]
mov r9d, 1
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov rcx, rsi
call fcn.140107254
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140106fb0
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400fe830
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140163040]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [0x1401654b0], 0
ja 0x1400fe864
mov eax, 0xffffdcd8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140106fb0
add rsp, 0x58
ret
inc dword [0x140164c68]
mov qword [rsp + 0x50], rbx
mov dword [0x140164c6c], 0xaa8855aa
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov rcx, qword [0x1401654b0]
lea rdx, [0x140164c60]
xor r9d, r9d
mov dword [0x140164c64], eax
lea rax, [0x1401654a0]
mov dword [rsp + 0x28], recvfrom
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0x10]
call qword [sym.imp.WSOCK32.dll_sendto]
mov rcx, qword [0x1401654b0]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140165080]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], recvfrom
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WSOCK32.dll_recvfrom]
mov ebx, eax
call qword [sym.imp.WSOCK32.dll_WSACleanup]
test ebx, ebx
mov qword [0x1401654b0], 0xffffffffffffffff
mov rbx, qword [rsp + 0x50]
jns 0x1400fe920
mov eax, 0xffffdcdb
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140106fb0
add rsp, 0x58
ret
mov eax, dword [0x140164c6c]
cmp dword [0x14016508c], eax
je 0x1400fe945
mov eax, 0xffffdcdc
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140106fb0
add rsp, 0x58
ret
mov ecx, dword [0x140164c68]
mov edx, 0xffffdcdd
cmp dword [0x140165088], ecx
mov eax, dword [0x140165084]
cmovne eax, edx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140106fb0
add rsp, 0x58
ret
Function at 0x140103150
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140163040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov rcx, qword [0x140164420]
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x140103198
nop dword [rax]
cmp dword [rax + 0x20], 4
jge 0x14010318c
mov rax, qword [rax + 0x10]
jmp 0x140103192
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140103180
cmp byte [rcx + 0x19], 0
jne 0x140103274
cmp dword [rcx + 0x20], 4
jg 0x140103274
lea r8, [rcx + 0x28]
mov r10, qword [r8 + 0x10]
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x1401031c1
mov rdx, qword [r8]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x1401031f3
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r11
inc rcx
cmp rcx, r10
jb 0x1401031e0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14001d830
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14010322e
cmp rcx, qword [rbx + 8]
je 0x14010322e
cmp qword [rbx + 0x10], 1
jne 0x140103232
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140106fb0
add rsp, 0x80
pop rbx
ret
xor al, al
jmp 0x140103218
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1401032a0
nop
mov r8, rax
lea rdx, str.AcceptEncoding_does_not_accept_any_other_values_if_disabled_is_present._You_set_the_following_encodings:
lea rcx, [rsp + 0x58]
call fcn.1400b0440
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1401030f0
lea rdx, [0x14015e988]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, str.invalid_map_K__T__key
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_
int3

Function at 0x1401064e8
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 0x140106522
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140106527
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 0x140106570
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140116660]
cmp byte [rcx + rax], 0
je 0x140106570
dec r8
sub rdx, 1
jne 0x140106556
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140106c14
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140106588
mov ebx, eax
test eax, eax
jne 0x140106c44
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140106ca7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140106c9e
test al, 0x10
je 0x140106c9e
bt eax, 0xa
jae 0x140106c97
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140106cb8
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140106c93
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140106c93
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x140106c9e
and dword [rsp + 0x3c], 0
jmp 0x140106ca3
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140107d34
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140003790
jmp 0x14000377f
jae 0x14000384f
cmp r8, 0x201
jae 0x140003790
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x1400037e7
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1400037bf
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140018690
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140003810
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400038bb
mov r8d, r13d
cmp r12, r8
jne 0x140003770
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400038ef
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000377f
jmp 0x140003790
cmp r14, r8
jb 0x140003909
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140005890
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x1400038a4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140001340
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14000388f
jmp 0x1400038a4
lea rcx, str.internal_error:_entered_unreachable_code_rustc_3f5fd8dd41153bc5fdca9427e9e05be2c767ba23library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140019510
jmp 0x14000391e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1400198c0
ud2
Function at 0x140009bf0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14001bd68]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140009c28
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140009c86
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140009cb3
test eax, eax
js 0x140009c92
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140009ca9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140005470
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140001ee0
mov ecx, 7
int 0x29
ud2