joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017d50
Capabilities:
Encode data using xor

Disassembly:
retf
cmp edi, dword [rcx]
jne 0x140017d61
adc al, 0x48
sbb al, 0x5f
leave
je 0x140017d8c
cmp ebx, r15d
sbb byte [rbx + rbp + 0x7f], dh
add rax, 0x34
jg 0x140017dab
add rax, 0x34
cmp ecx, 0xffffffff
jne 0x140017d7a
lea r9, str.ssh_unknown
or rax, qword [rax]
mov edx, dword gs:[0x14010ede8]
xor r10d, dword [r8 + 0x73]
sub dword [rsi + 0x20], 0xffffff96
pop r14
jno 0x140017d71
add byte [rbp + 0x33], al
push rax
jae 0x140017d03
outsb dx, byte [rsi]
and byte [rsi + 0x715e414c], dl
jmp 0x140040040
mov ah, 0x82
add al, byte [rax]
mov rcx, qword [rax]
jmp 0x140017d74
cmpsb byte [rsi], byte [rdi]
je 0x140017dd2
invalid
cmp r10d, 0xffffffff
test al, 0x32
mov rax, qword [rsp + 0x80]
mov qword [rdi], rdi
and al, 0x4d
mov rax, qword [rbp + riz*4 + 0x70]
mov qword [rbp + rsi + 0x34], rax
mov qword [rbp + rbp*2 + 0x20], r9
mov r9, r8
mov r8, rdx
mov rdx, rcx
mov ecx, r10d
call int.14004d2a0
jmp 0x140cd7ed3
add dword [rax], eax
invalid

Function at 0x14001ae20
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
xor eax, eax
lea r9, [0x1400f1c0d]
and ch, 0x6c
insd dword [rdi], dx
cdq
add bh, bh
jne 0x14001ae52
nop word [rax + rax + 0x6663aae5]
inc rcx
xor dword [rbp - 0x4de3e0f8], 0
add byte [rbp + 0x1e], bh
cmp byte [rcx], 0xff
je 0x14001ae40
movzx ecx, byte [rcx]
test byte [rbx], ch
jns 0x14001ae66
nop dword [rax + 0x5000000]
inc eax
invalid
leave
or dword [rdi + 0x26e8c316], 0x4f
add eax, 0xc78d4860
cmp dword [rdx + 0xa], ecx
add bh, al
add byte [rax], bl
add byte [rax], al
add al, ch
scasb al, byte [rdi]
invalid

Function at 0x140040cd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + rax*8 + 0x20], rbx
mov ebp, 0xd6ec8148
add byte [rax + rax], bh
mov rax, qword [0x1920de008]
and al, 0xd3
invalid
push rdx

Function at 0x14006fe5f
Capabilities:
Encode data using xor

Disassembly:
add dword [rdi + 0x75c08548], ebx
or dword [rax - 0x73], ecx
loopne fcn.14006fe4d
loop 0x14006fe72
add bl, ch
cmovs eax, dword [rbx - 0x3bb78040]
invalid
jg 0x14006febc
invalid

Function at 0x140087710
Capabilities:
Encode data using xor

Disassembly:
mov dh, 0xf9
xor eax, 0x450000c4
and byte [rbp - 0xc4087f], cl
inc dword [rbx + 0xc7709f8]
add eax, 0x32a76d
add byte [rcx + 0xf], al
movabs dword [0x2f752af9830572c2], eax
xor esi, dword [rsi]
movabs dword [0x740000d698f9812b], eax
and byte [rcx + 0xdea9f9], al
xor dword [rsi + 0x1b], 0xffffff81
stc
mov bl, 0xde
add byte [rax], al
jbe 0x140087734
cmp edx, 0xfde8
je 0x140087734
cmp ecx, 0xfde9
jne 0x14008778a
and edx, 8
jmp qword [0x1506f5398]
invalid
Function at 0x140011690
Capabilities:
Terminate process

Disassembly:
jmp 0x140028bb0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011857
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400296e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140029700
xor al, al
jmp 0x140029781
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140029713
xor al, al
jmp 0x140029781
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14002973d
xor al, al
jmp 0x140029781
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140029751
xor al, al
jmp 0x140029781
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140029763
xor al, al
jmp 0x140029781
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002977f
xor al, al
jmp 0x140029781
mov al, 1
add rsp, 0x38
ret

Function at 0x140011866
Capabilities:
Enumerate processes
Terminate process

Disassembly:
jmp 0x14001b430
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [0x14003c040]
xor rax, rbp
mov qword [rbp + 0x418], rax
lea rcx, [0x140044117]
call fcn.140011bae
xor edx, edx
mov ecx, 2
call fcn.14001154b
mov qword [rbp + 8], rax
mov dword [rbp + 0x30], 0x238
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14001b49c
jmp 0x14001b527
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140011735
test eax, eax
jne 0x14001b4b9
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001b527
mov rdx, qword [rbp + 0x440]
lea rcx, [rbp + 0x5c]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x14001b50c
mov r8d, dword [rbp + 0x38]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x288], rax
cmp qword [rbp + 0x288], 0
je 0x14001b50c
xor edx, edx
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140011a46
test eax, eax
jne 0x14001b4b9
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x20]
lea rdx, [0x140032310]
call fcn.1400119c4
mov rcx, qword [rbp + 0x418]
xor rcx, rbp
call fcn.140011573
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret
Function at 0x140011aeb
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001c380
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x14003c040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14004406b]
call fcn.140011bae
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14001c3e6
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x72]
test eax, eax
jne 0x14001c3ed
mov al, 1
jmp 0x14001c563
mov rax, qword [rbp + 0x190]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.140011410
mov word [rbp + 0x160], ax
movzx edx, word [rbp + 0x160]
mov rcx, qword [rbp + 0x190]
call qword [rbp + 0x158]
mov word [rbp + 0x162], ax
call fcn.140011410
mov word [rbp + 0x164], ax
movzx edx, word [rbp + 0x162]
movzx ecx, word [rbp + 0x164]
call fcn.1400114b0
movzx eax, al
test eax, eax
je 0x14001c456
xor al, al
jmp 0x14001c563
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x190]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x14001c4c9
cmp dword [rbp + 0x160], 1
je 0x14001c4d4
cmp dword [rbp + 0x160], 3
je 0x14001c552
jmp 0x14001c561
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x72], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001c524
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001c524
xor al, al
jmp 0x14001c563
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x72]
test eax, eax
jne 0x14001c53f
mov dword [rbp + 0x154], 1
jmp 0x14001c549
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001c563
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x72], 0
mov al, 1
jmp 0x14001c563
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400119c4
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.140011573
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140009790]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400097a0]
mov dword [rax], 1
mov rax, qword [0x1400097b0]
mov dword [rax], 1
mov rax, qword [0x140009740]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140009780]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140009860]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140009840]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400096f0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001790
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002180
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 0x1400021cd
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 0x1400021c4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400021cf
add rax, 0x28
cmp rax, r9
jne 0x1400021b0
xor eax, eax
ret

Function at 0x1400021d0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002260
mov rdx, qword [0x140009740]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000224e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000224e
cmp word [rax + 0x18], 0x20b
jne 0x14000224e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002260
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002239
add rbx, 0x28
cmp rbx, rdi
je 0x140002260
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002230
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 0x140002270
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400022f0
Capabilities:
Parse pe header

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

Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009740]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002350
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002358
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002350
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400023a0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002397
test rcx, rcx
je 0x140002350
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002388
xor eax, eax
ret
Function at 0x1400023b0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140009740]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002410
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002418
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002410
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002410
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 0x140002464
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002470
add rdx, 0x28
cmp rdx, r9
jne 0x140002450
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140009740]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400024a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400024b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400024a2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400024a2
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 0x140002505
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002518
add rdx, 0x28
cmp r10, rdx
jne 0x1400024f0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002527
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002537
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000250e
test ecx, ecx
jg 0x140002520
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180005450
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x1800892b8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
xor edx, edx
mov r8d, 0xc8
lea rcx, [rsp + 0x70]
call fcn.180041630
xor r9d, r9d
mov r8d, 0x100
lea rdx, [rsp + 0x70]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleA]
lea rcx, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp byte [rcx + rax], r15b
jne 0x1800054c0
test rax, rax
jne 0x1800054f0
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], r15b
mov dword [rsp + 0x40], 1
jmp 0x180005622
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
lea rcx, [rsp + 0x74]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, rbx
je 0x180005586
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r14, rax
test rax, rax
je 0x18000557d
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
jne 0x1800055a5
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], r15b
mov dword [rsp + 0x40], 1
jmp 0x180005622
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
inc rbx
cmp byte [rax + rbx], r15b
jne 0x1800055b6
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.180006d60
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rdi + 0x10], xmm1
movdqa xmm0, xmmword [0x18006e400]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov dword [rsp + 0x40], 1
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov rax, rdi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18003f700
mov rbx, qword [rsp + 0x190]
add rsp, 0x150
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800058c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x40
xor esi, esi
mov r15, rdx
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], esi
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x18000598d
xor edx, edx
mov qword [rsp + 0x78], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test eax, eax
je 0x18000597f
mov qword [rsp + 0x60], rbx
lea ecx, [rdi + 1]
mov qword [rsp + 0x68], rbp
call fcn.18003ef5c
mov dword [rsp + 0x70], esi
mov rbp, rax
mov ebx, esi
test rax, rax
je 0x180005938
mov byte [rdi + rax], bl
test edi, edi
je 0x18000596a
nop dword [rax]
mov r8d, edi
mov edx, ebx
sub r8d, ebx
mov qword [rsp + 0x20], rsi
add rdx, rbp
lea r9, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000599a
add ebx, dword [rsp + 0x70]
cmp ebx, edi
jb 0x180005940
test r15, r15
je 0x180005972
mov dword [r15], edi
mov rsi, rbp
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x78]
mov rax, rsi
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
cmp ebx, edi
jae 0x18000596a
test rbp, rbp
je 0x180005975
mov rcx, rbp
call fcn.18003ef28
jmp 0x180005975
Function at 0x18000ddd0
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 0x18000de9c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x18000de9c
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 0x18000deb5
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 0x18000de8c
cmp byte [rax], 0x5c
jne 0x18000de86
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x18000de86
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x18000de72
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x18000de83
test r8b, 0x10
jne 0x18000de86
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x18000de86
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.180011e50
test edi, edi
jne 0x18000ddf0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.18000f150
int3

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180012934
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180012920
ret
Function at 0x18001d5a0
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x18001d5ce
xor eax, eax
jmp 0x18001d6b4
cmp qword [rcx + 0x68], 0
je 0x18001d5df
call fcn.180015360
jmp 0x18001d6b4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18001d5f6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18001d5f8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18001d62a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.180040f80
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x18001d6ae
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x18001d661
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x18001d68a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180050dc8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x18001d6ae
cmp rsi, rbx
ja 0x18001d668
test rsi, rsi
je 0x18001d6ae
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.180050dc8
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

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

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x18001f652
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x18001f635
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x18001f620

Function at 0x18005bb60
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18005bb76
mov al, 1
jmp 0x18005bbd6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18005bb87
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18005bbd4
mov ecx, dword [rcx + 0x18]
nop
call fcn.180065d9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18005bbd4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18005bbd4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18005bbd4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18005bbd6
xor al, al
add rsp, 0x20
pop rbx
ret