joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001586
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
sub rsp, 0x228
movabs rax, 0x1423bb56419a5974
mov r10, rdx
mov qword [rsp], rax
mov r9, rcx
lea rbx, [rsp + 0x20]
movabs rdx, 0x159aa1c3d0225a74
lea rcx, [rsp + 0x120]
movabs rax, 0x993c2b002ebe091
mov qword [rsp + 8], rdx
movabs rdx, 0x295a161ccc51f477
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x10], rax
xor eax, eax
mov rdx, rax
mov byte [rax + rcx], al
inc rax
and edx, 0x1f
mov dl, byte [rsp + rdx]
mov byte [rax + rbx - 1], dl
cmp rax, 0x100
jne 0x1400015df
xor edx, edx
xor r11d, r11d
mov r8b, byte [rcx + rdx]
mov al, byte [rbx + rdx]
add eax, r8d
add eax, r11d
movzx r11d, al
movzx eax, al
mov sil, byte [rsp + rax + 0x120]
mov byte [rsp + rax + 0x120], r8b
mov byte [rcx + rdx], sil
inc rdx
cmp rdx, 0x100
jne 0x1400015ff
xor edx, edx
xor ebx, ebx
xor r11d, r11d
cmp rdx, r10
je 0x14000168d
lea ecx, [rbx + 1]
movzx ebx, cl
movzx ecx, cl
mov al, byte [rsp + rcx + 0x120]
lea r8d, [rax + r11]
movzx r11d, r8b
movzx r8d, r8b
mov sil, byte [rsp + r8 + 0x120]
mov byte [rsp + rcx + 0x120], sil
mov byte [rsp + r8 + 0x120], al
add al, byte [rsp + rcx + 0x120]
movzx eax, al
mov al, byte [rsp + rax + 0x120]
xor byte [r9 + rdx], al
inc rdx
jmp 0x14000163a
mov rax, rdx
add rsp, 0x228
pop rbx
pop rsi
ret
Function at 0x140001829
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
xor eax, eax
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov rsi, rcx
lea r9, [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov eax, edx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x78], rax
mov rax, qword [0x140048260]
test rax, rax
jne 0x14000188b
mov dword [rsp + 0x28], 0x40
mov rax, qword [sub.ntdll.dll_NtAllocateVirtualMemory]
xor r8d, r8d
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], 0x3000
mov qword [0x140048260], rax
call sub.ntdll.dll_NtAllocateVirtualMemory
jmp 0x1400018a4
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], 0x3000
call rax
test eax, eax
jne 0x140001a09
mov rdi, qword [rsp + 0x68]
mov rcx, rbx
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x70]
mov rax, qword [0x140048280]
mov rdx, qword [rsp + 0x68]
test rax, rax
jne 0x140001915
mov rax, qword [sub.ntdll.dll_NtCreateThreadEx]
xor esi, esi
xor edi, edi
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x50], rsi
or r9, 0xffffffffffffffff
xor r8d, r8d
mov edx, 0x1fffff
mov qword [0x140048280], rax
xor eax, eax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
call sub.ntdll.dll_NtCreateThreadEx
jmp 0x14000194e
xor r10d, r10d
xor r11d, r11d
xor ebx, ebx
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x50], r10
or r9, 0xffffffffffffffff
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x30], r11d
mov qword [rsp + 0x28], rbx
call rax
test eax, eax
jne 0x140001a09
mov rax, qword [0x1400482d8]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
test rax, rax
jne 0x14000198f
xor r9d, r9d
mov rax, qword [sub.ntdll.dll_NtQueueApcThread]
xor r8d, r8d
mov qword [rsp + 0x20], r9
xor r9d, r9d
mov qword [0x1400482d8], rax
call sub.ntdll.dll_NtQueueApcThread
jmp 0x14000199f
xor r8d, r8d
xor r9d, r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
call rax
test eax, eax
jne 0x140001a09
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400019e0
mov rax, qword [0x140048320]
test rax, rax
jne 0x1400019d6
mov rax, qword [sub.ntdll.dll_NtWaitForSingleObject]
xor r8d, r8d
mov edx, 1
mov qword [0x140048320], rax
call sub.ntdll.dll_NtWaitForSingleObject
jmp 0x1400019e0
xor r8d, r8d
mov edx, 1
call rax
mov rax, qword [0x140048268]
mov rcx, qword [rsp + 0x70]
test rax, rax
jne 0x140001a06
mov rax, qword [sub.ntdll.dll_NtClose]
mov qword [0x140048268], rax
call sub.ntdll.dll_NtClose
jmp 0x140001a09
call rax
nop
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
ret
Function at 0x140001d20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140002b50
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002b50
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001d90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400483b4]
mov rbx, rcx
test esi, esi
jle 0x140001ec0
mov rax, qword [0x1400483b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001ddb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001e65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001dc0
mov rcx, rbx
call fcn.1400027e0
mov rdi, rax
test rax, rax
je 0x140001ee2
mov rax, qword [0x1400483b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002920
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400483b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ec7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001e5e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001e70
add dword [0x1400483b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400483b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001d20
nop dword [rax]
xor esi, esi
jmp 0x140001de8
mov rax, qword [0x1400483b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001d20
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001d20
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002450
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140048420]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140048400]
test rbx, rbx
je 0x1400024ac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400024a3
test rsi, rsi
je 0x1400024a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002488
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400027e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400459f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002800
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002808
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002800
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000285d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002854
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002800
add rax, 0x28
cmp rax, r9
jne 0x140002840
xor eax, eax
ret

Function at 0x140002860
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400459f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000287f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002888
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000287f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002920
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400459f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000293f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002948
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x2fc4cb220
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4cbc22
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4cbcba
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4cbc9e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cbc92
cmp qword [rbp - 0x10], 0
je 0x2fc4cbc92
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cbc58
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cbcbb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cbdc0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cbde8
mov eax, 0
jmp 0x2fc4cbe36
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cbe11
mov eax, 0
jmp 0x2fc4cbe36
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cbe31
mov eax, 0
jmp 0x2fc4cbe36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cbe3c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cbeba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cbeb1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cbeb1
mov rax, qword [rbp - 8]
jmp 0x2fc4cbecf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cbe84
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001373
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140002020], 0
je 0x140001392
mov edx, 1
jmp 0x1400014d8
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor ebx, ebx
mov r8, qword [rax + 0x10]
xor eax, eax
mov rdx, qword [r8 + 0x30]
test rdx, rdx
je 0x1400013f5
movsxd rcx, dword [rdx + 0x3c]
mov ecx, dword [rdx + rcx + 0x88]
test ecx, ecx
je 0x1400013ed
lea rax, [rcx + rdx]
mov ecx, dword [rax + 0xc]
add rcx, rdx
mov r9d, dword [rcx]
or r9d, 0x20202020
cmp r9d, 0x6c64746e
jne 0x1400013ed
mov ecx, dword [rcx + 4]
or ecx, 0x20202020
cmp ecx, 0x6c642e6c
je 0x1400013ff
mov r8, qword [r8]
mov rbx, rdx
jmp 0x1400013a7
test rax, rax
jne 0x140001402
jmp 0x1400014d8
mov rbx, rdx
mov ebp, dword [rax + 0x1c]
mov esi, dword [rax + 0x24]
mov qword [0x140047308], rbx
xor r10d, r10d
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
lea r13, [0x140002024]
add rsi, rbx
add rbp, rbx
lea r11d, [rdx - 1]
add rax, rbx
lea rdi, [rax + r11*4]
add r11, r11
add r11, rsi
mov ecx, dword [rdi]
add rcx, rbx
cmp word [rcx], 0x775a
jne 0x14000146c
mov eax, r10d
inc r10d
lea r12, [r13 + rax*8]
call fcn.14000134b
mov dword [r12], eax
movzx eax, word [r11]
mov eax, dword [rbp + rax*4]
mov dword [r12 + 4], eax
cmp r10d, 0x1f4
je 0x14000147e
sub rdi, 4
lea rax, [r11 - 2]
cmp rsi, r11
je 0x14000147e
mov r11, rax
jmp 0x140001436
mov dword [0x140002020], r10d
lea r11, [0x140002024]
dec r10d
test r10d, r10d
je 0x140001388
lea rax, [0x140002020]
xor edx, edx
lea ecx, [rdx + 1]
mov r8d, dword [rax + 8]
mov rdx, rcx
lea rcx, [r11 + rcx*8]
mov r9d, dword [rcx + 4]
cmp r9d, r8d
jae 0x1400014ca
mov ebx, dword [rax + 4]
mov esi, dword [rcx]
mov dword [rax + 8], r9d
mov dword [rax + 4], esi
mov dword [rcx], ebx
mov dword [rcx + 4], r8d
add rax, 8
cmp edx, r10d
jb 0x1400014a1
dec r10d
jmp 0x14000148f
mov eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x14000159f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
sub rsp, 0x228
movabs rax, 0x1423bb56419a5974
mov r10, rdx
mov qword [rsp], rax
mov r9, rcx
lea rbx, [rsp + 0x20]
movabs rdx, 0x159aa1c3d0225a74
lea rcx, [rsp + 0x120]
movabs rax, 0x993c2b002ebe091
mov qword [rsp + 8], rdx
movabs rdx, 0x295a161ccc51f477
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x10], rax
xor eax, eax
mov rdx, rax
mov byte [rax + rcx], al
inc rax
and edx, 0x1f
mov dl, byte [rsp + rdx]
mov byte [rax + rbx - 1], dl
cmp rax, 0x100
jne 0x1400015f8
xor edx, edx
xor r11d, r11d
mov r8b, byte [rcx + rdx]
mov al, byte [rbx + rdx]
add eax, r8d
add eax, r11d
movzx r11d, al
movzx eax, al
mov sil, byte [rsp + rax + 0x120]
mov byte [rsp + rax + 0x120], r8b
mov byte [rcx + rdx], sil
inc rdx
cmp rdx, 0x100
jne 0x140001618
xor edx, edx
xor ebx, ebx
xor r11d, r11d
cmp rdx, r10
je 0x1400016a6
lea ecx, [rbx + 1]
movzx ebx, cl
movzx ecx, cl
mov al, byte [rsp + rcx + 0x120]
lea r8d, [rax + r11]
movzx r11d, r8b
movzx r8d, r8b
mov sil, byte [rsp + r8 + 0x120]
mov byte [rsp + rcx + 0x120], sil
mov byte [rsp + r8 + 0x120], al
add al, byte [rsp + rcx + 0x120]
movzx eax, al
mov al, byte [rsp + rax + 0x120]
xor byte [r9 + rdx], al
inc rdx
jmp 0x140001653
mov rax, rdx
add rsp, 0x228
pop rbx
pop rsi
ret
Function at 0x140002fd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140003004
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140002ff0
ret
Function at 0x140008570
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp qword [r8 + 0x18], 0x10
mov rbx, rdx
mov rdx, r8
mov rdi, rcx
jb 0x14000858d
mov rdx, qword [r8]
mov r11, qword [r8 + 0x10]
xor r10d, r10d
movabs r9, 0xcbf29ce484222325
test r11, r11
je 0x1400085c4
movabs rcx, 0x100000001b3
nop dword [rax]
movzx eax, byte [r10 + rdx]
inc r10
xor r9, rax
imul r9, rcx
cmp r10, r11
jb 0x1400085b0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140004c20
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400085eb
mov qword [rbx], rcx
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rdi + 8]
mov qword [rbx], rax
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140008600
Capabilities:
Hash data using fnv

Disassembly:
movzx r9d, byte [r8]
mov r10, rcx
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r9, rax
mov r11, rdx
movzx eax, byte [r8 + 1]
mov rdx, qword [r10 + 0x30]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 2]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 3]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 4]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 5]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 6]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 7]
imul r9, rcx
xor r9, rax
imul r9, rcx
and rdx, r9
mov r9, qword [r10 + 8]
shl rdx, 4
add rdx, qword [r10 + 0x18]
mov rax, qword [rdx + 8]
cmp rax, r9
je 0x1400086be
mov rcx, qword [r8]
mov rdx, qword [rdx]
cmp rcx, qword [rax + 0x10]
je 0x1400086c0
cmp rax, rdx
je 0x1400086be
mov rax, qword [rax + 8]
cmp rcx, qword [rax + 0x10]
jne 0x1400086a1
test rax, rax
cmove rax, r9
mov qword [r11], rax
mov rax, r11
ret
xor eax, eax
test rax, rax
cmove rax, r9
mov qword [r11], rax
mov rax, r11
ret
Function at 0x140011950
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 0x10
mov rbx, rdx
mov rdi, rcx
jb 0x14001196a
mov rdx, qword [rdx]
mov rcx, qword [rbx + 0x10]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
test rcx, rcx
je 0x1400119a4
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
inc r8
xor r9, rax
imul r9, r10
cmp r8, rcx
jb 0x140011990
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140004c20
mov r8, qword [rax + 8]
test r8, r8
je 0x1400119ef
cmp r8, qword [rdi + 8]
je 0x1400119ef
add r8, 0x30
lea rcx, [rdi + 0x40]
lea rdx, [rsp + 0x40]
call fcn.140008600
mov rax, qword [rsp + 0x40]
cmp rax, qword [rdi + 0x48]
je 0x1400119ef
mov rbx, qword [rsp + 0x48]
add rax, 0x18
add rsp, 0x30
pop rdi
ret
mov rcx, rbx
call fcn.140009f50
int3
Function at 0x140014980
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 0x140014a4c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140014a4c
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 0x140014a65
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 0x140014a3c
cmp byte [rax], 0x5c
jne 0x140014a36
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140014a36
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140014a22
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140014a33
test r8b, 0x10
jne 0x140014a36
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140014a36
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140018f10
test edi, edi
jne 0x1400149a0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.140016450
int3

Function at 0x140016360
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14005c198]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140016433
cmp byte [rcx + 0x71], 0
je 0x140016433
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001642f
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 0x1400163f4
sub eax, 1
je 0x1400163f8
cmp eax, 2
jne 0x14001642f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003c6c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140016426
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 0x14001642f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400163dc
xor al, al
jmp 0x1400163dc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003c6c0
add rsp, 0x60
pop rbx
ret
Function at 0x14001aec0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rdx + 0x18], 0x10
mov rbx, rcx
mov rcx, rdx
jb 0x14001aed6
mov rcx, qword [rdx]
mov r10, qword [rdx + 0x10]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x14001af14
movabs r11, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc r8
xor r9, rax
imul r9, r11
cmp r8, r10
jb 0x14001af00
mov r8, rdx
mov rcx, rbx
lea rdx, [rsp + 0x20]
call fcn.140004c20
mov r8, qword [rax + 8]
test r8, r8
je 0x14001af5a
cmp r8, qword [rbx + 8]
je 0x14001af5a
add r8, 0x30
lea rcx, [rbx + 0x40]
lea rdx, [rsp + 0x40]
call fcn.140008600
mov rax, qword [rsp + 0x40]
cmp rax, qword [rbx + 0x48]
je 0x14001af5a
mov rax, qword [rax + 0x30]
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret