joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1401a1038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword gs:[0x30]
mov r15d, edx
mov ebp, ecx
mov r8, qword [rax + 0x60]
mov r14, qword [r8 + 0x18]
add r14, 0x20
mov rbx, qword [r14]
cmp rbx, r14
je 0x140001173
nop dword [rax]
cmp word [rbx + 0x48], 0x3f
jae 0x140001167
mov r9, qword [rbx + 0x50]
xor r11d, r11d
xor r10d, r10d
cmp word [r9], r10w
je 0x1400010ac
nop dword [rax + rax]
cmp r11d, 0x3f
jae 0x1400010a2
movzx edx, word [r9]
movzx r8d, dl
cmp edx, 0x61
lea eax, [r8 - 0x20]
movzx ecx, al
cmovb ecx, r8d
add r9, 2
mov byte [rsp + r10 + 0x20], cl
inc r11d
inc r10
cmp word [r9], 0
jne 0x140001070
cmp r10, 0x40
jae 0x1400011aa
mov byte [rsp + r10 + 0x20], 0
lea rcx, [rsp + 0x20]
movzx eax, byte [rsp + 0x20]
mov edx, 0x811c9dc5
test al, al
je 0x1400010e6
nop word [rax + rax]
movzx eax, al
lea rcx, [rcx + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx]
test al, al
jne 0x1400010d0
cmp edx, r15d
jne 0x140001167
mov r10, qword [rbx + 0x20]
movsxd rax, dword [r10 + 0x3c]
movsxd rcx, dword [rax + r10 + 0x88]
add rcx, r10
movsxd rax, dword [rcx + 0x20]
test eax, eax
je 0x140001167
movsxd rdi, dword [rcx + 0x24]
lea r8, [r10 + rax]
movsxd rsi, dword [rcx + 0x1c]
add rdi, r10
mov r11d, dword [rcx + 0x18]
add rsi, r10
xor r9d, r9d
test r11d, r11d
je 0x140001167
nop dword [rax]
nop dword [rax + rax]
movsxd rax, dword [r8]
mov edx, 0x811c9dc5
add rax, r10
movzx ecx, byte [rax]
test cl, cl
je 0x140001157
inc rax
movzx ecx, cl
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax]
test cl, cl
jne 0x140001142
cmp edx, ebp
je 0x14000119c
inc r9d
add r8, 4
cmp r9d, r11d
jb 0x140001130
mov rbx, qword [rbx]
cmp rbx, r14
jne 0x140001050
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14018c3e0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
movzx ecx, word [rdi + r9*2]
movsxd rax, dword [rsi + rcx*4]
add rax, r10
jmp 0x140001175
call fcn.14018c144
int3
Function at 0x14018ea08
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14018e834
Function at 0x140033bb8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140076b90], eax
call fcn.140033ee0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140076b90], 0
jne case.default.0x140033c0e
mov ecx, 1
call fcn.140033ee0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
invalid
Function at 0x140002950
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
lea rsi, [rdx + 0x10]
mov rdx, qword [rsi]
cmp rdx, 0xf
jbe 0x1400029a8
call fcn.14001e120
mov qword [rbx + 0x10], rbp
mov r15d, 0xfffffffa
cmp qword [rdi + 0x18], 0x10
jb 0x1400029c0
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x1400029c6
mov r14, rdi
mov rcx, rdi
mov r13, qword [rsi]
add r13, rcx
cmp rdi, r13
je 0x140002acf
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop dword [rax]
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x140002a6d
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + rax]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140002a4d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140002a42
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140002a63
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14001e270
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x140002a10
inc r14
cmp r14, r13
jne 0x1400029e0
cmp r15d, 0xfffffffa
jle 0x140002acf
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rdx, ebp
sar rdx, cl
and edx, 0x3f
movzx r9d, byte [rdx + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140002ac0
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140002ab5
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140002acf
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14001e270
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x140002b20
nop dword [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140002b05
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140002afd
mov rax, qword [rbx]
mov word [rcx + rax], 0x3d
jmp 0x140002b17
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14001e270
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x140002ae0
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003410
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14006d088]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000347f
call fcn.14003470c
cmp dword [rax], 4
je 0x140003450
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14002b940
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x1400034b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword [0x14006d088]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.140003410
test rax, rax
jne 0x1400034ec
mov al, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002b940
add rsp, 0x30
pop rdi
ret
jns 0x14000350d
call fcn.14003470c
cmp dword [rax], 9
jne 0x14000350d
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002b940
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
lea rsi, [rsp + 0x20]
nop dword [rax]
mov r9d, 2
mov rdx, rsi
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x140003547
call fcn.14003470c
cmp dword [rax], 4
je 0x140003520
mov rsi, qword [rsp + 0x50]
test rbx, rbx
mov rbx, qword [rsp + 0x48]
setg al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002b940
add rsp, 0x30
pop rdi
ret
Function at 0x140003a00
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x14006d088]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x140003a38
cmp ax, 0x17
jne 0x140003aad
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call fcn.14002e1b0
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x140003aad
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140003a92
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140019990
mov al, 1
jmp 0x140003aaf
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14002b940
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140004ca0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x14006d088]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdx, qword [rcx + 0x28]
mov rdi, rcx
mov rax, qword [rcx + 0x20]
mov rsi, qword [rcx + 8]
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x40], 1
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rsi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x140004d1e
call fcn.14003470c
cmp dword [rax], 4
je 0x140004cf0
test rbx, rbx
jle 0x140004d34
mov rcx, qword [rdi + 8]
call fcn.1400034b0
test al, al
je 0x140004d34
mov al, 1
jmp 0x140004d36
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14002b940
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140004d60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
mov rsi, qword [rcx + 0x50]
mov eax, 0x7fffffff
cmp r8, rax
mov rdi, r8
mov r14, rdx
mov rbx, rcx
cmova rdi, rax
mov rax, qword [rcx + 0x48]
cmp rax, rsi
jae 0x140004dd1
mov rcx, qword [rcx + 0x30]
sub rsi, rax
lea rdx, [rax + rcx]
mov rcx, r14
cmp rdi, rsi
ja 0x140004db8
mov r8, rdi
call fcn.14002da40
add qword [rbx + 0x48], rdi
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
call fcn.14002da40
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
test al, al
jne 0x140004dec
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x68], rbp
mov rbp, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rdi, 0x1000
jae 0x140004ea0
mov qword [rsp + 0x20], r15
mov r15, qword [rbx + 0x30]
nop word [rax + rax]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
test eax, eax
jns 0x140004e46
call fcn.14003470c
cmp dword [rax], 4
je 0x140004e20
mov r15, qword [rsp + 0x20]
test rsi, rsi
jle 0x140004e64
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rsi, rdi
jg 0x140004e76
mov r8, rsi
call fcn.14002da40
mov rbp, qword [rsp + 0x68]
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
call fcn.14002da40
mov rbp, qword [rsp + 0x68]
mov rax, rdi
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov r8d, edi
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x140004ec3
call fcn.14003470c
cmp dword [rax], 4
je 0x140004ea0
mov rbp, qword [rsp + 0x68]
mov rax, rbx
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140004ee0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x140004f19
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rdi, qword [rdi + 8]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x140004f45
call fcn.14003470c
cmp dword [rax], 4
je 0x140004f22
mov rbp, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140004fe0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x14006d088]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rcx + 8]
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140005039
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140003a00
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14002b940
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
Function at 0x1400177b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x14006d088]
xor rax, rsp
mov qword [rbp + 0x50], rax
movdqa xmm0, xmmword [0x140063b00]
xor r10d, r10d
movdqa xmm1, xmmword [0x140063af0]
xor eax, eax
movdqa xmmword [rbp - 0x30], xmm0
mov rbx, rdx
movdqa xmm0, xmmword [0x140063bf0]
mov ecx, 0xda413b59
movdqa xmmword [rbp - 0x10], xmm0
lea r9d, [r10 + 0x46]
movdqa xmm0, xmmword [0x140063d50]
mov r8d, r10d
movdqa xmmword [rbp - 0x20], xmm1
movdqa xmm1, xmmword [0x140063cf0]
movdqa xmmword [rbp + 0x10], xmm0
movdqa xmm0, xmmword [0x140063b70]
movdqa xmmword [rbp], xmm1
movdqa xmm1, xmmword [0x140063b90]
movdqa xmmword [rbp + 0x30], xmm0
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x20], xmm1
movdqa xmm1, xmmword [0x140063ec0]
movups xmmword [rsp + 0x2c], xmm0
mov qword [rbp - 0x48], rdx
movups xmmword [rsp + 0x3c], xmm0
mov dword [rbp - 0x40], 0xda413b59
movups xmmword [rsp + 0x4c], xmm0
mov dword [rbp - 0x3c], 0x67aedd2b
movups xmmword [rsp + 0x5c], xmm0
mov dword [rbp - 0x38], 0xd87d0ce8
movups xmmword [rsp + 0x6c], xmm0
mov dword [rbp - 0x34], 0xcbc2b0aa
movups xmmword [rsp + 0x7c], xmm0
mov qword [rbp - 0x54], rax
movups xmmword [rbp - 0x74], xmm0
mov dword [rbp - 0x4c], eax
movups xmmword [rbp - 0x64], xmm0
mov dword [rsp + 0x28], 0xda413b59
movdqa xmmword [rbp + 0x40], xmm1
nop dword [rax]
nop dword [rax + rax]
movzx eax, cl
imul ecx, ecx, 0xbc8f
xor al, byte [rbp + r8 - 0x3c]
mov byte [rsp + r8 + 0x2c], al
lea r8, [r8 + 2]
mov eax, 3
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1e
imul eax, eax, 0x7fffffff
sub ecx, eax
movzx eax, cl
imul ecx, ecx, 0xbc8f
xor al, byte [rbp + r8 - 0x3d]
mov byte [rsp + r8 + 0x2b], al
mov eax, 3
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1e
imul eax, eax, 0x7fffffff
sub ecx, eax
sub r9, 1
jne 0x1400178b0
movups xmm0, xmmword [rsp + 0x28]
lea rax, [rbp - 0x3c]
mov r8, 0xffffffffffffffff
movups xmm1, xmmword [rsp + 0x38]
movaps xmmword [rbp - 0x40], xmm0
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rbp - 0x30], xmm1
movups xmm1, xmmword [rsp + 0x58]
movaps xmmword [rbp - 0x20], xmm0
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rbp - 0x10], xmm1
movups xmm1, xmmword [rsp + 0x78]
movaps xmmword [rbp], xmm0
movups xmm0, xmmword [rbp - 0x78]
movaps xmmword [rbp + 0x10], xmm1
movups xmm1, xmmword [rbp - 0x68]
movaps xmmword [rbp + 0x20], xmm0
movups xmm0, xmmword [rbp - 0x58]
movaps xmmword [rbp + 0x30], xmm1
xorps xmm1, xmm1
movups xmmword [rbx], xmm1
mov qword [rbx + 0x10], r10
movaps xmmword [rbp + 0x40], xmm0
mov qword [rbx + 0x18], r10
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r10b
jne 0x140017980
lea rdx, [rbp - 0x3c]
mov rcx, rbx
call fcn.14001e570
mov rax, rbx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14002b940
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rbp
ret
Function at 0x1400185c0
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 0x1400185e2
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 0x14001865c
mov rdi, r14
mov rcx, rbx
call fcn.14001ab70
test rax, rax
jle 0x140018634
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.14002da40
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 0x14001864c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140018654
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400185f6
sub r14, rdi
jmp 0x14001873f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140018673
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140018675
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400186a7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14002da40
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 0x14001873c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400186e2
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 0x14001871d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140036e18
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14001873c
cmp rbp, rax
ja 0x1400186f0
test rbp, rbp
je 0x14001873c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140036e18
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 0x14001ef10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14001ef44
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14001ef30
ret
Function at 0x140027820
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 0x1400278ec
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400278ec
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 0x140027905
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 0x1400278dc
cmp byte [rax], 0x5c
jne 0x1400278d6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x1400278d6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400278c2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x1400278d3
test r8b, 0x10
jne 0x1400278d6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x1400278d6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140022760
test edi, edi
jne 0x140027840
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.140022750
int3

Function at 0x14002c840
Capabilities:
Parse pe header

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

Function at 0x14003b788
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003b578
Function at 0x140040c44
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140040c64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140034680
or eax, 0xffffffff
jmp 0x140040c66
xor eax, eax
add rsp, 0x28
ret

Function at 0x140041214
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140041246
call fcn.14003470c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1400375ec
jmp 0x140041365
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140041365
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140041365
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140041275
lock or dword [rcx + 0x14], 0x10
jmp 0x140041365
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140041289
call fcn.140043ac4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14003e22c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140043fdc
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140041353
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14004131e
mov rcx, rsi
call fcn.14003e22c
cmp eax, edi
je 0x140041309
mov rcx, rsi
call fcn.14003e22c
cmp eax, 0xfffffffe
je 0x140041309
mov rcx, rsi
call fcn.14003e22c
movsxd rbx, eax
lea r14, [0x1400725a0]
mov rcx, rsi
sar rbx, 6
call fcn.14003e22c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140041310
lea rdx, [0x14006d420]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14004131e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140041342
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140041342
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140041342
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140041368
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140043844
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.14002c3f0
sub rsp, rax
mov rax, qword [0x14006d088]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003e22c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140043893
mov rax, rbp
jmp 0x14004399b
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 + 0x725a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400447b4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x725a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140043997
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 0x140043997
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400447b4
test rax, rax
js 0x140043997
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140043997
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140043989
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140043989
cmp byte [rcx], 0xd
jne 0x14004396f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004397e
cmp byte [rcx + 1], 0xa
jne 0x14004397e
inc rcx
jmp 0x14004397e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x6d470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140043951
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004399b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002b940
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret