joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b580
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002cd58]
test rcx, rcx
je 0x14000b5bb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b5ae
mov rcx, qword [0x14002cd58]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002cd58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002cd68], 0
je 0x14000b6ae
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140026968]
mov qword [rsp + 0x80], rsi
lea rsi, [0x14002f590]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b68f
test al, 0x10
je 0x14000b68f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b635
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000ca60
Capabilities:
Parse pe header

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

Function at 0x14000d9fc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000d88f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d88f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d88f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d88f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d88f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d88f
cmp dword [rcx + 0xf8], 0
je 0x14000d88f
mov ecx, ebx
call fcn.14000d930
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000d720
cmp dword [rbp + 0x20], 0
je 0x14000d8dc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000d8e4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000d828
Function at 0x14001c980
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001c9a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001c9a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003930
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]
call fcn.140013980
mov r15d, 0xfffffffa
cmp qword [rdi + 0x18], 0xf
jbe 0x140003996
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x14000399c
mov r14, rdi
mov rcx, rdi
mov r13, qword [rsi]
add r13, rcx
cmp rdi, r13
je 0x140003ab1
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop dword [rax]
nop word [rax + rax]
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x140003a4e
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 rax, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rax, rdx
jae 0x140003a2d
lea rcx, [rax + 1]
mov qword [rbx + 0x10], rcx
mov rcx, rbx
cmp rdx, 0xf
jbe 0x140003a22
mov rcx, qword [rbx]
mov byte [rcx + rax], r9b
mov byte [rcx + rax + 1], 0
jmp 0x140003a44
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call fcn.140017e90
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x1400039f0
inc r14
cmp r14, r13
jne 0x1400039c0
cmp r15d, 0xfffffffa
jle 0x140003ab1
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rax, ebp
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 0x140003aa1
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x140003a96
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140003ab1
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call fcn.140017e90
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x140003b01
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140003ae5
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x140003add
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x140003af8
mov r9b, 0x3d
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call fcn.140017e90
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x140003ac0
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 0x140004500
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140064100]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x48], rcx
lea edi, [rcx + 1]
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
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000456e
call fcn.140030510
cmp dword [rax], 4
je 0x140004540
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140027f90
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x1400064a0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140064100]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdx, qword [rcx + 8]
mov r8, qword [rcx + 0x28]
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x48], rdx
lea edi, [rdx + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], r8d
nop dword [rax]
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x14000651c
call fcn.140030510
cmp dword [rax], 4
je 0x1400064f0
test ebx, ebx
setg al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140027f90
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

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

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
mov rbx, rcx
mov eax, 0x7fffffff
mov rcx, qword [rcx + 0x48]
cmp r8, rax
mov rdi, r8
mov r14, rdx
cmova rdi, rax
mov rsi, qword [rbx + 0x50]
cmp rcx, rsi
jae 0x1400065c0
mov rdx, qword [rbx + 0x30]
sub rsi, rcx
add rdx, rcx
mov rcx, r14
cmp rdi, rsi
ja 0x1400065a7
mov r8, rdi
call fcn.140049470
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.140049470
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
test al, al
jne 0x1400065de
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 0x140006690
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 0x140006636
call fcn.140030510
cmp dword [rax], 4
je 0x140006610
mov r15, qword [rsp + 0x20]
test rsi, rsi
jle 0x140006654
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rsi, rdi
jg 0x140006666
mov r8, rsi
call fcn.140049470
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.140049470
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 0x1400066b3
call fcn.140030510
cmp dword [rax], 4
je 0x140006690
mov rbp, qword [rsp + 0x68]
mov rax, rbx
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400066d0
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 rdi, r8
mov rbp, rdx
mov rsi, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x140006709
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsi + 8]
mov eax, 0x7fffffff
cmp rdi, rax
mov qword [rsp + 0x38], rbx
cmova rdi, rax
nop
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x140006743
call fcn.140030510
cmp dword [rax], 4
je 0x140006720
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 0x140006760
Capabilities:
Resolve dns

