joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039b14
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x14004c688]
test rcx, rcx
jne 0x140039b3a
call fcn.140039bc8
test eax, eax
je 0x140039b61
mov rcx, qword [0x14004c688]
call qword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x140039bb5
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.API_MS_Win_Core_Memory_L1_1_0.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x140039b65
xor eax, eax
jmp 0x140039bb5
mov eax, dword [rax]
mov rcx, qword [0x14004c688]
call qword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x140039b92
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.API_MS_Win_Core_Memory_L1_1_0.dll_VirtualFree]
mov rax, rdi
jmp 0x140039bb5
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x14004c688]
mov rdx, rbx
call qword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x140039b99
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140039ff8
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14004b138]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.API_MS_Win_Core_SysInfo_L1_1_0.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x14003a08b
cmp dword [rsp + 0x24], 5
jb 0x14003a0a5
jmp 0x14003a0a1
cmp dword [rsp + 0x30], esi
jne 0x14003a0a5
cmp dword [rsp + 0x24], 4
ja 0x14003a0a1
jne 0x14003a0a5
cmp dword [rsp + 0x28], 0
jbe 0x14003a0a5
mov byte [rbx + 0x18], sil
lea rax, [0x140001900]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.140007c88
movzx ecx, byte [0x14004c58c]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x14004c58c], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14003a6d0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14003a6d0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14004b138]
jne 0x14003a6eb
rol rcx, 0x10
test cx, 0xffff
jne 0x14003a6e7
ret 0
ror rcx, 0x10
jmp 0x14003ad80
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14004be90]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x14004bf88]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14003ae05
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14004be90]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x14003ae27
mov rax, qword [rsp + 0x88]
mov qword [0x14004bf88], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14004bf28], rax
mov rax, qword [0x14004bf88]
mov qword [0x14004be00], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14004bf10], rax
mov dword [0x14004bdf0], 0xc0000409
mov dword [0x14004bdf4], 1
mov rax, qword [0x14004b138]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14004b140]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400019e8]
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x14003ac1c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x14003ac69
cmp rcx, 0xffffffffffffffff
je 0x14003ac69
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003ac61
cmp dword [rcx + 0x3c], edx
jl 0x14003ac61
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14003ac61
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14003ac69
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14003aed8
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14003af43
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14003af63
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x1400019f8]
call qword [sym.imp.API_MS_Win_Core_Debug_L1_1_0.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x1400017a0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov rsi, r8
mov rdi, rcx
mov r8, rdx
lea rcx, [rbp + 0x60]
mov edx, 0xff
mov r14, r9
call fcn.14000a5d8
mov rbx, 0xffffffffffffffff
lea rcx, [rbp + 0x60]
mov rax, rbx
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x1400017f0
mov edx, 0xff
lea r8, [0x140019420]
sub rdx, rax
lea rcx, [rbp + 0x60]
call fcn.14000a638
lea rcx, [rbp + 0x60]
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140001820
mov edx, 0xff
lea rcx, [rbp + 0x60]
sub rdx, rax
mov r8, rsi
call fcn.14000a638
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400019e2
mov esi, 0x104
mov dword [rsp + 0x44], 1
mov r8d, esi
mov dword [rsp + 0x40], 0xff
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400055f0
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.JavaHome
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test eax, eax
jne 0x140001953
lea rax, [rsp + 0x50]
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400018d0
lea rcx, [r14 + 0x10]
lea rdx, [rsp + 0x50]
call fcn.140001640
lea rcx, [rsp + 0x50]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400018f0
sub rsi, rax
lea r8, str._binjava.exe
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.14000a638
lea rax, [rsp + 0x50]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001915
mov r8, rbx
lea rcx, [r14 + 0x30]
lea rdx, [rsp + 0x50]
call fcn.140001640
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rcx, qword [rsp + 0x48]
cmp eax, 0xffffffff
setne bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
jmp 0x1400019e4
lea rax, [rbp + 0x160]
xor esi, esi
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x200
mov r8d, edi
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0x1200
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x1400019d0
lea rcx, str.ntdsbmsg.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x1400019d0
mov qword [rsp + 0x30], rsi
lea rax, [rbp + 0x160]
mov dword [rsp + 0x28], 0x200
xor r9d, r9d
mov r8d, edi
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov ecx, 0xa00
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x48]
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
jmp 0x1400019e4
xor al, al
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140003f10
add rsp, 0x470
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140004958
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400049a2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400049a2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400049a2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400049a2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400049a2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400049a4
xor al, al
add rsp, 0x28
ret

Function at 0x14000b3f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000b21c
Function at 0x140034cc0
Capabilities:
Encode data using xor
Hash data using fnv

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

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400353cc
mov rax, qword [rdi + 0x38]
shr rax, 3
cmp rax, rcx
jbe 0x14003535a
mov rdx, qword [rdi + 8]
mov rcx, rdi
mov r8, rdx
mov rdx, qword [rdx]
add rsp, 0x20
pop rdi
jmp 0x1400355f0
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 8]
mov qword [rax], 0
mov rcx, qword [rcx]
test rcx, rcx
je 0x14003539a
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x18
call fcn.1400fcebc
mov rcx, rbx
test rbx, rbx
jne 0x140035380
mov rbx, qword [rsp + 0x38]
mov rax, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov qword [rax], rax
mov rax, qword [rdi + 8]
mov qword [rax + 8], rax
mov qword [rdi + 0x10], 0
mov rax, qword [rdi + 8]
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x30], rax
call fcn.1400378b0
add rsp, 0x20
pop rdi
ret
push rbp
push rsi
push r14
sub rsp, 0x40
mov rbp, r8
mov r14, rdx
mov rsi, rcx
cmp rdx, r8
je 0x1400356ee
mov rdx, qword [rcx + 0x18]
movabs r8, 0x100000001b3
mov qword [rsp + 0x60], rbx
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x38], rdi
mov rbx, r14
mov qword [rsp + 0x30], r12
mov r12, qword [rcx + 8]
movzx ecx, byte [r14 + 0x10]
xor rcx, rax
mov qword [rsp + 0x28], r13
movzx eax, byte [r14 + 0x11]
mov r13, qword [r14 + 8]
imul rcx, r8
mov qword [rsp + 0x20], r15
mov r15, qword [rsi + 0x30]
xor rcx, rax
movzx eax, byte [r14 + 0x12]
imul rcx, r8
mov qword [rsp + 0x78], rdx
xor rcx, rax
movzx eax, byte [r14 + 0x13]
imul rcx, r8
xor rcx, rax
imul rcx, r8
and r15, rcx
shl r15, 4
add r15, rdx
mov rax, qword [r15]
mov qword [rsp + 0x68], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x70], rax
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x18
call fcn.1400fcebc
dec qword [rsi + 0x10]
cmp rdi, qword [rsp + 0x70]
je 0x1400356fa
cmp rbx, rbp
jne 0x1400356a0
cmp qword [rsp + 0x68], r14
jne 0x1400356cd
mov qword [r15], rbx
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov r15, qword [rsp + 0x20]
mov qword [r13], rbx
mov qword [rbx + 8], r13
mov r13, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
mov rax, rbp
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
cmp qword [rsp + 0x68], r14
jne 0x140035709
mov qword [r15], r12
mov rax, r12
jmp 0x14003570c
mov rax, r13
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x1400356cd
nop word [rax + rax]
movzx r15d, byte [rbx + 0x10]
movabs rdx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r15, rax
movzx eax, byte [rbx + 0x11]
imul r15, rdx
xor r15, rax
movzx eax, byte [rbx + 0x12]
imul r15, rdx
xor r15, rax
movzx eax, byte [rbx + 0x13]
imul r15, rdx
xor r15, rax
imul r15, rdx
and r15, qword [rsi + 0x30]
shl r15, 4
add r15, qword [rsp + 0x78]
mov r14, qword [r15 + 8]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x18
call fcn.1400fcebc
dec qword [rsi + 0x10]
cmp rdi, r14
je 0x140035798
cmp rbx, rbp
jne 0x140035772
jmp 0x1400356ca
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
jne 0x140035720
jmp 0x1400356cd
Function at 0x140035430
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
jbe 0x140035468
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x38], rdi
mov rdi, qword [rsi + 8]
or rax, rbx
bsr rcx, rax
mov r8, rdi
mov qword [rsp + 0x40], r14
inc ecx
shl rbx, cl
lea rcx, [rsi + 0x18]
lea rdx, [rbx + rbx]
call fcn.1400351d0
mov qword [rsi + 0x38], rbx
lea rax, [rbx - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
cmp rcx, rdi
je 0x1400355a6
mov qword [rsp + 0x30], rbp
mov rax, rcx
movabs rbp, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
nop
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rbx
xor r9, rdx
imul r9, rbx
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rdi
jne 0x140035520
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140035595
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14003555d
mov r10, qword [rdx]
cmp r10, rax
je 0x140035557
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140035595
cmp r9, rdx
je 0x140035571
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x1400355bb
cmp r9, rdx
jne 0x140035562
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rdi
jne 0x1400354d0
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140035595
Function at 0x1400355f0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400353cc
mov rax, qword [rdi + 0x38]
shr rax, 3
cmp rax, rcx
jbe 0x14003535a
mov rdx, qword [rdi + 8]
mov rcx, rdi
mov r8, rdx
mov rdx, qword [rdx]
add rsp, 0x20
pop rdi
jmp 0x1400355f0
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 8]
mov qword [rax], 0
mov rcx, qword [rcx]
test rcx, rcx
je 0x14003539a
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x18
call fcn.1400fcebc
mov rcx, rbx
test rbx, rbx
jne 0x140035380
mov rbx, qword [rsp + 0x38]
mov rax, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov qword [rax], rax
mov rax, qword [rdi + 8]
mov qword [rax + 8], rax
mov qword [rdi + 0x10], 0
mov rax, qword [rdi + 8]
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x30], rax
call fcn.1400378b0
add rsp, 0x20
pop rdi
ret
push rbp
push rsi
push r14
sub rsp, 0x40
mov rbp, r8
mov r14, rdx
mov rsi, rcx
cmp rdx, r8
je 0x1400356ee
mov rdx, qword [rcx + 0x18]
movabs r8, 0x100000001b3
mov qword [rsp + 0x60], rbx
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x38], rdi
mov rbx, r14
mov qword [rsp + 0x30], r12
mov r12, qword [rcx + 8]
movzx ecx, byte [r14 + 0x10]
xor rcx, rax
mov qword [rsp + 0x28], r13
movzx eax, byte [r14 + 0x11]
mov r13, qword [r14 + 8]
imul rcx, r8
mov qword [rsp + 0x20], r15
mov r15, qword [rsi + 0x30]
xor rcx, rax
movzx eax, byte [r14 + 0x12]
imul rcx, r8
mov qword [rsp + 0x78], rdx
xor rcx, rax
movzx eax, byte [r14 + 0x13]
imul rcx, r8
xor rcx, rax
imul rcx, r8
and r15, rcx
shl r15, 4
add r15, rdx
mov rax, qword [r15]
mov qword [rsp + 0x68], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x70], rax
nop dword [rax + rax]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x18
call fcn.1400fcebc
dec qword [rsi + 0x10]
cmp rdi, qword [rsp + 0x70]
je 0x1400356fa
cmp rbx, rbp
jne 0x1400356a0
cmp qword [rsp + 0x68], r14
jne 0x1400356cd
mov qword [r15], rbx
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov r15, qword [rsp + 0x20]
mov qword [r13], rbx
mov qword [rbx + 8], r13
mov r13, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
mov rax, rbp
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
cmp qword [rsp + 0x68], r14
jne 0x140035709
mov qword [r15], r12
mov rax, r12
jmp 0x14003570c
mov rax, r13
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x1400356cd
nop word [rax + rax]
movzx r15d, byte [rbx + 0x10]
movabs rdx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r15, rax
movzx eax, byte [rbx + 0x11]
imul r15, rdx
xor r15, rax
movzx eax, byte [rbx + 0x12]
imul r15, rdx
xor r15, rax
movzx eax, byte [rbx + 0x13]
imul r15, rdx
xor r15, rax
imul r15, rdx
and r15, qword [rsi + 0x30]
shl r15, 4
add r15, qword [rsp + 0x78]
mov r14, qword [r15 + 8]
mov rcx, rbx
mov rdi, rbx
mov rbx, qword [rbx]
mov edx, 0x18
call fcn.1400fcebc
dec qword [rsi + 0x10]
cmp rdi, r14
je 0x140035798
cmp rbx, rbp
jne 0x140035772
jmp 0x1400356ca
mov qword [r15], r12
mov qword [r15 + 8], r12
cmp rbx, rbp
jne 0x140035720
jmp 0x1400356cd
Function at 0x1400364e0
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 0x14003650c
mov r8, qword [rdx]
xor ebp, ebp
movabs rdx, 0xcbf29ce484222325
mov ecx, ebp
test rsi, rsi
je 0x140036544
movabs r10, 0x100000001b3
nop dword [rax]
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, r10
cmp rcx, rsi
jb 0x140036530
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]
jne 0x140036562
mov rbx, rbp
jmp 0x1400365b2
mov qword [rsp + 0x40], r14
mov r14, qword [rax + rcx*8]
nop dword [rax + rax]
cmp qword [rbx + 0x28], 0xf
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
jbe 0x140036582
mov rdx, qword [rdx]
mov rcx, rdi
cmp r15, 0xf
jbe 0x14003658e
mov rcx, qword [rdi]
cmp rsi, rax
jne 0x14003659f
mov r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400365ad
cmp rbx, r14
je 0x1400365aa
mov rbx, qword [rbx + 8]
jmp 0x140036570
mov rbx, rbp
mov r14, qword [rsp + 0x40]
test rbx, rbx
mov rbx, qword [rsp + 0x48]
setne bpl
mov rax, rbp
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x14003eb30
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 0x14003ebf5
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14003ebf5
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 0x14003ec0e
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 0x14003ebe5
cmp byte [rcx], 0x5c
jne 0x14003ebde
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x14003ebde
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14003ebcc
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x14003ebdb
test r8b, 0x10
jne 0x14003ebde
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x14003ebde
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.14003ae50
test edi, edi
jne 0x14003eb50
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.14003ae40
int3

Function at 0x14004a1b0
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 0x14004a20d
lea rbx, [0x14011d630]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14004a1f4
cmp r10, 2
jb 0x14004a1f4
cmp byte [r9], r8b
jne 0x14004a1f4
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 0x14004a1d0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14004a24f
lea rbx, [0x14011d630]
cmp r8b, 0x23
jne 0x14004a233
cmp byte [r9], r8b
jne 0x14004a233
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 0x14004a220
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x14004a400
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov rbx, rcx
test rcx, rcx
jne 0x14004a435
mov r8d, 0x875
lea rdx, str.C:UsersponcippDownloadsimgui_synthetic_thirdpartyimguiimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor r14d, r14d
test rsi, rsi
je 0x14004a440
mov qword [rsi], r14
lea rdx, [0x14012a7d0]
mov rcx, rbx
call fcn.14004a260
mov rbx, rax
test rax, rax
jne 0x14004a468
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14004a594
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14004a594
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14004a594
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14004a594
cmp rdi, 0xffffffffffffffff
je 0x14004a594
mov rcx, rdi
call fcn.14004ee10
mov rbp, rax
test rax, rax
je 0x14004a594
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14004a581
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x1401ea218]
test r8, r8
je 0x14004a576
movsx rdx, word [r8 + 0x60e0]
lea rcx, [r8 + 0x60e4]
mov r9d, dword [r8 + 0x3f68]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14004a56b
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60e0], cx
movsx rax, cx
lea rcx, [r8 + 0x60e4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x60dc]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14004a59d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14004a58f
mov qword [rsi], rdi
mov rax, rbp
jmp 0x14004a59f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret