joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034930
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0x98]
call fcn.140018c80
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
cmp rax, rdi
jne 0x14003497f
call fcn.140017d40
mov qword [rsi], rdi
jmp 0x140034b78
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x38], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x58], rax
xor r14d, r14d
mov ebx, 0xffffffff
xor esi, esi
xor r15d, r15d
cmp r8, 0x201
jae 0x140034a10
jmp 0x1400349ef
jae 0x140034ac4
cmp r8, 0x201
jae 0x140034a10
mov r12d, 0x200
lea r13, [rsp + 0x98]
mov rbp, r8
jmp 0x140034a57
sub r8, r15
sub rsi, r15
cmp rsi, r8
jae 0x140034a37
lea rcx, [rsp + 0x28]
mov rdx, r15
call fcn.140019110
mov r14, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
cmp r14, rbx
mov r15d, 0xffffffff
cmovb r15, r14
mov qword [rsp + 0x38], r15
mov rsi, r14
mov r12, r15
mov r13, qword [rsp + 0x58]
mov rbp, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x48]
mov rdx, r13
mov r8d, ebp
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov edi, eax
test eax, eax
jne 0x140034a81
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140034b21
mov r8d, edi
cmp rbp, r8
jne 0x1400349e0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140034bac
add rbp, rbp
mov eax, 0xffffffff
cmp rbp, rax
mov ebx, 0xffffffff
cmovae rbp, rax
mov r8, rbp
cmp r8, 0x201
jb 0x1400349ef
jmp 0x140034a10
cmp r12, r8
jb 0x140034bc6
lea rcx, [rsp + 0x78]
mov rdx, r13
call fcn.14001a5f0
movabs rdi, 0x8000000000000000
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x60], xmm0
cmp qword [rsp + 0x28], 0
je 0x140034b15
mov rcx, qword [rsp + 0x30]
mov edx, 2
call fcn.140002eb0
cmp rsi, rdi
jne 0x140034b8d
mov rax, qword [rsp + 0x40]
jmp 0x140034b56
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
cmp qword [rsp + 0x28], 0
je 0x140034b43
mov rcx, qword [rsp + 0x30]
mov edx, 2
call fcn.140002eb0
or rbx, 2
mov rax, qword [rsp + 0x40]
movabs rdi, 0x8000000000000000
mov qword [rax], rdi
mov rcx, rbx
call fcn.140017d40
cmp qword [rsp + 0x50], 0
je 0x140034b78
mov edx, 2
mov rcx, qword [rsp + 0x48]
call fcn.140002eb0
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x40]
mov qword [rax], rsi
mov qword [rax + 8], rbx
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x10], xmm0
cmp qword [rsp + 0x50], 0
jne 0x140034b69
jmp 0x140034b78
lea rcx, str.internal_error:_entered_unreachable_code_usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_rayon_core_1.12.1_src_job.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140004ba0
jmp 0x140034bdb
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.140004830
ud2
Function at 0x140035890
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x40
mov ecx, dword [0x140048108]
test ecx, ecx
je 0x140035982
dec ecx
call fcn.140045a2c
cmp rax, 2
jb 0x1400358c0
cmp qword [rax + 8], 0
je 0x1400358c0
add rax, 0x10
jmp 0x14003597c
mov ecx, dword [0x140048108]
test ecx, ecx
je 0x140035995
dec ecx
call fcn.140045a2c
cmp rax, 1
je 0x14003597a
test rax, rax
jne 0x140035940
mov qword [rsp + 0x30], 0
lea rax, [0x1400480f0]
mov qword [rsp + 0x28], rax
movzx eax, byte [0x140059108]
mov edx, 0x18
xor ecx, ecx
call fcn.140036470
test rax, rax
je 0x1400359c1
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rax], xmm0
mov ecx, dword [0x140048108]
test ecx, ecx
je 0x1400359a8
dec ecx
mov rdx, rax
mov rsi, rax
call fcn.140045a24
mov rax, rsi
mov rdx, rax
add rax, 0x10
mov rcx, qword [rdx + 0x10]
cmp qword [rdx + 8], 0
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], 0
je 0x14003597c
test rcx, rcx
je 0x14003597c
lock dec qword [rcx]
jne 0x14003597c
mov rsi, rax
call fcn.1400359f0
mov rax, rsi
jmp 0x14003597c
xor eax, eax
add rsp, 0x40
pop rsi
ret
lea rcx, [0x1400480f0]
call fcn.1400171e0
mov ecx, eax
jmp 0x1400358a5
lea rcx, [0x1400480f0]
call fcn.1400171e0
mov ecx, eax
jmp 0x1400358d0
lea rcx, [0x1400480f0]
mov rsi, rax
call fcn.1400171e0
mov ecx, eax
mov rax, rsi
jmp 0x140035932
mov ecx, 8
mov edx, 0x18
call fcn.140003380
ud2

Function at 0x14003b954
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.SHELL32.dll_CommandLineToArgvW
test rax, rax
je 0x14003b9f0
mov rdi, rax
lea rbx, [rsp + 0x30]
and qword [rbx], 0
mov qword [rbx + 8], 8
and qword [rbx + 0x10], 0
movsxd r12, dword [rsp + 0x2c]
shl r12, 3
xor r13d, r13d
lea r14, [rsp + 0x48]
cmp r12, r13
je 0x14003b9d5
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.msvcrt.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.14003b2cf
mov rcx, rbx
mov rdx, r14
call fcn.14003bc70
add r13, 8
jmp 0x14003b9a5
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
jmp 0x14003ba01
and qword [rsi], 0
mov qword [rsi + 8], 8
and qword [rsi + 0x10], 0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140044253
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov ecx, dword [0x140048128]
test ecx, ecx
je 0x140044345
dec ecx
call fcn.140045a2c
cmp rax, 2
jb 0x14004428f
cmp qword [rax + 8], 0
je 0x14004428f
mov rdi, rax
add rdi, 0x10
mov rax, qword [rax + 0x10]
jmp 0x140044325
mov ecx, dword [0x140048128]
test ecx, ecx
je 0x140044358
dec ecx
call fcn.140045a2c
mov rdi, rax
cmp rax, 1
je 0x14004433a
test rdi, rdi
jne 0x1400442f7
mov al, byte [0x140059108]
mov edx, 0x20
xor ecx, ecx
call fcn.140036470
test rax, rax
je 0x14004437e
mov rdi, rax
lea rax, [0x140048110]
mov qword [rdi], rax
and qword [rdi + 8], 0
mov ecx, dword [0x140048128]
test ecx, ecx
je 0x14004436b
dec ecx
mov rdx, rdi
call fcn.140045a24
xorps xmm0, xmm0
lea rbx, [rsp + 0x20]
movaps xmmword [rbx], xmm0
mov edx, 0x10
mov rcx, rbx
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, qword [rbx]
movaps xmm0, xmmword [rbx]
mov qword [rdi + 8], 1
movups xmmword [rdi + 0x10], xmm0
add rdi, 0x10
mov rcx, qword [rdi + 8]
lea rdx, [rax + 1]
mov qword [rdi], rdx
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rcx
xor edi, edi
mov qword [rsi], rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140048110]
call fcn.1400171e0
mov ecx, eax
jmp 0x14004426d
lea rcx, [0x140048110]
call fcn.1400171e0
mov ecx, eax
jmp 0x14004429f
lea rcx, [0x140048110]
call fcn.1400171e0
mov ecx, eax
jmp 0x1400442ef
mov ecx, 8
mov edx, 0x20
call fcn.140003380
int3
Function at 0x140045202
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov rsi, rdx
mov rdi, rcx
cmp qword [rdx + 0x10], 0
je 0x1400452c6
lea rcx, [0x140052daa]
call sub.OLEAUT32.dll_SysAllocString
mov rbx, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.OLEAUT32.dll_SysAllocString
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
mov rcx, rbx
call sub.OLEAUT32.dll_SysFreeString
mov rcx, r14
call sub.OLEAUT32.dll_SysFreeString
test ebp, ebp
js 0x1400452c6
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x28]
call fcn.14004017b
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x1400452d5
mov qword [rdi], 2
mov rcx, rsi
call fcn.1400400ff
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140046690
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140047430
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140047430
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140046700
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140059194]
mov rbx, rcx
test esi, esi
jle 0x140046830
mov rax, qword [0x140059198]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14004674b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400467d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140046730
mov rcx, rbx
call fcn.140047150
mov rdi, rax
test rax, rax
je 0x140046852
mov rax, qword [0x140059198]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140047290
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140059198]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140046837
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400467ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400467e0
add dword [0x140059194], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140059198]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400467ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140046690
nop dword [rax]
xor esi, esi
jmp 0x140046758
mov rax, qword [0x140059198]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140046690
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140046690
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140046dc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140059200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400591e0]
test rbx, rbx
je 0x140046e1c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140046e13
test rsi, rsi
je 0x140046e13
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140046df8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140047150
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140053a30]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140047170
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140047178
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140047170
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400471cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400471c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140047170
add rax, 0x28
cmp rax, r9
jne 0x1400471b0
xor eax, eax
ret

