joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ce70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x258]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x14001ceb3
mov rax, qword [rcx + 0x1a8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x14001cef8
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x140041f68]
lea r8d, [rdx - 1]
add rcx, rax
call qword [sym.imp.msvcrt.dll_fwrite]
mov r9, qword [rbx + 0x1a0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fwrite]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x14001feb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x798]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x14001ff1d
mov rax, qword [rcx + 0x80]
test rax, rax
jne 0x14001fee3
cmp qword [rcx + 0x78], rax
je 0x14001ff1d
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
test rax, rax
jne 0x14001fef6
mov rax, qword [rcx + 0x78]
mov rcx, qword [rax + 0x60]
lea r8, [0x140020e30]
lea rdx, [rsp + 0x20]
call fcn.140028d30
cmp byte [rsp + 0x28], 0
jne 0x14001ff31
mov qword [rdi + 0x798], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x14001ff39
mov qword [rsi], rbx
cmp byte [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
je 0x14001ff57
mov rcx, rbx
call fcn.14001b420
test eax, eax
jne 0x14001ff73
jmp 0x14001ff1d
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WSOCK32.DLL_recv]
test eax, eax
je 0x14001ff1d
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x1400204e0
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0xd0
mov dword [rax + 0x18], 0x4020
mov dword [rax + 0x10], 0
mov dword [rax + 0x20], 4
mov eax, dword [0x14004f750]
mov rbx, rcx
test eax, eax
jne 0x140020575
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x9c
call sub.msvcrt.dll_memset
mov r8b, 3
mov edx, 2
xor ecx, ecx
mov dword [rsp + 0x30], 0x9c
mov dword [rsp + 0x34], 6
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x140020569
mov dword [0x14004f750], 2
add rsp, 0xd0
pop rbx
ret
mov dword [0x14004f750], 1
jmp 0x14002057a
cmp eax, 2
je 0x1400205db
lea rax, [rsp + 0xf8]
lea r9, [rsp + 0xe8]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_getsockopt]
test eax, eax
jne 0x1400205b7
mov eax, dword [rsp + 0xf0]
cmp dword [rsp + 0xe8], eax
jg 0x1400205db
lea r9, [rsp + 0xf0]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WSOCK32.DLL_setsockopt]
add rsp, 0xd0
pop rbx
ret
Function at 0x1400207b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x120
cmp dword [rcx + 0xa4], 2
mov rsi, qword [rcx]
mov rbx, rdx
mov rdi, rcx
je 0x140020962
cmp byte [rcx + 0x329], 0
jne 0x14002095a
lea r8, [rax + 8]
lea rdx, [rax - 0x88]
mov rcx, rbx
mov dword [rax + 8], pe_nt_image_headers64
call qword [sym.imp.WSOCK32.DLL_getpeername]
test eax, eax
je 0x140020831
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140033e70
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.14001c5e0
jmp 0x140020962
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, pe_nt_image_headers64
mov dword [rsp + 0x130], pe_nt_image_headers64
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x130]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.WSOCK32.DLL_getsockname]
test eax, eax
je 0x140020894
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140033e70
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.14001c5e0
jmp 0x140020962
lea rbx, [rdi + 0xf0]
lea r8, [rdi + 0x120]
lea rcx, [rsp + 0xa0]
mov rdx, rbx
call fcn.140020e50
test al, al
jne 0x1400208e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140033e70
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.14001c5e0
jmp 0x140020962
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
movups xmm1, xmmword [rbx + 0x10]
lea r8, [rdi + 0x154]
lea rdx, [rdi + 0x124]
lea rcx, [rsp + 0x20]
movups xmmword [rdi + 0x70], xmm0
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rdi + 0x80], xmm1
movsd qword [rdi + 0x90], xmm0
mov dword [rdi + 0x98], eax
movzx eax, word [rbx + 0x2c]
mov word [rdi + 0x9c], ax
call fcn.140020e50
test al, al
jne 0x14002095a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140033e70
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.14001c5e0
jmp 0x140020962
mov rcx, rdi
call fcn.140020420
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140021230
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov eax, esi
lea r9, [rsp + 0x70]
lea r8d, [rsi + 8]
cmp byte [rcx + 0x61c], al
mov edx, 0xffff
mov rcx, rdi
setne al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x70], eax
call qword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x14002129e
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.14001c710
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov ecx, dword [rbx + 0x620]
mov dword [rsp + 0x50], 1
call fcn.14002d520
imul ecx, eax, 0x3e8
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x54], ecx
mov ecx, dword [rbx + 0x624]
call fcn.14002d520
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x50]
mov r9d, 0xc
mov edx, 0x98000004
imul ecx, eax, 0x3e8
lea rax, [rsp + 0x80]
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x58], ecx
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.DLL_WSAIoctl]
test eax, eax
je 0x140021330
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r8d, edi
mov r9d, eax
mov rcx, rbx
call fcn.14001c710
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret

Function at 0x140021350
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
mov r10, rdx
mov edx, 6
movzx eax, byte [rbx + 0x45e]
mov rdi, rcx
lea r9, [rsp + 0x40]
lea r8d, [rdx - 5]
mov rcx, r10
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x40], eax
call qword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x1400213be
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov rcx, rdi
mov edx, eax
call fcn.140033e70
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.14001c710
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.14001c710
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140028f70
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx ebx, byte [rcx]
mov rsi, rdx
mov rdi, rcx
test bl, bl
je 0x14002904d
mov qword [rsp + 0x30], rbp
lea rbp, [0x140000000]
nop dword [rax]
movzx edx, byte [rsi]
test dl, dl
je 0x140029048
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x140028fc2
cdqe
mov ecx, dword [rbp + rax*4 + 0x2907c]
add rcx, rbp
jmp rcx
mov bl, 0x41
jmp case.default.0x140028fc2
mov bl, 0x42
jmp case.default.0x140028fc2
mov bl, 0x43
jmp case.default.0x140028fc2
mov bl, 0x44
jmp case.default.0x140028fc2
mov bl, 0x45
jmp case.default.0x140028fc2
mov bl, 0x46
jmp case.default.0x140028fc2
mov bl, 0x47
jmp case.default.0x140028fc2
mov bl, 0x48
jmp case.default.0x140028fc2
mov bl, 0x49
jmp case.default.0x140028fc2
mov bl, 0x4a
jmp case.default.0x140028fc2
mov bl, 0x4b
jmp case.default.0x140028fc2
mov bl, 0x4c
jmp case.default.0x140028fc2
mov bl, 0x4d
jmp case.default.0x140028fc2
mov bl, 0x4e
jmp case.default.0x140028fc2
mov bl, 0x4f
jmp case.default.0x140028fc2
mov bl, 0x50
jmp case.default.0x140028fc2
mov bl, 0x51
jmp case.default.0x140028fc2
mov bl, 0x52
jmp case.default.0x140028fc2
mov bl, 0x53
jmp case.default.0x140028fc2
mov bl, 0x54
jmp case.default.0x140028fc2
mov bl, 0x55
jmp case.default.0x140028fc2
mov bl, 0x56
jmp case.default.0x140028fc2
mov bl, 0x57
jmp case.default.0x140028fc2
mov bl, 0x58
jmp case.default.0x140028fc2
mov bl, 0x59
jmp case.default.0x140028fc2
mov bl, 0x5a
movzx ecx, dl
call fcn.1400292a0
cmp bl, al
jne 0x140029048
movzx ebx, byte [rdi + 1]
inc rdi
inc rsi
test bl, bl
jne 0x140028fa0
mov rbp, qword [rsp + 0x30]
movzx ecx, byte [rdi]
call fcn.1400292a0
movzx ecx, byte [rsi]
movzx ebx, al
call fcn.1400292a0
mov rsi, qword [rsp + 0x40]
xor ecx, ecx
cmp bl, al
mov rbx, qword [rsp + 0x38]
sete cl
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x1400290f0
Capabilities:
Parse pe header

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
movzx ebx, byte [rcx]
mov rsi, r8
mov r14, rdx
mov rdi, rcx
test bl, bl
je 0x1400291e5
lea rbp, [0x140000000]
nop word [rax + rax]
movzx edx, byte [r14]
test dl, dl
je 0x1400291e5
test rsi, rsi
je 0x1400291ea
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x14002915c
cdqe
mov ecx, dword [rbp + rax*4 + 0x2922c]
add rcx, rbp
jmp rcx
mov bl, 0x41
jmp case.default.0x14002915c
mov bl, 0x42
jmp case.default.0x14002915c
mov bl, 0x43
jmp case.default.0x14002915c
mov bl, 0x44
jmp case.default.0x14002915c
mov bl, 0x45
jmp case.default.0x14002915c
mov bl, 0x46
jmp case.default.0x14002915c
mov bl, 0x47
jmp case.default.0x14002915c
mov bl, 0x48
jmp case.default.0x14002915c
mov bl, 0x49
jmp case.default.0x14002915c
mov bl, 0x4a
jmp case.default.0x14002915c
mov bl, 0x4b
jmp case.default.0x14002915c
mov bl, 0x4c
jmp case.default.0x14002915c
mov bl, 0x4d
jmp case.default.0x14002915c
mov bl, 0x4e
jmp case.default.0x14002915c
mov bl, 0x4f
jmp case.default.0x14002915c
mov bl, 0x50
jmp case.default.0x14002915c
mov bl, 0x51
jmp case.default.0x14002915c
mov bl, 0x52
jmp case.default.0x14002915c
mov bl, 0x53
jmp case.default.0x14002915c
mov bl, 0x54
jmp case.default.0x14002915c
mov bl, 0x55
jmp case.default.0x14002915c
mov bl, 0x56
jmp case.default.0x14002915c
mov bl, 0x57
jmp case.default.0x14002915c
mov bl, 0x58
jmp case.default.0x14002915c
mov bl, 0x59
jmp case.default.0x14002915c
mov bl, 0x5a
movzx ecx, dl
call fcn.1400292a0
cmp bl, al
jne 0x1400291e5
movzx ebx, byte [rdi + 1]
inc rdi
dec rsi
inc r14
test bl, bl
jne 0x140029130
test rsi, rsi
jne 0x1400291f1
mov eax, 1
jmp 0x14002920e
movzx ecx, byte [rdi]
call fcn.1400292a0
movzx ecx, byte [r14]
movzx ebx, al
call fcn.1400292a0
xor ecx, ecx
cmp bl, al
sete cl
mov eax, ecx
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 0x1400292a0
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1400292bf
lea r8, [0x140000000]
cdqe
mov edx, dword [r8 + rax*4 + 0x29314]
add rdx, r8
jmp rdx
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
movzx eax, cl
ret
Function at 0x140029380
Capabilities:
Parse pe header

Disassembly:
mov r10, rcx
cmp r8, 1
jb 0x140029457
sub r10, rdx
lea r11, [0x140000000]
nop word [rax + rax]
movsx r9d, byte [rdx]
lea eax, [r9 - 0x61]
cmp eax, 0x19
ja case.default.0x1400293be
cdqe
mov ecx, dword [r11 + rax*4 + 0x29458]
add rcx, r11
jmp rcx
mov r9b, 0x41
jmp case.default.0x1400293be
mov r9b, 0x42
jmp case.default.0x1400293be
mov r9b, 0x43
jmp case.default.0x1400293be
mov r9b, 0x44
jmp case.default.0x1400293be
mov r9b, 0x45
jmp case.default.0x1400293be
mov r9b, 0x46
jmp case.default.0x1400293be
mov r9b, 0x47
jmp case.default.0x1400293be
mov r9b, 0x48
jmp case.default.0x1400293be
mov r9b, 0x49
jmp case.default.0x1400293be
mov r9b, 0x4a
jmp case.default.0x1400293be
mov r9b, 0x4b
jmp case.default.0x1400293be
mov r9b, 0x4c
jmp case.default.0x1400293be
mov r9b, 0x4d
jmp case.default.0x1400293be
mov r9b, 0x4e
jmp case.default.0x1400293be
mov r9b, 0x4f
jmp case.default.0x1400293be
mov r9b, 0x50
jmp case.default.0x1400293be
mov r9b, 0x51
jmp case.default.0x1400293be
mov r9b, 0x52
jmp case.default.0x1400293be
mov r9b, 0x53
jmp case.default.0x1400293be
mov r9b, 0x54
jmp case.default.0x1400293be
mov r9b, 0x55
jmp case.default.0x1400293be
mov r9b, 0x56
jmp case.default.0x1400293be
mov r9b, 0x57
jmp case.default.0x1400293be
mov r9b, 0x58
jmp case.default.0x1400293be
mov r9b, 0x59
jmp case.default.0x1400293be
mov r9b, 0x5a
mov byte [r10 + rdx], r9b
movzx eax, byte [rdx]
inc rdx
test al, al
je 0x140029457
dec r8
jne 0x1400293a0
ret
Function at 0x14002fae0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x138
call qword [sym.imp.msvcrt.dll_getenv]
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14002fb25
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14002fb25
lea rcx, [rsp + 0x20]
call qword [case.0x14001a467.6]
add rsp, 0x138
ret
xor eax, eax
add rsp, 0x138
ret

Function at 0x140031770
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.DLL_CryptAcquireContextA]
test eax, eax
je 0x1400317cc
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.DLL_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x1400317dc
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1400351c0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
xor eax, eax
test edx, edx
lea r8, [rsp + 0x38]
setne al
mov edx, 0x8004667e
mov dword [rsp + 0x38], eax
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
add rsp, 0x28
ret
Function at 0x140035240
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
lea r9, [rsp + 0x68]
mov ebx, r13d
mov r15d, r13d
call qword [sym.imp.WS2_32.DLL_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x140035404
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400353e4
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14003529d
lea ebp, [rax + 0xe]
jmp 0x1400352a9
cmp eax, 0x17
jne 0x140035351
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x140035351
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140035351
cmp rax, rbp
jb 0x140035351
mov ecx, 0x30
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14003538c
mov ecx, dword [rsi]
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 + 0x10], ebp
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [sub.msvcrt.dll_malloc]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x14003537b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x14003533e
call qword [case.0x14001a467.6]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x140035360
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x14003534e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140035290
jmp 0x140035392
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [sub.msvcrt.dll_free]
mov rcx, rdi
call qword [sub.msvcrt.dll_free]
jmp 0x140035392
mov rcx, rdi
mov r14d, 8
call qword [sub.msvcrt.dll_free]
jmp 0x140035392
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400353a7
call qword [sym.imp.WS2_32.DLL_freeaddrinfo]
test r14d, r14d
je 0x1400353df
test rbx, rbx
je 0x1400353da
mov rcx, qword [rbx + 0x20]
call qword [sub.msvcrt.dll_free]
mov rcx, qword [rbx + 0x18]
call qword [sub.msvcrt.dll_free]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [sub.msvcrt.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x1400353b1
mov rbx, r13
jmp 0x1400353f3
test rbx, rbx
jne 0x1400353f3
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
mov eax, r14d
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret

Function at 0x140035aa9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
test rax, rax
Function at 0x140035ac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jne 0x140035acc
mov eax, 0
jmp 0x140035bbd
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
cdqe
add rax, rdx
mov qword [rbp - 0x10], rax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x88]
mov eax, eax
add rax, rdx
mov qword [rbp - 0x18], rax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x20]
mov eax, eax
add rax, rdx
mov qword [rbp - 0x20], rax
mov dword [rbp - 4], 0
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x18]
cmp dword [rbp - 4], eax
jae 0x140035bb8
mov rdx, qword [rbp + 0x10]
mov eax, dword [rbp - 4]
lea rcx, [rax*4]
mov rax, qword [rbp - 0x20]
add rax, rcx
mov eax, dword [rax]
mov eax, eax
add rax, rdx
mov qword [rbp - 0x28], rax
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x28]
mov rcx, rax
call fcn.140035a3a
test al, al
je 0x140035baf
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x1c]
mov eax, eax
add rax, rdx
mov qword [rbp - 0x30], rax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x24]
mov eax, eax
add rax, rdx
mov qword [rbp - 0x38], rax
mov rdx, qword [rbp + 0x10]
mov eax, dword [rbp - 4]
lea rcx, [rax + rax]
mov rax, qword [rbp - 0x38]
add rax, rcx
movzx eax, word [rax]
movzx eax, ax
lea rcx, [rax*4]
mov rax, qword [rbp - 0x30]
add rax, rcx
mov eax, dword [rax]
mov eax, eax
add rax, rdx
jmp 0x140035bbd
add dword [rbp - 4], 1
jmp 0x140035b12
mov eax, 0
add rsp, 0x60
pop rbp
ret

Function at 0x140035da8
Capabilities:
Terminate process

Disassembly:
push rbp
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
lea rbx, [0x140041c19]
mov qword [rbp - 0x48], 0
lea rax, [rbp - 0x48]
mov rdx, rax
mov ecx, 0
call fcn.140035ce0
mov qword [rbp + 0x10], rax
mov eax, dword [rbx + 0x60]
mov edx, 0
mov ecx, eax
call fcn.140035ce0
mov qword [rbp + 8], rax
mov rax, qword [rbp - 0x48]
mov qword [rbp], rax
mov rax, qword [rbx + 0x4c]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov eax, dword [rax]
test eax, eax
je 0x140035e7f
mov rax, qword [rbp]
invalid
invalid

Function at 0x140035f20
Capabilities:
Terminate process

Disassembly:
or byte [r8 - 0x77], r9b
shr eax, 0x7f
sti
invalid
Function at 0x140035fa0
Capabilities:
Terminate process

Disassembly:
mov edx, dword [rbx + 0x44]
mov eax, dword [rbp + 0x1c]
cmp edx, eax
seta al
test al, al
je 0x140035fbd
mov eax, dword [rbp + 0x1c]
cdqe
mov rdx, qword [rbp - 0x28]
add rax, rdx
mov ecx, dword [rax]
mov eax, dword [rbp + 0x1c]
cdqe
mov rdx, qword [rbp - 0x20]
add rax, rdx
mov edx, dword [rbp - 0x34]
add edx, ecx
mov dword [rax], edx
mov edx, dword [rbx + 0xc]
mov eax, dword [rbp + 0x1c]
add eax, edx
mov dword [rbp + 0x1c], eax
jmp 0x140035f80
mov rax, qword [rbp - 0x20]
add rax, 8
mov edx, dword [rbx + 0x5c]
mov dword [rax], edx
mov r8d, dword [rbp - 0x54]
mov eax, dword [rbx + 0x44]
mov r10d, eax
lea rdx, [rbp - 0x54]
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x30]
mov r9, rdx
mov rdx, r10
call rax
mov eax, dword [rbx + 0x48]
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, 0xc
mov eax, dword [rax]
mov eax, eax
add rdx, rax
mov rax, qword [rbp - 0x20]

Function at 0x140036000
Capabilities:
Terminate process

Disassembly:
add rax, rdx
mov qword [rbp - 0x50], rax
mov eax, dword [rbx + 0x48]
mov eax, eax
add qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x40]
mov rcx, rdx
call rax
jmp 0x140036028
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
sbb byte [rbx - 0x2f00ffff], al
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp qword [sym.imp.KERNEL32.dll_GlobalAlloc]

Function at 0x140039690
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 0x1400396ca
lea edx, [rax + 0x2e]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x1400396c8
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14003ba10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
mov r14, rdx
add rax, 0x18
add rcx, rax
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14003ba52
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
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 ebp, dword [rbx + 0x1c]
jbe 0x14003ba95
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add r14, qword [rdi + 0x10]
mov rcx, r14
call qword [rbx + 0x10]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14003baf1
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
dec rbp
jne 0x14003bab0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14003bb33
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140048752]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140048753]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14003bb00
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret