joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008f8f0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14008f8fd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14008f90d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14008f8f5
lea eax, [rcx + 1]
jmp 0x14008f91b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14008f92e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14008f914
sub eax, 3
jb 0x14008f94e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14008f99d
sar eax, 1
movsxd rbp, eax
jb 0x14008f984
jmp 0x14008f95c
add ebx, ebx
jne 0x14008f95a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14008f984
inc ecx
add ebx, ebx
jne 0x14008f96a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14008f984
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14008f97d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14008f96c
add ecx, 2
jmp 0x14008f989
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14008f8b2
jmp 0x14008f8fd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x29e00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14008f9e9
cmp rsi, rcx
jae 0x14008f9f1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14008f9d0
cmp al, 0x8f
ja 0x14008f9d0
cmp byte [rsi - 2], 0xf
je 0x14008f9d6
sub al, 0xe8
cmp al, 1
ja 0x14008f9ba
cmp rsi, rcx
jae 0x14008f9f1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14008f9c0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14008f9f1
lodsb al, byte [rsi]
jmp 0x14008f9d0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x8d000]
mov eax, dword [rdi]
or eax, eax
je 0x14008fa5a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xd51c0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14008f9fe
jns 0x14008fa33
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14008fa3d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14008fa54
mov qword [rbx], rax
add rbx, 8
jmp 0x14008fa1e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14008fa94
cmp al, 0xef
ja 0x14008fa86
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14008fa66
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14008fa75
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14008fae8
sub rsp, 0xffffffffffffff80
jmp 0x14000c1f0
Function at 0x140104947
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x80], r8
test byte [rax + rax*4], ah
add byte [rax], al
add byte [rcx + 0x484c2454], cl
mov dword [rsp + 0x78], ecx
cmp dword [rsp + 0x4c], 1
je 0x140104973
mov dword [rsp + 0x2c], 1
jmp 0x140104a76
lea rax, [0x14016ee50]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.140104a87
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0xc]
add rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x28]
add rax, rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x20]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x30]
sub rax, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x30]
mov eax, eax
xor edx, edx
sub rdx, rax
add rcx, rdx
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x48]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax + 0x1c]
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x30]
mov rcx, qword [rsp + 0x30]
call fcn.140104b27
mov dword [rsp + 0x2c], 1
mov eax, dword [rsp + 0x2c]
add rsp, 0x88
ret
Function at 0x140104bf7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x230
movsxd rax, dword [rcx + 0x3c]
mov r13, r8
mov r15d, edx
mov rbp, rcx
mov r9d, dword [rax + rcx + 0x88]
mov esi, dword [r9 + rcx + 0x20]
mov r14d, dword [r9 + rcx + 0x1c]
add rsi, rcx
mov edi, dword [r9 + rcx + 0x24]
add r14, rcx
add rdi, rcx
nop
mov ebx, dword [rsi]
lea rcx, [rsp + 0x20]
mov edx, 0x208
add rbx, rbp
call fcn.140105a17
mov rcx, rbx
call fcn.1401057e7
test eax, eax
je 0x140104c8b
mov ecx, eax
lea r8, [rsp + 0x20]
lea rdx, [rcx + rbx]
lea r8, [r8 + rcx*2]
nop
movsx ecx, byte [rdx]
lea rdx, [rdx - 1]
mov word [r8], cx
lea r8, [r8 - 2]
add eax, 0xffffffff
jne 0x140104c77
mov ecx, eax
movsx eax, byte [rcx + rbx]
mov word [rsp + rcx*2 + 0x20], ax
lea rcx, [rsp + 0x20]
call fcn.140105827
xor edx, edx
test eax, eax
je 0x140104cce
mov r10d, dword [r13 + 0xa0]
lea r8, [rsp + 0x20]
mov r9d, eax
nop
mov ecx, r10d
lea r8, [r8 + 2]
imul ecx, edx
movzx edx, word [r8 - 2]
add edx, ecx
sub r9, 1
jne 0x140104cb7
movzx eax, word [rdi]
mov eax, dword [r14 + rax*4]
add rax, rbp
cmp r15d, edx
je 0x140104cea
add rsi, 4
add rdi, 2
jmp 0x140104c47
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x140105537
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x20], rbx
xor r15d, r15d
mov rbx, qword [rsp + 0xa0]
mov qword [rax - 0x28], rbp
mov ebp, edx
mov qword [rax - 0x38], rdi
mov rdi, rcx
lea r8d, [r15 + 4]
mov qword [rax - 0x40], r12
lea rdx, [rbx + 0xbc]
lea rcx, [rax - 0x58]
call fcn.140104b87
lea rdx, [rbx + 0x10c]
lea r8d, [r15 + 4]
lea rcx, [rsp + 0x24]
call fcn.140104b87
mov eax, edi
mov qword [rsp + 0x48], rsi
xor r14d, r14d
mov dword [rsp + 0x80], eax
xor r12d, r12d
xor r13d, r13d
nop dword [rax + rax]
xor r9d, r9d
lea r10d, [rbp - 0x10]
sub eax, edi
lea r11, [rdi + 1]
add r10d, eax
je 0x1401056f4
lea rax, [rsp + 0x20]
mov r8, r11
sub r8, rax
nop dword [rax]
nop word [rax + rax]
xor edx, edx
lea rax, [rsp + 0x20]
movzx ecx, byte [rax]
cmp byte [r8 + rax], cl
je 0x140105600
cmp cl, 0x3f
jne 0x140105697
inc edx
inc rax
cmp edx, 8
jb 0x1401055ee
mov edi, r9d
add rdi, r11
je 0x1401056f4
mov edx, dword [rdi]
mov eax, edx
shr eax, 0x10
movzx ebx, al
mov eax, edx
shr eax, 8
movzx ecx, al
shl ebx, 8
movzx eax, dl
shl eax, 0x18
shl ecx, 0x10
add ebx, ecx
shr edx, 0x18
add ebx, eax
mov rax, qword [rsp + 0xa0]
add ebx, edx
mov eax, dword [rax + 0x104]
cmp dword [rdi + 8], eax
jne 0x1401056a8
test r14, r14
jne 0x1401056b8
mov r12d, dword [rdi + 0x10]
lea ecx, [r14 + 0x40]
mov rax, qword [rsp + 0x98]
lea r13, [rdi + 8]
add r12d, 0x10
mov edx, r12d
call qword [rax + 0xc8]
mov r8d, ebx
lea rdx, [rdi + 8]
mov rcx, rax
mov r14, rax
call fcn.140104b87
mov eax, dword [rsp + 0x80]
add r15d, ebx
jmp 0x1401055b7
inc r9d
inc r8
cmp r9d, r10d
jb 0x1401055e7
jmp 0x1401056f4
mov eax, dword [rsp + 0x80]
test r14, r14
je 0x1401055b7
mov ecx, r15d
lea ebp, [rbx + r15]
add rcx, r14
lea rdx, [rdi + 8]
cmp ebp, r12d
ja 0x1401056e9
mov r8d, ebx
call fcn.140104b87
mov eax, dword [rsp + 0x80]
mov r15d, ebp
mov ebp, dword [rsp + 0x88]
jmp 0x1401055b7
sub r12d, r15d
mov r8d, r12d
call fcn.140104b87
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
test r14, r14
jne 0x14010571f
xor al, al
add rsp, 0x60
pop r15
pop r14
pop r13
ret
mov eax, dword [r13 + 8]
lea rcx, [r14 + 0x10]
mov r8d, dword [r13 + 4]
test al, 3
je 0x140105735
dec eax
test al, 3
jne 0x14010572f
test eax, eax
je 0x140105754
lea edx, [rax - 1]
shr edx, 2
inc edx
nop word [rax + rax]
xor dword [rcx], r8d
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140105747
mov rax, qword [rsp + 0x90]
test r15d, r15d
mov qword [rax], r14
setne al
add rsp, 0x60
pop r15
pop r14
pop r13
ret
Function at 0x140105600
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x20], rbx
xor r15d, r15d
mov rbx, qword [rsp + 0xa0]
mov qword [rax - 0x28], rbp
mov ebp, edx
mov qword [rax - 0x38], rdi
mov rdi, rcx
lea r8d, [r15 + 4]
mov qword [rax - 0x40], r12
lea rdx, [rbx + 0xbc]
lea rcx, [rax - 0x58]
call fcn.140104b87
lea rdx, [rbx + 0x10c]
lea r8d, [r15 + 4]
lea rcx, [rsp + 0x24]
call fcn.140104b87
mov eax, edi
mov qword [rsp + 0x48], rsi
xor r14d, r14d
mov dword [rsp + 0x80], eax
xor r12d, r12d
xor r13d, r13d
nop dword [rax + rax]
xor r9d, r9d
lea r10d, [rbp - 0x10]
sub eax, edi
lea r11, [rdi + 1]
add r10d, eax
je 0x1401056f4
lea rax, [rsp + 0x20]
mov r8, r11
sub r8, rax
nop dword [rax]
nop word [rax + rax]
xor edx, edx
lea rax, [rsp + 0x20]
movzx ecx, byte [rax]
cmp byte [r8 + rax], cl
je 0x140105600
cmp cl, 0x3f
jne 0x140105697
inc edx
inc rax
cmp edx, 8
jb 0x1401055ee
mov edi, r9d
add rdi, r11
je 0x1401056f4
mov edx, dword [rdi]
mov eax, edx
shr eax, 0x10
movzx ebx, al
mov eax, edx
shr eax, 8
movzx ecx, al
shl ebx, 8
movzx eax, dl
shl eax, 0x18
shl ecx, 0x10
add ebx, ecx
shr edx, 0x18
add ebx, eax
mov rax, qword [rsp + 0xa0]
add ebx, edx
mov eax, dword [rax + 0x104]
cmp dword [rdi + 8], eax
jne 0x1401056a8
test r14, r14
jne 0x1401056b8
mov r12d, dword [rdi + 0x10]
lea ecx, [r14 + 0x40]
mov rax, qword [rsp + 0x98]
lea r13, [rdi + 8]
add r12d, 0x10
mov edx, r12d
call qword [rax + 0xc8]
mov r8d, ebx
lea rdx, [rdi + 8]
mov rcx, rax
mov r14, rax
call fcn.140104b87
mov eax, dword [rsp + 0x80]
add r15d, ebx
jmp 0x1401055b7
inc r9d
inc r8
cmp r9d, r10d
jb 0x1401055e7
jmp 0x1401056f4
mov eax, dword [rsp + 0x80]
test r14, r14
je 0x1401055b7
mov ecx, r15d
lea ebp, [rbx + r15]
add rcx, r14
lea rdx, [rdi + 8]
cmp ebp, r12d
ja 0x1401056e9
mov r8d, ebx
call fcn.140104b87
mov eax, dword [rsp + 0x80]
mov r15d, ebp
mov ebp, dword [rsp + 0x88]
jmp 0x1401055b7
sub r12d, r15d
mov r8d, r12d
call fcn.140104b87
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
test r14, r14
jne 0x14010571f
xor al, al
add rsp, 0x60
pop r15
pop r14
pop r13
ret
mov eax, dword [r13 + 8]
lea rcx, [r14 + 0x10]
mov r8d, dword [r13 + 4]
test al, 3
je 0x140105735
dec eax
test al, 3
jne 0x14010572f
test eax, eax
je 0x140105754
lea edx, [rax - 1]
shr edx, 2
inc edx
nop word [rax + rax]
xor dword [rcx], r8d
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140105747
mov rax, qword [rsp + 0x90]
test r15d, r15d
mov qword [rax], r14
setne al
add rsp, 0x60
pop r15
pop r14
pop r13
ret
Function at 0x140105777
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov rax, qword gs:[0x60]
mov ebx, ecx
mov r11, qword [rax + 0x18]
add r11, 0x10
nop dword [rax + rax]
mov r11, qword [r11]
mov r10, qword [r11 + 0x60]
test r10, r10
je 0x140105797
test ebx, ebx
je 0x1401057dc
movzx ecx, word [r10]
xor r9d, r9d
xor r8d, r8d
test cx, cx
je 0x140105797
nop
lea eax, [rcx - 0x41]
cmp ax, 0x19
ja 0x1401057c4
add cx, 0x20
inc r8
movzx edx, cx
add r9d, edx
movzx ecx, word [r10 + r8*2]
test cx, cx
jne 0x1401057b7
cmp ebx, r9d
jne 0x140105797
mov rax, qword [r11 + 0x30]
mov rbx, qword [rsp + 8]
ret
Function at 0x1400025f0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14003d040]
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 0x14000265f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140002630
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14002c7e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

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

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.1400025f0
test rax, rax
jne 0x1400026cc
mov al, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002c7e0
add rsp, 0x30
pop rdi
ret
jns 0x1400026ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
jne 0x1400026ee
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002c7e0
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
lea rsi, [rsp + 0x20]
nop dword [rax]
mov r9d, 2
mov rdx, rsi
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jns 0x140002727
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140002700
mov rsi, qword [rsp + 0x50]
test ebx, ebx
mov rbx, qword [rsp + 0x48]
setg al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002c7e0
add rsp, 0x30
pop rdi
ret
Function at 0x140002c40
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x140002c7c
cmp ax, 0x17
jne 0x140002d24
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x140002d24
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140002cd6
mov rax, qword [rdi + 0x18]
cmp rbx, rax
ja 0x140002d10
mov rsi, rdi
cmp rax, 0xf
jbe 0x140002cf4
mov rsi, qword [rdi]
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov al, 1
mov byte [rsi + rbx], 0
jmp 0x140002d26
lea r9, [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
call fcn.1400062e0
mov al, 1
jmp 0x140002d26
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14002c7e0
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400030c0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov rdi, rcx
mov r8, qword [rcx + 0x28]
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
lea esi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x14000313d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140003110
test ebx, ebx
jle 0x140003152
mov rcx, qword [rdi + 8]
call fcn.140002690
test al, al
je 0x140003152
mov al, 1
jmp 0x140003154
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14002c7e0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003180
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 0x1400031f0
mov rdx, qword [rbx + 0x30]
sub rsi, rcx
add rdx, rcx
mov rcx, r14
cmp rdi, rsi
ja 0x1400031d7
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rdi
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
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 0x14000320e
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 0x1400032c0
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 0x140003267
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140003240
mov r15, qword [rsp + 0x20]
test rsi, rsi
jle 0x140003285
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rsi, rdi
jg 0x140003297
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
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 0x1400032e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400032c0
mov rbp, qword [rsp + 0x68]
mov rax, rbx
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x140003339
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rdi, qword [rdi + 8]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x140003366
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140003342
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 0x140003400
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rcx + 8]
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140003459
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140002c40
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14002c7e0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret

Function at 0x140005120
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140005154
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140005140
ret
Function at 0x14000bcb0
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 0x14000bd7c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000bd7c
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 0x14000bd95
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14000bd6c
cmp byte [rax], 0x5c
jne 0x14000bd66
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14000bd66
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000bd52
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14000bd63
test r8b, 0x10
jne 0x14000bd66
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14000bd66
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400087e0
test edi, edi
jne 0x14000bcd0
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.1400087d0
int3
Function at 0x14000f690
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
mov rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x14000f6ec
mov rdx, rax
call fcn.14001ad70
mov qword [rbx + 0x10], rbp
mov rax, qword [rdi + 0x10]
mov r15d, 0xfffffffa
cmp qword [rdi + 0x18], 0xf
jbe 0x14000f704
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x14000f70a
mov r14, rdi
mov rcx, rdi
lea r13, [rax + rcx]
cmp rdi, r13
je 0x14000f801
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x14000f7a6
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + rax]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000f78d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14000f782
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000f79c
mov rcx, rbx
call fcn.140006170
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x14000f750
inc r14
cmp r14, r13
jne 0x14000f720
cmp r15d, 0xfffffffa
jle 0x14000f801
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 0x14000f7f9
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14000f7ee
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000f801
mov rcx, rbx
call fcn.140006170
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x14000f849
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000f835
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14000f82d
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x14000f840
mov r9b, 0x3d
mov rcx, rbx
call fcn.140006170
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x14000f810
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