Function at 0x1400471d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140053a30]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400471ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400471f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400471ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140047290
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140053a30]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400472af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400472b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001340
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x4c]
mov r8, rdi
sub r8, rdx
nop dword [rax + rax]
movzx ecx, word [rdx]
movzx eax, word [rdx + r8]
sub ecx, eax
jne 0x1400013a4
add rdx, 2
test eax, eax
jne 0x140001390
test ecx, ecx
je 0x1400013cb
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001380
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
mov eax, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x1400013e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001421
xor eax, eax
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
movsxd rbx, eax
mov rdx, rbx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rdx, rax
mov r8d, ebx
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x50]
test eax, eax
je 0x140001494
cmp dword [rsi], 0x905a4d
jne 0x140001494
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rsi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x140001630
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x28
movsxd rdx, ecx
lea rcx, [0x1400015e0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [0x1400091b8]
add rsp, 0x28
ret
Function at 0x140006594
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400065de
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400065de
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400065de
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400065de
cmp dword [rcx + 0x84], 0xe
jbe 0x1400065de
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400065e0
xor al, al
add rsp, 0x28
ret
Function at 0x1b14058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01b141df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1b14089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1b1406f
add dl, dl
jne 0x1b14096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1b140f6
xor eax, eax
add dl, dl
jne 0x1b140a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1b141ad
add dl, dl
jne 0x1b140b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1b140c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1b140d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1b140dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1b140ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1b1407e
mov eax, 1
add dl, dl
jne 0x1b14106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1b14113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1b140fb
sub eax, ebx
mov ebx, 1
jne 0x1b1414c
mov ecx, 1
add dl, dl
jne 0x1b1412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1b1413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1b14123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1b1407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1b14168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1b14175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1b1415d
cmp eax, 0x7d00
jae 0x1b1419b
cmp eax, 0x500
jb 0x1b14196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1b1407e
cmp eax, 0x7f
ja 0x1b1419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1b1407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1b141d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1b1407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004a00
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 0x140004a28
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 0x140004a4e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004a50
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004aa9
test ecx, ecx
jle 0x140004a89
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 0x140004aa9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004aa9
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 0x140004ad0
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 0x140004af2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140004b08
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 0x140004b24
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004b26
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004b62
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 0x140004bfe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140004b9d
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 0x140004bde
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 0x140004bfe
cmp rbx, rax
ja 0x140004bb0
test rbx, rbx
je 0x140004bfe
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 0x140020ff0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140021024
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140021010
ret
Function at 0x140027990
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 0x140027a5c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140027a5c
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 0x140027a75
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 0x140027a4c
cmp byte [rax], 0x5c
jne 0x140027a46
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140027a46
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140027a32
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140027a43
test r8b, 0x10
jne 0x140027a46
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140027a46
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400234e0
test edi, edi
jne 0x1400279b0
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.1400234d0
int3