joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003ee30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x18003ee64
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x18003ee50
ret

Function at 0x180048ec0
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 0x180048ef1
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 0x180048f6b
mov rdi, r14
mov rcx, rbx
call fcn.180046d30
test rax, rax
jle 0x180048f43
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.180153f80
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 0x180048f5b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180048f63
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180048f05
sub r14, rdi
jmp 0x18004904f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180048f82
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180048f84
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180048fb6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180153f80
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18004904c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180048ff1
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x18004902d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.180190c2c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18004904c
cmp rbp, rax
ja 0x180049000
test rbp, rbp
je 0x18004904c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.180190c2c
sub rbp, rax
sub r14, rbp
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
Function at 0x18005a1d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rbx, rdx
lea rax, [rbp + 0x30]
mov rcx, rbx
mov qword [rbp - 0x30], rax
mov rdx, r9
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x18005a26f
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
lea edx, [rax + 0x20]
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
lea rcx, [rbp - 0x20]
movups xmmword [rbp - 0x20], xmm0
call fcn.1800221a0
movups xmm0, xmmword [str.FindResource_returned_null.]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov qword [rbp - 0x10], 0x1b
xor edx, edx
mov qword [rbp - 8], 0x1f
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1801ef570]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x1801ef578]
mov word [rax + 0x18], cx
movzx ecx, byte [0x1801ef57a]
mov byte [rax + 0x1a], cl
mov byte [rax + 0x1b], dil
jmp 0x18005a3db
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x18005a2e7
xorps xmm0, xmm0
mov qword [rbp - 0x10], 0
lea edx, [rax + 0x20]
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
lea rcx, [rbp - 0x20]
movups xmmword [rbp - 0x20], xmm0
call fcn.1800221a0
movups xmm0, xmmword [str.SizeofResource_returned_0.]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov qword [rbp - 0x10], 0x1a
xor edx, edx
mov qword [rbp - 8], 0x1f
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1801ef590]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x1801ef598]
mov word [rax + 0x18], cx
mov byte [rax + 0x1a], 0
jmp 0x18005a3db
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x18005a363
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
lea edx, [rax + 0x20]
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
lea rcx, [rbp - 0x20]
movups xmmword [rbp - 0x20], xmm0
call fcn.1800221a0
movups xmm0, xmmword [str.LockResource_returned_null.]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov qword [rbp - 0x10], 0x1b
xor edx, edx
mov qword [rbp - 8], 0x1f
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1801ef5b0]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x1801ef5b8]
mov word [rax + 0x18], cx
movzx ecx, byte [0x1801ef5ba]
mov byte [rax + 0x1a], cl
mov byte [rax + 0x1b], 0
jmp 0x18005a3db
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
lea rcx, [rbp - 0x20]
test rax, rax
jne 0x18005a3ce
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
lea edx, [rax + 0x20]
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
movups xmmword [rbp - 0x20], xmm0
call fcn.1800221a0
movups xmm0, xmmword [str.Resource_data_is_null.]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov qword [rbp - 0x10], socket
xor edx, edx
mov qword [rbp - 8], 0x1f
movups xmmword [rax], xmm0
mov ecx, dword [0x1801ef5d0]
mov dword [rax + 0x10], ecx
movzx ecx, word [0x1801ef5d4]
mov word [rax + 0x14], cx
mov byte [rax + 0x16], 0
jmp 0x18005a3db
mov rdx, rax
call fcn.18001b320
mov r8, rax
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.180059f20
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x18005a720
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x1802b92f8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rcx
mov qword [rbp - 0x39], rcx
xor ebx, ebx
mov dword [rbp - 0x55], ebx
lea rcx, [rbp - 0x29]
call fcn.18005a9d0
nop
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.180059070
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x18005a7a6
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005a7a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005a89b
call fcn.180118520
movdqa xmm0, xmmword [0x1801ece40]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
mov dword [rbp - 0x59], ebx
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
lea rdx, [rbp - 0x59]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r14d, eax
test eax, eax
je 0x18005a8a1
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
mov edx, r14d
mov rcx, rsi
call fcn.18005a400
mov rcx, qword [rsi]
lea rbx, [rcx + r14]
mov r8d, r14d
xor edx, edx
call fcn.180154630
mov qword [rsi + 8], rbx
mov dword [rbp - 0x55], 1
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
mov r9, qword [rsi]
mov r8d, r14d
mov edx, dword [rbp - 0x59]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x18005a8df
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x18005a86e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005a869
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005a895
call fcn.180118520
mov rax, rsi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.180118df0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.180162b34
nop
call fcn.180162b34
int3
lea rcx, [rbp + 0x17]
call fcn.18005a920
nop
lea rcx, str.Failed_to_GetFileVersionInfoSize._Error:_
mov qword [rbp - 0x29], rcx
mov qword [rbp - 0x21], 0x2b
mov r8, rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x51]
call fcn.180059ca0
lea rdx, [0x1802b5a40]
lea rcx, [rbp - 0x51]
call fcn.180152ccc
nop
lea rcx, [rbp + 0x17]
call fcn.18005a920
nop
lea rcx, str.Failed_to_GetFileVersionInfo._Error:_
mov qword [rbp - 0x29], rcx
mov qword [rbp - 0x21], 0x27
mov r8, rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x51]
call fcn.180059ca0
lea rdx, [0x1802b5a40]
lea rcx, [rbp - 0x51]
call fcn.180152ccc
int3
Function at 0x180073e00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [rcx + 0x28]
nop
cmp rax, qword [rcx + 0x10]
jb 0x180073e2f
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, reloc.WS2_32.dll_recv
call fcn.1801184e4
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x180073e8b
mov ecx, 8
call fcn.1801184e4
test rax, rax
je 0x180073e58
mov qword [rax], rdi
mov qword [rsp + 0x48], rax
lea rsi, [rbx + 8]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x180072ff0]
xor edx, edx
xor ecx, ecx
call fcn.1801941f4
mov qword [rbx], rax
test rax, rax
je 0x180073eaa
jmp 0x180073e8d
xor ebx, ebx
mov rdx, rbx
mov rcx, rdi
call fcn.180073c60
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov dword [rsi], 0
mov ecx, 6
call fcn.180122310
int3

