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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x140023b1b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140023b1b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140023b36
cmp eax, 0x42
jne 0x140023b1b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140023be6
cmp byte [r9 + r11], 0x5f
jne 0x140023be6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140023c4e
mov rcx, rsi
xor edx, edx
call fcn.14001f1f0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14001f1f0
test al, al
jne 0x140023ce8
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140023b72
lea rdx, [0x14004eddb]
mov r8d, 1
call fcn.14001b2c0
test al, al
jne 0x140023ce8
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140023b2a
xor r14d, r14d
lea rbx, [0x14004e990]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140023ba4
cmp byte [rax + rcx], 0x45
je 0x140023d0a
sub r14, 1
jb 0x140023bc9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140023bc9
mov r8d, 2
mov rdx, rbx
call fcn.14001b2c0
test al, al
jne 0x140023ce8
mov rcx, rsi
call fcn.140020b80
test al, al
jne 0x140023ce8
mov rax, qword [rsi]
test rax, rax
jne 0x140023b90
jmp 0x140023b2a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140023caf
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140023c42
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140023c2c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140023c1b
add dl, 0xa9
jmp 0x140023c2a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140023caf
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140023caf
movzx edx, bl
add rax, rdx
jae 0x140023bf0
jmp 0x140023caf
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140023caf
cmp rax, rcx
jae 0x140023cac
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140023d02
cmp qword [rsi + 0x20], 0
je 0x140023cfb
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140023ac0
mov edi, eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
cmp al, 2
jne 0x140023b2a
jmp 0x140023ce8
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140023cf0
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x14004e950]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.14001b2c0
test al, al
je 0x140023cf0
mov dil, 2
jmp 0x140023b2a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140023b2a
mov dil, 1
xor r8d, r8d
jmp 0x140023cb1
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140023b2a
Function at 0x140026ac0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14004f238]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140026b33
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140026b6a
test eax, eax
js 0x140026b44
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140026b5d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140029010
mov rcx, rax
call fcn.140026a00
mov ecx, 7
int 0x29
ud2
Function at 0x140027590
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov rax, qword [rdx]
mov qword [rbp + 0x3c0], rax
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x140027620
jmp 0x14002760f
jae 0x1400276e7
cmp r8, 0x201
jae 0x140027620
mov esi, 0x200
lea r13, [rbp - 0x60]
mov r15, r8
jmp 0x140027678
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14002764f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400420f0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rbx, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x3c0]
mov rdx, r13
mov r8d, r15d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x1400276a8
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14002774b
mov r8d, r14d
cmp r15, r8
jne 0x140027600
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002776e
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14002760f
jmp 0x140027620
cmp rsi, r8
jb 0x140027788
lea rcx, [rbp + 0x3a0]
mov rdx, r13
call fcn.140030dc0
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
mov rax, qword [rbp + 0x3e0]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
test rbx, rbx
je 0x140027736
mov rcx, qword [0x1400670b8]
xor edx, edx
mov r8, qword [rbp + 0x3e8]
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x3e0]
mov qword [rcx], rax
mov byte [rcx + 0x18], 2
test rbx, rbx
jne 0x140027720
jmp 0x140027736
lea rcx, str.internal_error:_entered_unreachable_codelibrary_std_srcpanic.rs
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140041520
jmp 0x14002779d
lea rax, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140041830
ud2
Function at 0x140027910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
movzx ebp, byte [rdx + 0x38]
cmp bpl, 1
ja 0x14002796d
movzx ebx, byte [rdi + 0x3a]
mov rcx, rdi
call fcn.1400277f0
test bpl, bpl
jne 0x140027971
lea rcx, [rdi + 0x10]
xor r8d, r8d
cmp byte [rdi + 0x10], 6
cmove rcx, r8
je case.0x140027961.2
movzx edx, byte [rcx]
mov r8d, 6
lea r9, [0x140027ae4]
movsxd rdx, dword [r9 + rdx*4]
add rdx, r9
jmp rdx
mov r8, qword [rcx + 0x10]
add r8, 4
jmp case.0x140027961.2
xor eax, eax
xor ebx, ebx
xor r8d, r8d
movzx r10d, bl
movzx ebx, al
lea rcx, [r10 + rbx]
add rcx, r8
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140027ac8
mov r11, qword [rdi]
lea rax, [r11 + rcx]
cmp rdx, rcx
jne 0x1400279a8
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140027a29
movzx r9d, byte [rdi + 0x10]
add r8, rbx
add r8, r10
sub r8, rdx
inc r8
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x1400279f0
nop dword [rax]
cmp byte [rdi], 0x5c
je 0x140027a0b
inc r8
dec rdi
cmp r8, 1
jne 0x1400279d0
jmp 0x140027a29
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140027a0b
cmp ebx, 0x5c
je 0x140027a0b
inc r8
dec rdi
cmp r8, 1
jne 0x1400279f0
jmp 0x140027a29
neg r8
add rcx, r8
inc rcx
cmp rdx, rcx
jb 0x140027ad6
add r11, rcx
mov r10d, 1
mov rax, r11
sub rdx, rcx
je 0x140027a52
mov cl, 9
cmp rdx, 2
je 0x140027a56
cmp rdx, 1
jne 0x140027a65
cmp byte [rax], 0x2e
jne 0x140027a65
xor ecx, ecx
cmp r9b, 3
setae cl
lea ecx, [rcx + rcx*2]
add ecx, 7
jmp 0x140027a65
mov cl, 0xa
jmp 0x140027a65
cmp byte [rax], 0x2e
jne 0x140027a65
cmp byte [rax + 1], 0x2e
sete cl
xor cl, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], cl
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
lea r8, [rcx + 1]
test rcx, rcx
cmove r8, rcx
add r8, rdx
add r8, 8
jmp case.0x140027961.2
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
lea r8, [rcx + 1]
test rcx, rcx
cmove r8, rcx
add r8, rdx
add r8, 2
jmp case.0x140027961.2
mov r8d, 2
jmp case.0x140027961.2
lea r8, str.library_std_srcpath.rs
call fcn.1400418b0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1400418b0
ud2

