joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c8cea
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.140008080
mov rcx, qword [rsp + 0x90]
call fcn.1400d2d60
sub rsp, 0x18
mov rdx, 1
lea rax, [rsp + 0x40]
push rax
xor r9, r9
mov r8, reloc.WS2_32.dll_inet_addr
mov rcx, 2
sub rsp, 0x20
call fcn.1400078d0
add rsp, 0x40
mov qword [rsp + 0x28], rax
push 0
push 0
pop rcx
pop rdx
call sub.KERNEL32.dll_GetSystemDirectoryW
mov rax, rax
push rax
pop rax
mov dword [rsp + 0x48], eax
movsxd r15, dword [rsp + 0x48]
and r15, r15
jne 0x1400c8d9b
movabs rcx, 0x140095028
push rcx
sub rsp, 0x28
call fcn.140008320
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.1400080d0
add rsp, 0x28
pop rax
push rax
call fcn.1400082e0
pop rdx
add rax, rdx
jmp 0x1400c8e6d
movsxd rax, dword [rsp + 0x48]
inc rax
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.140007b34
movsxd r15, dword [rsp + 0x48]
add r15, r15
mov rax, r15
push rax
mov rbp, qword [rsp + 0x30]
lea rax, [rbp]
mov rax, rax
push rax
pop rcx
pop rdx
call fcn.140007d20
movsxd rax, dword [rsp + 0x48]
mov rax, rax
push rax
lea rax, [rbp]
mov rax, rax
push rax
pop rcx
pop rdx
call sub.KERNEL32.dll_GetSystemDirectoryW
mov rax, rax
push rax
pop rax
mov dword [rsp + 0x48], eax
push rcx
sub rsp, 0x28
call fcn.140008320
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140008320
add rsp, 0x28
pop rcx
push rax
push 0x19
push 0xffffffffffffffff
mov rbp, qword [rsp + 0x50]
lea rax, [rbp]
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.140007e30
add rsp, 0x28
movabs rcx, 0x140095182
sub rsp, 0x28
call fcn.1400080d0
add rsp, 0x28
pop rax
push rax
call fcn.1400082e0
pop rdx
add rax, rdx
jmp 0x1400c8e6d
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140007abc
add rsp, 0x28
pop rax
add rsp, 0x58
pop r15
pop rbp
ret

Function at 0x1400d2d60
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x140097d60]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x140002bd4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14000b658]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14000b654]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140002c22
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140002c1a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140002d09
inc ebx
add rax, 0x28
jmp 0x140002bfa
mov rcx, r12
call fcn.140003401
mov rbp, rax
test rax, rax
jne 0x140002c41
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140002b70
movsxd rbx, ebx
mov rax, qword [0x14000b658]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.1400034af
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000b658]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140002ca3
mov rax, qword [0x14000b658]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002b70
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140002d03
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002d03
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 [0x14000b658]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002d03
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002b70
inc dword [0x14000b654]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140003130
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14000b6c0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000b6a0]
test rbx, rbx
je 0x14000317c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140003176
test eax, eax
jne 0x140003176
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x14000314e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140003330
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003353
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140003353
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140003354
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000338e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140003385
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140003390
inc r8d
add rax, 0x28
jmp 0x14000336c
xor eax, eax
ret
Function at 0x140003401
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140005d30]
mov r8, rcx
mov rcx, r9
call fcn.140003330
test eax, eax
je 0x14000342d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140003354
xor eax, eax
add rsp, 0x28
ret
Function at 0x140036060
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x14012dc00]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, r8
mov rdi, rcx
mov qword [rbp - 0x41], rcx
xor esi, esi
mov dword [rbp - 0x45], esi
lea rcx, [rbp + 0x17]
call fcn.140072010
nop
lea rax, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0xf
cmova rax, qword [rbp + 0x17]
mov qword [rbp - 0x11], rax
mov eax, dword [rbp + 0x27]
mov dword [rbp - 0x19], eax
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400360c0
mov rax, qword [rbx]
mov qword [rbp - 0x21], rax
mov eax, dword [rbx + 0x10]
mov dword [rbp - 0x29], eax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rbp - 0x29]
xor edx, edx
lea rcx, [rbp - 0x19]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x140036229
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], rsi
mov qword [rbp + 7], rsi
mov qword [rbp + send], 0xf
mov byte [rbp - 9], 0
mov ebx, dword [rbp - 0x39]
test rbx, rbx
jne 0x14003612c
mov qword [rbp + 7], rbx
mov byte [rbp + rbx - 9], bl
jmp 0x140036160
lea rcx, [rbp - 9]
cmp rbx, 0xf
ja 0x14003614b
mov qword [rbp + 7], rbx
mov r8, rbx
xor edx, edx
call fcn.1400bf760
mov byte [rbp + rbx - 9], 0
jmp 0x140036160
mov byte [rsp + 0x20], 0
mov r9, rbx
movzx r8d, byte [rbp - 0x49]
mov rdx, rbx
call fcn.140045b50
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 0xf
cmova rcx, qword [rbp - 9]
mov r8d, dword [rbp - 0x39]
mov rdx, qword [rbp - 0x31]
call fcn.1400bf0c0
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_LocalFree]
movups xmm0, xmmword [rbp - 9]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 7]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp + 7], rsi
mov qword [rbp + send], 0xf
mov byte [rbp - 9], 0
mov byte [rdi + 0x20], 1
mov dword [rbp - 0x45], 1
mov qword [rbp + 7], rsi
mov qword [rbp + send], 0xf
mov byte [rbp - 9], 0
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x1400361f6
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400361f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036266
call fcn.1400ac9a0
movdqa xmm0, xmmword [0x140115010]
movdqu xmmword [rbp + 0x27], xmm0
mov byte [rbp + 0x17], 0
mov rax, rdi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400ac980
mov rbx, qword [rsp + 0x108]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
mov byte [rdi + 0x20], 0
mov dword [rbp - 0x45], 1
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x1400361f6
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400361f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400361f1
call fcn.14008fb78
int3
Function at 0x140042420
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], send
mov byte [rcx], al
mov dword [rsp + 0x20], 1
lea rcx, [r8 + 2]
movabs rbp, 0xaaaaaaaaaaaaaaab
mov rax, rbp
mul rcx
shr rdx, 1
shl rdx, 2
xor r8d, r8d
mov rcx, rdi
call fcn.14003fda0
mov r10, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140042497
mov r10, qword [rdi]
mov rcx, r10
mov rax, rbp
mul rsi
mov r8, rdx
shr r8, 1
mov r9, r8
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
je 0x140042511
movzx eax, byte [rbx]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [rcx], al
movsx edx, byte [rbx]
and edx, 3
shl edx, 4
movzx eax, byte [rbx + 1]
shr eax, 4
add edx, eax
movzx eax, byte [rdx + r11]
mov byte [rcx + 1], al
movsx edx, byte [rbx + 1]
and edx, 0xf
movzx eax, byte [rbx + 2]
shr eax, 6
lea eax, [rax + rdx*4]
movzx eax, byte [rax + r11]
mov byte [rcx + 2], al
movsx rax, byte [rbx + 2]
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 3], al
add rcx, 4
add rbx, 3
sub r9, 1
jne 0x1400424b2
lea rax, [r8 + r8*2]
sub rsi, rax
sub rsi, 1
je 0x140042562
cmp rsi, 1
jne 0x14004258c
movzx eax, byte [rbx]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [rcx], al
movsx edx, byte [rbx]
and edx, 3
shl edx, 4
movzx eax, byte [rbx + 1]
shr eax, 4
add edx, eax
movzx eax, byte [rdx + r11]
mov byte [rcx + 1], al
movsx rax, byte [rbx + 1]
and eax, 0xf
movzx eax, byte [r11 + rax*4]
mov byte [rcx + 2], al
mov byte [rcx + 3], 0x3d
jmp 0x140042588
movzx eax, byte [rbx]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [rcx], al
movsx rax, byte [rbx]
and eax, 3
add rax, rax
movzx eax, byte [r11 + rax*8]
mov byte [rcx + 1], al
mov word [rcx + 2], 0x3d3d
add rcx, 4
sub rcx, r10
xor r8d, r8d
mov rdx, rcx
mov rcx, rdi
call fcn.14003fda0
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400434e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r15
sub rsp, 0x20
mov r15, qword [rdx + 0x18]
mov rdi, rdx
mov rsi, qword [rdx + 0x10]
mov r9, rcx
mov r8, rdx
cmp r15, 0xf
jbe 0x14004350c
mov r8, qword [rdx]
xor ebp, ebp
movabs rdx, 0xcbf29ce484222325
mov ecx, ebp
test rsi, rsi
je 0x140043544
movabs r10, 0x100000001b3
nop dword [rax]
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, r10
cmp rcx, rsi
jb 0x140043530
mov rcx, qword [r9 + 0x30]
mov rax, qword [r9 + 0x18]
and rcx, rdx
add rcx, rcx
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [r9 + 8]
je 0x1400435b2
mov qword [rsp + 0x40], r14
mov r14, qword [rax + rcx*8]
nop word [rax + rax]
cmp qword [rbx + 0x28], 0xf
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
jbe 0x140043582
mov rdx, qword [rdx]
mov rcx, rdi
cmp r15, 0xf
jbe 0x14004358e
mov rcx, qword [rdi]
cmp rsi, rax
jne 0x14004359f
mov r8, rsi
call fcn.1400bfb00
test eax, eax
je 0x1400435aa
cmp rbx, r14
je 0x1400435ad
mov rbx, qword [rbx + 8]
jmp 0x140043570
mov rbp, rbx
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
test rbp, rbp
mov rbp, qword [rsp + 0x50]
setne al
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x140043620
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], send
mov byte [rcx], r12b
mov dword [rsp + 0x20], 1
mov rax, qword [rdx + 0x10]
shr rax, 2
lea rdx, [rax + rax*2]
xor r8d, r8d
call fcn.14003fda0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x140043686
mov rbx, qword [rbx]
mov r15, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140043693
mov r15, qword [rsi]
mov rdi, r15
mov r9d, r12d
test r8, r8
je 0x1400437a0
mov rdx, r12
lea r13, [0x140112790]
mov eax, dword [rsp + 0x78]
movzx r14d, byte [rsp + 0x7b]
movzx r11d, byte [rsp + 0x7a]
movzx ebp, byte [rsp + 0x79]
dec r8
movzx ecx, byte [rbx]
cmp cl, 0x3d
je 0x14004374a
movzx r10d, byte [rcx + r13]
cmp r10b, 0xff
je 0x14004374a
inc rbx
mov byte [rsp + rdx + 0x78], r10b
inc r9d
inc rdx
mov eax, dword [rsp + 0x78]
movzx r14d, byte [rsp + 0x7b]
movzx r11d, byte [rsp + 0x7a]
movzx ebp, byte [rsp + 0x79]
cmp rdx, 4
jne 0x140043741
movzx edx, bpl
shr dl, 4
and dl, 3
movzx ecx, al
shl cl, 2
add dl, cl
mov byte [rdi], dl
movzx edx, r11b
shr dl, 2
and dl, 0xf
movzx ecx, bpl
shl cl, 4
add dl, cl
mov byte [rdi + 1], dl
movzx ecx, r11b
shl cl, 6
add cl, r14b
mov byte [rdi + 2], cl
add rdi, 3
mov r9d, r12d
mov rdx, r12
test r8, r8
jne 0x1400436c1
test r9d, r9d
je 0x1400437a0
movzx ecx, bpl
shr cl, 4
and cl, 3
shl al, 2
add cl, al
mov byte [rsp + 0x78], cl
movzx eax, r11b
shr al, 2
and al, 0xf
shl bpl, 4
add al, bpl
mov byte [rsp + 0x79], al
shl r11b, 6
add r11b, r14b
mov byte [rsp + 0x7a], r11b
lea eax, [r9 - 1]
movsxd rbx, eax
test eax, eax
jle 0x1400437a0
mov r8, rbx
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.1400bf0c0
add rdi, rbx
sub rdi, r15
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.14003fda0
mov rax, rsi
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140046340
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140046374
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140046360
ret
Function at 0x1400511d0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x1400511f4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140051282
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140051250
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140051250
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1400bf0c0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14005126d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140051275
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140051211
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140051360
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140051299
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14005129b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400512cd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1400bf0c0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14005135d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140051308
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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
cmp rsi, 0xfff
jbe 0x14005133e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14008f384
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14005135d
cmp rsi, rax
ja 0x140051311
test rsi, rsi
je 0x14005135d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14008f384
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x140053650
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rdi, rdx
mov r15, rcx
mov rsi, qword [rdx + 0x10]
mov r12, qword [rdx + 0x18]
cmp r12, 0xf
jbe 0x14005367d
mov rdx, qword [rdx]
movabs rbp, 0xcbf29ce484222325
xor ecx, ecx
test rsi, rsi
je 0x1400536b3
movabs r8, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
xor rbp, rax
imul rbp, r8
inc rcx
cmp rcx, rsi
jb 0x1400536a0
mov rcx, qword [r15 + 0x30]
and rcx, rbp
add rcx, rcx
mov rax, qword [r15 + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [r15 + 8]
je 0x14005370a
mov r14, qword [rax + rcx*8]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x1400536e2
mov rdx, qword [rdx]
mov rcx, rdi
cmp r12, 0xf
jbe 0x1400536ee
mov rcx, qword [rdi]
cmp rsi, rax
jne 0x1400536ff
mov r8, rsi
call fcn.1400bfb00
test eax, eax
je 0x14005370c
cmp rbx, r14
je 0x14005370a
mov rbx, qword [rbx + 8]
jmp 0x1400536d0
xor ebx, ebx
test rbx, rbx
je 0x1400537d0
mov rcx, qword [r15 + 0x18]
mov rax, qword [r15 + 0x30]
and rax, rbp
add rax, rax
lea rdx, [rcx + rax*8]
lea r8, [rcx + rax*8]
mov rax, qword [rdx]
cmp qword [r8 + 8], rbx
jne 0x140053750
cmp rax, rbx
jne 0x140053746
mov rax, qword [r15 + 8]
mov qword [rdx], rax
mov qword [r8 + 8], rax
jmp 0x14005375b
mov rax, qword [rbx + 8]
mov qword [r8 + 8], rax
jmp 0x14005375b
cmp rax, rbx
jne 0x14005375b
mov rax, qword [rbx]
mov qword [rdx], rax
mov rcx, qword [rbx]
dec qword [r15 + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rdx, qword [rbx + 0x28]
cmp rdx, 0xf
jbe 0x1400537a8
inc rdx
mov rcx, qword [rbx + 0x10]
cmp rdx, 0x1000
jb 0x1400537a3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400537e9
mov rcx, r8
call fcn.1400ac9a0
mov qword [rbx + 0x20], 0
mov qword [rbx + 0x28], send
mov byte [rbx + 0x10], 0
mov edx, 0x30
mov rcx, rbx
call fcn.1400ac9a0
mov eax, 1
jmp 0x1400537d2
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.14008fb78
int3
Function at 0x1400552d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, rcx
mov qword [rsp + 0x20], rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x140055521
lea rax, [rdx - 1]
or rax, rbx
bsr rcx, rax
inc ecx
shl rbx, cl
mov rdi, qword [rbp + 8]
mov qword [rsp + 0x28], rdi
lea r12, [rbp + 0x18]
lea rdx, [rbx + rbx]
mov r8, rdi
mov rcx, r12
call fcn.140047c00
lea rax, [rbx - 1]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rbx
mov qword [rsp + 0x30], rbp
mov rsi, qword [rbp + 8]
mov rsi, qword [rsi]
cmp rsi, rdi
je 0x1400554da
mov rdi, rsi
movabs rax, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
mov rsi, qword [rsi]
mov r8, qword [rdi + 0x20]
lea r9, [rdi + 0x10]
mov r15, qword [rdi + 0x28]
cmp r15, 0xf
jbe 0x14005538a
mov r9, qword [rdi + 0x10]
mov rdx, rax
xor ecx, ecx
mov r10, r8
mov r11, r15
test r8, r8
je 0x1400553b4
nop word [rax + rax]
movzx eax, byte [r9 + rcx]
xor rdx, rax
imul rdx, rbx
inc rcx
cmp rcx, r8
jb 0x1400553a0
mov r13, qword [rbp + 0x30]
and r13, rdx
shl r13, 4
add r13, qword [r12]
mov r12, qword [r13]
cmp r12, qword [rsp + 0x28]
jne 0x1400553db
mov qword [r13], rdi
mov qword [r13 + 8], rdi
jmp 0x1400554be
mov rbx, qword [r13 + 8]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x1400553f1
mov rdx, qword [rdx]
lea rcx, [rdi + 0x10]
mov rbp, r8
cmp r15, 0xf
jbe 0x140055408
mov rcx, qword [rdi + 0x10]
mov rbp, r10
mov r15, r11
cmp r8, rax
jne 0x140055445
call fcn.1400bfb00
test eax, eax
jne 0x140055445
mov r8, qword [rbx]
cmp r8, rdi
je 0x14005543f
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rdi
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r13 + 8], rdi
jmp 0x1400554af
cmp r12, rbx
je 0x14005548a
nop word [rax + rax]
mov rbx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140055466
mov rdx, qword [rdx]
lea rcx, [rdi + 0x10]
cmp r15, 0xf
jbe 0x140055474
mov rcx, qword [rdi + 0x10]
cmp rbp, rax
jne 0x140055485
mov r8, rbp
call fcn.1400bfb00
test eax, eax
je 0x1400554fb
cmp r12, rbx
jne 0x140055450
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], rbx
mov rax, qword [rbx + 8]
mov qword [rax], rdi
mov qword [rbx + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r13], rdi
mov rbp, qword [rsp + 0x20]
movabs rbx, 0x100000001b3
mov rdi, rsi
cmp rsi, qword [rsp + 0x28]
lea r12, [rbp + 0x18]
movabs rax, 0xcbf29ce484222325
jne 0x140055371
mov qword [rsp + 0x30], 0
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8, qword [rbx]
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rdi
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
jmp 0x1400554af
lea rcx, str.invalid_hash_bucket_count
call fcn.1400ba4d0
int3
Function at 0x140057190
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 0x140057255
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140057255
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 0x14005726e
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x140057245
cmp byte [rcx], 0x5c
jne 0x14005723e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x14005723e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14005722c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x14005723b
test r8b, 0x10
jne 0x14005723e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x14005723e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.14004bcc0
test edi, edi
jne 0x1400571b0
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.14004bcb0
int3