Disassembly:
push rbx
push rsi
sub rsp, 0x4f8
mov rax, qword [0x140064100]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rcx, qword [rcx + 8]
mov rbx, r8
mov rsi, rdx
mov dword [rsp + 0x40], 0x80
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x14000684b
movzx eax, word [rsp + 0x50]
mov qword [rsp + 0x4f0], rdi
mov edi, dword [rsp + 0x40]
cmp ax, 2
je 0x1400067c3
cmp ax, 0x17
jne 0x1400067d3
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbx], eax
xor edx, edx
lea rcx, [rsp + 0xd0]
mov r8d, 0x401
call fcn.140049bf0
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0xd0]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, edi
lea rcx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getnameinfo]
mov rdi, qword [rsp + 0x4f0]
test eax, eax
jne 0x14000684b
lea rax, [rsp + 0xd0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140006831
lea rdx, [rsp + 0xd0]
mov rcx, rsi
call fcn.140013a70
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.140027f90
add rsp, 0x4f8
pop rsi
pop rbx
ret
Function at 0x14000e580
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x2b8
mov rax, qword [0x140064100]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x90]
xorps xmm1, xmm1
xor eax, eax
xor edx, edx
mov dword [rsp + 0x80], eax
mov r8d, 0x20a
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm1
call fcn.140049bf0
xor eax, eax
mov dword [rsp + 0x38], 0x20a
mov dword [rsp + 0x40], eax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x48], eax
lea rcx, [0x140058e50]
mov dword [rsp + 0x44], eax
xor r8d, r8d
lea rax, [rsp + 0x90]
xor edx, edx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, 1
jne 0x14000e6bf
mov ecx, dword [rsp + 0x40]
lea rdx, [rsp + 0x70]
shr ecx, 0x10
mov r8d, reloc.WS2_32.dll_recv
call fcn.140030680
lea rdx, [rsp + 0x50]
sub rdx, rax
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x14000e650
lea rcx, [rsp + 0x50]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x14000e670
mov eax, dword [0x140058e58]
lea rdx, [rsp + 0x70]
mov dword [rcx], eax
mov r8d, reloc.WS2_32.dll_recv
movzx ecx, word [rsp + 0x40]
call fcn.140030680
lea rcx, [rsp + 0x50]
mov r8, rax
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x14000e6a4
xor edx, edx
movzx eax, word [r8 + rdx*2]
lea rdx, [rdx + 1]
test ax, ax
jne 0x14000e6b1
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140027f90
add rsp, 0x2b8
ret
Function at 0x140011ee0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140011f04
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140011f92
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140011f60
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140011f60
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140049470
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140011f7d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140011f85
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140011f21
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140012070
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140011fa9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140011fab
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140011fdd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140049470
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14001206d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140012018
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 rsi, 0xfff
jbe 0x14001204e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.140032d50
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14001206d
cmp rsi, rax
ja 0x140012021
test rsi, rsi
je 0x14001206d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140032d50
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x140018c10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140018c44
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140018c30
ret

Function at 0x14001cee0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
sub rdi, rdx
mov rbp, rcx
sar rdi, 2
test rdi, rdi
je 0x14001d0bf
mov qword [rsp + 0x50], rbx
mov rbx, qword [rcx + 8]
sub rbx, qword [rcx]
mov qword [rsp + 0x60], r13
sar rbx, 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
cmp rdi, 0x26f
jb 0x14001cf30
mov eax, ntohs
jmp 0x14001cf5e
cmp rdi, 0x44
jb 0x14001cf3d
mov eax, 7
jmp 0x14001cf5e
cmp rdi, 0x27
jb 0x14001cf4a
mov eax, 5
jmp 0x14001cf5e
cmp rdi, 7
jb 0x14001cf57
mov eax, 3
jmp 0x14001cf5e
lea rax, [rdi - 1]
shr rax, 1
mov r14, rdi
lea r15, [rbx + 1]
sub r14, rax
shr r14, 1
lea r13, [r14 + rax]
cmp rdi, rbx
jbe 0x14001cf77
mov r15, rdi
mov r8, rdi
mov edx, 0x8b8b8b8b
shl r8, 2
mov rcx, rsi
call fcn.140049bf0
xor ecx, ecx
test r15, r15
je 0x14001d02f
mov qword [rsp + 0x58], r12
nop dword [rax + rax]
xor edx, edx
lea rax, [rcx + r14]
div rdi
mov r11d, dword [rsi + rdx*4]
lea r10, [rsi + rdx*4]
xor edx, edx
mov rax, rcx
div rdi
lea r12, [rsi + rdx*4]
mov r8d, r11d
mov r9, rdx
lea rax, [rcx - 1]
xor edx, edx
div rdi
xor r8d, dword [rsi + rdx*4]
xor r8d, dword [r12]
mov eax, r8d
shr eax, 0x1b
xor eax, r8d
imul edx, eax, 0x19660d
test rcx, rcx
jne 0x14001cfed
mov rax, rbx
jmp 0x14001d002
cmp rcx, rbx
ja 0x14001cfff
mov rax, qword [rbp]
mov eax, dword [rax + rcx*4 - 4]
add rax, r9
jmp 0x14001d002
mov rax, r9
lea r8d, [rax + rdx]
lea eax, [r11 + rdx]
xor edx, edx
mov dword [r10], eax
lea rax, [rcx + r13]
div rdi
inc rcx
add dword [rsi + rdx*4], r8d
mov dword [r12], r8d
cmp rcx, r15
jb 0x14001cfa0
mov r12, qword [rsp + 0x58]
add r15, rdi
cmp rcx, r15
jae 0x14001d0ab
inc r14
lea rbp, [rcx - 1]
inc r13
xor edx, edx
lea rax, [r14 + rbp]
div rdi
mov r10d, dword [rsi + rdx*4]
lea r11, [rsi + rdx*4]
xor edx, edx
lea rbx, [rbp + 1]
mov rax, rbx
div rdi
mov rax, rbp
mov r9, rdx
xor edx, edx
div rdi
mov ecx, dword [rsi + rdx*4]
xor edx, edx
add ecx, r10d
add ecx, dword [rsi + r9*4]
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul ecx, eax, 0x5d588b65
mov rax, rbp
add rax, r13
mov rbp, rbx
div rdi
xor r10d, ecx
lea rax, [rbx + 1]
mov dword [r11], r10d
mov r8d, ecx
sub r8d, r9d
xor dword [rsi + rdx*4], r8d
mov dword [rsi + r9*4], r8d
cmp rax, r15
jb 0x14001d041
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140021a40
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 0x140021b05
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140021b05
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 0x140021b1e
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x140021af5
cmp byte [rcx], 0x5c
jne 0x140021aee
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x140021aee
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140021adc
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x140021aeb
test r8b, 0x10
jne 0x140021aee
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x140021aee
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.14001c640
test edi, edi
jne 0x140021a60
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.14001c630
int3

Function at 0x140023f50
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140023f8a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140023f8f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140023fd8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14004d560]
cmp byte [rcx + rax], 0
je 0x140023fd8
dec r8
sub rdx, 1
jne 0x140023fbe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140028fa8
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14002e683
call fcn.140030510
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140033540
xor eax, eax
jmp 0x14002e711
mov rdx, r9
mov rcx, r8
call fcn.14002e5e8
mov rbx, rax
test rax, rax
je 0x14002e70e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14002e514]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14002e6fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140030484
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14002e6e2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14002e6f1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140039fc0
jmp 0x14002e70e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002e70b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400358ec
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003595b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003595b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003595b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003595b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003595b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003595b
cmp dword [rcx + 0xf8], 0
je 0x14003595b
mov ecx, ebx
call fcn.140035a0c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400357e8
nop
cmp dword [rbp + 0x20], 0
je 0x1400359a9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400359b4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400358ec

Function at 0x140035af0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400358ec
Function at 0x140038678
Capabilities:
Get file size

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