joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001a30
Capabilities:
Decompress data using quicklz

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
test byte [rcx], 2
lea rsi, [r8 - 1]
mov r10, rdx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], r15
mov edx, 3
mov eax, 9
mov qword [rsp + 0x18], rbx
cmovne edx, eax
lea r15, [0x180018bb0]
add rdx, rcx
mov r14, r8
add rsi, r10
mov r8d, 1
lea rbp, [rsi - 0xa]
nop dword [rax + rax]
mov eax, r8d
cmp r8d, 1
jne 0x180001a8c
mov r8d, dword [rdx]
cmp eax, 1
lea rdi, [rdx + 4]
cmovne rdi, rdx
mov eax, dword [rdi]
test r8b, 1
je 0x180001b50
shr r8d, 1
test al, 3
jne 0x180001abe
shr eax, 2
mov ebx, 1
and eax, 0x3f
mov ecx, eax
mov eax, 3
jmp 0x180001b28
mov ecx, eax
test al, 2
jne 0x180001ad9
shr ecx, 2
mov eax, 3
and ecx, 0x3fff
mov ebx, 2
jmp 0x180001b28
test al, 1
jne 0x180001af3
shr ecx, 6
mov ebx, 2
and ecx, 0x3ff
shr eax, 2
and eax, 0xf
jmp 0x180001b25
mov edx, eax
and ecx, 0x7f
shr edx, 7
cmp cl, 3
je 0x180001b18
shr eax, 2
mov ecx, edx
and ecx, 0x1ffff
and eax, 0x1f
add eax, 2
mov ebx, 3
jmp 0x180001b28
mov ecx, eax
mov ebx, 4
shr ecx, 0xf
movzx eax, dl
add eax, 3
mov r11, r10
sub r11, rcx
xor r9d, r9d
mov ecx, dword [r9 + r11]
mov dword [r10 + r9], ecx
add r9d, 3
cmp r9d, eax
jb 0x180001b31
mov ecx, eax
lea rdx, [rdi + rbx]
add r10, rcx
jmp 0x180001a80
cmp r10, rbp
jae 0x180001b77
mov ecx, r8d
mov dword [r10], eax
and ecx, 0xf
mov ecx, dword [r15 + rcx*4]
shr r8d, cl
mov ebx, ecx
mov eax, ecx
lea rdx, [rdi + rcx]
mov ecx, ecx
add r10, rcx
jmp 0x180001a80
mov r15, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
cmp r10, rsi
ja 0x180001bbb
mov edx, 0x80000000
cmp r8d, 1
lea rcx, [rdi + 4]
mov eax, r8d
cmove r8d, edx
cmp eax, 1
cmovne rcx, rdi
shr r8d, 1
movzx eax, byte [rcx]
lea rdi, [rcx + 1]
mov byte [r10], al
inc r10
cmp r10, rsi
jbe 0x180001b90
mov rsi, qword [rsp + 0x30]
mov rax, r14
pop r14
pop rdi
ret
Function at 0x180002240
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
cmp edx, 1
jne 0x1800022f2
mov qword [0x18001fbd8], rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18000f640
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x208
call fcn.18000f640
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, 0x104
lea rdx, [rsp + 0x230]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rsp + 0x230]
call fcn.180004e08
mov r8, rax
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.180007010
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x18001fbe0], rax
mov eax, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180003740
add rsp, 0x450
pop rbx
ret
Function at 0x1800074f4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180007563
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180007563
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180007563
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180007563
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180007563
cmp dword [rcx + 0x84], 0xe
jbe 0x180007563
cmp dword [rcx + 0xf8], 0
je 0x180007563
mov ecx, ebx
call fcn.180007608
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1800073fc
nop
cmp dword [rbp + 0x20], 0
jne 0x1800075c4
call fcn.180008ed0
cmp eax, 1
jne 0x1800075b4
xor dl, dl
jmp 0x1800075be
call fcn.180008e9c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1800075cf
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800075d8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800074f4
Function at 0x18000aa48
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000aa78
xor eax, eax
jmp 0x18000ab3b
mov rbp, rbx
cmp word [rax], si
je 0x18000aa9d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000aa84
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000aa80
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000a968
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18000aade
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000aa71
call fcn.180008750
mov rdi, rax
test rax, rax
jne 0x18000aaf4
xor ecx, ecx
call fcn.1800086f0
jmp 0x18000aad3
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000a968
test eax, eax
jne 0x18000ab25
mov rcx, rdi
call fcn.1800086f0
jmp 0x18000ab2f
xor ecx, ecx
call fcn.1800086f0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18000f450
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000f478
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000f478
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140021bc0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x140021be5
cmp rax, rcx
je 0x140021beb
cmp rdx, 4
jae 0x140021bf2
xor eax, eax
xor r8d, r8d
jmp 0x140021c90
pop rbp
jmp fcn.14001a260
xor eax, eax
jmp 0x140021ca7
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140034570]
movdqa xmm3, xmmword [0x140034580]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140021c20
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140021ca7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140021c90
pop rbp
ret
Function at 0x14002b180
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rsi, r9
mov esi, ecx

Function at 0x14002ff20
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
mov r9, rcx
mov ecx, 0xfffffff4
pop rbp
jmp fcn.140025750

Function at 0x140031830
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14003187a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003187a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003187a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003187a
cmp dword [rcx + 0x84], 0xe
jbe 0x14003187a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003187c
xor al, al
add rsp, 0x28
ret
Function at 0x140003d00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x13d0
call fcn.140010fa0
sub rsp, rax
mov rax, qword [0x14371c080]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov r15, r8
movsxd rsi, edx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call fcn.14000fea8
mov r9d, eax
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
mov ecx, 1
nop word [rax + rax]
mov eax, r9d
shr eax, 0x1e
xor eax, r9d
imul r9d, eax, 0x6c078965
add r9d, ecx
mov dword [rsp + rcx*4 + 0x34], r9d
inc rcx
cmp rcx, 0x270
jb 0x140003d70
mov dword [rsp + 0x30], 0x270
mov r14d, dword [r15 + 0x10]
dec r14d
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], bl
mov dword [rsp + 0x20], 1
mov r12, rsi
test esi, esi
je 0x140003e9c
mov r13d, 0x80000000
xor r14d, r13d
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x30]
cmp r14d, 0x7fffffff
jne 0x140003df7
call fcn.14000c470
mov ecx, eax
jmp 0x140003e3c
lea esi, [r14 - 0x7fffffff]
call fcn.14000c470
mov ebp, esi
mov ecx, eax
imul rcx, rbp
cmp ecx, esi
jae 0x140003e38
mov eax, esi
neg eax
xor edx, edx
div esi
mov esi, edx
cmp ecx, edx
jae 0x140003e38
nop dword [rax]
lea rcx, [rsp + 0x30]
call fcn.14000c470
mov ecx, eax
imul rcx, rbp
cmp ecx, esi
jb 0x140003e20
mov rbx, qword [rdi + 0x10]
shr rcx, 0x20
lea eax, [rcx + r13]
xor eax, r13d
mov rcx, r15
cmp qword [r15 + 0x18], 0xf
jbe 0x140003e50
mov rcx, qword [r15]
cdqe
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x18]
cmp rbx, rcx
jae 0x140003e7f
lea rax, [rbx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rcx, 0xf
jbe 0x140003e74
mov rax, qword [rdi]
mov byte [rax + rbx], r9b
mov byte [rax + rbx + 1], 0
jmp 0x140003e8f
xor r8d, r8d
mov edx, 1
mov rcx, rdi
call fcn.14000ae00
mov rbx, qword [rdi + 0x10]
cmp r12, rbx
ja 0x140003de0
mov rax, rdi
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.1400106b0
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140024984
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140010fa0
sub rsp, rax
mov rax, qword [0x14371c080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001f960
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400249d3
mov rax, rbp
jmp 0x140024adb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x371e390]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400263a4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x371e390]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140024ad7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140024ad7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400263a4
test rax, rax
js 0x140024ad7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140024ad7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140024ac9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140024ac9
cmp byte [rcx], 0xd
jne 0x140024aaf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140024abe
cmp byte [rcx + 1], 0xa
jne 0x140024abe
inc rcx
jmp 0x140024abe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x371c4c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140024a91
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140024adb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400106b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140025744
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14371e390]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14002579b
cmp word [rdx], r13w
jne 0x14002579b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400257a0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400258c5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400258e6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400257d9
mov rdx, r9
mov word [rbx], cx
jmp 0x140025800
cmp r9, r8
jae 0x140025810
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400257ba
jmp 0x1400258c5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400258ba
cmp dword [rsp + 0x80], esi
je 0x1400258ba
lea r8, [0x14371e390]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140025892
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140025862
mov word [rbx], r13w
jmp 0x1400258c2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14002586f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400258c2
cmp word [rsp + 0x70], r13w
jne 0x14002589f
cmp rbx, r14
je 0x14002585c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400263ac
cmp word [rsp + 0x70], r13w
je 0x1400258c5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14371e390]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400258bf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400258c5
Function at 0x14001dbc0
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
sub r9, rdx
je 0x14001dbe7
mov rax, rdx
not rax
add rax, r8
mov ecx, r9d
and ecx, 3
cmp rax, 3
jae 0x14001dbed
mov eax, 0x84222325
xor r8d, r8d
jmp 0x14001dc48
mov eax, 0x84222325
ret
and r9, 0xfffffffffffffffc
mov eax, 0x84222325
xor r8d, r8d
nop dword [rax]
movzx r10d, byte [rdx + r8]
xor r10d, eax
imul eax, r10d, 0x1b3
movzx r10d, byte [rdx + r8 + 1]
xor r10d, eax
imul eax, r10d, 0x1b3
movzx r10d, byte [rdx + r8 + 2]
xor r10d, eax
imul eax, r10d, 0x1b3
movzx r10d, byte [rdx + r8 + 3]
xor r10d, eax
imul eax, r10d, 0x1b3
add r8, 4
cmp r9, r8
jne 0x14001dc00
test rcx, rcx
je 0x14001dc77
add rdx, r8
xor r8d, r8d
nop word cs:[rax + rax]
movzx r9d, byte [rdx + r8]
xor r9d, eax
imul eax, r9d, 0x1b3
inc r8
cmp rcx, r8
jne 0x14001dc60
ret
Function at 0x140023a60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
mov r12, qword [rcx]
movzx ebx, byte [r12]
test byte [rcx + 0xb9], 1
je 0x140023a9f
mov rax, qword [rsi + 0xd0]
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
mov edx, ebx
call qword [rax + 0x20]
mov ebx, eax
mov r12, qword [rsi]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140023b45
mov rax, qword [rsi + 0xa0]
jmp 0x140023ac9
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x140023b45
mov edx, dword [rcx + 0xc]
test edx, edx
je 0x140023ac0
mov r8d, dword [rcx]
xor r9d, r9d
nop word cs:[rax + rax]
mov r11, r12
test r8d, r8d
je 0x140023b1a
mov r10d, r9d
add r10, qword [rcx + 0x10]
xor r14d, r14d
nop word cs:[rax + rax]
movzx ebp, byte [r12 + r14]
lea r11, [r14 + 1]
cmp bpl, byte [r10 + r14]
jne 0x140023b17
mov r14, r11
cmp r11, r8
jb 0x140023b00
add r11, r12
cmp r11, rax
je 0x140023b29
add r9d, r8d
cmp r9d, edx
jb 0x140023ae0
jmp 0x140023ac0
cmp rax, r12
je 0x140023b45
test byte [rdi + 0xc], 1
mov r12, rax
jne 0x140023c4f
mov qword [rsi], r12
mov al, 1
jmp 0x140023c51
inc r12
mov r13, qword [rdi + 0x38]
test r13, r13
je 0x140023c22
test byte [rsi + 0xb9], 8
mov ebp, ebx
je 0x140023be4
mov rax, qword [rsi + 0xd0]
mov byte [rsp + 0x27], bl
mov rcx, qword [rax]
lea r9, [rsp + 0x28]
mov rax, qword [rcx]
lea r14, [rsp + 0x28]
lea r15, [rsp + 0x27]
mov rdx, r14
mov r8, r15
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x40]
cmp rax, 0x10
cmovae r14, rcx
cmp qword [rsp + 0x38], 1
cmovne r14, r15
movzx ebp, byte [r14]
cmp rax, 0x10
jb 0x140023be4
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140023bdf
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140023c6d
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400f0ba0
mov eax, dword [r13 + 4]
test eax, eax
je 0x140023c22
mov rcx, qword [r13 + 8]
xor edx, edx
jmp 0x140023c07
add edx, 2
cmp edx, eax
jae 0x140023c22
mov r8d, edx
cmp byte [rcx + r8], bpl
ja 0x140023c00
lea r8d, [rdx + 1]
cmp byte [rcx + r8], bpl
jb 0x140023c00
mov rax, r12
jmp 0x140023b2e
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x140023c62
movzx ecx, bl
mov edx, ecx
shr edx, 3
movzx eax, byte [rax + rdx]
and ecx, 7
bt eax, ecx
setb al
test byte [rdi + 0xc], 1
sete cl
xor cl, al
je 0x140023b3b
xor eax, eax
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test byte [rdi + 0xc], 1
je 0x140023c4f
jmp 0x140023b3b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140027c90
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x48], 1
cmp qword [rdx + 0x10], 0
je 0x140027ce4
mov rsi, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x140027cda
mov rsi, qword [rsi]
mov eax, 4
xor r9d, r9d
jmp 0x140027d02
mov rdx, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0x10
jb 0x140027cf2
mov rcx, qword [rcx]
mov eax, dword [rbp + 0x80]
test rdx, rdx
cmove rcx, rdx
mov rsi, rcx
mov dword [rbp - 0x4c], r9d
mov dword [rbp - 0x50], eax
lea rdi, [rbp - 0x20]
mov rcx, rdi
mov edx, r8d
call fcn.140026a80
cmp qword [rbp - 8], 0x10
jb 0x140027d23
mov rdi, qword [rbp - 0x20]
lea r8, [rbp - 0x50]
mov r9, rbp
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rsi, 0xffffffffffffffff
test eax, eax
jne 0x140027e76
mov rdi, qword [rbp]
test rdi, rdi
je 0x140027e5d
mov r13, qword [sym.imp.WS2_32.dll_WSASocketW]
lea r14, [rbp + 8]
mov r12, qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
mov r8d, dword [rdi + 0xc]
mov ecx, dword [rdi + 4]
mov edx, dword [rdi + 8]
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor r9d, r9d
call r13
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140027db6
mov r8d, dword [rdi + 0xc]
mov ecx, dword [rdi + 4]
mov edx, dword [rdi + 8]
call qword [sym.imp.WS2_32.dll_socket]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140027e50
cmp byte [rbp + 0x88], 0
je 0x140027de2
mov dword [rbp + 8], 1
mov dword [rsp + 0x20], 4
mov rcx, r15
mov edx, 6
mov r8d, 1
mov r9, r14
call r12
mov rax, qword [rbp + 0x90]
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x140027dff
mov qword [rbp + 8], r15
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rdi + 4], 0x17
jne 0x140027e28
mov dword [rbp + 8], 0
mov dword [rsp + 0x20], 4
mov rcx, r15
mov edx, 0x29
mov r8d, 0x1b
mov r9, r14
call r12
mov byte [rbp + 8], 0
mov rcx, qword [rbp + 0x98]
mov rdx, r15
mov r8, rdi
mov r9, r14
call fcn.140027fa0
test al, al
jne 0x140027e69
mov rcx, r15
call rbx
cmp byte [rbp + 8], 0
jne 0x140027e5d
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140027d70
mov rcx, qword [rbp]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x140027e76
mov rcx, qword [rbp]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rsi, r15
mov rax, qword [rbp - 8]
cmp rax, 0x10
mov rdi, qword [rbp + 0x90]
jb 0x140027eb8
mov rcx, qword [rbp - 0x20]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140027eb3
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140027eec
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400f0ba0
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140027ed5
cmp rcx, rdi
setne dl
mov rax, qword [rcx]
call qword [rax + 0x20]
mov qword [rdi + 0x38], 0
mov rax, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140027fa0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r9
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140183d00]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 1
lea r8, [rsp + 0x2c]
mov rcx, rdx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [r14 + 0x10]
mov rdx, qword [r14 + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x1400280c1
mov dword [rsp + 0x2c], 0
lea r8, [rsp + 0x2c]
mov rcx, rdi
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rsi + 0x20]
mov rcx, qword [rsi + 0x28]
imul r8d, dword [rax], 0x3e8
movabs rbx, 0x20c49ba5e353f7cf
mov rax, rbx
imul qword [rcx]
mov rax, rdx
shr rax, 0x3f
shr rdx, 7
add edx, eax
add edx, r8d
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x20], 4
mov r14, qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x2c]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x1006
call r14
mov rax, qword [rsi + 0x30]
mov rcx, qword [rsi + 0x38]
imul r8d, dword [rax], 0x3e8
mov rax, rbx
imul qword [rcx]
mov rax, rdx
shr rax, 0x3f
shr rdx, 7
add edx, eax
add edx, r8d
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x1005
call r14
mov rax, qword [rsi + 8]
mov dword [rax], 0
mov sil, 1
jmp 0x14002810e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140028102
mov rax, qword [rsi + 0x10]
mov rcx, qword [rsi + 0x18]
mov r8, qword [rcx]
mov rdx, qword [rax]
mov rcx, rdi
call fcn.140028130
mov rcx, qword [rsi + 8]
mov dword [rcx], eax
mov rax, qword [rsi + 8]
mov eax, dword [rax]
test eax, eax
je 0x140027ff8
cmp eax, 0xd
jne 0x14002810c
mov byte [rbx], 1
jmp 0x14002810c
mov rax, qword [rsi + 8]
mov dword [rax], 2
xor esi, esi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400f0d70
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret