joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003bc10
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14003bc4f
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140029d90]
mov qword [rbp - 0x28], rax
lea rax, [0x1413d08e8]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, [0x1413d0920]
lea rcx, [rbp - 0x60]
call fcn.1400511d0
ud2

Function at 0x14003daa0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14003dbaf
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14003dad8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14003db72
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14003db91
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003db2e
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14003db4b
jmp 0x14003db40
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14003db46
cmp eax, 0x6d
jne 0x14003db62
mov byte [rsi + 1], 0
jmp 0x14003db56
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14003db58
mov r8d, 0x10
mov rcx, rbx
call fcn.140051040
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14003dae5
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140051040
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14003dae5
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140052410
ud2

Function at 0x14004745c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140047258
Function at 0x14004a51c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14004a54c
xor eax, eax
jmp 0x14004a60f
mov rbp, rbx
cmp word [rax], si
je 0x14004a571
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004a558
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004a554
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14004a43c
movsxd r14, eax
test eax, eax
jne 0x14004a5af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004a545
mov rcx, r14
call fcn.14004b3f8
mov rdi, rax
test rax, rax
jne 0x14004a5c8
xor ecx, ecx
call fcn.140048a9c
jmp 0x14004a5a4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14004a43c
test eax, eax
jne 0x14004a5f9
mov rcx, rdi
call fcn.140048a9c
jmp 0x14004a603
xor ecx, ecx
call fcn.140048a9c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14004db00
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14004950c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004db8a
cmp byte [rbp - 0x21], r15b
je 0x14004db85
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14004dbc0
call fcn.14004bc08
test eax, eax
jne 0x14004dbac
cmp byte [rbp - 0x21], r15b
je 0x14004dba4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004dbc0
cmp byte [rbp - 0x21], r15b
je 0x14004dbbd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140048aec
test eax, eax
jne 0x14004dc60
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14004950c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004dbff
cmp byte [rbp - 0x21], r15b
je 0x14004dc34
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004dc34
call fcn.14004bc08
test eax, eax
jne 0x14004dc20
cmp byte [rbp - 0x21], r15b
je 0x14004dc19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004dc34
cmp byte [rbp - 0x21], r15b
je 0x14004dc31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140048aec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004dc60
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004dc63
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004dc71
mov rcx, rdi
call fcn.140048a9c
cmp byte [rbp + 0x3f], r15b
je 0x14004dc80
mov rcx, qword [rbp + 0x27]
call fcn.140048a9c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x443e00
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x443f67
push rbp
mov rbp, rsp
sub rsp, 0x18
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x443e12
cmp edx, ecx
jne 0x443f55
nop word [rax + rax]
test rsi, rsi
jne 0x443f55
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x443e74
nop
call fcn.00462ae0
xorps xmm15, xmm15
mov r14, qword [0x005c8158]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00443d20
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1b
add edx, ebx
mov esi, edx
and edx, 0xffffffe0
sub ebx, edx
test ebx, ebx
jl 0x443f50
mov rdx, qword [0x00575078]
sar esi, 5
mov rax, rcx
mov ecx, ebx
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and edi, r8d
cmp rdx, rsi
jbe 0x443f45
mov rcx, qword [0x00575070]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], edi
mov rcx, qword [0x00575bb0]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x00575bb0], rax
nop
mov edx, 1
lea rsi, [0x00575bb8]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1228]
shr rdx, 0x3d
test dl, dl
jne 0x443f33
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1228], rdx
add rsp, 0x18
pop rbp
ret
lea rax, [0x004cdf3c]
mov ebx, 0x28
nop
call fcn.00435260
mov rax, rsi
mov rcx, rdx
call fcn.00461280
call fcn.00433900
lea rax, [0x004cd090]
mov ebx, 0x23
call fcn.00435260
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045f000
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00443e00
Function at 0x4565a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45664f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x004566a0]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045eec0
xorps xmm15, xmm15
mov r14, qword [0x005c8158]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045f000
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.004565a0
Function at 0x460e40
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x005c7f2d], 0
je 0x460e76
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005c84c0]
aesenc xmm0, xmmword [0x005c84d0]
aesenc xmm0, xmmword [0x005c84e0]
movq rax, xmm0
ret
jmp fcn.00409620

Function at 0x462b40
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x462b74
mov rcx, 0x28
jmp 0x462b7f
shl rcx, 3
add rcx, 0x1480
mov qword [0x005c8158], rcx
pop rbp
ret
Function at 0x1400012f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, r9
mov r15, r8
mov rsi, rdx
mov r13, rcx
mov r14, qword [r8 + 0x10]
mov r10, qword [r8 + 0x18]
cmp r10, 0x10
jb 0x140001336
mov r9, qword [r8]
jmp 0x140001339
mov r9, r8
movabs rcx, 0xcbf29ce484222325
xor edx, edx
test r14, r14
je 0x140001374
movabs r8, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx + r9]
xor rcx, rax
imul rcx, r8
inc rdx
cmp rdx, r14
jb 0x140001360
mov rax, rcx
shr rax, 0x20
xor rcx, rax
mov rdx, qword [r13 + 0x28]
mov r12, rdx
and r12, rcx
cmp qword [r13 + 0x30], r12
ja 0x14000139b
shr rdx, 1
or rax, 0xffffffffffffffff
sub rax, rdx
add r12, rax
mov rbx, qword [r13]
mov r9, qword [r13 + 0x10]
mov r8, r12
shl r8, 4
mov qword [rsp + 0x80], r8
mov rax, qword [r9 + r8]
cmp rbx, rax
je 0x140001487
mov rbx, qword [r9 + r8 + 8]
mov rbx, qword [rbx]
cmp rbx, rax
je 0x140001487
add r12, r12
mov rbx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
mov rsi, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400013e9
mov rdx, qword [rdx]
cmp r10, 0x10
jb 0x1400013f4
mov rcx, qword [r15]
jmp 0x1400013f7
mov rcx, r15
mov r8, rsi
cmp r14, rsi
cmovb r8, r14
test r8, r8
jne 0x14000140a
xor eax, eax
jmp 0x140001417
call sub.MSVCR120.dll_memcmp
mov r9, qword [r13 + 0x10]
mov r10, qword [r15 + 0x18]
cdqe
test rax, rax
jne 0x140001430
cmp r14, rsi
jae 0x140001428
or eax, 0xffffffff
jmp 0x140001430
xor eax, eax
cmp r14, rsi
setne al
test eax, eax
je 0x14000143c
cmp rbx, qword [r9 + r12*8]
jne 0x1400013d3
jmp 0x14000147a
lea rcx, [rbx + 0x10]
mov rdx, r15
call fcn.1400044e0
test eax, eax
je 0x140001459
mov rbx, qword [rbx]
mov rdi, qword [rsp + 0x88]
jmp 0x14000147a
mov rdx, qword [rsp + 0x88]
mov rcx, r13
call fcn.140002e50
mov rax, qword [rsp + 0x78]
mov qword [rax], rbx
mov byte [rax + 8], 0
jmp 0x140001518
mov rsi, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
mov rax, qword [rdi]
cmp rbx, rax
je 0x1400014bc
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rdx, qword [r13 + 0x10]
add rdx, r8
mov rax, qword [rdx]
cmp rax, qword [r13]
jne 0x1400014da
mov qword [rdx], rdi
mov rax, qword [r13 + 0x10]
mov qword [rax + r8 + 8], rdi
jmp 0x140001506
cmp rax, rbx
jne 0x1400014e4
mov qword [rdx], rdi
jmp 0x140001506
mov rax, qword [rdx + 8]
mov rcx, qword [rax]
mov qword [rdx + 8], rcx
cmp rcx, rdi
je 0x140001506
mov rdx, qword [r13 + 0x10]
mov rax, qword [rdx + r8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r8 + 8], rcx
mov rcx, r13
call fcn.140002a90
mov qword [rsi], rdi
mov byte [rsi + 8], 1
mov rax, rsi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004ad0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push rbx
mov eax, 0x20030
call fcn.1400057f0
sub rsp, rax
lea rcx, [rsp + 0x10032]
xor ebx, ebx
xor edx, edx
mov r8d, 0xfffc
mov word [rsp + 0x10030], bx
call sub.MSVCR120.dll_memset
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0xfffc
mov word [rsp + 0x30], bx
call sub.MSVCR120.dll_memset
call sub.java_launcher.dll_wchar_t_const____ptr64___cdecl_getSetupDir_void_
lea rdx, [rsp + 0x10030]
lea rcx, str.Path
mov r8d, 0x7fff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jle 0x140004b6e
call sub.java_launcher.dll_wchar_t____ptr64___cdecl_getArch_void_
lea rcx, [rsp + 0x10030]
lea r8, str._s_bin_s__s
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
mov r9, rbx
mov edx, 0x7fff
mov qword [rsp + 0x20], rax
call fcn.140005560
jmp 0x140004b91
call sub.java_launcher.dll_wchar_t____ptr64___cdecl_getArch_void_
lea r8, str._s_bin_s
lea rcx, [rsp + 0x30]
mov r9, rbx
mov edx, 0x7fff
mov qword [rsp + 0x20], rax
call fcn.140005560
lea rdx, [rsp + 0x30]
lea rcx, str.Path
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x20030
pop rbx
ret
Function at 0x180012b40
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 0x180012b68
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 0x180012b8e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180012b90
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180012be9
test ecx, ecx
jle 0x180012bc9
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 0x180012be9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180012be9
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 0x180012c10
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 0x180012c32
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180012c48
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 0x180012c64
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180012c66
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180012ca2
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 0x180012d3e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180012cdd
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 0x180012d1e
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 0x180012d3e
cmp rbx, rax
ja 0x180012cf0
test rbx, rbx
je 0x180012d3e
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
Function at 0x180013140
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180170038]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18001316d
xor eax, eax
jmp 0x1800132d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800131a7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1800131a7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1800132d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1800132cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800131ea
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180013215
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1800132d1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180013284
sub eax, 1
je 0x180013284
cmp eax, 2
jne 0x1800132cc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1800132d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1800132b2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1800132cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1800132d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18011eb40
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1800144f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180170038]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1800145c3
cmp byte [rcx + 0x71], 0
je 0x1800145c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1800145bf
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 0x180014584
sub eax, 1
je 0x180014588
cmp eax, 2
jne 0x1800145bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18011eb40
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1800145b6
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 0x1800145bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18001456c
xor al, al
jmp 0x18001456c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18011eb40
add rsp, 0x60
pop rbx
ret
Function at 0x1800417b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1800417e4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1800417d0
ret
Function at 0x18004f910
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 0x18004f9dc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x18004f9dc
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 0x18004f9f5
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 0x18004f9cc
cmp byte [rax], 0x5c
jne 0x18004f9c6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x18004f9c6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x18004f9b2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x18004f9c3
test r8b, 0x10
jne 0x18004f9c6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x18004f9c6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.180048b40
test edi, edi
jne 0x18004f930
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.180048b30
int3

Function at 0x180058b10
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 0x180058b6d
lea rbx, [0x18014f130]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180058b54
cmp r10, 2
jb 0x180058b54
cmp byte [r9], r8b
jne 0x180058b54
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 0x180058b30
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180058baf
lea rbx, [0x18014f130]
cmp r8b, 0x23
jne 0x180058b93
cmp byte [r9], r8b
jne 0x180058b93
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 0x180058b80
mov rbx, qword [rsp + 8]
not eax
ret