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

Disassembly:
push rbp
push rsi
sub rsp, 0x58
mov rax, qword [0x140170080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, rdx
mov rsi, rcx
xor edx, edx
mov r9d, 0x658
mov rcx, rbp
lea r8d, [rdx + 8]
call rsi
test rax, rax
je 0x14003705b
mov qword [rsp + 0x80], rbx
xor ecx, ecx
lea rbx, [rax + 0xd0]
mov word [rax + 0x10], 0x808
mov byte [rbx + 0x64], 8
mov qword [rax + 0x20], rbx
mov qword [rsp + 0x88], rdi
lea rdi, [rax + 8]
mov qword [rdi + 0x50], rdi
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
lea rax, [fcn.140036e00]
mov qword [rbx], rsi
mov qword [rsp + 0x50], r14
xor r14d, r14d
mov dword [rdi + 0xb0], r14d
add dword [rdi + 0xb0], 0x10000
mov qword [rdi + 0x30], r14
mov qword [rdi + 0x20], r14
lea esi, [r14 + 0x18]
mov word [rdi + 0xc], r14w
mov qword [rdi + 0x58], r14
mov qword [rdi + 0xa0], r14
mov qword [rsp + 0x38], rax
mov dword [rdi + 0xc0], r14d
mov qword [rdi + 0xb8], r14
mov word [rdi + 0xa], 0x100
mov qword [rdi + 0x38], r14
mov qword [rdi + 0xa8], r14
mov dword [rdi + 0xb4], r14d
mov qword [rbx + 0x70], rdi
mov qword [rdi], r14
mov qword [rbx + 8], rbp
mov qword [rbx + 0x578], r14
mov qword [rbx + 0x580], r14
mov qword [rbx + 0x108], rdi
mov qword [rsp + 0x28], rdi
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
xor eax, esi
nop word [rax + rax]
movzx edx, byte [rsp + rsi + 0x27]
mov ecx, eax
shl ecx, 5
add edx, ecx
mov ecx, eax
shr ecx, 2
add edx, ecx
xor eax, edx
sub rsi, 1
jne 0x140036f10
mov dword [rbx + 0x60], eax
lea rdx, [0x1400369a0]
mov dword [rbx + 0x6a], 0x19320002
xor r8d, r8d
mov qword [rbx + 0x38], r14
mov rcx, rdi
mov qword [rbx + 0x30], r14
mov byte [rbx + 0x48], r14b
mov qword [rbx + 0x100], r14
mov dword [rbx + 0x65], 0x14000008
mov qword [rbx + 0xb8], r14
mov qword [rbx + 0xb0], r14
mov qword [rbx + 0x80], r14
mov qword [rbx + 0xd0], r14
mov qword [rbx + 0xc8], r14
mov qword [rbx + 0xc0], r14
mov qword [rbx + 0xd8], r14
mov qword [rbx + 0xf0], r14
mov qword [rbx + 0xe8], r14
mov qword [rbx + 0xe0], r14
mov qword [rbx + 0x78], r14
mov qword [rbx + 0x90], r14
mov qword [rbx + 0x88], r14
mov qword [rbx + 0xa8], r14
mov qword [rbx + 0xa0], r14
mov qword [rbx + 0x98], r14
mov qword [rbx + 0xf8], r14
mov qword [rbx + 0x10], 0x658
mov qword [rbx + 0x18], r14
mov qword [rbx + 0x28], r14
mov qword [rbx + 0x50], r14
mov byte [rbx + 0x58], 3
mov byte [rbx + 0x6e], reloc.WS2_32.dll_listen
mov byte [rbx + 0x69], Ordinal_27
mov qword [rbx + 0x1e0], r14
mov qword [rbx + 0x1e8], r14
mov qword [rbx + 0x1f0], r14
mov qword [rbx + 0x1f8], r14
mov qword [rbx + 0x200], r14
mov qword [rbx + 0x208], r14
mov qword [rbx + 0x210], r14
mov qword [rbx + 0x218], r14
mov qword [rbx + 0x220], r14
call fcn.1400201a0
mov rbx, qword [rsp + 0x80]
test eax, eax
je 0x14003704b
mov rcx, rdi
call fcn.140036c30
mov rdi, r14
mov r14, qword [rsp + 0x50]
mov rax, rdi
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14011a610
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x140037340
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
cmp r8, 0x28
ja 0x140037367
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp fcn.140037190
movabs rax, 0x7fffffffffffffdf
cmp rbp, rax
jae 0x1400373f4
mov qword [rsp + 0x30], rbx
lea rdx, [r8 + 0x19]
mov qword [rsp + 0x38], rsi
mov r8d, 4
mov qword [rsp + 0x40], rdi
mov rdi, qword [rcx + 0x18]
mov ebx, dword [rdi + 0x60]
call fcn.14002baf0
movzx ecx, byte [rdi + 0x64]
mov r8, rbp
and cl, 0x18
mov rdx, r14
mov rsi, rax
mov byte [rax + 9], cl
mov byte [rax + 8], reloc.WS2_32.dll_sendto
mov rcx, qword [rdi + 0x70]
mov qword [rax], rcx
lea rcx, [rax + 0x18]
mov qword [rdi + 0x70], rax
mov dword [rax + 0xc], ebx
mov byte [rax + 0xa], 0
mov byte [rax + rbp + 0x18], 0
mov qword [rax + 0x10], rbp
call sub.VCRUNTIME140.dll_memcpy
mov rdi, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call fcn.14002b9f0
int3
Function at 0x14004b590
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140170080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14004b5bd
xor eax, eax
jmp 0x14004b729
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14004b5f7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14004b5f7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14004b729
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14004b71c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14004b63a
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14004b665
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14004b721
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14004b6d4
sub eax, 1
je 0x14004b6d4
cmp eax, 2
jne 0x14004b71c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14004b721
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14004b702
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14004b71c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14004b721
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14011a610
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14004c630
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140170080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14004c703
cmp byte [rcx + 0x71], 0
je 0x14004c703
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14004c6ff
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14004c6c4
sub eax, 1
je 0x14004c6c8
cmp eax, 2
jne 0x14004c6ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14011a610
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14004c6f6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14004c6ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14004c6ac
xor al, al
jmp 0x14004c6ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14011a610
add rsp, 0x60
pop rbx
ret
Function at 0x140054350
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
test rcx, rcx
je 0x1400544f3
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400544f3
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400544f3
mov edx, 0x20b
cmp word [rax + rcx + 0x18], dx
jne 0x1400544f3
mov qword [rbx], rcx
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
mov qword [rsp + 0x40], rdi
mov qword [rbx + 8], rcx
xor edi, edi
mov qword [rsp + 0x48], r14
lea rax, [rcx + 0x18]
mov qword [rbx + 0x18], rax
lea rdx, [rcx + 4]
mov qword [rbx + 0x10], rdx
lea rax, [rcx + 0x88]
mov qword [rbx + 0x20], rax
lea r14, [rcx + 0x18]
lea rax, [rcx + 0x90]
mov qword [rbx + 0x28], rax
lea rax, [rcx + 0x98]
mov qword [rbx + 0x30], rax
lea rax, [rcx + 0xa0]
mov qword [rbx + 0x38], rax
lea rax, [rcx + 0xa8]
mov qword [rbx + 0x40], rax
lea rax, [rcx + 0xb0]
mov qword [rbx + 0x48], rax
lea rax, [rcx + 0xb8]
mov qword [rbx + 0x50], rax
lea rax, [rcx + 0xc0]
mov qword [rbx + 0x58], rax
lea rax, [rcx + 0xc8]
mov qword [rbx + 0x60], rax
lea rax, [rcx + 0xd0]
mov qword [rbx + 0x68], rax
lea rax, [rcx + 0xd8]
mov qword [rbx + 0x70], rax
lea rax, [rcx + 0xe0]
mov qword [rbx + 0x78], rax
lea rax, [rcx + 0xe8]
mov qword [rbx + 0x80], rax
lea rax, [rcx + 0xf0]
mov qword [rbx + 0x88], rax
lea rax, [rcx + 0xf8]
mov qword [rbx + 0x90], rax
lea rax, [rcx + 0x100]
mov qword [rbx + 0x98], rax
movzx eax, word [rcx + 0x14]
add r14, rax
cmp di, word [rdx + 2]
jae 0x1400544e1
mov qword [rsp + 0x38], rsi
nop dword [rax]
mov rdx, qword [rbx + 0xa8]
movsxd rax, edi
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
mov qword [rsp + 0x30], rax
cmp rdx, qword [rbx + 0xb0]
je 0x1400544bd
mov qword [rdx], rax
add qword [rbx + 0xa8], 8
jmp 0x1400544ce
lea r8, [rsp + 0x30]
lea rcx, [rbx + 0xa0]
call fcn.140011580
mov rax, qword [rbx + 0x10]
inc edi
movzx ecx, word [rax + 2]
cmp edi, ecx
jl 0x140054490
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x48]
mov al, 1
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140054e10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140170080]
xor rax, rsp
mov qword [rbp + 0x20], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
lea rdx, [rsp + 0x30]
call fcn.140054350
test al, al
je 0x140054fc3
mov dword [rsp + 0x20], 0xb1adb3e8
mov word [rsp + 0x24], 0xbe
mov byte [rsp + 0x26], 1
xor ecx, ecx
lea eax, [rcx - 0x3a]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 5
jb 0x140054e70
mov byte [rsp + 0x26], 0
mov rbx, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
cmp rbx, rdi
je 0x140054eb6
mov rsi, qword [rbx]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140054eb8
add rbx, 8
cmp rbx, rdi
jne 0x140054e92
xor esi, esi
mov dword [rsp + 0x28], 0xadafb8e7
mov dword [rsp + 0x2c], 0x100afb9
xor ecx, ecx
nop word [rax + rax]
lea eax, [rcx - 0x37]
xor byte [rsp + rcx + 0x28], al
inc rcx
cmp rcx, 6
jb 0x140054ed0
mov byte [rsp + 0x2f], 0
mov rbx, qword [rbp - 0x30]
mov r14, qword [rbp - 0x28]
cmp rbx, r14
je 0x140054f16
mov rdi, qword [rbx]
mov r8d, 8
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140054f18
add rbx, 8
cmp rbx, r14
jne 0x140054ef2
xor edi, edi
test rsi, rsi
je 0x140054fc3
cmp rsi, rdi
jae 0x140054fc3
mov dword [rbp - 0x10], 1
mov dword [rbp - 0xc], 2
mov dword [rbp - 8], 4
mov dword [rbp - 4], 8
mov dword [rbp], reloc.WS2_32.dll_recv
mov dword [rbp + 4], reloc.WLDAP32.dll_Ordinal_32
mov dword [rbp + 8], 0x40
mov dword [rbp + 0xc], 0x80
mov dword [rbp + 0x10], 0x100
mov dword [rbp + 0x14], 0x200
mov dword [rbp + 0x18], 0x400
mov dword [rbp + 0x1c], 0x80000000
lea r14, [rbp - 0x10]
mov r8d, dword [rsi + 8]
add r8d, 0x1000
mov r9d, dword [r14]
mov rdx, qword [rsp + 0x48]
mov rdx, qword [rdx + 0x18]
call fcn.140055030
mov r8d, dword [rdi + 8]
mov edx, dword [rdi + 0xc]
mov rax, qword [rsp + 0x48]
add rdx, qword [rax + 0x18]
mov r9d, dword [r14]
call fcn.140055030
add r14, 4
lea rax, [rbp + 0x20]
cmp r14, rax
jne 0x140054f82
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140055004
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054fff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140054fff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011a630
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14011a610
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140055030
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140170080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, r9d
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x58], r8
xor ebx, ebx
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rsi, rax
mov eax, reloc.WS2_32.dll_recv
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x1401b7a30], ecx
jle 0x1400550fa
lea rcx, [0x1401b7a30]
call fcn.14011a6e0
cmp dword [0x1401b7a30], 0xffffffff
jne 0x1400550fa
movdqa xmm0, xmmword [0x140154fd0]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0xb4b7bc95
mov dword [rsp + 0x44], 0x100a4ae
nop dword [rax]
nop word [rax + rax]
lea eax, [rbx - 0x38]
xor byte [rsp + rbx + 0x30], al
inc rbx
cmp rbx, 0x16
jb 0x1400550c0
mov byte [rsp + 0x47], 0
lea rdx, [rsp + 0x30]
mov rcx, qword [0x1401b70c0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401b7a20], rax
lea rcx, [0x1401b7a30]
call fcn.14011a674
mov rax, qword [0x1401b7a20]
test rax, rax
je 0x140055124
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, edi
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call rax
jmp 0x14005512f
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14011a610
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140068cd0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x140170080]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
js 0x140068d85
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140068d30
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14004d6c0
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
lea r8, [rdx + rcx*2]
lea rdx, [rsp + 0x40]
cmova rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.14004cbf0
nop
lea rcx, [rsp + 0x40]
call fcn.14004c8b0
jmp 0x140068daa
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
xor r8d, r8d
lea rdx, [0x14012fd88]
mov rcx, rbx
call fcn.140002b10
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14011a610
add rsp, 0x280
pop rbx
ret
Function at 0x14006eb40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14006eb74
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14006eb60
ret
Function at 0x140073620
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 0x1400736ec
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400736ec
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 0x140073705
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 0x1400736dc
cmp byte [rax], 0x5c
jne 0x1400736d6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x1400736d6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400736c2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x1400736d3
test r8b, 0x10
jne 0x1400736d6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x1400736d6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14006f830
test edi, edi
jne 0x140073640
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.14006f820
int3
Function at 0x140078620
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov r13, r9
mov r15, r8
mov r14, rdx
mov rbp, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x28], rdx
mov rbx, rdx
lea rax, [r8 - 1]
mov qword [rsp + 0x20], rax
mov r12, rax
sar r12, 1
cmp rdx, r12
jge 0x1400786f0
nop dword [rax]
nop word [rax + rax]
lea rdi, [rbx + rbx]
lea rbx, [rdi + 2]
shl rbx, 5
add rbx, rbp
lea rdx, [rbx - 0x20]
lea rcx, [rsp + 0x50]
call fcn.14004bfd0
or esi, 1
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14004bfd0
or esi, 2
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
call fcn.1400770b0
movzx ebx, al
lea rcx, [rsp + 0x30]
call fcn.14004c8b0
nop
lea rcx, [rsp + 0x50]
call fcn.14004c8b0
xor rbx, 1
inc rbx
add rbx, rdi
mov rdx, rbx
shl rdx, 5
add rdx, rbp
shl r14, 5
lea rcx, [r14 + rbp]
call fcn.1400766e0
mov r14, rbx
cmp rbx, r12
jl 0x140078670
mov rdi, rbx
cmp rbx, r12
jne 0x14007871b
test r15b, 1
jne 0x14007871b
shl r15, 5
lea rdx, [rbp - 0x20]
add rdx, r15
shl rbx, 5
lea rcx, [rbx + rbp]
call fcn.1400766e0
mov rdi, qword [rsp + 0x20]
lea rbx, [rdi - 1]
mov r15, qword [rsp + 0x28]
sar rbx, 1
cmp r15, rdi
jge 0x140078779
mov rdx, r13
lea rcx, [rsp + 0x30]
call fcn.14004bfd0
or esi, 0x10
or esi, 4
mov dword [rsp + 0x20], esi
mov rdx, rbx
shl rdx, 5
add rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.14004bfd0
or esi, 0x20
or esi, 8
mov dword [rsp + 0x20], esi
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
call fcn.1400770b0
test al, al
je 0x140078779
mov r14b, 1
jmp 0x14007877c
xor r14b, r14b
test sil, 8
je 0x140078790
and esi, 0xfffffff7
lea rcx, [rsp + 0x50]
call fcn.14004c8b0
nop
test sil, 4
je 0x1400787a3
and esi, 0xfffffffb
lea rcx, [rsp + 0x30]
call fcn.14004c8b0
shl rdi, 5
lea rcx, [rdi + rbp]
test r14b, r14b
je 0x1400787ca
mov rdx, rbx
shl rdx, 5
add rdx, rbp
call fcn.1400766e0
mov rdi, rbx
dec rbx
jmp 0x140078724
mov rdx, r13
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.1400766e0

Function at 0x14007ab80
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 0x14007abdd
lea rbx, [0x140140ca0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14007abc4
cmp r10, 2
jb 0x14007abc4
cmp byte [r9], r8b
jne 0x14007abc4
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 0x14007aba0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14007ac1f
lea rbx, [0x140140ca0]
cmp r8b, 0x23
jne 0x14007ac03
cmp byte [r9], r8b
jne 0x14007ac03
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 0x14007abf0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x14007ad20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14007ad3a
mov qword [r8], 0
lea rdx, [0x140145b84]
call fcn.14007ac30
mov rbx, rax
test rax, rax
jne 0x14007ad5a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14007ae31
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14007ae31
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14007ae31
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14007ae31
cmp rdi, 0xffffffffffffffff
je 0x14007ae31
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov rax, qword [0x1401b6c68]
test rax, rax
je 0x14007adda
inc dword [rax + 0xf0]
test rsi, rsi
je 0x14007ae31
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14007ae1e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1401b6c68]
test rax, rax
je 0x14007ae13
dec dword [rax + 0xf0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14007ae3a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14007ae2c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14007ae3c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret