joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002e460
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x78
mov rax, qword [0x10058650]
mov qword [rsp + 0x58], rax
cmp qword [rcx], 0xffffffffffffffff
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], rsi
mov rbp, r8
mov dword [rcx + 0x8c], edx
mov rsi, rcx
jne 0x1002e4aa
call fcn.1002e330
cmp rax, 0xffffffffffffffff
jne 0x1002e4aa
mov dword [rsi + 0x8c], eax
jmp 0x1002e5f7
movzx ebx, word [rsi + 0x8c]
xor eax, eax
mov rcx, rbp
mov dword [rsp + 0x38], eax
mov word [rsp + 0x38], 2
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
call qword [sym.imp.WS2_32.dll_inet_addr]
test bx, bx
mov dword [rsp + 0x3c], eax
jne 0x1002e4e3
mov word [rsp + 0x3a], bx
jmp 0x1002e4f1
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
mov rcx, qword [rsi]
lea rdx, [rsp + 0x38]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1002e57f
cmp byte [rsi + 8], 0
je 0x1002e523
mov rcx, qword [rsi]
mov edx, 5
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1002e57f
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
je 0x1002e5f7
xor eax, eax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x48]
mov word [rsp + 0x48], 0
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov qword [rsp + 0x4a], rax
mov dword [rsp + 0x52], eax
mov word [rsp + 0x56], ax
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1002e5f7
movzx ecx, word [rsp + 0x4a]
call qword [sym.imp.WS2_32.dll_htons]
movzx r11d, ax
mov dword [rsi + 0x8c], r11d
jmp 0x1002e5f7
mov qword [rsp + 0x60], rdi
mov dword [rsi + 0x8c], 0xffffffff
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.100205e0
lea rdx, [0x10049578]
lea rcx, [rsp + 0x30]
mov rbx, rax
call fcn.10027af0
mov r9d, dword [rsi + 0x8c]
lea r8, [rsi + 9]
lea rdx, str._comm__Socket__s:_d_::listen_failed:__s
mov rcx, rax
mov qword [rsp + 0x20], rbx
call fcn.10027bf0
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x60]
je 0x1002e5f0
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsi], 0xffffffffffffffff
lea rdx, [0x100495a8]
lea rcx, [rsp + 0x30]
call fcn.10027af0
mov r9d, dword [rsi + 0x8c]
lea r8, [rsi + 9]
lea rdx, str._comm__Socket__s_::listen__d___s_
mov rcx, rax
mov qword [rsp + 0x20], rbp
call fcn.10027bf0
mov eax, dword [rsi + 0x8c]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
call fcn.10042170
add rsp, 0x78
ret
Function at 0x1002e660
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov r11, rsp
sub rsp, 0x98
mov rax, qword [0x10058650]
mov qword [rsp + 0x78], rax
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x18], rdi
xor dil, dil
cmp qword [rcx], 0xffffffffffffffff
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
jne 0x1002e6a7
call fcn.1002e330
cmp rax, 0xffffffffffffffff
je 0x1002e7a6
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x30], 0x80000
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.100308d0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
xor eax, eax
mov dword [rsp + 0x58], eax
mov word [rsp + 0x58], 2
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
call qword [sym.imp.WS2_32.dll_inet_addr]
test si, si
mov dword [rsp + 0x5c], eax
jne 0x1002e71c
mov word [rsp + 0x5a], si
jmp 0x1002e72a
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x5a], ax
mov rcx, qword [rbx]
lea rdx, [rsp + 0x58]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1002e795
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1002e790
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x68]
mov word [rsp + 0x68], ax
mov qword [rsp + 0x6a], rax
mov dword [rsp + 0x72], eax
mov word [rsp + 0x76], ax
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1002e790
movzx ecx, word [rsp + 0x6a]
call qword [sym.imp.WS2_32.dll_htons]
movzx r11d, ax
mov dword [rbx + 0x8c], r11d
mov dil, 1
jmp 0x1002e79b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, [rsp + 0x38]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xb8]
mov al, dil
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call fcn.10042170
add rsp, 0x98
ret
Function at 0x1002e940
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x48
mov rax, qword [0x10058650]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov qword [rcx], 0xffffffffffffffff
mov rsi, rdx
mov byte [rcx + 8], 1
mov dword [rcx + 0x8c], 0
mov qword [rsp + 0x40], rdi
mov rdi, rcx
xor edx, edx
add rcx, 9
mov r8d, 0x80
call sub.msvcrt.dll_memset
lea r8, str.tcp_cli_socket
lea rdx, [0x10049540]
lea rcx, [rdi + 9]
call qword [sym.imp.msvcrt.dll_sprintf]
lea rcx, [rdi + 0x90]
xor edx, edx
mov r8d, 0x400
call sub.msvcrt.dll_memset
cmp rsi, 0xffffffffffffffff
mov rbx, qword [rsp + 0x60]
mov qword [rdi], rsi
je 0x1002ea11
xor eax, eax
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rsi
mov word [rsp + 0x28], 0
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov qword [rsp + 0x2a], rax
mov dword [rsp + 0x32], eax
mov word [rsp + 0x36], ax
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1002ea11
movzx ecx, word [rsp + 0x2a]
call qword [sym.imp.WS2_32.dll_htons]
movzx r11d, ax
mov dword [rdi + 0x8c], r11d
mov rsi, qword [rsp + 0x68]
mov rax, rdi
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.10042170
add rsp, 0x48
ret

Function at 0x1002eba0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x58], rbp
mov rbp, rcx
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
mov qword [rsp + 0x60], rsi
je 0x1002ec7c
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
cmp rax, 0xffffffffffffffff
mov rsi, rax
jne 0x1002ec1f
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], rdi
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x100495d8]
lea rcx, [rsp + 0x38]
mov ebx, eax
call fcn.10027af0
mov r9d, dword [rbp + 0x8c]
lea r8, [rbp + 9]
lea rdx, str._comm__Socket__s:_d_::accept_failed:__d
mov rcx, rax
mov dword [rsp + 0x20], ebx
call fcn.10027bf0
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
jmp 0x1002ec49
mov rcx, qword [rbp]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x30], 0x80000
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test rsi, rsi
je 0x1002ec7c
cmp rsi, 0xffffffffffffffff
je 0x1002ec7c
mov ecx, 0x490
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
test rax, rax
je 0x1002ec7c
mov rdx, rsi
mov rcx, rax
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x48
jmp fcn.1002e940
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x48
ret
Function at 0x1002f0f0
Capabilities:
Resolve dns

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x68
mov qword [rsp + 0x58], rbp
mov rbp, qword [rsp + 0x98]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov r13, qword [rsp + 0x90]
mov qword [rsp + 0x30], r14
mov qword [rbp], 0
mov qword [rsp + 0x28], r15
movzx r14d, r9w
mov byte [r13], 0
mov r15d, r8d
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
mov r12, rax
je 0x1002f24e
cmp word [rax + 0x10], 2
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
jne 0x1002f1fd
cmp word [rax + 0x12], 4
jne 0x1002f1fd
mov rdi, qword [rax + 0x18]
mov rcx, qword [rdi]
test rcx, rcx
je 0x1002f1fd
nop
mov esi, dword [rcx]
mov edx, gethostbyaddr
lea ecx, [rdx - 0x2f]
call qword [sym.imp.msvcrt.dll_calloc]
test rax, rax
mov rbx, rax
je 0x1002f1e3
mov edx, reloc.WS2_32.dll_recv
lea ecx, [rdx - 0xf]
call qword [sym.imp.msvcrt.dll_calloc]
test rax, rax
jne 0x1002f1b8
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
xor ebx, ebx
jmp 0x1002f1e3
mov ecx, dword [rsp + 0x78]
mov word [rax], 2
mov word [rax + 2], r14w
mov dword [rax + 4], esi
mov dword [rbx + 8], ecx
mov dword [rbx + 4], 2
mov dword [rbx + 0xc], r15d
mov qword [rbx + reloc.WS2_32.dll_recv], 0x10
mov qword [rbx + 0x20], rax
test rbx, rbx
mov qword [rbp], rbx
je 0x1002f247
mov rcx, qword [rdi + 8]
add rdi, 8
lea rbp, [rbx + 0x28]
test rcx, rcx
jne 0x1002f180
mov rdx, qword [r12]
mov r8d, 0x400
mov rcx, r13
call qword [sym.imp.msvcrt.dll_strncpy]
mov byte [r13 + 0x400], 0
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
add rsp, 0x68
ret
mov eax, 8
jmp 0x1002f21a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2af9
je 0x1002f265
dec eax
je 0x1002f273
dec eax
je 0x1002f26c
dec eax
mov eax, 0x2af9
jmp 0x1002f229
mov eax, 0x2afb
jmp 0x1002f229
mov eax, 0x2afa
jmp 0x1002f229
Function at 0x1002fcb0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
sub rsp, 0x288
mov rax, qword [0x10058650]
mov qword [rsp + 0x270], rax
cmp dword [0x10061f20], 0
lea rax, [0x1002f610]
mov qword [r11 + 0x10], rbp
mov qword [rsp + 0x28], rax
lea rax, str.getnameinfo
mov qword [r11 - 8], r12
mov qword [rsp + 0x30], rax
lea rax, [0x1002f9e0]
lea r12, str.getaddrinfo
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
movzx ebp, cx
mov qword [rsp + 0x40], rax
lea rax, [0x1002f5a0]
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x48], rax
jne 0x1002fe8a
lea rcx, [r11 - 0x128]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002fe80
mov qword [rsp + 0x290], rbx
xor ebx, ebx
mov rcx, rbx
movzx eax, byte [rsp + rcx + 0x160]
inc rcx
test al, al
mov byte [rsp + rcx + 0x4f], al
jne 0x1002fd50
xor eax, eax
mov qword [rsp + 0x2a0], rsi
mov qword [rsp + 0x2a8], rdi
lea rdi, [rsp + 0x50]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.ws2_32]
lea rcx, [rsp + 0x50]
mov qword [rdi - 1], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1002fdbb
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1002fe1d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, rbx
nop
movzx eax, byte [rsp + rdx + 0x160]
inc rdx
test al, al
mov byte [rsp + rdx + 0x4f], al
jne 0x1002fdc0
xor eax, eax
lea rdi, [rsp + 0x50]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.wship6]
lea rcx, [rsp + 0x50]
mov qword [rdi - 1], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1002fe68
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1002fe1d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1002fe68
lea rdi, [rsp + 0x28]
mov rdx, qword [rdi - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rdi], rax
je 0x1002fe12
inc rbx
add rdi, 0x10
cmp rbx, 3
jl 0x1002fe22
mov rax, qword [rsp + 0x28]
mov qword [0x10058a40], rax
mov rax, qword [rsp + 0x38]
mov qword [0x10058a50], rax
mov rax, qword [rsp + 0x48]
mov qword [0x10058a60], rax
mov rsi, qword [rsp + 0x2a0]
mov rdi, qword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x290]
mov dword [0x10061f20], 1
mov r12, qword [rsp + 0x280]
movzx eax, bp
mov rbp, qword [rsp + 0x298]
lea rcx, str.getaddrinfo
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
call fcn.10042170
add rsp, 0x288
ret
Function at 0x10034f70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x68]
mov rbx, r8
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10034fb9
mov ecx, dword [rsp + 0x50]
mov dword [rbx], ecx
add rsp, 0x40
pop rbx
ret

Function at 0x10035aa0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
sub rsp, 0x178
mov rax, qword [0x10058650]
mov qword [rsp + 0x150], rax
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rbp
test r8d, r8d
mov qword [r11 - 0x10], rsi
mov ebx, 0x10008
mov eax, 0x10108
cmovne ebx, eax
mov qword [r11 - 0x18], rdi
mov edi, r8d
bts ebx, 9
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
jne 0x10035af5
mov eax, 0x3f2
jmp 0x10035bc0
call fcn.10035220
lea r11, [rsp + 0x40]
mov r9d, ebx
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10035bc0
nop
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
mov ebx, eax
je 0x10035b7f
test eax, eax
jne 0x10035bb3
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, edi
call fcn.10035aa0
mov ebx, eax
test eax, eax
mov eax, 0
je 0x10035b20
jmp 0x10035bb3
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call fcn.10035220
test edi, edi
je 0x10035ba5
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call fcn.10035170
test eax, eax
mov ebx, eax
je 0x10035bb3
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rdi, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x168]
mov rbp, qword [rsp + 0x170]
mov rbx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x150]
call fcn.10042170
add rsp, 0x178
ret

Function at 0x10036250
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
test rcx, rcx
je 0x10036287
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10036274
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xfffffffe
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add rsp, 0x20
pop rbx
ret 0
Function at 0x10036290
Capabilities:
Delete file
Move file

Disassembly:
push rbx
sub rsp, 0x190
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x10058650]
mov qword [rsp + 0x180], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
test rcx, rcx
jne 0x100362c6
lea eax, [rcx - 1]
jmp 0x1003639e
test edx, edx
je 0x100362df
call fcn.10036250
mov rcx, rbx
call fcn.10035de0
nop
jmp 0x100362df
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1003639c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x10036395
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov byte [rsp + 0x70], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x71]
call sub.msvcrt.dll_memset
movzx r11d, word [rsp + 0x5e]
movzx eax, word [rsp + 0x5c]
movzx r8d, word [rsp + 0x5a]
movzx r9d, word [rsp + 0x58]
movzx r10d, word [rsp + 0x56]
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r9d
mov dword [rsp + 0x20], r10d
mov r9, rbx
lea r8, str._s._x_x_x_x_x
mov edx, 0x103
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcrt.dll__snprintf]
mov r8d, 3
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, 0xffffffff
jmp 0x1003639e
xor eax, eax
mov rcx, qword [rsp + 0x180]
call fcn.10042170
add rsp, 0x190
pop rbx
ret
Function at 0x10036a00
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
sub rsp, 0xc8
mov rax, qword [0x10058650]
mov qword [rsp + 0xa0], rax
test rdx, rdx
mov qword [r11 + 0x20], rbp
mov rbp, rdx
je 0x10036b9f
test rcx, rcx
je 0x10036b9f
lea rdx, [0x1004a6a4]
mov qword [r11 - 0x18], r12
call qword [sym.imp.msvcrt.dll_fopen]
test rax, rax
mov r12, rax
je 0x10036b9b
mov ecx, 0x4000
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xb8], rdi
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rcx, r12
mov rsi, rax
call qword [sym.imp.msvcrt.dll__fileno]
lea rcx, [rsp + 0x20]
mov edi, eax
call fcn.1003aee0
mov r8d, 0x4000
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.msvcrt.dll__read]
test eax, eax
jle 0x10036ac5
nop
nop
nop
lea rcx, [rsp + 0x20]
mov r8d, eax
mov rdx, rsi
call fcn.1003c0f0
mov r8d, 0x4000
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.msvcrt.dll__read]
test eax, eax
jg 0x10036aa0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0xe0], rbx
call fcn.1003c420
mov byte [rbp], 0
xor ebx, ebx
nop
nop
nop
movzx r9d, byte [rsp + rbx + 0x90]
lea r8, str._02x
lea rcx, [rsp + 0x80]
mov edx, reloc.WS2_32.dll_recv
call fcn.1001fe60
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x80]
repne scasb al, byte [rdi]
xor ecx, ecx
nop
nop
movzx eax, byte [rdx + rcx]
inc rcx
test al, al
mov byte [rdi + rcx - 2], al
jne 0x10036b30
inc rbx
cmp rbx, 0x10
jl 0x10036af0
mov rcx, r12
call qword [sym.imp.msvcrt.dll_fclose]
mov rcx, rsi
call fcn.10041bb0
mov rdi, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xe0]
mov eax, 1
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xa0]
call fcn.10042170
add rsp, 0xc8
ret
xor eax, eax
jmp 0x10036b76
xor eax, eax
jmp 0x10036b7e
Function at 0x10038680
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
lea rax, [0x1004aa68]
mov byte [rcx + 0x18], 0
mov qword [rsp + 0x40], rbx
mov qword [rcx], rax
mov qword [rsp + 0x48], rdi
mov rdi, rcx
add rcx, 0xa8
call fcn.1002de20
lea rcx, [rdi + 0xa8]
call fcn.1002eb30
mov rcx, qword [rdi + 0x10]
lea r11, [0x10046678]
xor ebx, ebx
test rcx, rcx
mov qword [rdi], r11
mov byte [rdi + 0x18], 0
je 0x1003872c
lea edx, [rbx + 0x64]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1003872c
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x30]
mov byte [rdi + 0x18], bl
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x30], 0x103
jne 0x1003872c
mov rcx, qword [rdi + 0x10]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rdi + 0x19], bl
mov dword [rdi + 8], ebx
je 0x1003872c
lea edx, [rbx + 1]
mov rcx, rdi
call fcn.10005b80
mov qword [rdi + 0x10], rbx
mov dword [rdi + 8], ebx
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x10038745
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0xa0], rbx
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret

Function at 0x10038760
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov rdi, rcx
lea r8, [0x1004aa38]
add rcx, 0xa8
call fcn.1002e460
lea rdx, [rdi + 0x1a]
lea rcx, [rdi + 0xa8]
mov dword [rdi + 0x538], eax
call fcn.1002d550
xor esi, esi
cmp byte [rdi + 0x18], sil
jne 0x10038815
lea rax, [rsp + 0x30]
lea r8, [0x10007d70]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x30], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov ecx, dword [rsp + 0x30]
mov qword [rdi + 0x10], rax
mov dword [rdi + 8], ecx
jne 0x10038827
xor ecx, ecx
call fcn.100205e0
lea rdx, [0x100466c0]
lea rcx, [rsp + 0x38]
mov rbx, rax
call fcn.10027af0
lea r8, [rdi + 0x1a]
lea rdx, str._comm__create_thread__s__failed:__s
mov r9, rbx
mov rcx, rax
call fcn.10027bf0
jmp 0x10038827
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x10038827
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [rdi + 0x538], esi
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
setg al
add rsp, 0x48
ret

Function at 0x10038860
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x10058650]
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [rsp + 0x1c0]
call fcn.10042170
add rsp, 0x1d8
ret
Function at 0x10038a40
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov r11, rsp
sub rsp, 0x168
mov rax, qword [0x10058650]
mov qword [rsp + 0x130], rax
xor eax, eax
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0xdf], rax
mov qword [r11 - 0xd7], rax
mov qword [r11 - 0xcf], rax
mov qword [r11 - 0x18], rdi
mov qword [rsp + 0x48], rax
or dword [rsp + 0x48], 2
mov qword [r11 - 0x20], r12
xor r12d, r12d
mov rbp, rdx
mov byte [r11 - 0xe0], r12b
mov rsi, rcx
mov dword [rcx + 0xac], r12d
mov qword [rsp + 0x50], rax
lea rcx, [r11 - 0xe0]
lea rdx, [0x1004aae0]
mov edi, 0xffffffff
mov dword [rsp + 0xa1], eax
mov word [rsp + 0xa5], ax
mov byte [rsp + 0xa7], al
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x50], 1
call qword [sym.imp.msvcrt.dll_sprintf]
mov rax, qword [0x10061f28]
test rax, rax
jne 0x10038b15
xor ecx, ecx
call fcn.1002fcb0
mov qword [0x10061f28], rax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x88]
mov rcx, rbp
mov qword [rsp + 0x188], rbx
call rax
mov ecx, eax
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test ebx, ebx
jne 0x10038c99
lea r8d, [rbx + 0x7f]
lea rcx, [rsp + 0xb1]
xor edx, edx
mov byte [rsp + 0xb0], r12b
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x3c], 0x78
mov edx, dword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAAddressToStringA]
lea r9, [rsp + 0xb0]
lea rdx, str.Connect_To:__s__s_
lea ecx, [rbx + 4]
mov r8, rbp
call fcn.10020320
mov rax, qword [rsp + 0x30]
lea edx, [rbx + 1]
mov ecx, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_WSASocketA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x10038c73
mov rdx, qword [rsp + 0x30]
mov rcx, rax
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, edi
je 0x10038c73
mov edx, 6
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8d, [rdx - 5]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rsi
mov edi, r12d
mov qword [rsi + 0x18], rbx
call fcn.10038960
xor eax, eax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x78]
mov rcx, rbx
mov qword [rsp + 0x7a], rax
mov word [rsp + 0x78], di
mov dword [rsp + 0x82], eax
mov word [rsp + 0x86], ax
mov dword [rsp + 0x38], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
cmp word [rsp + 0x78], 2
jne 0x10038c73
mov eax, dword [rsp + 0x7c]
mov dword [rsi + 0xac], eax
mov rax, qword [0x10061f30]
mov rbx, qword [rsp + 0x30]
test rax, rax
jne 0x10038c94
mov cx, 2
call fcn.1002fcb0
mov qword [0x10061f30], rax
mov rcx, rbx
call rax
mov r12, qword [rsp + 0x148]
mov rsi, qword [rsp + 0x158]
mov rbp, qword [rsp + 0x160]
mov rbx, qword [rsp + 0x188]
mov eax, edi
mov rdi, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x130]
call fcn.10042170
add rsp, 0x168
ret