joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400424c0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm6
mov rbx, rdx
call fcn.14001c440
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
movups xmm6, xmmword [rax]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x140042550
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14001c440
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.14001c4d0
cmp rax, 0x3e8
ja 0x140042562
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x140042500
xor eax, eax
mov rbx, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
mov rbx, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x50]
mov eax, 1
add rsp, 0x60
pop rdi
ret
Function at 0x1400471d0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rdi, rcx
mov rsi, r8
mov rbx, rdx
lea rcx, [rbp - 0x30]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rbp + 0x28], 8
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400472fb
movzx edx, byte [rsi + 1]
movzx ecx, byte [rsi]
movzx r8d, byte [rsi + 5]
xor eax, eax
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], eax
mov qword [rbp - 0x20], rax
mov byte [rbp - 0x14], cl
shl cl, 7
movzx eax, dl
shr al, 1
shl dl, 6
mov word [rbp - 0x20], 0x208
or al, cl
movzx ecx, byte [rsi + 2]
mov dword [rbp - 0x1c], 0x6601
mov byte [rbp - 0x13], al
movzx eax, cl
shl cl, 5
shr al, 2
mov dword [rbp - 0x18], 8
or al, dl
movzx edx, byte [rsi + 3]
mov byte [rbp - 0x12], al
movzx eax, dl
shl dl, 4
shr al, 3
or al, cl
movzx ecx, byte [rsi + 4]
mov byte [rbp - 0x11], al
movzx eax, cl
shl cl, 3
shr al, 4
or al, dl
mov edx, 8
mov byte [rbp - 0x10], al
movzx eax, r8b
shl r8b, 2
shr al, 5
or al, cl
movzx ecx, byte [rsi + 6]
mov byte [rbp - 0xf], al
movzx eax, cl
add cl, cl
shr al, 6
mov byte [rbp - 0xd], cl
lea rcx, [rbp - 0x14]
or al, r8b
mov byte [rbp - 0xe], al
call fcn.14004dc00
mov rcx, qword [rbp - 0x30]
xor r9d, r9d
lea r11, [rbp - 0x28]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x28], r11
lea r8d, [r9 + 0x14]
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1400472ff
mov rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x140047347
mov ecx, dword [rbp + 0x28]
mov rax, qword [rdi]
xor r9d, r9d
mov dword [rsp + 0x30], ecx
lea rcx, [rbp + 0x28]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp - 0x28]
xor edx, edx
mov qword [rbx], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140047360
Capabilities:
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov r8, rcx
mov rdx, rdi
mov rcx, rsi
call fcn.1400471d0
lea r8, [rbx + 7]
lea rdx, [rdi + 8]
mov rcx, rsi
call fcn.1400471d0
lea r8, [rbx + 0xe]
lea rdx, [rdi + 0x10]
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400471d0
Function at 0x140048a60
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WSOCK32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x140048a99
lea edx, [rax + 0x2e]
mov rcx, rdi
call fcn.1401755f0
test rax, rax
je 0x140048a97
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14004dc60
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rbx, rcx
mov rdi, r8
mov rsi, rdx
lea rcx, [rax - 0x18]
lea r9d, [rbp + 1]
xor r8d, r8d
xor edx, edx
mov qword [rax - 0x18], rbp
mov qword [rax - 0x10], rbp
mov dword [rax - 0x28], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14004dcc5
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rcx, rdi
call fcn.140013b00
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
lea edx, [r8 + 2]
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x68], 0x10
jne 0x14004dd23
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x68]
mov r8, rbx
mov edx, 2
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14004dd33
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14004dd45
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14004f3b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov r12d, r8d
lea r9d, [rax + rax]
mov eax, dword [rcx + 0x20]
mov rbp, rdx
lea rcx, [r9 + rax + 0x18]
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x14004f3f1
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp r12d, dword [rbx + 0x1c]
jbe 0x14004f435
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, r12d
mov rdx, rbp
call qword [rbx + reloc.WSOCK32.dll_htonl]
mov ebp, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add rbp, qword [rdi + 0x10]
mov rcx, rbp
call qword [rbx + reloc.WSOCK32.dll_recv]
mov r12d, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test r12, r12
je 0x14004f494
mov rsi, r12
nop dword [rax + rax]
movzx eax, byte [rbp]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WSOCK32.dll_htonl]
movzx r11d, byte [rbp]
lea rdx, [rsp + 0x40]
xor r11b, 0x5c
mov r8d, 1
inc rbp
mov byte [rsp + 0x40], r11b
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WSOCK32.dll_htonl]
dec r12
jne 0x14004f450
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14004f4d3
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1401baec2]
mov r8d, 1
call qword [rbx + reloc.WSOCK32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401baec3]
mov r8d, 1
call qword [rbx + reloc.WSOCK32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14004f4a0
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret
Function at 0x14004f700
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rdi, r8
mov rsi, rdx
lea rcx, [rsp + 0x30]
mov r9d, Ordinal_26
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14004f75a
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rcx, rdi
call fcn.140013b00
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x38]
xor edi, edi
lea edx, [rdi + 2]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov dword [rsp + 0x68], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x68], 0x20
jne 0x14004f7b7
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x68]
lea edx, [rdi + 2]
mov r8, rbx
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14004f7c7
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14004f7d9
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140061780
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x270
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402120d8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, r8
mov rbx, rdx
mov r15, rcx
mov qword [rsp + 0x20], rcx
movzx edi, byte [rcx + 0x28]
movdqa xmm0, xmmword [0x1401e37a0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov r8d, 5
lea rdx, str.write
lea rcx, [rsp + 0x30]
call fcn.140050e90
nop
test dil, dil
jne 0x1400618f0
cmp qword [r15 + 8], 0
je 0x14006194c
lea rcx, [rsp + 0x30]
call fcn.140050e10
sub rsi, rbx
js 0x1400619a5
test rsi, rsi
jne 0x140061846
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401571e0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov r9, qword [r15 + 0x18]
mov rcx, qword [r15 + 0x10]
mov rax, r9
sub rax, rcx
cmp rax, rsi
jae 0x14006188b
mov rax, qword [r15 + 0x20]
sub rax, rcx
cmp rsi, rax
jbe 0x140061873
mov rdx, rsi
lea rcx, [r15 + 0x10]
call fcn.140062a40
jmp 0x14006188b
lea rdi, [rcx + rsi]
mov r8, rdi
sub r8, r9
xor edx, edx
mov rcx, r9
call fcn.140175ab0
mov qword [r15 + 0x18], rdi
mov r8, rsi
mov rdx, rbx
mov rcx, qword [r15 + 0x10]
call fcn.1401756a0
mov rcx, qword [r15 + 8]
test rcx, rcx
je 0x1400618c7
xor r9d, r9d
mov r8d, esi
mov rdx, qword [r15 + 0x10]
mov rcx, qword [rcx]
call qword [sym.imp.WSOCK32.dll_send]
cdqe
cmp rax, 0xffffffffffffffff
je 0x1400619ce
jmp 0x14006181d
lea rdx, str.handle_is_nullptr
lea rcx, [rsp + 0xb8]
call fcn.14005b240
lea rdx, [0x14020f650]
lea rcx, [rsp + 0xb8]
call fcn.1401760d0
nop
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.1400542f0
mov rbx, rax
lea rdx, str.Connection
lea rcx, [rsp + 0x50]
call fcn.140050d60
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.140063c70
lea rdx, [0x14020f4a0]
lea rcx, [rsp + 0xd0]
call fcn.1401760d0
int3
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400542f0
mov rbx, rax
lea rdx, str.Connection
lea rcx, [rsp + 0x80]
call fcn.140050d60
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x130]
call fcn.140063f90
lea rdx, [0x14020f3e0]
lea rcx, [rsp + 0x130]
call fcn.1401760d0
nop
lea rdx, str.begin_and_end_have_a_negative_distance
lea rcx, [rsp + 0xa0]
call fcn.14005b240
lea rdx, [0x14020f650]
lea rcx, [rsp + 0xa0]
call fcn.1401760d0
nop
lea rdx, str.TCPSocket::send
lea rcx, [rsp + 0x50]
call fcn.140050d60
mov rdx, rax
lea rcx, [rsp + 0x1b0]
call fcn.1400641b0
lea rdx, [0x14020f868]
lea rcx, [rsp + 0x1b0]
call fcn.1401760d0
int3
Function at 0x1400650e0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0xf8]
sub rsp, 0x1f8
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1402120d8]
xor rax, rsp
mov qword [rbp + 0xe8], rax
mov r11, r8
mov r10, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
mov eax, dword [r9]
mov dword [rbp + 0x88], eax
mov dword [rbp + 0x8c], esi
mov dword [rbp + 0x90], 1
mov dword [rbp + 0x94], 6
mov qword [rbp + 0x98], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], rsi
mov qword [rbp + 0x80], rsi
cmp qword [r8 + 0x18], 0x10
jb 0x14006516f
mov r11, qword [r8]
cmp qword [rdx + 0x18], 0x10
jb 0x140065179
mov r10, qword [rdx]
lea r9, [rbp + 0x80]
lea r8, [rbp + 0x88]
mov rdx, r11
mov rcx, r10
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1400652bd
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
mov dword [rsp + 0x30], 1
mov rbx, qword [rbp + 0x80]
test rbx, rbx
je 0x140065296
mov ecx, dword [rbx + 4]
cmp ecx, 2
je 0x1400651d9
mov eax, 2
cmp ecx, 0x17
cmovne eax, esi
jmp 0x1400651de
mov eax, 1
mov dword [rbp + 0xb8], eax
mov ecx, dword [rbx + 8]
sub ecx, 1
je 0x1400651ff
cmp ecx, 1
je 0x1400651f8
mov eax, 2
jmp 0x140065201
mov eax, 1
jmp 0x140065201
mov eax, esi
mov dword [rbp + 0xbc], eax
mov eax, dword [rbx + 0xc]
cmp eax, 6
je 0x14006521f
cmp eax, 0x11
jne 0x14006533d
mov eax, 1
jmp 0x140065221
mov eax, esi
mov dword [rbp + 0xc0], eax
mov rdx, qword [rbx + 0x20]
lea rcx, [rbp + 0xc4]
call fcn.140065630
mov rdx, qword [rdi + 8]
cmp qword [rdi + 0x10], rdx
je 0x140065273
movups xmm0, xmmword [rbp + 0xb8]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp + 0xc8]
movups xmmword [rdx + 0x10], xmm1
movsd xmm0, qword [rbp + 0xd8]
movsd qword [rdx + 0x20], xmm0
mov eax, dword [rbp + 0xe0]
mov dword [rdx + 0x28], eax
add qword [rdi + 8], 0x2c
jmp 0x140065282
lea r8, [rbp + 0xb8]
mov rcx, rdi
call fcn.140065370
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1400651c4
mov rbx, qword [rbp + 0x80]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, rdi
mov rcx, qword [rbp + 0xe8]
xor rcx, rsp
call fcn.1401571e0
add rsp, 0x1f8
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
lea rcx, [rbp - 0x60]
call fcn.140064a40
mov rsi, rax
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rdx, [0x1401d6208]
lea rcx, [rsp + 0x60]
call fcn.140050d60
mov rbx, rax
lea rdx, str.get_address_info
lea rcx, [rbp - 0x80]
call fcn.140050d60
nop
mov qword [rsp + 0x20], rsi
mov r9d, edi
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1400638f0
lea rdx, [0x14020f798]
lea rcx, [rbp - 0x20]
call fcn.1401760d0
int3
lea rdx, str.proto
lea rcx, [rbp + 0xb8]
call fcn.14005b240
lea rdx, [0x14020f650]
lea rcx, [rbp + 0xb8]
call fcn.1401760d0
int3
Function at 0x140065ff0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1402120d8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, qword [rdx]
mov rbp, rcx
mov rcx, qword [rdx + 8]
xor edi, edi
mov rax, rcx
mov rsi, rdx
sub rax, rbx
cmp rax, 0x1000
jbe 0x14006603b
lea rax, [rbx + 0x1000]
mov qword [rdx + 8], rax
jmp 0x140066073
jae 0x140066073
mov rax, qword [rdx + 0x10]
sub rax, rbx
cmp rax, 0x1000
jae 0x14006605b
mov edx, 0x1000
mov rcx, rsi
call fcn.140062a40
jmp 0x140066073
add rbx, 0x1000
xor edx, edx
mov r8, rbx
sub r8, rcx
call fcn.140175ab0
mov qword [rsi + 8], rbx
mov rax, qword [rbp + 8]
test rax, rax
je 0x14006618d
mov rbp, qword [rax]
lea rdx, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x58], rbp
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x50], 1
xor ecx, ecx
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x4c], 0x7a120
call qword [sym.imp.WSOCK32.dll_select]
test eax, eax
je 0x140066118
nop dword [rax]
mov rdx, qword [rsi]
mov r8d, 0x1000
sub r8d, edi
add rdx, rdi
xor r9d, r9d
mov rcx, rbp
mov rbx, rdi
call qword [sym.imp.WSOCK32.dll_recv]
movsxd rcx, eax
test eax, eax
je 0x140066118
cmp rdi, 0x1000
jae 0x140066118
add rdi, rcx
lea rdx, [rsp + 0x50]
test eax, eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
cmove rdi, rbx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.WSOCK32.dll_select]
test eax, eax
jne 0x1400660c0
mov r9, qword [rsi + 8]
mov rcx, qword [rsi]
mov rax, r9
sub rax, rcx
cmp rdi, rax
jae 0x140066134
lea rax, [rcx + rdi]
mov qword [rsi + 8], rax
jmp 0x140066167
jbe 0x140066167
mov rax, qword [rsi + 0x10]
sub rax, rcx
cmp rdi, rax
jbe 0x14006614f
mov rdx, rdi
mov rcx, rsi
call fcn.140062a40
jmp 0x140066167
lea rbx, [rcx + rdi]
xor edx, edx
mov r8, rbx
mov rcx, r9
sub r8, r9
call fcn.140175ab0
mov qword [rsi + 8], rbx
mov rax, rdi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401571e0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.handle_is_nullptr
lea rcx, [rsp + 0x30]
call fcn.14005b240
lea rdx, [0x14020f650]
lea rcx, [rsp + 0x30]
call fcn.1401760d0
int3
Function at 0x14006a3a0
Capabilities:
Reference http user-agent string

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov rax, qword [0x14021d9a8]
test rax, rax
je 0x14006a40b
mov rax, qword [rax]
mov rbp, qword [rax]
mov rdi, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x14006a3e8
mov rdi, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rsp + 0x20], rdi
mov r9d, eax
lea r8, str._DEBUG___d___http_download__url__s_.
mov edx, 4
mov rcx, qword [0x14021d9a8]
call rbp
call fcn.1400010a0
mov rdi, rax
test rax, rax
je 0x14006a5e8
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14006a429
mov rcx, qword [rsi]
lea rdx, [0x1401d6950]
call fcn.14017f744
mov rbp, rax
test rax, rax
jne 0x14006a4a1
mov rax, qword [0x14021d9a8]
test rax, rax
je 0x14006a5d3
mov rax, qword [rax]
mov r15, qword [rax]
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140089ce0
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14006a46d
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rsp + 0x20], rbx
mov r9d, eax
lea r8, str._ERROR___d___http_download__open_file__s__failed_
mov edx, 1
mov rcx, qword [0x14021d9a8]
call r15
nop
lea rcx, [rsp + 0x38]
call fcn.140050e10
jmp 0x14006a5d3
lea rdx, str.user_agent:_Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_100.0.4896.127_Safari_537.36
xor ecx, ecx
call fcn.140001450
mov rsi, rax
test rax, rax
je 0x14006a4c7
mov r8, rax
mov edx, 0x2727
mov rcx, rdi
call fcn.140003f10
mov edx, 0x54
lea r8d, [rdx - 0x53]
mov rcx, rdi
call fcn.140003f10
xor r8d, r8d
lea edx, [r8 + 0x2a]
mov rcx, rdi
call fcn.140003f10
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, rdi
call fcn.140003f10
xor r8d, r8d
lea edx, [r8 + 0x51]
mov rcx, rdi
call fcn.140003f10
xor r8d, r8d
mov edx, 0x4e2b
mov rcx, rdi
call fcn.140003f10
mov r8, rbp
mov edx, 0x2711
mov rcx, rdi
call fcn.140003f10
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14006a532
mov r8, qword [rbx]
mov edx, 0x2712
mov rcx, rdi
call fcn.140003f10
mov edx, 0x34
lea r8d, [rdx - 0x33]
mov rcx, rdi
call fcn.140003f10
mov edx, Ordinal_79
lea r8d, [rdx - 0x49]
mov rcx, rdi
call fcn.140003f10
mov edx, 0x63
lea r8d, [rdx - 0x62]
mov rcx, rdi
call fcn.140003f10
mov rcx, rdi
call fcn.1400012d0
mov r14d, eax
test eax, eax
je 0x14006a5c6
mov rcx, qword [0x14021d9a8]
test rcx, rcx
je 0x14006a5c6
mov rcx, qword [rcx]
mov r15, qword [rcx]
cmp qword [rbx + 0x18], 0x10
jb 0x14006a59d
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbx
mov r9d, eax
lea r8, str._ERROR___d___http_download__failed__url__s___code__d_.
mov edx, 1
mov rcx, qword [0x14021d9a8]
call r15
test rsi, rsi
je 0x14006a5d3
mov rcx, rsi
call fcn.1400014b0
mov rcx, rdi
call fcn.1400012e0
test rbp, rbp
je 0x14006a5e8
mov rcx, rbp
call fcn.14017f550
test r14d, r14d
sete al
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14006fe10
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 0x14006feaa
mov rbx, r8
test r8, r8
jle 0x14006fea2
mov rcx, rdi
call fcn.14005ff60
test rax, rax
jle 0x14006fe80
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.1401756a0
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 0x14006fe9a
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14006fea2
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x14006fe42
sub r14, rbx
mov rax, r14
jmp 0x14006ff21
mov rax, qword [rcx + 0x40]
mov rsi, r14
mov r9, qword [rax]
test r9, r9
je 0x14006fec1
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14006fec3
xor ecx, ecx
movsxd rbx, ecx
test r14, r14
jle 0x14006ff1b
test ecx, ecx
jle 0x14006fef7
cmp r14, rbx
mov rcx, r9
cmovl rbx, r14
mov r8, rbx
call fcn.1401756a0
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 0x14006ff1b
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14006ff1b
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.1401802e0
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 0x14006ff40
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14006ff62
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14006ffdc
mov rdi, r14
mov rcx, rbx
call fcn.14005ff80
test rax, rax
jle 0x14006ffb4
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.1401756a0
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 0x14006ffcc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x14006ffd4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14006ff76
sub r14, rdi
jmp 0x1400700c9
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14006fff3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14006fff5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14007002a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1401756a0
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 0x1400700c6
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140070065
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 0x1400700a1
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1401809b4
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x1400700df
cmp rbp, rax
ja 0x140070071
mov r8, rdi
test rdi, rdi
je 0x1400700c6
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1401809b4
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x1400700c9