joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006bb40
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x18006bb64
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x18006bbf2
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x18006bbc0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x18006bbc0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1802138b0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18006bbdd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18006bbe5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x18006bb81
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x18006bcd0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x18006bc09
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18006bc0b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18006bc3d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1802138b0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18006bccd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18006bc78
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 rsi, 0xfff
jbe 0x18006bcae
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1801cd194
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x18006bccd
cmp rsi, rax
ja 0x18006bc81
test rsi, rsi
je 0x18006bccd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1801cd194
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x18007f510
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 0x18007f5ac
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
mov ecx, 0x20
mov qword [rbp - 8], rax
movups xmmword [rbp - 0x20], xmm0
call fcn.180150934
movups xmm0, xmmword [str.FindResource_returned_null.]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov qword [rbp - 0x10], 0x1b
mov rdx, rax
mov qword [rbp - 8], 0x1f
movups xmmword [rax], xmm0
movsd xmm0, qword [0x180239cb0]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x180239cb8]
mov word [rax + 0x18], cx
movzx eax, byte [0x180239cba]
mov byte [rdx + 0x1a], al
mov byte [rdx + 0x1b], dil
xor edx, edx
jmp 0x18007f70b
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x18007f61c
xor eax, eax
xorps xmm0, xmm0
mov ecx, 0x20
mov qword [rbp - 0x10], rax
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 8], rax
call fcn.180150934
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 xmm0, qword [0x180239cd0]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x180239cd8]
mov word [rax + 0x18], cx
mov byte [rax + 0x1a], 0
jmp 0x18007f70b
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x18007f695
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
mov ecx, 0x20
mov qword [rbp - 8], rax
movups xmmword [rbp - 0x20], xmm0
call fcn.180150934
movups xmm0, xmmword [str.LockResource_returned_null.]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov qword [rbp - 0x10], 0x1b
mov rdx, rax
mov qword [rbp - 8], 0x1f
movups xmmword [rax], xmm0
movsd xmm0, qword [0x180239cf0]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x180239cf8]
mov word [rax + 0x18], cx
movzx eax, byte [0x180239cfa]
mov byte [rdx + 0x1a], al
mov byte [rdx + 0x1b], 0
xor edx, edx
jmp 0x18007f70b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x18007f6fa
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
mov ecx, 0x20
mov qword [rbp - 8], rax
movups xmmword [rbp - 0x20], xmm0
call fcn.180150934
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 [0x180239d10]
mov dword [rax + 0x10], ecx
movzx ecx, word [0x180239d14]
mov word [rax + 0x14], cx
mov byte [rax + 0x16], 0
jmp 0x18007f70b
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.180014330
mov r8, rax
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.18007f290
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x18007fda0
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 [0x18032b600]
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.180080060
nop
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.18007e5c0
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x18007fe26
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18007fe21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18007ff1b
call fcn.180150970
movdqa xmm0, xmmword [0x1802339a0]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
mov dword [rbp - 0x59], ebx
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rcx, qword [rbp - 9]
lea rdx, [rbp - 0x59]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r14d, eax
test eax, eax
je 0x18007ff21
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
mov edx, r14d
mov rcx, rsi
call fcn.18007f730
mov rcx, qword [rsi]
lea rbx, [rcx + r14]
mov r8d, r14d
xor edx, edx
call fcn.180213f50
mov qword [rsi + 8], rbx
mov dword [rbp - 0x55], 1
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova 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 0x18007ff5f
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x18007feee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18007fee9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18007ff15
call fcn.180150970
mov rax, rsi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.180150a90
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.18019d1d8
nop
call fcn.18019d1d8
int3
lea rcx, [rbp + 0x17]
call fcn.18007ffa0
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.18007ccf0
lea rdx, [0x18030aec0]
lea rcx, [rbp - 0x51]
call fcn.18018dcc8
nop
lea rcx, [rbp + 0x17]
call fcn.18007ffa0
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.18007ccf0
lea rdx, [0x18030aec0]
lea rcx, [rbp - 0x51]
call fcn.18018dcc8
int3
Function at 0x1800b70f0
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 0x1800b7132
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 0x1800b72d0
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 [0x18032b600]
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 0x1800b73dc
lea rax, [0x1800b7180]
cmp qword [rcx + r8*8 + 0x210], rax
jne 0x1800b73dc
cmp qword [rbx], 0
je 0x1800b7361
test rdi, rdi
je 0x1800b73dc
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.1800cd560
cmp eax, 0xffffffff
je 0x1800b73dc
test al, 1
je 0x1800b73dc
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1800b73bb
mov eax, dword [rbp + 0x734]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [fcn.1801ce2c0]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x1800b7416
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 0x1800b73dc
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 0x1800b7455
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x1800b7425
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x1800b7455
mov dword [rsi], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x1800b7458
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1800c11e0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.1800b6e60
mov dword [rbp + 0xde4], edi
mov dword [rsi], 0x37
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180150a90
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800b7c50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x18032b600]
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 0x1800b7d03
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1800c11e0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1800b6e60
jmp 0x1800b7dcb
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x1800b7da0
sub edx, 1
je 0x1800b7d4a
cmp edx, 0x15
jne 0x1800b7d51
lea rdx, [rsp + 0x38]
mov r8, rbx
mov r9d, 0x2e
call fcn.1800d3330
test rax, rax
je 0x1800b7d51
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
jmp 0x1800b7dcb
lea rdx, [rsp + 0x34]
jmp 0x1800b7d22
mov byte [rbx], 0
mov dword [rdi], 0
call fcn.18019d6cc
mov dword [rax], 0x273f
call fcn.18019d6cc
mov ebx, dword [rax]
call fcn.18019d6cc
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1800c11e0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1800b6e60
jmp 0x1800b7dcb
cmp dword [rsp + 0x20], 2
jle 0x1800b7dc2
lea r9, [rsp + 0x32]
mov edx, 0x2e
lea r8, [0x18023c110]
mov rcx, rbx
call fcn.1800ba5a0
jmp 0x1800b7dc5
mov byte [rbx], 0
mov dword [rdi], 0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.180150a90
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800b9e00
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x18023c828]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1800b9e2a
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, [0x18023c848]
mov rcx, rbx
mov r14, rax
call fcn.1801deff0
test rax, rax
je 0x1800b9e8b
mov rcx, rbx
test r14, r14
je 0x1800b9e78
xor edx, edx
mov r8d, 8
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test r14, r14
je 0x1800b9ec2
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800b9ec2
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
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 0x1800b9f8a
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1800b9ef0
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.1801ce2c0]
mov rsi, rax
test rax, rax
je 0x1800b9f7c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1800b9f7c
mov rax, rdi
cmp byte [rsi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1800b9f20
mov word [rax + rsi], 0x5c
inc rdi
cmp byte [rsi + rdi], bpl
jne 0x1800b9f31
mov rax, rsi
sub rax, rbx
add rdi, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rdi + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1800b9f50
mov rcx, rsi
test r14, r14
je 0x1800b9f73
xor edx, edx
mov r8d, 8
call r14
jmp 0x1800b9f79
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rsi
call qword [fcn.18019d4c0]
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 0x1800bf590
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.18019d4d0]
mov rdi, rax
test rax, rax
je 0x1800bf60d
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 0x1800bf638
cmp ebx, esi
je 0x1800bf638
cmp ebx, 0x8000
ja 0x1800bf638
cmp ebx, esi
jb 0x1800bf633
mov edx, ebx
mov rcx, rdi
call qword [fcn.18019d4d0]
mov rdi, rax
test rax, rax
jne 0x1800bf5d0
mov rcx, rbp
call qword [fcn.18019d4c0]
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 0x1800bf618
mov rcx, rdi
jmp 0x1800bf610

Function at 0x1800c2f80
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x1800c2f95
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.1800c2ae0

Function at 0x1800c3b20
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.1800cbd70
mov rcx, rbx
movups xmm6, xmmword [rax]
call case.0x1800a8ae9.0
mov rcx, rdi
mov rsi, rax
call case.0x1800a8ae9.0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x1800c3bd0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1800cbd70
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1800cbe00
cmp rax, 0x3e8
ja 0x1800c3c01
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 0x1800c3b80
test rsi, rsi
je 0x1800c3bdd
mov rcx, rsi
call fcn.18019d4c0
test rbx, rbx
je 0x1800c3bea
mov rcx, rbx
call fcn.18019d4c0
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 0x1800c3c0e
mov rcx, rsi
call fcn.18019d4c0
test rbx, rbx
je 0x1800c3c1b
mov rcx, rbx
call fcn.18019d4c0
mov eax, 1
jmp 0x1800c3bec
Function at 0x1800cad50
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rdi
push r13
push r14
sub rsp, 0x68
mov rax, qword [0x18032b600]
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 0x1800cad77
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 0x1800caef3
cmp rbx, 4
jb 0x1800caf07
inc rdi
sub rbx, 2
cmp byte [rdi + rbx], 0x5d
jne 0x1800caf07
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rdi
call fcn.1801e44b0
cmp rbx, rax
je 0x1800cae95
cmp byte [rdi + rax], 0x25
lea r15, [rdi + rax]
mov rbx, rax
jne 0x1800caf07
mov r8d, 2
lea rdx, [0x18024151c]
lea rcx, [r15 + 1]
mov ebp, r14d
lea rsi, [r15 + 1]
call fcn.1802142f0
test eax, eax
jne 0x1800cae1b
movzx eax, byte [r15 + 3]
lea rcx, [r15 + 3]
test al, al
je 0x1800cae1b
cmp al, 0x5d
cmovne rsi, rcx
movzx edx, byte [rsi]
test dl, dl
je 0x1800caf07
mov rax, r14
movzx ecx, dl
nop dword [rax]
cmp dl, 0x5d
je 0x1800cae51
cmp rax, 0xf
jge 0x1800cae51
inc rsi
mov byte [rsp + rax + 0x20], cl
inc ebp
inc rax
movzx ecx, byte [rsi]
movzx edx, cl
test cl, cl
jne 0x1800cae30
test ebp, ebp
je 0x1800caf07
cmp byte [rsi], 0x5d
jne 0x1800caf07
movsxd rax, ebp
cmp rax, 0x10
jae 0x1800caf0e
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], r14b
call qword [case.0x1800a8ae9.0]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x1800cae8f
mov eax, 7
jmp 0x1800caec4
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 0x1800caf07
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.180150a90
add rsp, 0x68
pop r14
pop r13
pop rdi
pop rbx
ret
lea rdx, [0x180241520]
mov rcx, rdi
call fcn.1801e3bf0
cmp rbx, rax
je 0x1800caeb5
mov eax, 3
jmp 0x1800caec4
call fcn.18015168c
int3
Function at 0x1800cc110
Capabilities:
Resolve dns

Disassembly:
push rbp
push rdi
push r12
push r13
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor ebp, ebp
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x1800cc2af
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x1800cc28f
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x20], r15
nop dword [rax]
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x1800cc17e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800cc170
inc rbx
jmp 0x1800cc180
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1800cc190
mov r15d, reloc.WS2_32.dll_recv
jmp 0x1800cc19f
cmp eax, 0x17
jne 0x1800cc238
mov r15d, 0x1c
cmp qword [rsi + 0x20], 0
je 0x1800cc238
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1800cc238
cmp rax, r15
jb 0x1800cc238
lea rcx, [rbx + 0x30]
add rcx, r15
call qword [fcn.1801ce2c0]
mov r14, rax
test rax, rax
je 0x1800cc247
mov ecx, dword [rsi]
mov r8, r15
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], r15d
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.1802138b0
test rbx, rbx
je 0x1800cc225
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, r15
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.1802138b0
test rdi, rdi
cmove rdi, r14
test rbp, rbp
je 0x1800cc235
mov qword [rbp + 0x28], r14
mov rbp, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1800cc160
jmp 0x1800cc24d
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x60]
test rcx, rcx
je 0x1800cc267
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x1800cc28a
test rdi, rdi
je 0x1800cc286
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.18019d4c0]
mov rdi, rbx
test rbx, rbx
jne 0x1800cc271
xor edi, edi
jmp 0x1800cc29e
test rdi, rdi
jne 0x1800cc29e
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x58]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r13
pop r12
pop rdi
pop rbp
ret