joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c324
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400419f0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14001c382
cmp word [rdx], r12w
jne 0x14001c382
or byte [rax + r8*8 + 0x38], cl
jmp 0x14001c388
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14001c4e3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14001c4be
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14001c3c1
mov rcx, r9
jmp 0x14001c3e4
cmp r9, rdx
jae 0x14001c3fb
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14001c3a5
jmp 0x14001c4e3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001c4b8
cmp dword [rsp + 0x80], edi
je 0x14001c4b8
mov rdx, r14
lea r11, [0x1400419f0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14001c491
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14001c464
mov word [rbx], r12w
jmp 0x14001c4df
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14001c46d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14001c4df
cmp word [rsp + 0x70], r12w
jne 0x14001c49e
cmp rbx, rsi
je 0x14001c45e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001d11c
cmp word [rsp + 0x70], r12w
je 0x14001c4e3
mov word [rbx], r13w
jmp 0x14001c4df
lea r11, [0x1400419f0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001c4db
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001c4e3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001cd38
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 0x14001cd6a
call fcn.140017f88
mov dword [rax], 0x16
call fcn.14001b75c
jmp 0x14001ce89
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001ce89
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001ce89
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001cd99
lock or dword [rcx + 0x14], 0x10
jmp 0x14001ce89
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001cdad
call fcn.140024798
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001b2f4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14001c7d0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14001ce77
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14001ce42
mov rcx, rsi
call fcn.14001b2f4
cmp eax, edi
je 0x14001ce2d
mov rcx, rsi
call fcn.14001b2f4
cmp eax, 0xfffffffe
je 0x14001ce2d
mov rcx, rsi
call fcn.14001b2f4
movsxd rbx, eax
lea r14, [0x1400419f0]
mov rcx, rsi
sar rbx, 6
call fcn.14001b2f4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14001ce34
lea rdx, [0x14003f450]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001ce42
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14001ce66
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14001ce66
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14001ce66
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 0x14001ce8c
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 0x14002376c
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14002379c
xor eax, eax
jmp 0x14002385f
mov rbp, rbx
cmp word [rax], si
je 0x1400237c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400237a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400237a4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14002165c
movsxd r14, eax
test eax, eax
jne 0x1400237ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140023795
mov rcx, r14
call fcn.14001e4b0
mov rdi, rax
test rax, rax
jne 0x140023818
xor ecx, ecx
call fcn.14001b7c4
jmp 0x1400237f4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14002165c
test eax, eax
jne 0x140023849
mov rcx, rdi
call fcn.14001b7c4
jmp 0x140023853
xor ecx, ecx
call fcn.14001b7c4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14002387c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140023903
mov rsi, rbx
cmp word [rax], bp
je 0x1400238c2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400238ac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400238a8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001e4b0
mov rdi, rax
test rax, rax
je 0x1400238f0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002ae00
mov rbp, rdi
xor ecx, ecx
call fcn.14001b7c4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400281f0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400157b4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002827a
cmp byte [rbp - 0x21], r15b
je 0x140028275
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400282b0
call fcn.14001fd10
test eax, eax
jne 0x14002829c
cmp byte [rbp - 0x21], r15b
je 0x140028294
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400282b0
cmp byte [rbp - 0x21], r15b
je 0x1400282ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140015d6c
test eax, eax
jne 0x140028350
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400157b4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400282ef
cmp byte [rbp - 0x21], r15b
je 0x140028324
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140028324
call fcn.14001fd10
test eax, eax
jne 0x140028310
cmp byte [rbp - 0x21], r15b
je 0x140028309
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140028324
cmp byte [rbp - 0x21], r15b
je 0x140028321
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140015d6c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140028350
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140028353
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140028361
mov rcx, rdi
call fcn.14001b7c4
cmp byte [rbp + 0x3f], r15b
je 0x140028370
mov rcx, qword [rbp + 0x27]
call fcn.14001b7c4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140029910
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d11c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d11c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029a60
cmp rax, 0xffffffffffffffff
je 0x140029a60
xor edi, edi
test rbp, rbp
jle 0x140029a0b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fa80
mov rbx, rax
test rax, rax
jne 0x140029998
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029a01
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aa5c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001de1c
cmp eax, 0xffffffff
je 0x1400299e1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400299a8
mov edx, r15d
mov ecx, r14d
call fcn.14001aa5c
jmp 0x140029a01
cmp byte [rsi + 0x38], dil
je 0x1400299f8
cmp dword [rsi + 0x34], 5
jne 0x1400299f8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029a01
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b7c4
jmp 0x140029a74
jns 0x140029a74
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d11c
cmp rax, 0xffffffffffffffff
jne 0x140029a2c
cmp byte [rsi + 0x30], dil
je 0x140029a74
mov edi, dword [rsi + 0x2c]
jmp 0x140029a74
mov ecx, r14d
call fcn.140018f18
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029a74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029a74
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029a6d
mov eax, dword [rsi + 0x2c]
jmp 0x140029a72
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d11c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002aba0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002abc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002abc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002260
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0xf], 0
mov rbx, rcx
je 0x140002286
xor eax, eax
lea r8d, [rax - 0x15]
xor byte [rax + rdx], r8b
inc rax
cmp rax, 0xe
jb 0x140002271
mov byte [rdx + 0xf], 0
call fcn.140003070
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400022a0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0x17], 0
mov rbx, rcx
je 0x1400022c6
xor eax, eax
lea r8d, [rax - 0x15]
xor byte [rax + rdx], r8b
inc rax
cmp rax, 0x16
jb 0x1400022b1
mov byte [rdx + 0x17], 0
call fcn.140003070
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400022e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 6], 0
mov rbx, rcx
je 0x140002306
xor eax, eax
lea r8d, [rax - 0x15]
xor byte [rax + rdx], r8b
inc rax
cmp rax, 5
jb 0x1400022f1
mov byte [rdx + 6], 0
call fcn.140003070
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14000cb3c
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x18]
mov rsi, qword [rcx + 0x10]
mov r14, qword [rcx + 8]
mov r15, qword [rcx]
mov r9d, dword [rdi]
mov r8d, dword [rsi]
mov rdx, qword [r14]
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x14000cb88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000cb64
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x14000cba8
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rcx + 8]
mov r14, qword [rcx]
mov ecx, dword [r14]
xor r9d, r9d
inc ecx
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000cbf3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000cbc8
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x14000cc0c
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rcx + 8]
mov r14, qword [rcx]
mov ecx, dword [r14]
xor r9d, r9d
inc ecx
mov qword [rsp + 0x20], rdi
mov r8, rsi
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000cc56
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000cc2c
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x18]
mov rsi, qword [rcx + 0x10]
mov r14, qword [rcx + 8]
mov r15, qword [rcx]
mov r9d, dword [rdi]
mov r8d, dword [rsi]
mov rdx, qword [r14]
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x14000ccbc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000cc98
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x14000ccdc
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, qword [rcx + 0x20]
mov rsi, qword [rcx + 0x18]
mov rbp, qword [rcx + 0x10]
mov r14, qword [rcx + 8]
mov r15, qword [rcx]
mov ecx, dword [r15]
mov r9, rsi
inc ecx
mov qword [rsp + 0x20], rdi
mov r8, rbp
mov rdx, r14
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000cd32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000cd07
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140019ed8
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rsi, rdx
mov dword [rax + 8], 1
mov rbx, r8
mov rdi, rcx
mov rcx, rsi
lea r8, [rax + 8]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rbx + 0x10]
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x140019f69
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140019f42
mov rax, qword [rdi + 8]
mov dword [rax], 2
xor al, al
jmp 0x14001a02d
mov r8, qword [rdi + 0x18]
mov rcx, rsi
mov rdx, qword [rdi + 0x10]
mov r8, qword [r8]
mov rdx, qword [rdx]
call fcn.14002e458
mov ecx, eax
mov rax, qword [rdi + 8]
mov dword [rax], ecx
mov rax, qword [rdi + 8]
cmp dword [rax], 0
jne 0x140019f3b
and dword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rdi + 0x28]
lea r9, [rsp + 0x40]
movabs r14, 0x20c49ba5e353f7cf
mov dword [rsp + 0x20], 4
mov ebx, 0xffff
mov r8d, 0x1006
mov rcx, qword [rax]
mov rax, r14
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [rdi + 0x20]
imul ecx, dword [rax], 0x3e8
add edx, ecx
mov rcx, rsi
mov dword [rsp + 0x40], edx
mov edx, ebx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rdi + 0x38]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
mov rcx, qword [rax]
mov rax, r14
imul rcx
sar rdx, 7
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
mov rcx, qword [rdi + 0x30]
imul r8d, dword [rcx], 0x3e8
mov rcx, rsi
add edx, r8d
mov r8d, 0x1005
mov dword [rsp + 0x40], edx
mov edx, ebx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 8]
mov al, 1
and dword [rcx], 0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14001da60
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
cmp ecx, 0xffffffff
je 0x14001dbed
cmp ecx, 0x7c
je 0x14001dbed
cmp ecx, 0x29
jne 0x14001dada
cmp dword [rdi + 0x1c], 0
jne 0x14001dbed
lea rbx, [rdi + 0x80]
test dword [rbx], 0x10000000
je 0x14001dc06
cmp ecx, 0x5d
jne 0x14001dab7
test dword [rbx], 0x10000000
je 0x14001dc14
mov dl, byte [rdi + 0x78]
lea rcx, [rdi + 0x40]
call fcn.14001d054
mov rcx, rdi
call fcn.140021b24
mov rcx, rdi
call fcn.140021b98
mov ecx, dword [rdi + 0x7c]
mov al, 1
jmp 0x14001da72
lea rbx, [rdi + 0x80]
cmp ecx, 0x2e
jne 0x14001daf1
lea rcx, [rdi + 0x40]
call fcn.14001d2dc
jmp 0x14001dac3
cmp ecx, 0x5c
jne 0x14001db3f
mov rcx, rdi
call fcn.140021b24
test byte [rbx], 0x80
je 0x14001db35
mov al, byte [rdi + 0x78]
cmp al, 0x62
jne 0x14001db1d
lea rcx, [rdi + 0x40]
call fcn.14001da54
mov rcx, rdi
call fcn.140021b24
jmp 0x14001dad3
cmp al, 0x42
jne 0x14001db35
lea rcx, [rdi + 0x40]
call fcn.14001da54
lea rcx, [rdi + 0x40]
call fcn.140021ac0
jmp 0x14001db13
mov rcx, rdi
call fcn.14001dc30
jmp 0x14001dacb
cmp ecx, 0x5b
jne 0x14001db6a
mov rcx, rdi
call fcn.140021b24
mov rcx, rdi
call fcn.14001e638
mov edx, 0x5d
mov rcx, rdi
lea r8d, [rdx - 0x59]
call fcn.140020314
jmp 0x14001dacb
cmp ecx, 0x28
jne 0x14001db9f
mov rcx, rdi
call fcn.140021b24
mov rcx, rdi
call fcn.140022360
mov edx, 0x29
mov rcx, rdi
mov bl, al
lea r8d, [rdx - 0x24]
call fcn.140020314
test bl, bl
je 0x14001dad3
jmp 0x14001dacb
cmp ecx, 0x5e
jne 0x14001dbb2
lea rcx, [rdi + 0x40]
call fcn.14001d048
jmp 0x14001db13
cmp ecx, 0x24
jne 0x14001dbc5
lea rcx, [rdi + 0x40]
call fcn.14001d3dc
jmp 0x14001db13
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x14001dc22
cmp ecx, 0x3f
je 0x14001dc22
cmp ecx, 0x7b
je 0x14001dc22
cmp ecx, 0x7d
jne 0x14001daa6
test dword [rbx], 0x10000000
je 0x14001dbf8
jmp 0x14001dab7
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 6
mov rcx, rdi
call fcn.140020308
int3
mov edx, 5
mov rcx, rdi
call fcn.140020308
int3
mov edx, 4
mov rcx, rdi
call fcn.140020308
int3
mov edx, 0xa
mov rcx, rdi
call fcn.140020308
int3
Function at 0x1400239e0
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
and dword [rax - 0x38], 0
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
and qword [rcx + 0x10], 0
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], 0
mov dword [rax - 0x38], 1
mov rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x140023a4c
mov r8b, byte [rsp + 0x60]
mov rdx, rax
call fcn.1400098ac
and qword [rbx + 0x10], 0
mov rax, qword [rdi + 0x10]
xor esi, esi
lea r14d, [rsi - 6]
cmp qword [rdi + 0x18], 0x10
jb 0x140023a64
mov rbp, qword [rdi]
mov rcx, rbp
mov rdi, rbp
jmp 0x140023a6a
mov rbp, rdi
mov rcx, rdi
lea r12, [rax + rcx]
cmp rdi, r12
je 0x140023b8f
lea r8, [0x140059470]
shl esi, 8
movzx eax, byte [rbp]
add esi, eax
add r14d, 8
js 0x140023b07
movsxd r13, esi
movsxd rdi, r14d
lea ecx, [r14 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov r15d, edx
imul eax, edx, 0xfffffffa
add r14d, eax
mov rax, r13
mov rcx, rdi
sar rax, cl
and eax, 0x3f
mov r9b, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x140023ae4
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140023ad9
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140023afd
mov r8b, byte [rsp + 0x60]
mov edx, 1
mov rcx, rbx
call fcn.140003850
lea r8, [0x140059470]
sub rdi, 6
sub r15, 1
jne 0x140023aaa
inc rbp
cmp rbp, r12
jne 0x140023a7e
cmp r14d, 0xfffffffa
jle 0x140023b8f
lea ecx, [r14 + 8]
shl esi, 8
movsxd rax, esi
sar rax, cl
and eax, 0x3f
mov r9b, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x140023b7d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140023b4c
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140023b8f
cmp rcx, qword [rbx + 0x18]
jae 0x140023b7a
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140023b72
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x140023b8f
mov r9b, 0x3d
mov r8b, byte [rsp + 0x60]
mov edx, 1
mov rcx, rbx
call fcn.140003850
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x140023b57
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret