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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5fc0], 0
lea rbx, [rcx + 0x5fc8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400504c7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14005047a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140052d20
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400399e0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5fc0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5fd0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14030c541]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400504cf
mov rcx, rbx
call fcn.1400399e0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140050730
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x14030c5b8]
xor ebp, ebp
cmp byte [rbx + 0x5f18], bpl
jne 0x14005080f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140050808
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140038fb0
mov rsi, rax
test rax, rax
je 0x140050808
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140050794
mov rcx, rax
call fcn.140050960
mov r8, qword [0x14030c5b8]
test r8, r8
je 0x1400507ff
movsx rdx, word [r8 + 0x6078]
lea rcx, [r8 + 0x607c]
mov r9d, dword [r8 + 0x3f90]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1400507f4
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6078], cx
movsx rax, cx
lea rcx, [r8 + 0x607c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x6074]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f18], 1
movss xmm0, dword [rbx + 0x5f1c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14005089e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f1c], xmm0
jb 0x14005089e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140050891
mov rax, qword [0x14030c5b8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f1c], ebp
call fcn.140050bc0
lea rdx, [0x1402e057c]
mov rcx, rdi
mov rsi, rax
call fcn.140038ec0
mov rdi, rax
test rax, rax
je 0x140050898
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140050898
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5f1c], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400508c0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14030c5b8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140050923
mov qword [rsp], rbx
lea rbx, [0x1400edb40]
nop dword [rax]
cmp r9b, 0x23
jne 0x140050903
cmp byte [r8], r9b
jne 0x140050903
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1400508f0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f30]
not eax
mov r8, qword [r10 + 0x5f38]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14005094f
cmp dword [r8 + 8], eax
je 0x140050956
add r8, 0x48
cmp r8, rcx
jne 0x140050940
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x1400683b0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x1402ff180]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x14030c5b8]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400685ce
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400685ce
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x14030c5b8]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x140068484
movsx rdx, word [r8 + 0x6078]
lea rax, [r8 + 0x607c]
mov r9d, dword [r8 + 0x3f90]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140068479
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6078], cx
movsx rax, cx
lea rax, [rax*8 + 0x607c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6070]
test rdi, rdi
je 0x1400684a1
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x1400684a4
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x1402e0c60]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x1400684e7
mov rsi, qword [r8 + 0x90]
jmp 0x1400684ea
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140068515
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x14030c5b8]
mov rcx, qword [rax + 0x4b00]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14006858e
inc rbx
cmp rbx, 5
jl 0x140068570
jmp 0x1400685ba
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x1400685d0
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400d9c30
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x14007cf70
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x1b0
mov rax, qword [0x1402ff180]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov r14, r9
mov ebp, r8d
lea rax, [rsp + 0x68]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
mov rsi, rdx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [0x14030c5c4], eax
test eax, eax
jne 0x14007d15d
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x1a0], r15
xor r9d, r9d
xor r15d, r15d
xor r8d, r8d
mov qword [rsp + 0x58], r15
xor edx, edx
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [0x14030c5c4], eax
test eax, eax
jne 0x14007d155
mov eax, dword [rsp + 0x70]
mov qword [rsp + 0x1a8], rdi
test eax, eax
je 0x14007d131
mov edi, r15d
mov qword [rsp + 0x1d0], rbx
nop dword [rax]
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], r15
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], r15
mov edx, edi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x60], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x14007d11b
test ebp, ebp
je 0x14007d0b2
mov rbx, rbp
nop word [rax + rax]
lea rcx, [0x1402e14a4]
call fcn.1400369b0
sub rbx, 1
jne 0x14007d0a0
inc edi
lea r8, [rsp + 0x80]
mov edx, edi
lea rcx, str.__d___s_n
call fcn.1400369b0
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rsi + rcx], r15b
jne 0x14007d0d1
mov eax, dword [rsp + 0x60]
add rcx, rax
call fcn.1400da274
lea r9, [rsp + 0x80]
mov r8, rsi
lea rdx, str._s_s
mov rcx, rax
mov rbx, rax
call fcn.140028fb0
lea r8d, [rbp + 1]
mov r9, r14
mov rdx, rbx
mov rcx, 0xffffffff80000001
call fcn.14007cf70
jmp 0x14007d11d
inc edi
cmp edi, dword [rsp + 0x70]
jb 0x14007d050
mov rbx, qword [rsp + 0x1d0]
jmp 0x14007d142
mov edx, dword [rsp + 0x74]
mov r8, r14
mov rcx, qword [rsp + 0x68]
call fcn.14007cbc0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x1a8]
mov r15, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400d9c30
add rsp, 0x1b0
pop r14
pop rsi
pop rbp
ret
Function at 0x14007d180
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1402ff180]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r9, rcx
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantStore
xor r8d, r8d
call fcn.14007cf70
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantStore
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14007d206
cmp qword [reloc.WS2_32.dll_ntohs], 0xf
lea rdx, [0x1403047c0]
mov rcx, qword [rsp + 0x30]
cmova rdx, qword [0x1403047c0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400d9c30
add rsp, 0x48
ret
Function at 0x14008ae40
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x28
call fcn.14008bb30
mov qword [0x14030c738], rax
test rax, rax
je 0x14008affc
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x14008aef7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x14008aef7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x3a9d8234
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x14008aef2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x14008aed0
cmp r8d, 0xa13b51e1
je 0x14008aefc
test r9d, r9d
jne 0x14008aeb0
mov rax, qword [rax]
jmp 0x14008ae80
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rdx, [0x14030c748]
mov rcx, qword [0x14030c738]
add rax, r10
call rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x14008afb7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x14008afb7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x3f9fc8aa
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x14008afb2
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x14008af90
cmp r8d, 0x2941ab37
je 0x14008afbc
test r9d, r9d
jne 0x14008af70
mov rax, qword [rax]
jmp 0x14008af40
mov ecx, dword [rbx + 0x24]
lea r8, [0x14030c748]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov r9d, 2
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor edx, edx
mov rcx, qword [0x14030c738]
add rax, r10
call rax
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
mov byte [0x14030c542], 1
add rsp, 0x28
ret
Function at 0x14008bb30
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1402ff180]
xor rax, rsp
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov dword [rsp + 0x40], ecx
movabs rdx, 0xc056b38532c958c5
mov qword [rsp + 0x20], rdx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
movabs rcx, 0x6cbd02cc4e6258b2
mov qword [rsp + 0x20], rcx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rdx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], rcx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x78], rax
movdqa xmm0, xmmword [rsp + 0x30]
xorps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x30], xmm0
lea rax, [rsp + 0x30]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x14008bbe0
lea rcx, [rsp + 0x48]
cmp rdx, 7
ja 0x14008bc12
mov qword [rsp + 0x58], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x48], di
jmp 0x14008bc1c
lea r9, [rsp + 0x30]
call fcn.14008a2d0
mov qword [rsp + 0x68], rdi
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x14008bcb6
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x14008bcb6
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
mov r8d, 0xecf2220c
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x14008bcb1
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x14008bc90
cmp r8d, 0xf27a6cde
je 0x14008bcbb
test r9d, r9d
jne 0x14008bc70
mov rax, qword [rax]
jmp 0x14008bc40
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rbx + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov r8d, dword [rcx + rax*4]
add r8, r10
lea rdx, [rsp + 0x40]
lea rcx, [0x14008b7c0]
call r8
mov rbx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14008bd2c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008bd27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008bd27
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d9ed4
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400d9c30
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
Function at 0x1400952d8
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 0x140095324
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140095300
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 0x140095344
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 0x14009538f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140095364
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 0x1400953a8
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 0x1400953f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400953c8
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 0x14009540c
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 0x140095458
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140095434
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 0x140095478
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 0x1400954ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400954a3
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 0x1400a2170
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 0x1400a2201
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400a21da
mov rax, qword [rdi + 8]
mov dword [rax], 2
xor al, al
jmp 0x1400a22c5
mov r8, qword [rdi + 0x18]
mov rcx, rsi
mov rdx, qword [rdi + 0x10]
mov r8, qword [r8]
mov rdx, qword [rdx]
call fcn.1400b55f4
mov ecx, eax
mov rax, qword [rdi + 8]
mov dword [rax], ecx
mov rax, qword [rdi + 8]
cmp dword [rax], 0
jne 0x1400a21d3
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 0x1400a5c30
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 0x1400a5dbd
cmp ecx, 0x7c
je 0x1400a5dbd
cmp ecx, 0x29
jne 0x1400a5caa
cmp dword [rdi + 0x1c], 0
jne 0x1400a5dbd
lea rbx, [rdi + 0x80]
test dword [rbx], 0x10000000
je 0x1400a5dd6
cmp ecx, 0x5d
jne 0x1400a5c87
test dword [rbx], 0x10000000
je 0x1400a5de4
mov dl, byte [rdi + 0x78]
lea rcx, [rdi + 0x40]
call fcn.1400a5224
mov rcx, rdi
call fcn.1400a99e8
mov rcx, rdi
call fcn.1400a9a5c
mov ecx, dword [rdi + 0x7c]
mov al, 1
jmp 0x1400a5c42
lea rbx, [rdi + 0x80]
cmp ecx, 0x2e
jne 0x1400a5cc1
lea rcx, [rdi + 0x40]
call fcn.1400a54ac
jmp 0x1400a5c93
cmp ecx, 0x5c
jne 0x1400a5d0f
mov rcx, rdi
call fcn.1400a99e8
test byte [rbx], 0x80
je 0x1400a5d05
mov al, byte [rdi + 0x78]
cmp al, 0x62
jne 0x1400a5ced
lea rcx, [rdi + 0x40]
call fcn.1400a5c24
mov rcx, rdi
call fcn.1400a99e8
jmp 0x1400a5ca3
cmp al, 0x42
jne 0x1400a5d05
lea rcx, [rdi + 0x40]
call fcn.1400a5c24
lea rcx, [rdi + 0x40]
call fcn.1400a9984
jmp 0x1400a5ce3
mov rcx, rdi
call fcn.1400a5e00
jmp 0x1400a5c9b
cmp ecx, 0x5b
jne 0x1400a5d3a
mov rcx, rdi
call fcn.1400a99e8
mov rcx, rdi
call fcn.1400a66fc
mov edx, 0x5d
mov rcx, rdi
lea r8d, [rdx - 0x59]
call fcn.1400a83d8
jmp 0x1400a5c9b
cmp ecx, 0x28
jne 0x1400a5d6f
mov rcx, rdi
call fcn.1400a99e8
mov rcx, rdi
call fcn.1400aa0d8
mov edx, 0x29
mov rcx, rdi
mov bl, al
lea r8d, [rdx - 0x24]
call fcn.1400a83d8
test bl, bl
je 0x1400a5ca3
jmp 0x1400a5c9b
cmp ecx, 0x5e
jne 0x1400a5d82
lea rcx, [rdi + 0x40]
call fcn.1400a5218
jmp 0x1400a5ce3
cmp ecx, 0x24
jne 0x1400a5d95
lea rcx, [rdi + 0x40]
call fcn.1400a55ac
jmp 0x1400a5ce3
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x1400a5df2
cmp ecx, 0x3f
je 0x1400a5df2
cmp ecx, 0x7b
je 0x1400a5df2
cmp ecx, 0x7d
jne 0x1400a5c76
test dword [rbx], 0x10000000
je 0x1400a5dc8
jmp 0x1400a5c87
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 6
mov rcx, rdi
call fcn.1400a83cc
int3
mov edx, 5
mov rcx, rdi
call fcn.1400a83cc
int3
mov edx, 4
mov rcx, rdi
call fcn.1400a83cc
int3
mov edx, 0xa
mov rcx, rdi
call fcn.1400a83cc
int3