joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010040
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 0x140010d12
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140074dc8]
test eax, eax
je 0x140010daa
lea rax, [0x140074da0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140074dd0]
mov qword [rbp - 8], rax
jmp 0x140010d8e
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 0x140010d82
cmp qword [rbp - 0x10], 0
je 0x140010d82
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 0x140010d48
lea rax, [0x140074da0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140010dab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140010eb0
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 0x140010ed8
mov eax, 0
jmp 0x140010f26
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 0x140010f01
mov eax, 0
jmp 0x140010f26
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 0x140010f21
mov eax, 0
jmp 0x140010f26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140010f2c
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 0x140010faa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140010fa1
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 0x140010fa1
mov rax, qword [rbp - 8]
jmp 0x140010fbf
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 0x140010f74
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14002f570
Capabilities:
Get socket status

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov rdi, qword [sym.imp.WSOCK32.dll_select]
mov r13, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rsp + 0x40], 1
lea ebx, [rcx + 1]
lea r12, [rsp + 0x40]
mov qword [rsp + 0x48], rcx
lea rbp, [rsp + 0x38]
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov ecx, ebx
call rdi
movsxd rsi, eax
test rsi, rsi
jns 0x14002f5d2
call r13
cmp dword [rax], 4
je 0x14002f5b0
mov rax, rsi
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x14002f7f0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov edi, 0x7fffffff
mov rsi, qword [rcx + 0x50]
mov rbp, rdx
mov rdx, qword [rcx + 0x48]
cmp r8, rdi
mov rbx, rcx
cmovbe rdi, r8
mov r15, r8
cmp rdx, rsi
jae 0x14002f878
sub rsi, rdx
add rdx, qword [rcx + 0x30]
cmp rsi, rdi
jae 0x14002f860
mov r8, rsi
mov rcx, rbp
call sym.memcpy
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8, rdi
mov rcx, rbp
mov rsi, rdi
call sym.memcpy
add qword [rbx + 0x48], rdi
jmp 0x14002f840
mov rax, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x10]
mov dword [rsp + 0x40], 1
lea r14, [rsp + 0x40]
mov rsi, qword [rcx + 8]
mov r12, qword [sym.imp.WSOCK32.dll_select]
lea r13, [rsp + 0x38]
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], eax
mov qword [rsp + 0x48], rsi
add esi, 1
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov ecx, esi
call r12
cdqe
test rax, rax
jns 0x14002f8e0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14002f8ad
or rsi, 0xffffffffffffffff
jmp 0x14002f840
je 0x14002f8d2
pxor xmm0, xmm0
mov r12, qword [rbx + 8]
movups xmmword [rbx + 0x48], xmm0
cmp r15, 0xfff
ja 0x14002f938
mov r14, qword [rbx + 0x30]
mov r13, qword [sym.imp.WSOCK32.dll_recv]
mov r15, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r14
mov rcx, r12
call r13
movsxd rsi, eax
test rsi, rsi
jns 0x14002f970
call r15
cmp dword [rax], 4
jne 0x14002f840
jmp 0x14002f909
mov r13, qword [sym.imp.WSOCK32.dll_recv]
mov rbx, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
mov rcx, r12
call r13
movsxd rsi, eax
test rsi, rsi
jns 0x14002f840
call rbx
cmp dword [rax], 4
jne 0x14002f840
jmp 0x14002f946
je 0x14002f840
mov rdx, qword [rbx + 0x30]
cmp rdi, rsi
jl 0x14002f990
mov r8, rsi
mov rcx, rbp
call sym.memcpy
jmp 0x14002f840
mov r8, rdi
mov rcx, rbp
call sym.memcpy
mov qword [rbx + 0x50], rsi
mov rsi, rdi
mov qword [rbx + 0x48], rdi
jmp 0x14002f840
Function at 0x14002f9b0
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov r12, qword [sym.imp.WSOCK32.dll_select]
mov r15, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rax, qword [rcx + 0x28]
mov r14, qword [rcx + 8]
mov rdi, rdx
mov rdx, qword [rcx + 0x20]
mov dword [rsp + 0x3c], eax
mov rbx, rcx
mov dword [rsp + 0x40], 1
mov rsi, r8
lea rbp, [rsp + 0x40]
lea r13, [rsp + 0x38]
mov dword [rsp + 0x38], edx
mov qword [rsp + 0x48], r14
add r14d, 1
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, rbp
xor edx, edx
mov ecx, r14d
call r12
cdqe
test rax, rax
jns 0x14002fa50
call r15
cmp dword [rax], 4
je 0x14002fa09
mov rbx, 0xffffffffffffffff
mov rax, rbx
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
je 0x14002fa2b
mov r14, qword [rbx + 8]
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], r14
lea r15d, [r14 + 1]
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov ecx, r15d
call r12
cdqe
test rax, rax
jns 0x14002fb20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14002fa70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
je 0x14002fa2b
mov r12, qword [sym.imp.WSOCK32.dll_recv]
mov r13, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r9d, 2
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call r12
cdqe
test rax, rax
jns 0x14002fae0
call r13
cmp dword [rax], 4
jne 0x14002fa2b
jmp 0x14002fab3
je 0x14002fa2b
mov r12, qword [rbx + 8]
mov rbp, qword [sym.imp.WSOCK32.dll_send]
mov r13, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, r12
call rbp
movsxd rbx, eax
test rbx, rbx
jns 0x14002fa32
call r13
cmp dword [rax], 4
jne 0x14002fa32
jmp 0x14002faf8
jne 0x14002faa5
jmp 0x14002fae6

Function at 0x140030110
Capabilities:
Get socket status

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov rdi, qword [sym.imp.WSOCK32.dll_select]
mov r13, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rsp + 0x40], 1
lea ebx, [rcx + 1]
lea r12, [rsp + 0x40]
mov qword [rsp + 0x48], rcx
lea rbp, [rsp + 0x38]
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov qword [rsp + 0x20], rbp
xor r9d, r9d
mov r8, r12
xor edx, edx
mov ecx, ebx
call rdi
movsxd rsi, eax
test rsi, rsi
jns 0x140030171
call r13
cmp dword [rax], 4
je 0x140030150
mov rax, rsi
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140035870
Capabilities:
Get socket status

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x678
mov r15, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r12, [rsp + 0x250]
lea rbp, [rsp + 0x40]
mov dword [rsp + 0x38], edx
mov rbx, rcx
lea r13, [rsp + 0x460]
mov dword [rsp + 0x3c], r8d
mov rdi, r12
lea rsi, [rsp + 0x40]
mov qword [rsp + 0x48], rcx
mov ecx, 0x41
lea r14d, [rbx + 1]
mov dword [rsp + 0x40], 1
rep movsq qword [rdi], qword [rsi]
mov ecx, 0x41
mov rdi, r13
mov rsi, rbp
rep movsq qword [rdi], qword [rsi]
mov rsi, qword [sym.imp.WSOCK32.dll_select]
lea rdi, [rsp + 0x38]
mov qword [rsp + 0x20], rdi
mov r9, r13
mov r8, r12
mov rdx, rbp
mov ecx, r14d
call rsi
cdqe
test rax, rax
jns 0x140035928
call r15
cmp dword [rax], 4
je 0x1400358e6
mov eax, 2
add rsp, 0x678
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 0xd
je 0x14003590d
mov rdx, rbp
mov rcx, rbx
call sym.__WSAFDIsSet
test eax, eax
jne 0x14003594d
mov rdx, r12
mov rcx, rbx
call sym.__WSAFDIsSet
test eax, eax
je 0x140035908
lea rax, [rsp + 0x34]
mov dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
mov r8d, 0x1007
mov dword [rsp + 0x34], 4
mov edx, 0xffff
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.dll_getsockopt]
test eax, eax
js 0x140035908
mov edx, dword [rsp + 0x30]
xor eax, eax
test edx, edx
setne al
add eax, eax
jmp 0x14003590d
Function at 0x140036fb0
Capabilities:
Initialize winsock library

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
pxor xmm0, xmm0
mov rax, qword [r9 + 0x18]
mov r10, qword [r9 + 0x10]
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov rdi, rdx
mov ebp, r8d
mov qword [rsp + 0x40], 0
movaps xmmword [rsp + 0x30], xmm0
test r10, r10
je 0x140037003
movdqu xmm1, xmmword [r9]
mov qword [rsp + 0x40], r10
pxor xmm0, xmm0
movups xmmword [r9 + 0x10], xmm0
movaps xmmword [rsp + 0x30], xmm1
xor esi, esi
mov r12d, 1
lea r13, [rbx + 1]
xor edx, edx
lea r14, [rsp + 0x20]
nop word cs:[rax + rax]
test rdi, rdi
je 0x140037041
lea rax, [rbx + rsi]
cmp rax, rdi
jae 0x140037128
cmp bpl, byte [rbx + rsi]
je 0x140037070
add rsi, 1
test rdi, rdi
jne 0x140037025
movzx eax, byte [rbx + rsi]
test al, al
je 0x1400371a0
cmp bpl, al
jne 0x140037038
lea rcx, [rbx + rdx]
cmp r12, 0xffffffffffffffff
jne 0x1400370ab
add rsi, 1
mov r12, 0xffffffffffffffff
jmp 0x140037020
cmp r12, 0xffffffffffffffff
je 0x14003705c
lea rcx, [rbx + rdx]
cmp rcx, rdi
jae 0x1400370ab
lea r8, [r13 + rdx]
sub r8, rcx
jmp 0x1400370a0
add rdx, 1
add rcx, r8
lea rax, [rbx + rdx]
cmp rax, rdi
jae 0x1400370ab
movzx eax, byte [rcx]
cmp al, 0x20
je 0x140037090
cmp al, 9
je 0x140037090
mov rax, rsi
jmp 0x1400370c9
movzx r8d, byte [rbx + rax - 1]
lea r9, [rax - 1]
cmp r8b, 0x20
je 0x1400370c6
cmp r8b, 9
jne 0x1400370e0
mov rax, r9
test rax, rax
jne 0x1400370b0
lea rdx, [rsi + 1]
add r12, 1
mov rsi, rdx
jmp 0x140037020
cmp rdx, rax
jae 0x1400370ce
add rax, rbx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
test r10, r10
je 0x1400371e1
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
mov r8, r14
call qword [rsp + 0x48]
lea rdx, [rsi + 1]
mov r10, qword [rsp + 0x40]
add r12, 1
mov rsi, rdx
jmp 0x140037020
test rsi, rsi
je 0x14003717a
lea rax, [rbx + rdx]
cmp rax, rdi
jae 0x140037160
lea r8, [rbx + rdx + 1]
sub r8, rax
jmp 0x140037150
add rdx, 1
add rax, r8
lea rcx, [rbx + rdx]
cmp rcx, rdi
jae 0x140037160
movzx ecx, byte [rax]
cmp cl, 0x20
je 0x140037140
cmp cl, 9
je 0x140037140
nop dword [rax]
mov r8, rsi
sub rsi, 1
movzx ecx, byte [rbx + rsi]
cmp cl, 0x20
je 0x140037175
cmp cl, 9
jne 0x1400371ab
test rsi, rsi
jne 0x140037160
test r10, r10
je 0x140037191
lea rcx, [rsp + 0x30]
mov r8d, 3
mov rdx, rcx
call r10
nop
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rax, [rbx + rdx]
test rsi, rsi
jne 0x140037160
jmp 0x14003717a
cmp rdx, r8
jae 0x14003717a
add rbx, r8
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
test r10, r10
je 0x1400371dc
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x20]
call qword [rsp + 0x48]
mov r10, qword [rsp + 0x40]
jmp 0x14003717a
call sym.std::__throw_bad_function_call__
call sym.std::__throw_bad_function_call__
mov rbx, rax
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140037203
lea rcx, [rsp + 0x30]
mov r8d, 3
mov rdx, rcx
call rax
mov rcx, rbx
call sym._Unwind_Resume
nop
nop
nop
nop
nop
Function at 0x140037210
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1c0
mov byte [rcx], 0
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x140037235
mov byte [rbx], 1
add rsp, 0x1c0
pop rbx
ret

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rdx, qword [rcx + 0x20]
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov r8, qword [rbx + 0x28]
call method.httplib::detail.select_write_unsigned_long_long__long_long__long_long_
test rax, rax
jg 0x14003cfd0
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx + 8]
xor edx, edx
mov rcx, rsi
call method.httplib::detail.select_read_unsigned_long_long__long_long__long_long___clone_.constprop.0_
mov rdx, rax
mov eax, 1
test rdx, rdx
je 0x14003cfc5
js 0x14003d038
mov rdi, qword [sym.imp.WSOCK32.dll_recv]
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea rbp, [rsp + 0x2f]
mov r9d, 2
mov r8d, 1
mov rdx, rbp
mov rcx, rsi
call rdi
movsxd rbx, eax
test rbx, rbx
jns 0x14003d024
call r12
cmp dword [rax], 4
je 0x14003d000
test rbx, rbx
setg al
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
jne 0x14003cfed
jmp 0x14003cfc3

Function at 0x14003d050
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4e0
mov rcx, qword [rcx + 8]
lea rsi, [rsp + 0x50]
mov rbp, rdx
mov rbx, r8
mov dword [rsp + 0x4c], pe_nt_image_headers64
lea r8, [rsp + 0x4c]
mov rdx, rsi
call qword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x14003d098
add rsp, 0x4e0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
movzx eax, word [rsp + 0x50]
mov r12d, dword [rsp + 0x4c]
cmp ax, 2
je 0x14003d0ae
cmp ax, 0x17
jne 0x14003d086
movzx ecx, word [rsp + 0x52]
lea rdi, [rsp + 0xd0]
call qword [sym.imp.WSOCK32.dll_ntohs]
mov ecx, pe_nt_image_headers64
mov r9d, 0x401
mov edx, r12d
movzx eax, ax
mov dword [rbx], eax
xor eax, eax
lea rbx, [rsp + 0xd0]
rep stosq qword [rdi], rax
mov r8, rbx
mov rcx, rsi
mov byte [rdi], 0
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x14003d086
mov rcx, rbx
call sym.strlen
mov r9, rbx
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov r8, qword [rbp + 8]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_replace_unsigned_long_long__unsigned_long_long__char_const__unsigned_long_long_
jmp 0x14003d086
Function at 0x14003d140
Capabilities:
Resolve dns

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4e0
mov rcx, qword [rcx + 8]
lea rsi, [rsp + 0x50]
mov rbp, rdx
mov rbx, r8
mov dword [rsp + 0x4c], pe_nt_image_headers64
lea r8, [rsp + 0x4c]
mov rdx, rsi
call qword [sym.imp.WSOCK32.dll_getpeername]
test eax, eax
je 0x14003d188
add rsp, 0x4e0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
movzx eax, word [rsp + 0x50]
mov r12d, dword [rsp + 0x4c]
cmp ax, 2
je 0x14003d19e
cmp ax, 0x17
jne 0x14003d176
movzx ecx, word [rsp + 0x52]
lea rdi, [rsp + 0xd0]
call qword [sym.imp.WSOCK32.dll_ntohs]
mov ecx, pe_nt_image_headers64
mov r9d, 0x401
mov edx, r12d
movzx eax, ax
mov dword [rbx], eax
xor eax, eax
lea rbx, [rsp + 0xd0]
rep stosq qword [rdi], rax
mov r8, rbx
mov rcx, rsi
mov byte [rdi], 0
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x14003d176
mov rcx, rbx
call sym.strlen
mov r9, rbx
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov r8, qword [rbp + 8]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_replace_unsigned_long_long__unsigned_long_long__char_const__unsigned_long_long_
jmp 0x14003d176
Function at 0x140045810
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
movaps xmmword [rsp], xmm6
movaps xmmword [rsp + 0x10], xmm7
movdqa xmm3, xmmword [0x140062030]
pxor xmm7, xmm7
movdqa xmm4, xmmword [0x140062040]
movdqa xmm5, xmmword [0x140062050]
movdqa xmm6, xmmword [0x140062060]
mov rdx, rcx
lea rcx, [rcx + 0x380]
mov rax, rdx
nop
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 4]
add rax, 0x10
movdqu xmm2, xmmword [rax + 0x624]
pand xmm1, xmm4
pand xmm0, xmm3
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm2
movdqa xmm2, xmm7
psubd xmm2, xmm0
pand xmm2, xmm6
movdqa xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x140045850
movq xmm0, qword [rdx + 0x380]
mov eax, dword [rdx + 0x388]
movq xmm1, qword [0x140062030]
mov ecx, dword [rdx + 0x38c]
movq xmm2, qword [0x140062040]
and eax, 0x80000000
pand xmm0, xmm1
and ecx, 0x7fffffff
movq xmm1, qword [rdx + 0x384]
or eax, ecx
pand xmm1, xmm2
mov ecx, eax
and eax, 1
por xmm0, xmm1
neg eax
shr ecx, 1
xor ecx, dword [rdx + 0x9bc]
movdqa xmm2, xmm0
and eax, 0x9908b0df
movq xmm1, qword [rdx + 0x9b4]
psrld xmm2, 1
xor eax, ecx
lea rcx, [rdx + 0x9bc]
pxor xmm1, xmm2
mov dword [rdx + 0x388], eax
movq xmm2, qword [0x140062050]
lea rax, [rdx + 0x38c]
pand xmm0, xmm2
pxor xmm2, xmm2
psubd xmm2, xmm0
movq xmm0, qword [0x140062060]
pand xmm0, xmm2
pxor xmm2, xmm2
pxor xmm1, xmm0
movq qword [rdx + 0x380], xmm1
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 4]
add rax, 0x10
movdqu xmm7, xmmword [rax - 0x39c]
pand xmm1, xmm4
pand xmm0, xmm3
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm7
movdqa xmm7, xmm2
psubd xmm7, xmm0
pand xmm7, xmm6
movdqa xmm0, xmm7
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x140045953
mov eax, dword [rdx + 0x9bc]
mov ecx, dword [rdx]
mov qword [rdx + 0x9c0], 0
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
and ecx, 0x7fffffff
and eax, 0x80000000
or eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
xor ecx, dword [rdx + 0x630]
and eax, 0x9908b0df
xor eax, ecx
mov dword [rdx + 0x9bc], eax
add rsp, 0x28
ret
Function at 0x14004f6e0
Capabilities:
Parse credit card information

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 0xc8]
mov ebp, edx
mov r13d, edx
lea r14, [rcx + 0xd8]
mov rbx, rcx
mov qword [rcx + 0xd0], 0
lea r12, [rcx + 0xc8]
mov byte [rax], 0
mov rax, qword [rcx + 0xb0]
mov rdx, qword [rcx + 0xb8]
cmp rax, rdx
jne 0x14004f766
jmp 0x14004f810
mov byte [rax + rsi], r15b
mov rax, qword [rbx + 0xc8]
mov qword [rbx + 0xd0], rdi
mov byte [rax + rsi + 1], 0
mov rax, qword [rbx + 0xb0]
mov rdx, qword [rbx + 0xb8]
cmp rax, rdx
je 0x14004f810
cmp byte [rax], r13b
je 0x14004f7d0
lea rdx, [rax + 1]
mov rsi, qword [rbx + 0xd0]
mov qword [rbx + 0xb0], rdx
movzx r15d, byte [rax]
mov rax, qword [rbx + 0xc8]
lea rdi, [rsi + 1]
cmp rax, r14
je 0x14004f7c8
mov rdx, qword [rbx + 0xd8]
cmp rdx, rdi
jae 0x14004f738
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], 1
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_mutate_unsigned_long_long__unsigned_long_long__char_const__unsigned_long_long_
mov rax, qword [rbx + 0xc8]
jmp 0x14004f738
mov edx, 0xf
jmp 0x14004f798
cmp rax, rdx
je 0x14004f810
lea rcx, [rax + 1]
mov qword [rbx + 0xb0], rcx
cmp byte [rax], bpl
jne 0x14004f810
cmp rcx, rdx
je 0x14004f810
lea rdx, [rax + 2]
mov qword [rbx + 0xb0], rdx
cmp byte [rax + 1], 0x5d
jne 0x14004f810
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor ecx, ecx
cmp bpl, 0x3a
sete cl
call sym.std::__throw_regex_error_std::regex_constants::error_type_
nop
nop
Function at 0x14005a240
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r10, rdx
mov rsi, r8
cmp rdx, r8
je 0x14005a416
sub rsi, rdx
mov rcx, r10
mov edx, 0x8b
mov r8, rsi
call sym.memset
mov r14, qword [rbx]
mov r9, rsi
mov r10, rax
mov rax, qword [rbx + 8]
sar r9, 2
mov ebx, 0xb
mov r13, rax
sub r13, r14
sar r13, 2
cmp rsi, 0x9b8
jbe 0x14005a430
mov rsi, r9
lea r8, [r13 + 1]
lea ebp, [r13 + 0x51bf72d2]
sub rsi, rbx
mov rcx, r8
shr rsi, 1
add rbx, rsi
cmp r9, r8
cmovae rcx, r9
add dword [r10 + rsi*4], 0x51bf72d2
add dword [r10 + rbx*4], ebp
mov dword [r10], ebp
cmp r14, rax
je 0x14005a33b
mov r11d, 1
nop dword [rax]
mov rax, r11
xor edx, edx
div r9
lea rax, [rsi + r11]
lea r12, [r10 + rdx*4]
mov rdi, rdx
xor edx, edx
add edi, dword [r14 + r11*4 - 4]
div r9
mov eax, dword [r12]
lea r15, [r10 + rdx*4]
mov edx, dword [r15]
xor eax, edx
xor ebp, eax
mov eax, ebp
shr eax, 0x1b
xor eax, ebp
imul eax, eax, 0x19660d
add edx, eax
lea ebp, [rdi + rax]
lea rax, [rbx + r11]
add r11, 1
mov dword [r15], edx
xor edx, edx
div r9
add dword [r10 + rdx*4], ebp
mov dword [r12], ebp
cmp r13, r11
jae 0x14005a2e0
cmp r8, rcx
jae 0x14005a3a4
mov rax, r8
xor edx, edx
div r9
lea rax, [rsi + r8]
lea rbp, [r10 + rdx*4]
mov r11, rdx
xor edx, edx
div r9
lea rax, [r8 - 1]
lea r12, [r10 + rdx*4]
xor edx, edx
div r9
mov edi, dword [r12]
mov eax, dword [r10 + rdx*4]
mov edx, dword [rbp]
xor eax, edi
xor edx, eax
mov eax, edx
shr eax, 0x1b
xor eax, edx
xor edx, edx
imul eax, eax, 0x19660d
add r11d, eax
add edi, eax
lea rax, [rbx + r8]
add r8, 1
div r9
mov dword [r12], edi
add dword [r10 + rdx*4], r11d
mov dword [rbp], r11d
cmp rcx, r8
jne 0x14005a340
lea rbp, [r9 + rcx]
cmp rcx, rbp
jae 0x14005a416
nop dword [rax]
mov rax, rcx
xor edx, edx
div r9
lea rax, [rsi + rcx]
lea r11, [r10 + rdx*4]
mov r12, rdx
xor edx, edx
div r9
lea rax, [rcx - 1]
lea rdi, [r10 + rdx*4]
xor edx, edx
div r9
mov r8d, dword [rdi]
mov eax, dword [r10 + rdx*4]
mov edx, dword [r11]
add eax, r8d
add edx, eax
mov eax, edx
shr eax, 0x1b
xor eax, edx
xor edx, edx
imul eax, eax, 0x5d588b65
mov r13d, eax
xor r8d, eax
lea rax, [rbx + rcx]
add rcx, 1
div r9
mov dword [rdi], r8d
sub r13d, r12d
xor dword [r10 + rdx*4], r13d
mov dword [r11], r13d
cmp rbp, rcx
jne 0x14005a3b0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ebx, 7
cmp rsi, 0x10c
ja 0x14005a2a2
mov ebx, 5
cmp rsi, 0x98
ja 0x14005a2a2
lea rbx, [r9 - 1]
mov edx, 3
shr rbx, 1
cmp rsi, 0x19
cmovae rbx, rdx
jmp 0x14005a2a2