Function at 0x14002ad10
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 0x14002ad53
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
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, [0x14002c4f0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
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, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140041410
ud2
Function at 0x140037438
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140037228
Function at 0x14003a4a0
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 0x14003a4d0
xor eax, eax
jmp 0x14003a593
mov rbp, rbx
cmp word [rax], si
je 0x14003a4f5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003a4dc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003a4d8
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.14003a3f0
movsxd r14, eax
test eax, eax
jne 0x14003a533
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x14003a4c9
mov rcx, r14
call fcn.14003b354
mov rdi, rax
test rax, rax
jne 0x14003a54c
xor ecx, ecx
call fcn.140038a80
jmp 0x14003a528
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.14003a3f0
test eax, eax
jne 0x14003a57d
mov rcx, rdi
call fcn.140038a80
jmp 0x14003a587
xor ecx, ecx
call fcn.140038a80
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 0x14003da5c
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.1400394f4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003dae6
cmp byte [rbp - 0x21], r15b
je 0x14003dae1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003db1c
call fcn.14003bb74
test eax, eax
jne 0x14003db08
cmp byte [rbp - 0x21], r15b
je 0x14003db00
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003db1c
cmp byte [rbp - 0x21], r15b
je 0x14003db19
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.140038ad0
test eax, eax
jne 0x14003dbbc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400394f4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003db5b
cmp byte [rbp - 0x21], r15b
je 0x14003db90
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003db90
call fcn.14003bb74
test eax, eax
jne 0x14003db7c
cmp byte [rbp - 0x21], r15b
je 0x14003db75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003db90
cmp byte [rbp - 0x21], r15b
je 0x14003db8d
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.140038ad0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003dbbc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003dbbf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003dbcd
mov rcx, rdi
call fcn.140038a80
cmp byte [rbp + 0x3f], r15b
je 0x14003dbdc
mov rcx, qword [rbp + 0x27]
call fcn.140038a80
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 0x140004560
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140004582
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400045fc
mov rdi, r14
mov rcx, rbx
call fcn.140005dc0
test rax, rax
jle 0x1400045d4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140011b90
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400045ec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400045f4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140004596
sub r14, rdi
jmp 0x1400046df
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140004613
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004615
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004647
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140011b90
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400046dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004682
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 rbp, 0xfff
jbe 0x1400046bd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14001817c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400046dc
cmp rbp, rax
ja 0x140004690
test rbp, rbp
je 0x1400046dc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14001817c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400072f4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400072e0
ret
Function at 0x14000c160
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 0x14000c22c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000c22c
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 0x14000c245
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 0x14000c21c
cmp byte [rax], 0x5c
jne 0x14000c216
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14000c216
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000c202
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14000c213
test r8b, 0x10
jne 0x14000c216
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14000c216
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140008a20
test edi, edi
jne 0x14000c180
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.140008a10
int3

Function at 0x1400109e4
Capabilities:
Parse pe header

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

Function at 0x14001ac2c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001aa28

Function at 0x14001d72c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001d742
mov al, 1
jmp 0x14001d7a2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001d753
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001d7a0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140026e9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001d7a0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001d7a0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001d7a0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001d7a2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400217c8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140010490
sub rsp, rax
mov rax, qword [0x1400410e0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001d60c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140021817
mov rax, rbp
jmp 0x14002191f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x435d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140022714
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x435d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002191b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002191b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140022714
test rax, rax
js 0x14002191b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002191b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002190d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002190d
cmp byte [rcx], 0xd
jne 0x1400218f3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140021902
cmp byte [rcx + 1], 0xa
jne 0x140021902
inc rcx
jmp 0x140021902
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x414c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400218d5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002191f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000fc80
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140021ab4
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, [0x1400435d0]
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 0x140021b0b
cmp word [rdx], r13w
jne 0x140021b0b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140021b10
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140021c35
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140021c56
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140021b49
mov rdx, r9
mov word [rbx], cx
jmp 0x140021b70
cmp r9, r8
jae 0x140021b80
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 0x140021b2a
jmp 0x140021c35
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 0x140021c2a
cmp dword [rsp + 0x80], esi
je 0x140021c2a
lea r8, [0x1400435d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140021c02
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140021bd2
mov word [rbx], r13w
jmp 0x140021c32
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 0x140021bdf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140021c32
cmp word [rsp + 0x70], r13w
jne 0x140021c0f
cmp rbx, r14
je 0x140021bcc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002271c
cmp word [rsp + 0x70], r13w
je 0x140021c35
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, [0x1400435d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140021c2f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140021c35