Function at 0x180074090
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
xor r15d, r15d
mov eax, dword [rcx + 0x20]
nop
test eax, eax
je 0x1800740c3
lea eax, [r15 - 1]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov eax, 1
xchg dword [rcx + 0x20], eax
cmp rdx, qword [rcx + 8]
cmovb rdx, qword [rcx + 8]
mov rbp, qword [rcx + 0x10]
cmp rdx, rbp
cmovbe rbp, rdx
mov rsi, r15
test rbp, rbp
je 0x18007416f
nop dword [rax + rax]
mov rax, qword [rdi + 0x28]
nop
cmp rax, qword [rdi + 0x10]
jae 0x180074167
mov ecx, reloc.WS2_32.dll_recv
call fcn.1801184e4
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x180074159
mov ecx, 8
call fcn.1801184e4
test rax, rax
je 0x180074126
mov qword [rax], rdi
jmp 0x180074129
mov rax, r15
mov qword [rsp + 0x70], rax
lea r14, [rbx + 8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x180072ff0]
xor edx, edx
xor ecx, ecx
call fcn.1801941f4
mov qword [rbx], rax
test rax, rax
je 0x180074182
jmp 0x18007415c
mov rbx, r15
mov rdx, rbx
mov rcx, rdi
call fcn.180073c60
inc rsi
cmp rsi, rbp
jb 0x1800740f0
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [r14], r15d
mov ecx, 6
call fcn.180122310
int3
Function at 0x18008ee80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x18008eec2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x38
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x18008f060
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x1802b92f8]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x190]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
mov r12, r9
mov rax, r8
shl rax, 5
lea rbx, [rcx + 0x230]
mov r14, qword [rcx + r8*8 + 0x1e8]
add rbx, rax
mov rax, qword [rcx + 0x410]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x18008f16c
lea rax, [0x18008ef10]
cmp qword [rcx + r8*8 + 0x210], rax
jne 0x18008f16c
cmp qword [rbx], 0
je 0x18008f0f1
test rdi, rdi
je 0x18008f16c
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.1800a5130
cmp eax, 0xffffffff
je 0x18008f16c
test al, 1
je 0x18008f16c
mov rcx, qword [rbx]
test rcx, rcx
jne 0x18008f14b
mov eax, dword [rbp + 0x734]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [fcn.1801942e8]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x18008f1a6
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x18008f16c
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], 0
cmp rbx, 0xffffffffffffffff
jne 0x18008f1e5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x18008f1b5
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x18008f1e5
mov dword [rsi], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x18008f1e8
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.180099040
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.18008ebf0
mov dword [rbp + 0xde4], edi
mov dword [rsi], 0x37
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180118df0
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18008f9d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1802b92f8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x18008fa83
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.180099040
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.18008ebf0
jmp 0x18008fb4b
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x18008fb20
sub edx, 1
je 0x18008faca
cmp edx, 0x15
jne 0x18008fad1
lea rdx, [rsp + 0x38]
mov r8, rbx
mov r9d, 0x2e
call fcn.1800aae40
test rax, rax
je 0x18008fad1
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
jmp 0x18008fb4b
lea rdx, [rsp + 0x34]
jmp 0x18008faa2
mov byte [rbx], 0
mov dword [rdi], 0
call fcn.180162d04
mov dword [rax], 0x273f
call fcn.180162d04
mov ebx, dword [rax]
call fcn.180162d04
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.180099040
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.18008ebf0
jmp 0x18008fb4b
cmp dword [rsp + 0x20], 2
jle 0x18008fb42
lea r9, [rsp + 0x32]
mov edx, 0x2e
lea r8, [0x1801f19a0]
mov rcx, rbx
call fcn.1800922e0
jmp 0x18008fb45
mov byte [rbx], 0
mov dword [rdi], 0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.180118df0
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x180091b50
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x1801f20a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x180091b7a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1801f20c0]
mov rcx, rbx
mov r14, rax
call fcn.1801a2c38
test rax, rax
je 0x180091bdd
mov rcx, rbx
test r14, r14
je 0x180091bc7
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x180091c15
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180091c15
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x180091cd8
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x180091c40
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.1801942e8]
mov rdi, rax
test rax, rax
je 0x180091cca
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x180091cca
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x180091c70
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x180091c84
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x180091ca0
mov rcx, rdi
test r14, r14
je 0x180091cc1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x180091cc7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.18018f81c]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x1800973c0
Capabilities:
Query environment variable

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
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.18018f830]
mov rdi, rax
test rax, rax
je 0x18009743d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x180097468
cmp ebx, esi
je 0x180097468
cmp ebx, 0x8000
ja 0x180097468
cmp ebx, esi
jb 0x180097463
mov edx, ebx
mov rcx, rdi
call qword [fcn.18018f830]
mov rdi, rax
test rax, rax
jne 0x180097400
mov rcx, rbp
call qword [fcn.18018f81c]
xor eax, eax
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
mov rax, rdi
jmp 0x180097448
mov rcx, rdi
jmp 0x180097440

Function at 0x18009ada0
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x18009adb5
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.18009a910

Function at 0x18009b960
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.1800a3960
mov rcx, rbx
movups xmm6, xmmword [rax]
call case.0x180080b59.0
mov rcx, rdi
mov rsi, rax
call case.0x180080b59.0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x18009ba10
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1800a3960
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1800a39f0
cmp rax, 0x3e8
ja 0x18009ba41
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x18009b9c0
test rsi, rsi
je 0x18009ba1d
mov rcx, rsi
call fcn.18018f81c
test rbx, rbx
je 0x18009ba2a
mov rcx, rbx
call fcn.18018f81c
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x18009ba4e
mov rcx, rsi
call fcn.18018f81c
test rbx, rbx
je 0x18009ba5b
mov rcx, rbx
call fcn.18018f81c
mov eax, 1
jmp 0x18009ba2c
Function at 0x1800a2960
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rdi
push r13
push r14
sub rsp, 0x68
mov rax, qword [0x1802b92f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov r13, rcx
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1800a2987
mov qword [rsp + 0xa0], rbp
xor r14d, r14d
cmp byte [rdx], 0x5b
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r15
jne 0x1800a2af6
cmp rbx, 4
jb 0x1800a2b0a
inc rdi
sub rbx, 2
cmp byte [rdi + rbx], 0x5d
jne 0x1800a2b0a
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rdi
call fcn.1801a8360
cmp rbx, rax
je 0x1800a2a98
cmp byte [rdi + rax], 0x25
lea r15, [rdi + rax]
mov rbx, rax
jne 0x1800a2b0a
lea r8d, [r14 + 2]
mov ebp, r14d
lea rdx, [0x1801f6d8c]
lea rcx, [r15 + 1]
lea rsi, [r15 + 1]
call fcn.180194c30
test eax, eax
jne 0x1800a2a29
movzx eax, byte [r15 + 3]
lea rcx, [r15 + 3]
test al, al
je 0x1800a2a29
cmp al, 0x5d
cmovne rsi, rcx
movzx eax, byte [rsi]
test al, al
je 0x1800a2b0a
mov rcx, r14
cmp al, 0x5d
je 0x1800a2a54
cmp rcx, 0xf
jge 0x1800a2a54
inc rsi
mov byte [rsp + rcx + 0x20], al
inc ebp
inc rcx
movzx eax, byte [rsi]
test al, al
jne 0x1800a2a37
test ebp, ebp
je 0x1800a2b0a
cmp byte [rsi], 0x5d
jne 0x1800a2b0a
movsxd rax, ebp
cmp rax, 0x10
jae 0x1800a2b11
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], r14b
call qword [case.0x180080b59.0]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x1800a2a92
mov eax, 7
jmp 0x1800a2ac7
mov word [r15], 0x5d
lea r8, [rsp + 0x30]
mov byte [rdi + rbx], r14b
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1800a2b0a
mov byte [rdi + rbx], 0x5d
cmp byte [rdi], r14b
mov eax, select
cmove r14d, eax
mov eax, r14d
mov r15, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180118df0
add rsp, 0x68
pop r14
pop r13
pop rdi
pop rbx
ret
lea rdx, [0x1801f6d90]
mov rcx, rdi
call fcn.1801a7a60
cmp rbx, rax
je 0x1800a2ab8
mov eax, 3
jmp 0x1800a2ac7
call fcn.18011933c
int3
Function at 0x1800a3d00
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x1800a3e9e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x1800a3e7e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x1800a3d6e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800a3d60
inc rbx
jmp 0x1800a3d70
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1800a3d7d
lea ebp, [rax + 0xe]
jmp 0x1800a3d89
cmp eax, 0x17
jne 0x1800a3e21
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x1800a3e21
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1800a3e21
cmp rax, rbp
jb 0x1800a3e21
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [fcn.1801942e8]
mov r14, rax
test rax, rax
je 0x1800a3e30
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call fcn.180153f80
test rbx, rbx
je 0x1800a3e0e
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.180153f80
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x1800a3e1e
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1800a3d50
jmp 0x1800a3e36
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x1800a3e50
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x1800a3e79
test rdi, rdi
je 0x1800a3e75
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.18018f81c]
mov rdi, rbx
test rbx, rbx
jne 0x1800a3e60
xor edi, edi
jmp 0x1800a3e8d
test rdi, rdi
jne 0x1800a3e8d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret