joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4cac40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4cb642
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4cb6da
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4cb6be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cb6b2
cmp qword [rbp - 0x10], 0
je 0x2fc4cb6b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cb678
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cb6db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cb7e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cb808
mov eax, 0
jmp 0x2fc4cb856
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cb831
mov eax, 0
jmp 0x2fc4cb856
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cb851
mov eax, 0
jmp 0x2fc4cb856
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb85c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cb8da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cb8d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cb8d1
mov rax, qword [rbp - 8]
jmp 0x2fc4cb8ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cb8a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x6335b870
Capabilities:
Encode data using xor

Disassembly:
push rbp
test al, 0x85
sbb ch, byte [rbx]
xlatb
or byte [rax], dl
nop
xor byte [rax + rdi*8 + 0xc22933d], ah
lahf
jle 0x6335b879
sbb byte [rdi + 0x15], dl
mov ch, 5
mov dword [rsi + rcx - 0x47], ecx
out dx, al
mov al, 0x7e
jge 0x6335b901
imul byte [r9 + 0x6e]
invalid
paddd mm6, mm5
adc byte [rbp - 2], al
sahf
invalid

Function at 0x639db058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.639db1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x639db089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x639db06f
add dl, dl
jne 0x639db096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x639db0f6
xor eax, eax
add dl, dl
jne 0x639db0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x639db1ad
add dl, dl
jne 0x639db0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x639db0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x639db0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x639db0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x639db0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x639db07e
mov eax, 1
add dl, dl
jne 0x639db106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x639db113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x639db0fb
sub eax, ebx
mov ebx, 1
jne 0x639db14c
mov ecx, 1
add dl, dl
jne 0x639db12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x639db13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x639db123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x639db07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x639db168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x639db175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x639db15d
cmp eax, 0x7d00
jae 0x639db19b
cmp eax, 0x500
jb 0x639db196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x639db07e
cmp eax, 0x7f
ja 0x639db19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x639db07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x639db1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x639db07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4cac70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4cb672
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4cb70a
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4cb6ee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cb6e2
cmp qword [rbp - 0x10], 0
je 0x2fc4cb6e2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cb6a8
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cb70b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cb810
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cb838
mov eax, 0
jmp 0x2fc4cb886
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cb861
mov eax, 0
jmp 0x2fc4cb886
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cb881
mov eax, 0
jmp 0x2fc4cb886
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb88c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cb90a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cb901
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cb901
mov rax, qword [rbp - 8]
jmp 0x2fc4cb91f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cb8d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400040ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004136
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004136
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004136
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004136
cmp dword [rcx + 0x84], 0xe
jbe 0x140004136
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004138
xor al, al
add rsp, 0x28
ret
Function at 0x1400011d5
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
xor eax, eax
mov r10, rcx
mov rcx, rdx
cmp word [r10], 0x5a4d
jne 0x14000124f
movsxd rdx, dword [r10 + 0x3c]
add rdx, r10
cmp dword [rdx], 0x4550
jne 0x14000124f
mov ebx, dword [rdx + 0x88]
xor r11d, r11d
add rbx, r10
mov esi, dword [rbx + 0x20]
mov edi, dword [rbx + 0x14]
add rsi, r10
cmp r11d, edi
jae 0x14000124d
mov edx, dword [rsi + r11*4]
add rdx, r10
call fcn.1400011b3
mov edx, eax
lea rax, [r11 + 1]
test edx, edx
jne 0x140001248
mov eax, dword [rbx + 0x24]
add r11, r11
add r11, r10
movzx edx, word [r11 + rax]
mov eax, dword [rbx + 0x1c]
lea rdx, [r10 + rdx*4]
mov eax, dword [rdx + rax]
add rax, r10
jmp 0x14000124f
mov r11, rax
jmp 0x140001210
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000137e
Capabilities:
Access peb ldr_data

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r11, qword [rax + 0x20]
mov rbx, rcx
test r11, r11
je 0x1400013c2
cmp word [r11 + 0x48], 0
je 0x1400013bf
mov rcx, qword [r11 + 0x50]
mov rdx, rbx
call fcn.140001309
test eax, eax
jne 0x1400013ba
mov r11, qword [r11 + 0x20]
jmp 0x1400013c2
mov r11, qword [r11]
jmp 0x140001397
xor r11d, r11d
mov rax, r11
add rsp, 0x20
pop rbx
ret
Function at 0x140001c60
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
movabs rsi, 0x7ffffffffeced2ff
movabs rdi, 0x7fffffffffffffff
nop word [rax + rax]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._rPreparing...
call fcn.1400025d0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x1400605e4]
call fcn.1400025d0
mov rcx, rax
lea rdx, [0x1400027a0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, [rsp + 0x38]
call fcn.1400015e0
mov rax, qword [rsp + 0x38]
cmp rax, rsi
jge 0x140001cee
add rax, 0x1312d00
mov qword [rsp + 0x30], rax
jmp 0x140001cf3
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x30]
call fcn.140002cc0
lea rcx, [0x14005f12c]
inc ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
cmp ebx, 0x64
jl 0x140001c90
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Loading_complete_
call fcn.1400025d0
mov rcx, rax
lea rdx, [0x1400027c0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 3
call fcn.1400024d0
lea rcx, [0x14005f12c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.1400016d0
lea rcx, [rsp + 0x30]
call fcn.1400015e0
mov rax, qword [rsp + 0x30]
movabs rcx, 0x7fffffffff1b1e3f
cmp rax, rcx
jge 0x140001d88
add rax, 0xe4e1c0
mov qword [rsp + 0x30], rax
jmp 0x140001d8d
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x30]
call fcn.140002cc0
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140001db0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140073180]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x38], eax
lea r9, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov qword [rsp + 0x28], rax
lea rcx, str.C:__
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x140001e1f
mov edx, dword [rsp + 0x60]
mov rcx, rbx
call fcn.140002320
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140052480
add rsp, 0x70
pop rbx
ret
lea rdx, str.failed_to_get_hwid
lea rcx, [rsp + 0x48]
call fcn.140001470
lea rdx, [0x140070098]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14000cc5c
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 0x14000cca8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000cc84
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 0x14000ccc8
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 0x14000cd13
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000cce8
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 0x14000cd2c
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 0x14000cd76
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000cd4c
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 0x14000cd90
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 0x14000cddc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000cdb8
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 0x14000cdfc
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 0x14000ce52
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000ce27
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 0x140019fd4
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 0x14001a065
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14001a03e
mov rax, qword [rdi + 8]
mov dword [rax], 2
xor al, al
jmp 0x14001a129
mov r8, qword [rdi + 0x18]
mov rcx, rsi
mov rdx, qword [rdi + 0x10]
mov r8, qword [r8]
mov rdx, qword [rdx]
call fcn.14002e804
mov ecx, eax
mov rax, qword [rdi + 8]
mov dword [rax], ecx
mov rax, qword [rdi + 8]
cmp dword [rax], 0
jne 0x14001a037
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 0x14001dcdc
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 0x14001de69
cmp ecx, 0x7c
je 0x14001de69
cmp ecx, 0x29
jne 0x14001dd56
cmp dword [rdi + 0x1c], 0
jne 0x14001de69
lea rbx, [rdi + 0x80]
test dword [rbx], 0x10000000
je 0x14001de82
cmp ecx, 0x5d
jne 0x14001dd33
test dword [rbx], 0x10000000
je 0x14001de90
mov dl, byte [rdi + 0x78]
lea rcx, [rdi + 0x40]
call fcn.14001d2d0
mov rcx, rdi
call fcn.140021da0
mov rcx, rdi
call fcn.140021e14
mov ecx, dword [rdi + 0x7c]
mov al, 1
jmp 0x14001dcee
lea rbx, [rdi + 0x80]
cmp ecx, 0x2e
jne 0x14001dd6d
lea rcx, [rdi + 0x40]
call fcn.14001d558
jmp 0x14001dd3f
cmp ecx, 0x5c
jne 0x14001ddbb
mov rcx, rdi
call fcn.140021da0
test byte [rbx], 0x80
je 0x14001ddb1
mov al, byte [rdi + 0x78]
cmp al, 0x62
jne 0x14001dd99
lea rcx, [rdi + 0x40]
call fcn.14001dcd0
mov rcx, rdi
call fcn.140021da0
jmp 0x14001dd4f
cmp al, 0x42
jne 0x14001ddb1
lea rcx, [rdi + 0x40]
call fcn.14001dcd0
lea rcx, [rdi + 0x40]
call fcn.140021d3c
jmp 0x14001dd8f
mov rcx, rdi
call fcn.14001deac
jmp 0x14001dd47
cmp ecx, 0x5b
jne 0x14001dde6
mov rcx, rdi
call fcn.140021da0
mov rcx, rdi
call fcn.14001e8b4
mov edx, 0x5d
mov rcx, rdi
lea r8d, [rdx - 0x59]
call fcn.140020590
jmp 0x14001dd47
cmp ecx, 0x28
jne 0x14001de1b
mov rcx, rdi
call fcn.140021da0
mov rcx, rdi
call fcn.1400225dc
mov edx, 0x29
mov rcx, rdi
mov bl, al
lea r8d, [rdx - 0x24]
call fcn.140020590
test bl, bl
je 0x14001dd4f
jmp 0x14001dd47
cmp ecx, 0x5e
jne 0x14001de2e
lea rcx, [rdi + 0x40]
call fcn.14001d2c4
jmp 0x14001dd8f
cmp ecx, 0x24
jne 0x14001de41
lea rcx, [rdi + 0x40]
call fcn.14001d658
jmp 0x14001dd8f
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x14001de9e
cmp ecx, 0x3f
je 0x14001de9e
cmp ecx, 0x7b
je 0x14001de9e
cmp ecx, 0x7d
jne 0x14001dd22
test dword [rbx], 0x10000000
je 0x14001de74
jmp 0x14001dd33
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 6
mov rcx, rdi
call fcn.140020584
int3
mov edx, 5
mov rcx, rdi
call fcn.140020584
int3
mov edx, 4
mov rcx, rdi
call fcn.140020584
int3
mov edx, 0xa
mov rcx, rdi
call fcn.140020584
int3