joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44adc0
Capabilities:
Access peb ldr_data

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x44aec0
sub rsp, 0x70
mov qword [rsp + 0x68], rbp
lea rbp, [rsp + 0x68]
lea rax, [rsp + 0x78]
mov rcx, rax
mov qword [rsp + 0x18], rcx
mov qword [rsp], rax
call fcn.00453480
mov rax, qword [rsp + 8]
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
mov qword [rsp + 0x10], 0
mov qword [rsp + 0x20], 0
lea rdi, [rsp + 0x28]
xorps xmm0, xmm0
mov qword [rsp - 0x10], rbp
lea rbp, [rsp - 0x10]
call fcn.004546ed
mov rbp, qword [rbp]
lea rdx, [0x00451350]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x20]
mov qword [rsp], rax
call fcn.004519b0
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x98], rax
mov rbp, qword [rsp + 0x68]
add rsp, 0x70
ret
call fcn.00451b10
jmp fcn.0044adc0
Function at 0x4871b0
Capabilities:
Encode data using base64

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4872ba
sub rsp, 0x30
mov qword [rsp + 0x28], rbp
lea rbp, [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + 8]
lea rbx, [rdx + 0x2e]
neg rbx
imul rbx, rbx, 0x1c
movabs rax, 0x5816058160581606
mov rsi, rdx
imul rbx
sar rbx, 0x3f
sar rdx, 5
sub rdx, rbx
lea rbx, [rdx + 0x15c]
sar rbx, 0x3f
shr rbx, 0x3d
lea rdx, [rbx + rdx + 0x15c]
sar rdx, 3
jmp 0x487227
mov rdx, rax
cmp rdx, 0x57
jae 0x4872b3
lea rax, [rdx + rdx*2]
lea rbx, [0x0057c7e0]
mov rdi, qword [rbx + rax*8 + 8]
mov r8, rax
shl rax, 3
lea r9, [rsi + rdi + 0x40]
cmp r9, 0xffffffffffffffc4
jge 0x487259
lea rax, [rdx + 1]
jmp 0x487224
cmp r9, 0xffffffffffffffe0
jle 0x487265
lea rax, [rdx - 1]
jmp 0x487224
mov qword [rsp + 0x20], rdx
mov rdx, qword [rbx + r8*8]
movzx eax, byte [rbx + rax + 0x10]
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rdi
mov byte [rsp + 0x18], al
mov qword [rsp], rcx
call fcn.00486e70
mov rax, qword [rsp + 0x20]
mov rcx, rax
shl rax, 3
add rax, 0xfffffffffffffea4
neg rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rcx
mov rbp, qword [rsp + 0x28]
add rsp, 0x30
ret
call fcn.00428540
ud2
call fcn.00451b10
jmp fcn.004871b0
Function at 0x4b9160
Capabilities:
Parse credit card information

Disassembly:
movzx eax, byte [rsp + 8]
lea ecx, [rax - 0x41]
cmp cl, 0x19
ja 0x4b9173
mov byte [rsp + 0x18], 0
ret
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x4b916d
lea ecx, [rax - 0x30]
cmp cl, 9
jbe 0x4b916d
mov rcx, qword [rsp + 0x10]
cmp rcx, 3
jne 0x4b92ea
cmp al, 0x2c
ja 0x4b92c9
lea edx, [rax - 0x21]
cmp dl, 1
ja 0x4b91a8
mov byte [rsp + 0x18], 0
ret
cmp al, 0x24
je 0x4b91a2
lea edx, [rax - 0x26]
cmp dl, 6
jbe 0x4b91a2
cmp al, 0x2f
ja 0x4b9293
cmp al, 0x26
ja 0x4b926c
cmp al, 0x24
jne 0x4b9262
cmp rcx, 2
jg 0x4b9219
cmp rcx, 1
je 0x4b920f
cmp rcx, 2
jne 0x4b9209
cmp al, 0x2f
jne 0x4b91ec
mov eax, 1
mov byte [rsp + 0x18], al
ret
cmp al, 0x3b
jne 0x4b91f7
mov eax, 1
jmp 0x4b91e7
cmp al, 0x2c
jne 0x4b9202
mov eax, 1
jmp 0x4b91e7
cmp al, 0x3f
sete al
jmp 0x4b91e7
mov byte [rsp + 0x18], 1
ret
cmp al, 0x3f
sete al
mov byte [rsp + 0x18], al
ret
cmp rcx, 5
jne 0x4b924a
cmp al, 0x40
jne 0x4b922d
mov eax, 1
mov byte [rsp + 0x18], al
ret
cmp al, 0x2f
jne 0x4b9238
mov eax, 1
jmp 0x4b9228
cmp al, 0x3f
jne 0x4b9243
mov eax, 1
jmp 0x4b9228
cmp al, 0x3a
sete al
jmp 0x4b9228
cmp rcx, 6
je 0x4b925c
cmp rcx, 7
jne 0x4b9209
mov byte [rsp + 0x18], 0
ret
mov byte [rsp + 0x18], 1
ret
cmp al, 0x26
je 0x4b91cc
jmp 0x4b9209
lea edx, [rax - 0x2b]
cmp dl, 1
jbe 0x4b91cc
lea edx, [rax - 0x2d]
cmp dl, 1
ja 0x4b9286
mov byte [rsp + 0x18], 0
ret
cmp al, 0x2f
je 0x4b91cc
jmp 0x4b9209
cmp al, 0x3d
ja 0x4b92b0
lea edx, [rax - 0x3a]
cmp dl, 1
jbe 0x4b91cc
cmp al, 0x3d
je 0x4b91cc
jmp 0x4b9209
lea edx, [rax - 0x3f]
cmp dl, 1
jbe 0x4b91cc
cmp al, 0x5f
je 0x4b9280
cmp al, 0x7e
je 0x4b9280
jmp 0x4b9209
lea edx, [rax - 0x3a]
cmp dl, 4
jbe 0x4b91a2
cmp al, 0x5b
je 0x4b91a2
cmp al, 0x5d
je 0x4b91a2
jmp 0x4b91b4
cmp rcx, 4
je 0x4b9192
jmp 0x4b91b4
Function at 0x140002370
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x430]
sub rsp, 0x530
mov rax, qword [0x141390020]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov rbx, rdx
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0xd0]
call fcn.140008560
mov eax, dword [0x140039e84]
mov dword [rsp + 0x30], eax
movzx eax, byte [0x140039e88]
mov byte [rsp + 0x34], al
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xd0]
call fcn.140001e50
lea rdx, [rbp + 0xd0]
lea rcx, [rbp - 0x50]
call fcn.1400034a0
nop
mov r8d, 0x1351400
lea rdx, [0x14003a010]
lea rcx, [rbp - 0x40]
call fcn.140003760
xor edx, edx
mov r8d, 0x12c
lea rcx, [rbp + 0x1e0]
call fcn.140008560
mov edx, 0xa
mov r8d, 0xc8
lea rcx, [rbp + 0x1e0]
call fcn.140001d60
mov r8d, 0x12c
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp - 0x40]
call fcn.140003760
lea rcx, [rbp - 0x38]
call fcn.140004010
test rax, rax
jne 0x140002475
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea r9, [rbp - 0x50]
add rcx, r9
mov edx, 6
mov eax, 2
cmp qword [rcx + 0x48], 0
cmovne edx, eax
or edx, dword [rcx + 0x10]
xor r8d, r8d
call fcn.140001c40
mov rbx, qword [rbx + 8]
mov r8, rbx
lea rdx, [0x140039e8c]
lea rcx, [rbp + 0x310]
call fcn.140004560
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x44], 0x40
xor ecx, ecx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x310]
test rbx, rbx
cmove rax, rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x70], 5
mov qword [rsp + 0x78], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x1400024fa
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x32c8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rcx, [rbp - 0x50]
call fcn.140002540
xor eax, eax
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.1400062c0
mov rbx, qword [rsp + 0x540]
add rsp, 0x530
pop rbp
ret
Function at 0x1400028f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
je 0x14000298a
mov rbx, r8
test r8, r8
jle 0x140002982
mov rcx, rdi
call fcn.1400040d0
test rax, rax
jle 0x140002960
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.140008150
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x14000297a
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002982
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x140002922
sub r14, rbx
mov rax, r14
jmp 0x140002a01
mov rax, qword [rcx + 0x40]
mov rsi, r14
mov r9, qword [rax]
test r9, r9
je 0x1400029a1
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400029a3
xor ecx, ecx
movsxd rbx, ecx
test r14, r14
jle 0x1400029fb
test ecx, ecx
jle 0x1400029d7
cmp r14, rbx
mov rcx, r9
cmovl rbx, r14
mov r8, rbx
call fcn.140008150
mov rax, qword [rdi + 0x58]
add rbp, rbx
sub r14, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x40]
movsxd rax, ebx
add qword [rcx], rax
test r14, r14
jle 0x1400029fb
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400029fb
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.14000e3e8
sub r14, rax
sub rsi, r14
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140002a20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140002a51
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x140002acb
mov rdi, r14
mov rcx, rbx
call fcn.1400040f0
test rax, rax
jle 0x140002aa3
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140008150
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140002abb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140002ac3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140002a65
sub r14, rdi
jmp 0x140002bb8
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140002ae2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002ae4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002b19
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140008150
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140002bb5
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140002b54
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140002b90
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14000eba4
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140002bd6
cmp rbp, rax
ja 0x140002b60
mov r8, rdi
test rdi, rdi
je 0x140002bb5
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14000eba4
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub r14, rbp
jmp 0x140002bb8

Function at 0x140013de0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013c0c
Function at 0x180002a40
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, 0x40
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 rdx, qword [rdx + 0x10]
mov rax, rdx
cmp rdx, 0xf
jbe 0x180002a9c
call fcn.180012d40
mov qword [rbx + 0x10], rbp
mov rax, qword [rdi + 0x10]
mov r15d, 0xfffffffa
cmp qword [rdi + 0x18], 0xf
jbe 0x180002ab4
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x180002aba
mov r14, rdi
mov rcx, rdi
lea r13, [rcx + rax]
cmp rdi, r13
je 0x180002bb1
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x180002b56
movsxd r12, ebp
movsxd rsi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov edi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + rax]
mov rax, r12
mov rcx, rsi
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 0x180002b3d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x180002b32
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180002b4c
mov rcx, rbx
call fcn.180012e90
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rsi, 6
sub rdi, 1
jne 0x180002b00
inc r14
cmp r14, r13
jne 0x180002ad0
cmp r15d, 0xfffffffa
jle 0x180002bb1
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 0x180002ba9
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x180002b9e
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x180002bb1
mov rcx, rbx
call fcn.180012e90
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x180002bf9
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x180002be5
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x180002bdd
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x180002bf0
mov r9b, 0x3d
mov rcx, rbx
call fcn.180012e90
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x180002bc0
mov rax, rbx
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800034b0
Capabilities:
Get socket status

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

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

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword [0x18003c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.1800034b0
test rax, rax
jne 0x18000358c
mov al, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18002bce0
add rsp, 0x30
pop rdi
ret
jns 0x1800035ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
jne 0x1800035ae
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18002bce0
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 r8d, 1
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jns 0x1800035e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1800035c0
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.18002bce0
add rsp, 0x30
pop rdi
ret
Function at 0x180003af0
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x18003c040]
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 0x180003b28
cmp ax, 0x17
jne 0x180003b9d
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 0x180003b9d
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180003b82
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.18000e3e0
mov al, 1
jmp 0x180003b9f
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.18002bce0
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180004fe0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x18003c040]
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 0x18000505d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x180005030
test ebx, ebx
jle 0x180005072
mov rcx, qword [rdi + 8]
call fcn.180003550
test al, al
je 0x180005072
mov al, 1
jmp 0x180005074
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18002bce0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1800050a0
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 0x180005110
mov rdx, qword [rbx + 0x30]
sub rsi, rcx
add rdx, rcx
mov rcx, r14
cmp rdi, rsi
ja 0x1800050f7
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 r8, qword [rbx + 0x18]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
call fcn.1800034b0
test rax, rax
jg 0x180005137
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 0x1800051e0
mov qword [rsp + 0x20], r15
mov r15, qword [rbx + 0x30]
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 0x180005187
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x180005160
mov r15, qword [rsp + 0x20]
test rsi, rsi
jle 0x1800051a5
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rsi, rdi
jg 0x1800051b7
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 0x180005204
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1800051e0
mov rbp, qword [rsp + 0x68]
mov rax, rbx
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x180005220
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x18003c040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov rbp, r8
mov r10, qword [rcx + 0x28]
mov r14, rdx
mov r9, qword [rcx + 0x20]
mov rdi, rcx
mov qword [rsp + 0x48], rax
lea esi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x34], r10d
nop word [rax + 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 0x1800052ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x180005280
test ebx, ebx
jle 0x1800052eb
mov rcx, qword [rdi + 8]
call fcn.180003550
test al, al
je 0x1800052eb
mov rdi, qword [rdi + 8]
xor r9d, r9d
mov r8d, ebp
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x1800052e6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1800052c2
mov rax, rbx
jmp 0x1800052f2
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18002bce0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1800053a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x18003c040]
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 0x1800053f9
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.180003af0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18002bce0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret

Function at 0x18000dc00
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x18000dc31
xor eax, eax
lea r8, [0x18000c6c0]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x18000e1e4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x18000e1d0
ret
Function at 0x180027c10
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 0x180027cd5
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x180027cd5
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 0x180027cee
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x180027cc5
cmp byte [rcx], 0x5c
jne 0x180027cbe
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x180027cbe
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x180027cac
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x180027cbb
test r8b, 0x10
jne 0x180027cbe
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x180027cbe
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.18001e5b0
test edi, edi
jne 0x180027c30
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.18001e5a0
int3

Function at 0x18002a340
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x18003c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r14, [rsp + 0x48]
mov rbp, rdx
mov rsi, qword [r14]
mov rbx, rcx
mov edx, reloc.WS2_32.dll_ntohs
mov qword [r14], 0
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x18002a432
sub ebp, ebx
lea r9, [rsp + 0x20]
mov edx, 5
mov r8d, 0x40
mov rcx, rdi
sub ebp, 5
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18002a3f4
mov eax, dword [rbx]
lea r9, [rsp + 0x20]
mov dword [rdi], eax
mov edx, 5
movzx eax, byte [rbx + 4]
mov rcx, rdi
mov byte [rdi + 4], al
lea rax, [rbx + 5]
mov qword [rdi + 7], rax
mov word [rdi + 5], 0xba48
mov word [rdi + 0xf], 0xe2ff
mov r8d, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r9, [rsp + 0x24]
mov edx, 5
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18002a42f
mov r8d, dword [rsp + 0x24]
lea r9, [rsp + 0x24]
mov edx, 5
mov byte [rbx], 0xe9
mov rcx, rbx
mov dword [rbx + 1], ebp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, rdi
mov qword [r14], rsi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18002bce0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret