joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017039d
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
jmp 0x140269a70
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1404ff3c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140269ac5
jmp 0x140269c74
mov qword [rsp + 0x80], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140269c4b
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140269c4b
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140269c4b
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x140269c4b
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x140269c4b
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140269c4b
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x140269c4b
mov r9, rsi
lea r8, [0x14047887c]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.14016d69d
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140269be5
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x140269c4b
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x140269c4b
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.14016e4c1
test eax, eax
jne 0x140269c4b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x140269c6c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14016f3bc
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401703f2
Capabilities:
Print debug messages

Disassembly:
jmp 0x14043c630
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1404ff3c0]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14043c656
jmp 0x14043c6d3
mov rcx, qword [rbp + 0x30]
call fcn.14016eefd
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14043c66f
jmp 0x14043c6d3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14043c68c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14016c964
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.14016d3fa
test eax, eax
jne 0x14043c6d3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14016f3bc
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x14017050f
Capabilities:
Resolve dns

Disassembly:
jmp 0x140269d80
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov ebx, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x140269f44
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x140269f24
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x140269ddd
lea ebp, [rax + 0xe]
jmp 0x140269de9
cmp eax, 0x17
jne 0x140269e91
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x140269e91
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140269e91
cmp rax, rbp
jb 0x140269e91
mov ecx, Ordinal_50
call qword [fcn.140170361]
mov rdi, rax
test rax, rax
je 0x140269ecc
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 + 0xc], ecx
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [fcn.140170361]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x140269ebb
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.14016f425
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x140269e7e
call qword [case.0x140242269.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x140269ea0
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x140269e8e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140269dd0
jmp 0x140269ed2
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.14016e1c9]
mov rcx, rdi
call qword [fcn.14016e1c9]
jmp 0x140269ed2
mov rcx, rdi
mov r14d, 8
call qword [fcn.14016e1c9]
jmp 0x140269ed2
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x140269ee7
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x140269f1f
test rbx, rbx
je 0x140269f1a
mov rcx, qword [rbx + 0x20]
call qword [fcn.14016e1c9]
mov rcx, qword [rbx + 0x18]
call qword [fcn.14016e1c9]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.14016e1c9]
mov rbx, rdi
test rdi, rdi
jne 0x140269ef1
mov rbx, r13
jmp 0x140269f33
test rbx, rbx
jne 0x140269f33
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x14017096a
Capabilities:
Get geographical location

Disassembly:
jmp 0x1402cef00
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1402cef3d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140173caa
add rsp, 0x58
ret

Function at 0x140170ad7
Capabilities:
Set environment variable

Disassembly:
jmp 0x140432380
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x14017104a
Capabilities:
Parse pe header

Disassembly:
jmp 0x14031e690
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14031e6b0
xor al, al
jmp 0x14031e731
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14031e6c3
xor al, al
jmp 0x14031e731
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14031e6ed
xor al, al
jmp 0x14031e731
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14031e701
xor al, al
jmp 0x14031e731
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14031e713
xor al, al
jmp 0x14031e731
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14031e72f
xor al, al
jmp 0x14031e731
mov al, 1
add rsp, 0x38
ret

Function at 0x1401713e7
Capabilities:
Get common file path

Disassembly:
jmp 0x140420910
push rdi
sub rsp, 0x270
mov rax, qword [0x1404ff3c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x104
ja 0x140420969
lea rcx, [rsp + 0x50]
call fcn.140420700
jmp 0x140420a3c
mov eax, dword [rsp + 0x30]
inc eax
mov eax, eax
mov dword [rsp + 0x20], Ordinal_41
lea r9, [0x1404bcda0]
mov r8d, 2
mov edx, 2
mov ecx, eax
call fcn.14017493e
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14016e47b
lea rcx, [rsp + 0x38]
call fcn.140173b5b
test rax, rax
jne 0x1404209d1
call fcn.14016e2c3
mov dword [rax], ntohs
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x38]
call fcn.140172035
mov eax, dword [rsp + 0x40]
jmp 0x140420a3c
lea rcx, [rsp + 0x38]
call fcn.140173b5b
mov ecx, dword [rsp + 0x30]
inc ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140420a18
call fcn.14016e2c3
mov dword [rax], ntohs
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x38]
call fcn.140172035
mov eax, dword [rsp + 0x48]
jmp 0x140420a3c
lea rcx, [rsp + 0x38]
call fcn.140173b5b
mov rcx, rax
call fcn.140420700
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x38]
call fcn.140172035
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14016f3bc
add rsp, 0x270
pop rdi
ret
Function at 0x140171a7c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1402a42e0
mov r10, rcx
test rdx, rdx
je 0x1402a4345
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
and r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x1402a42f0
ret

Function at 0x140171e5f
Capabilities:
Terminate process

Disassembly:
jmp 0x140341e10
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140341e3e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1401732b9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1401727d8
Capabilities:
Create directory

Disassembly:
jmp 0x1402d8e70
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1404ff3c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1402d8ead
mov byte [rsp + 0x24], 1
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x24]
jmp 0x1402d8f22
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xb7
jne 0x1402d8f10
mov edx, 1
mov ecx, 2
call fcn.14016b46f
mov r9d, 0xffffffff
mov r8d, eax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.14016d823
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1402d8f10
mov edx, reloc.WS2_32.dll_recv
mov ecx, dword [rsp + 0x48]
call fcn.14016c11c
movzx eax, al
test eax, eax
jne 0x1402d8f10
mov dword [rsp + 0x20], 0xb7
mov byte [rsp + 0x2c], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14016f3bc
add rsp, 0x68
ret
Function at 0x140172d69
Capabilities:
Get common file path

Disassembly:
jmp 0x140257cc0
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x140486738]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x140257cea
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, [0x14048675c]
mov rcx, rbx
mov r14, rax
call fcn.14016dd23
test rax, rax
je 0x140257d4d
mov rcx, rbx
test r14, r14
je 0x140257d37
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 0x140257d85
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140257d85
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 0x140257e48
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140257db0
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.140170361]
mov rdi, rax
test rax, rax
je 0x140257e3a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140257e3a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140257de0
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x140257df4
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 0x140257e10
mov rcx, rdi
test r14, r14
je 0x140257e31
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140257e37
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.14016e1c9]
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 0x14017327d
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140255d10
push rbx
sub rsp, 0x30
mov eax, dword [0x140502c0c]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140255d6d
xor edx, edx
lea r9d, [rax + 3]
lea r8d, [rax + 2]
lea ecx, [rax + 6]
call fcn.140171865
test al, al
je 0x140255d61
mov dword [0x140502c0c], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x140502c0c], 1
jmp 0x140255d72
cmp eax, 2
je 0x140255dc4
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140255da3
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x140255dc4
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x140173386
Capabilities:
Print debug messages

Disassembly:
jmp 0x1404094b0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1401735bb
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140340e90
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1403407e0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140340ed9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14052f020]
jmp 0x140340ee8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x140173796
Capabilities:
Set environment variable

Disassembly:
jmp 0x140443270
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14016e3f9
lea rcx, [rsp + 0x48]
call fcn.14016e3f9
call fcn.14016fb23
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14016de86
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1404432df
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.14016eca5
lea rcx, [rsp + 0x78]
call fcn.14016eca5
mov eax, dword [rsp + 0x24]
jmp 0x140443370
call fcn.14016fb23
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14016de86
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140443326
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.14016eca5
lea rcx, [rsp + 0x78]
call fcn.14016eca5
mov eax, dword [rsp + 0x2c]
jmp 0x140443370
lea rcx, [rsp + 0x48]
call fcn.14016e219
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.14016e219
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.14016eca5
lea rcx, [rsp + 0x78]
call fcn.14016eca5
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140173bfb
Capabilities:
Create thread

Disassembly:
jmp 0x1403dc310
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x90], 0
je 0x1403dc33c
mov dword [rsp + 0x30], 1
jmp 0x1403dc344
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x1403dc38d
lea rax, str.procedure___nullptr
mov qword [rsp + 0x28], rax
lea rax, [0x1404937d8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, reloc.WLDAP32.dll_Ordinal_200
lea rdx, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
mov ecx, 2
call fcn.14016bfb9
cmp eax, 1
jne 0x1403dc38d
int3
cmp dword [rsp + 0x34], 0
jne 0x1403dc3cf
call fcn.14016e2c3
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
mov qword [rsp + 0x20], 0
mov r9d, reloc.WLDAP32.dll_Ordinal_200
lea r8, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
lea rdx, str._beginthreadex
lea rcx, str.procedure___nullptr
call fcn.140172869
xor eax, eax
jmp 0x1403dc4cf
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.1403dbe00
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1403dbc00
lea rcx, [rsp + 0x40]
call fcn.1403dbc70
movzx eax, al
test eax, eax
jne 0x1403dc41f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.1403dbc50
mov rax, qword [rsp + 0x50]
jmp 0x1403dc4cf
lea rcx, [rsp + 0x40]
call fcn.1403dbfb0
mov ecx, dword [rsp + 0x88]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
mov edx, dword [rsp + 0xa0]
mov dword [rsp + 0x20], edx
mov r9, rax
lea r8, [0x1403db9b0]
mov edx, ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1403dc493
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14016d93b
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x40]
call fcn.1403dbc50
mov rax, qword [rsp + 0x58]
jmp 0x1403dc4cf
cmp qword [rsp + 0xa8], 0
je 0x1403dc4ac
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
lea rcx, [rsp + 0x40]
call fcn.1403dbf70
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.1403dbc50
mov rax, qword [rsp + 0x60]
add rsp, 0x78
ret
Function at 0x1401746c8
Capabilities:
Move file

Disassembly:
jmp 0x1402da610
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8d, 3
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1402da63c
xor eax, eax
jmp 0x1402da642
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x28
ret
Function at 0x1401cb030
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, reloc.WLDAP32.dll_Ordinal_50
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x1404ff3c0]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x14052d136]
call fcn.140173d0e
nop
mov dword [rbp + 0x10], 0x68
lea rax, [rbp + 0x18]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
mov rcx, qword [rbp + 0x1a8]
call fcn.14016e03e
lea rcx, [rbp + 0x98]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1401cb11d
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x50]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140172404
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.14016f3bc
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140279870
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1404ff3c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x260]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], 0x80
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1402798ea
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.140171c7a
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x14027990f
lea rdx, str.Error_accept__ing_server_connect
call fcn.14017497f
lea eax, [rbx + 0x1f]
jmp 0x140279988
lea rdx, str.Connection_accepted_from_server_n
call fcn.140172ff8
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.14016cb08
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x140279986
mov dl, 1
mov rcx, rsi
call fcn.140172319
mov rcx, qword [rsi + 0x730]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x728]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.140172319
test ebx, ebx
je 0x140279986
mov rcx, rdi
call fcn.14027a1b0
mov eax, Ordinal_45
jmp 0x140279988
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14016f3bc
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14027b890
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x798
cmp byte [rax + 0xe99], 0
jne 0x14027b8b5
cmp dword [rax + 0x9f0], 0
je 0x14027b8e1
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14027b8e1
lea rdx, str.MDTM__s
call fcn.14016d4cc
test eax, eax
jne 0x14027b8ee
mov dword [rbx + 0x850], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14027cfe0
add rsp, 0x20
pop rbx
ret