joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400808b0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140080929
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140080929
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
cmp r9w, r11w
jae 0x140080929
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14008091d
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14008093b
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14008090b
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14008092b

Function at 0x14008e9c8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14008e9ff
call fcn.1400918e0
mov dword [rax], 0x16
call fcn.14009fcc4
xor eax, eax
jmp 0x14008ea8d
mov rdx, r9
mov rcx, r8
call fcn.14008eab0
mov rbx, rax
test rax, rax
je 0x14008ea8a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14008eb20]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14008ea77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140091920
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14008ea5e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14008ea6d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14004ae10
jmp 0x14008ea8a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14008ea87
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14008ebf4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14008ed3c
Function at 0x14008ed3c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14008ed3c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14008edab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008edab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008edab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008edab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008edab
cmp dword [rcx + 0x84], 0xe
jbe 0x14008edab
cmp dword [rcx + 0xf8], 0
je 0x14008edab
mov ecx, ebx
call fcn.14008ec74
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14008eed0
nop
cmp dword [rbp + 0x20], 0
je 0x14008edf9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14008ed08
int3
Function at 0x140092e6c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400e94a0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140092ec3
cmp word [rdx], r13w
jne 0x140092ec3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140092ec8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140092fed
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14009300e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140092f01
mov rdx, r9
mov word [rbx], cx
jmp 0x140092f28
cmp r9, r8
jae 0x140092f38
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140092ee2
jmp 0x140092fed
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140092fe2
cmp dword [rsp + 0x80], esi
je 0x140092fe2
lea r8, [0x1400e94a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140092fba
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140092f8a
mov word [rbx], r13w
jmp 0x140092fea
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140092f97
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140092fea
cmp word [rsp + 0x70], r13w
jne 0x140092fc7
cmp rbx, r14
je 0x140092f84
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400a1614
cmp word [rsp + 0x70], r13w
je 0x140092fed
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400e94a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140092fe7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140092fed
Function at 0x140099d00
Capabilities:
Parse pe header

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

Function at 0x1400a4208
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14009d924
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400a42a9
cmp ebx, dword [rsp + 0x30]
je 0x1400a42a2
test esi, esi
je 0x1400a42a2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a427d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a428a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a4267
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a428e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a42ab
mov eax, 1
jmp 0x1400a42ab
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a50b4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400a513b
mov rsi, rbx
cmp word [rax], bp
je 0x1400a50fa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a50e4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a50e0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004adb0
mov rdi, rax
test rax, rax
je 0x1400a5128
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400afc90
mov rbp, rdi
xor ecx, ecx
call fcn.14004ae10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a763c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400da040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400a7686
call fcn.140091900
mov dword [rax], 0xf
call fcn.1400918e0
mov dword [rax], 0xd
call fcn.14009fcc4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140081090
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400a7691
lea eax, [rbx + 1]
jmp 0x1400a7673
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400a7671
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400a7673

Function at 0x1400a7c5c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400a7c72
mov al, 1
jmp 0x1400a7cd2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400a7c83
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400a7cd0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140091a2c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a7cd0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400a7cd0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a7cd0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400a7cd2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140013270
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14012a040]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov ecx, 0x208
call fcn.1401003f8
mov rsi, rax
mov rcx, rax
sub rcx, rdi
nop dword [rax]
movzx eax, word [rdi]
mov word [rcx + rdi], ax
lea rdi, [rdi + 2]
test ax, ax
jne 0x1400132c0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov dword [rsp + 0x20], 2
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0x18
ja 0x140013328
mov eax, 0x1000021
bt rax, rdi
jb 0x1400133b8
cmp rdi, 0xffffffffffffffff
je 0x1400133b8
cmp rdi, 0x12b
je 0x1400133b8
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400133ae
lea rax, [rsp + 0x5c]
mov r8, rsi
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140013374
add rax, 2
test ecx, ecx
jne 0x140013360
test edx, edx
jne 0x14001339c
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x14001338f
mov eax, dword [rsp + 0x38]
mov dword [rdx], eax
add qword [rbx + 8], 4
jmp 0x14001339c
lea r8, [rsp + 0x38]
mov rcx, rbx
call fcn.140020a40
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140013351
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140100360
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400133f0
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x270
mov rax, qword [0x14012a040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov ecx, 0x208
call fcn.1401003f8
mov rcx, rax
mov rsi, rax
sub rcx, rbx
nop word [rax + rax]
movzx edx, word [rbx]
mov word [rcx + rbx], dx
lea rbx, [rbx + 2]
test dx, dx
jne 0x140013430
xor edx, edx
mov qword [rsp + 0x280], rdi
mov r8d, 0x234
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x20], 0x238
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0x18
ja 0x140013487
mov eax, 0x1000021
bt rax, rbx
jb 0x14001352b
cmp rbx, 0xffffffffffffffff
je 0x14001352b
cmp rbx, 0x12b
je 0x14001352b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140013516
mov edi, 1
nop word [rax + rax]
lea rax, [rsp + 0x4c]
mov r8, rsi
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400134e4
add rax, 2
test ecx, ecx
jne 0x1400134d0
test edx, edx
jne 0x140013504
mov r8d, dword [rsp + 0x28]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140013523
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400134c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140013537
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140013537
test ebx, ebx
mov edi, 1
cmove ebx, edi
mov eax, ebx
mov rdi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140100360
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rsi
ret
Function at 0x14001cf90
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14012a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, 0xffff
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x14001cfc1
xor eax, eax
jmp 0x14001d10b
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x14001cffe
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x14001cffe
lea ecx, [r10 - 1]
movzx eax, di
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], di
jmp 0x14001d10b
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x14001d100
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14001d045
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14001d053
movzx ecx, di
jmp 0x14001d0a7
lea rax, [rsp + 0x40]
mov word [rsp + 0x50], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x52]
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_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001d0c0
sub eax, 1
je 0x14001d0c0
cmp eax, 2
jne 0x14001d100
movzx ecx, word [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
cmove di, si
movzx eax, di
jmp 0x14001d103
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x14001d0ee
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x14001d100
lea rax, [rsp + 0x50]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x48], rax
cmovne si, di
movzx eax, si
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140100360
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001ddb0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14012a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001de85
cmp byte [rcx + 0x72], 0
je 0x14001de85
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x14001de81
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_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001de46
sub eax, 1
je 0x14001de4a
cmp eax, 2
jne 0x14001de81
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140100360
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001de78
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 0x14001de81
cmp byte [rbx + 0x72], 0
sete al
jmp 0x14001de2e
xor al, al
jmp 0x14001de2e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140100360
add rsp, 0x60
pop rbx
ret

Function at 0x140022490
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400224c4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400224b0
ret
Function at 0x1400275d0
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 0x140027695
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140027695
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 0x1400276ae
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 0x140027685
cmp byte [rcx], 0x5c
jne 0x14002767e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x14002767e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14002766c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x14002767b
test r8b, 0x10
jne 0x14002767e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x14002767e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140023580
test edi, edi
jne 0x1400275f0
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.140023570
int3
Function at 0x1400329e0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x20
mov rbp, rdx
mov ebx, ecx
call fcn.1400f2130
test eax, eax
jne 0x140032be5
cmp byte [0x14012a274], al
mov qword [rsp + 0x38], rdi
jne 0x140032a0d
xor edi, edi
jmp 0x140032a29
mov ecx, 5
call qword [0x14012a2e0]
mov rdi, rax
test rax, rax
je 0x140032a29
mov rcx, rax
call qword [0x14012a2f0]
test ebx, ebx
jle 0x140032bc8
test rbp, rbp
je 0x140032bc8
cmp dword [0x14012ec20], 0
mov qword [rsp + 0x30], rsi
jne 0x140032b4f
call fcn.1400f2130
test eax, eax
je 0x140032a65
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x14012ec20], xmm0
jmp 0x140032ac9
cmp byte [0x14012a274], 0
jne 0x140032a77
mov rsi, qword [0x14012e968]
jmp 0x140032ab6
mov ecx, 2
mov qword [rsp + 0x40], r14
call qword [0x14012a2e0]
mov r14, rax
test rax, rax
je 0x140032aaa
mov rcx, rax
call qword [0x14012a2f0]
mov rsi, qword [0x14012e968]
mov rcx, r14
call qword [0x14012a300]
jmp 0x140032ab1
mov rsi, qword [0x14012e968]
mov r14, qword [rsp + 0x40]
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x14012ec20], xmm0
test rsi, rsi
jne 0x140032aeb
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x14012ec30], xmm0
mov qword [0x14012ec50], rax
movups xmmword [0x14012ec40], xmm0
mov dword [0x14012ec58], eax
jmp 0x140032b2f
mov eax, dword [0x14012a420]
test eax, eax
je 0x140032b1d
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [0x14012ec30], xmm0
mov dword [0x14012ec30], eax
movups xmmword [0x14012ec40], xmm0
mov qword [0x14012ec50], rcx
mov dword [0x14012ec58], ecx
jmp 0x140032b2f
lea r8, [0x14012ec30]
mov edx, 0x2c
mov rcx, rsi
call qword [rsi + 0x68]
mov eax, dword [0x14012ec50]
xor cl, cl
mov byte [0x14012eca0], cl
mov dword [0x14012ec5c], eax
mov dword [0x14012ec50], 0
jmp 0x140032b56
movzx ecx, byte [0x14012eca0]
movzx eax, cl
lea rsi, [0x14012ec60]
cmp ebx, eax
jle 0x140032ba5
test cl, cl
je 0x140032b83
movzx r8d, cl
mov rdx, rsi
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
movzx ecx, byte [0x14012eca0]
sub ebx, ecx
add rbp, rcx
inc dword [0x14012ec50]
lea rdx, [0x14012ec20]
mov rcx, rsi
call fcn.140032630
mov cl, 0x40
mov byte [0x14012eca0], cl
cmp ebx, 0x40
jg 0x140032b64
movzx eax, cl
mov rcx, rbp
sub eax, ebx
movsxd r8, ebx
movsxd rdx, eax
add rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
sub byte [0x14012eca0], bl
mov rsi, qword [rsp + 0x30]
jmp 0x140032bd2
mov dword [0x14012ec20], 0
test rdi, rdi
je 0x140032be0
mov rcx, rdi
call qword [0x14012a300]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
Function at 0x14004d700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp byte [rcx + 0x11], 0
mov r9, rcx
jne 0x14004d757
movzx eax, byte [rcx + 0x10]
test al, al
je 0x14004d757
cmp al, 1
jne 0x14004d719
test edx, edx
jne 0x14004d757
mov r10, qword [rcx + 8]
test r8, r8
je 0x14004d732
mov rax, qword [r10 + 0x18]
mov rcx, qword [rax + 0x50]
mov eax, dword [rcx + 0x28]
bswap eax
mov dword [r8], eax
test edx, edx
je 0x14004d754
mov rax, qword [r9]
mov rcx, qword [r10]
mov edx, dword [rax + 0x2f0]
cmp edx, dword [rcx + 0x80]
jle 0x14004d754
cmp byte [rcx + 0xa], 0
jne fcn.140045590
xor eax, eax
ret
jmp fcn.14004d340
Function at 0x140061440
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx + 8]
test rax, rax
je 0x14006146f
lea r8d, [rdx + 1]
nop dword [rax]
mov ecx, dword [rax + 0xc8]
mov edx, r8d
xor edx, ecx
and edx, 3
xor edx, ecx
mov dword [rax + 0xc8], edx
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140061450
ret
Function at 0x14006de80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push r14
push r15
sub rsp, 0x30
mov r14, rcx
mov qword [rcx], 0
mov ecx, 0x28
mov rbp, r8
mov r15, rdx
call fcn.14002f320
mov rbx, rax
test rax, rax
jne 0x14006dec4
mov eax, 7
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
cmp byte [0x14012a274], 0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
je 0x14006df29
mov rax, qword [0x14012a400]
test rax, rax
je 0x14006deee
mov ecx, 0xc8
call rax
test eax, eax
jne 0x14006df29
lea rsi, [rbx + 8]
mov qword [rbx + 0x10], r15
lea rdi, [rbx + 0x10]
mov qword [rsp + 0x28], rsi
mov r9, rbx
mov dword [rsp + 0x20], 0
lea r8, [0x140032bf0]
mov qword [rbx + 0x18], rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
jne 0x14006df41
jmp 0x14006df31
lea rdi, [rbx + 0x10]
lea rsi, [rbx + 8]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx + 0x20], rax
cmp qword [rdi], 0
mov rdi, qword [rsp + 0x58]
jne 0x14006df5e
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rbp
mov dword [rsi], eax
call r15
mov qword [rbx + 0x20], rax
mov rsi, qword [rsp + 0x50]
xor eax, eax
mov qword [r14], rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret