joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002a55c
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
xor edi, edi
mov qword [rax - 0x40], rbx
mov r15, r9
mov r12, r8
mov r13, rdx
mov rbp, rcx
test rcx, rcx
jne 0x14002a5a2
mov ecx, 0x80070057
mov edi, ecx
call fcn.140009f60
jmp 0x14002a684
test r13, r13
je 0x14002a591
test r12, r12
je 0x14002a591
test r15, r15
je 0x14002a591
mov r14, qword [rsp + 0x90]
test r14, r14
je 0x14002a591
lea rdx, [rsp + 0x70]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
jne 0x14002a5ef
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
je 0x14002a5ef
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x14002a5ef
mov ecx, edi
jmp 0x14002a598
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.14002a6bc
mov rbx, qword [rsp + 0x28]
test rbx, rbx
jne 0x14002a60d
mov edi, 0x8007000e
jmp 0x14002a5eb
mov r9, rbx
mov r8d, esi
xor edx, edx
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x14002a643
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x14002a633
mov edi, 0x80004005
jmp 0x14002a5eb
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14002a5eb
lea r9, [rsp + 0x20]
mov rcx, rbx
lea r8, [rsp + 0x30]
lea rdx, [0x140032d80]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x14002a622
mov rdx, qword [rsp + 0x30]
movzx ecx, word [rdx + 0xa]
mov dword [r13], ecx
movzx ecx, word [rdx + 8]
mov dword [r12], ecx
movzx ecx, word [rdx + 0xe]
mov dword [r15], ecx
movzx ecx, word [rdx + 0xc]
mov dword [r14], ecx
mov ecx, edi
call fcn.140009f80
mov rcx, rbx
call fcn.14002c338
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002aad8
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x7f0]
sub rsp, 0x8f0
mov rax, qword [0x140050900]
xor rax, rsp
mov qword [rbp + 0x7e0], rax
mov rsi, rdx
lea rcx, [rsp + 0x74]
xor edx, edx
mov rdi, r8
lea r8d, [rdx + 0x64]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor eax, eax
mov dword [rsp + 0x70], 0x68
lea rdx, str.ExecuteCommandLine:_started
mov qword [rsp + 0x58], rax
xor ecx, ecx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call fcn.140009844
test rdi, rdi
jne 0x14002ab53
mov ebx, 0x80070057
mov ecx, ebx
call fcn.140009f60
jmp 0x14002ac31
mov r9, rsi
lea r8, [0x140040aec]
mov edx, 0x400
lea rcx, [rbp - 0x20]
call fcn.14000297c
mov ebx, eax
test eax, eax
jns 0x14002ab75
mov ecx, eax
jmp 0x14002ab49
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp - 0x20]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000020
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
jne 0x14002abdf
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14002ab47
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetExitCodeProcess]
test eax, eax
jne 0x14002ac2b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
lea rdx, str.ExecuteCommandLine:_Failed_to_get_process_information
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140009624
mov ebx, eax
test eax, eax
js 0x14002ab71
mov eax, dword [rsp + 0x50]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x14002ac42
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
cmp rcx, 0xffffffffffffffff
je 0x14002ac53
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test ebx, ebx
jne 0x14002ac5b
cmp dword [rdi], ebx
je 0x14002ac6c
mov r8, rsi
lea rdx, str.ExecuteCommandLine:_There_was_a_problem_executing_the_command_line__s
mov ecx, ebx
call fcn.140009624
lea rdx, str.ExecuteCommandLine:_ended
mov ecx, ebx
call fcn.140009844
mov ecx, ebx
call fcn.140009f80
mov eax, ebx
mov rcx, qword [rbp + 0x7e0]
xor rcx, rsp
call fcn.14002c310
mov rbx, qword [rsp + 0x910]
add rsp, 0x8f0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002c344
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140050f00], eax
call fcn.14002cbdc
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140050f00], 0
jne case.default.0x14002c39a
mov ecx, 1
call fcn.14002cbdc
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
ret
Function at 0x140003ee0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x48], 0
jne 0x140003f1b
mov r8d, socket
lea rdx, [0x140035018]
lea rcx, [0x140035030]
call fcn.14000bb44
xor eax, eax
cmp qword [rsp + 0x58], 0
jne 0x140003f3e
mov r8d, socket
lea rdx, [0x140035048]
lea rcx, [0x140035060]
call fcn.14000bb44
xor eax, eax
mov dword [rsp + 0x28], sendto
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WSOCK32.dll_sendto]
add rsp, 0x38
ret

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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], sendto
cmp qword [rsp + 0x58], 0
jne 0x140003fc4
mov r8d, 0x23
lea rdx, [0x140035078]
lea rcx, str.pak___0
call fcn.14000bb44
xor eax, eax
cmp qword [rsp + 0x68], 0
jne 0x140003fe7
mov r8d, 0x24
lea rdx, str.packetio.c
lea rcx, [0x1400350c0]
call fcn.14000bb44
xor eax, eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WSOCK32.dll_recvfrom]
add rsp, 0x48
ret

Function at 0x140004df0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
jne 0x140004e21
mov r8d, 0x1f
lea rdx, [0x140035670]
lea rcx, str.remote___0
call fcn.14000bb44
xor eax, eax
cmp qword [rsp + 0x48], 0
jne 0x140004e44
mov r8d, 0x20
lea rdx, str.lookup_hostname.c
lea rcx, str.paddr___0
call fcn.14000bb44
xor eax, eax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.1400053b0
test eax, eax
je 0x140004e5e
mov eax, 1
jmp 0x140004eb9
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WSOCK32.dll_gethostbyname]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140004e7a
xor eax, eax
jmp 0x140004eb9
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x18]
mov r8d, 4
mov rdx, qword [rcx + rax]
mov rcx, qword [rsp + 0x48]
call fcn.140007390
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax]
call qword [sym.imp.WSOCK32.dll_ntohl]
mov rcx, qword [rsp + 0x48]
mov dword [rcx], eax
mov eax, 1
add rsp, 0x38
ret
Function at 0x140005ed0
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x2e8
mov rax, qword [0x140035ef8]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movsxd rax, dword [rsp + 0x2f8]
and rax, 0xff
movzx eax, al
movsxd rcx, dword [rsp + 0x2f8]
and rcx, 0xff
movzx ecx, cl
shl ecx, 8
or eax, ecx
mov word [rsp + 0x20], ax
lea rdx, [rsp + 0x30]
movzx ecx, word [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140005f5f
mov r8d, 0x100
lea rdx, [rsp + 0x1d0]
mov ecx, dword [rsp + 0x24]
call fcn.140006020
mov rdx, rax
lea rcx, str.ERROR:_initializing_Winsock___s_
call fcn.140004d80
cmp dword [rsp + 0x2f0], 0
je 0x140005ffd
movzx eax, word [rsp + 0x30]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
and rcx, 0xff
movzx ecx, cl
mov r8d, eax
mov edx, ecx
lea rcx, str.Using_Winsock__d._d
call fcn.1400020b0
movzx eax, word [rsp + 0x30]
movzx ecx, word [rsp + 0x32]
cmp eax, ecx
je 0x140005fdf
movzx eax, word [rsp + 0x32]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x32]
and rcx, 0xff
movzx ecx, cl
mov r8d, eax
mov edx, ecx
lea rcx, str.___d._d_available_
call fcn.1400020b0
lea rcx, [0x140035ee4]
call fcn.1400020b0
mov ecx, 1
call fcn.14000bd70
mov rcx, rax
call fcn.14000c180
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140006230
add rsp, 0x2e8
ret

Function at 0x140006c24
Capabilities:
Parse pe header

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

Function at 0x14000a70c
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 0x14000a577
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a577
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a577
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a577
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a577
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a577
cmp dword [rcx + 0xf8], 0
je 0x14000a577
mov ecx, ebx
call fcn.14000a628
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.14000a404
nop
cmp dword [rbp + 0x20], 0
je 0x14000a5c5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000a5d0
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000a508
Function at 0x140018710
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140018726
mov al, 1
jmp 0x140018786
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140018737
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140018784
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001d180
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140018784
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140018784
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140018784
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140018786
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001c284
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 0x14001c2b4
xor eax, eax
jmp 0x14001c377
mov rbp, rbx
cmp word [rax], si
je 0x14001c2d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001c2c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001c2bc
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.14001c1a4
movsxd r14, eax
test eax, eax
jne 0x14001c317
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001c2ad
mov rcx, r14
call fcn.140018c8c
mov rdi, rax
test rax, rax
jne 0x14001c330
xor ecx, ecx
call fcn.14001544c
jmp 0x14001c30c
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.14001c1a4
test eax, eax
jne 0x14001c361
mov rcx, rdi
call fcn.14001544c
jmp 0x14001c36b
xor ecx, ecx
call fcn.14001544c
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 0x14001c394
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001c41b
mov rsi, rbx
cmp word [rax], bp
je 0x14001c3da
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001c3c4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001c3c0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140018c8c
mov rdi, rax
test rax, rax
je 0x14001c408
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140007390
mov rbp, rdi
xor ecx, ecx
call fcn.14001544c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001e4a8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140037d40]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001e4ff
cmp word [rdx], r13w
jne 0x14001e4ff
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001e504
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001e629
mov r11d, ntohl
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001e64a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001e53d
mov rdx, r9
mov word [rbx], cx
jmp 0x14001e564
cmp r9, r8
jae 0x14001e574
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001e51e
jmp 0x14001e629
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001e61e
cmp dword [rsp + 0x80], esi
je 0x14001e61e
lea r8, [0x140037d40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001e5f6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001e5c6
mov word [rbx], r13w
jmp 0x14001e626
mov ecx, ntohl
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001e5d3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001e626
cmp word [rsp + 0x70], r13w
jne 0x14001e603
cmp rbx, r14
je 0x14001e5c0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001e3c8
cmp word [rsp + 0x70], r13w
je 0x14001e629
mov ecx, ntohl
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140037d40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001e623
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001e629
Function at 0x140022f98
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.1400157ec
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140023022
cmp byte [rbp - 0x21], r15b
je 0x14002301d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140023058
call fcn.140016914
test eax, eax
jne 0x140023044
cmp byte [rbp - 0x21], r15b
je 0x14002303c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140023058
cmp byte [rbp - 0x21], r15b
je 0x140023055
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.14001ab30
test eax, eax
jne 0x1400230f8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400157ec
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140023097
cmp byte [rbp - 0x21], r15b
je 0x1400230cc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400230cc
call fcn.140016914
test eax, eax
jne 0x1400230b8
cmp byte [rbp - 0x21], r15b
je 0x1400230b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400230cc
cmp byte [rbp - 0x21], r15b
je 0x1400230c9
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.14001ab30
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400230f8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400230fb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140023109
mov rcx, rdi
call fcn.14001544c
cmp byte [rbp + 0x3f], r15b
je 0x140023118
mov rcx, qword [rbp + 0x27]
call fcn.14001544c
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 0x140023838
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001e3c8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001e3c8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140023988
cmp rax, 0xffffffffffffffff
je 0x140023988
xor edi, edi
test rbp, rbp
jle 0x140023933
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400153d4
mov rbx, rax
test rax, rax
jne 0x1400238c0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140023929
mov edx, 0x8000
mov ecx, r14d
call fcn.140013f80
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140017d54
cmp eax, 0xffffffff
je 0x140023909
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400238d0
mov edx, r15d
mov ecx, r14d
call fcn.140013f80
jmp 0x140023929
cmp byte [rsi + 0x38], dil
je 0x140023920
cmp dword [rsi + 0x34], 5
jne 0x140023920
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohl
cmp byte [rsi + 0x30], dil
je 0x140023929
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001544c
jmp 0x14002399c
jns 0x14002399c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001e3c8
cmp rax, 0xffffffffffffffff
jne 0x140023954
cmp byte [rsi + 0x30], dil
je 0x14002399c
mov edi, dword [rsi + 0x2c]
jmp 0x14002399c
mov ecx, r14d
call fcn.14001d180
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002399c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, ntohl
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohl
jmp 0x14002399c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140023995
mov eax, dword [rsi + 0x2c]
jmp 0x14002399a
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001e3c8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400023f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1410
call fcn.1400134c0
sub rsp, rax
mov rax, qword [0x14004d020]
xor rax, rsp
mov qword [rsp + 0x1400], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], ecx
movups xmm0, xmmword [str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
movups xmmword [rsp + 0x13c0], xmm0
movups xmm1, xmmword [0x140045ab8]
movups xmmword [rsp + 0x13d0], xmm1
movups xmm0, xmmword [0x140045ac8]
movups xmmword [rsp + 0x13e0], xmm0
movsd xmm1, qword [0x140045ad8]
movsd qword [rsp + 0x13f0], xmm1
mov eax, dword [0x140045ae0]
mov dword [rsp + 0x13f8], eax
movzx eax, word [0x140045ae4]
mov word [rsp + 0x13fc], ax
movzx eax, byte [0x140045ae6]
mov byte [rsp + 0x13fe], al
mov qword [rdi], rcx
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], 0xf
mov byte [rdi], cl
mov ebx, 1
mov dword [rsp + 0x20], ebx
call fcn.14001216c
mov ecx, eax
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
nop dword [rax + rax]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, ebx
mov dword [rsp + rbx*4 + 0x34], ecx
inc rbx
cmp rbx, 0x270
jb 0x1400024c0
mov dword [rsp + 0x30], 0x270
mov ebx, 8
nop dword [rax]
lea rcx, [rsp + 0x30]
call fcn.14000a7d0
mov ecx, eax
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
cmp eax, 0x4210842
jae 0x1400024f0
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movsxd rax, ecx
movzx r9d, byte [rsp + rax + 0x13c0]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140002564
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140002559
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000256c
mov rcx, rdi
call fcn.140008000
sub rbx, 1
jne 0x1400024f0
mov rax, rdi
mov rcx, qword [rsp + 0x1400]
xor rcx, rsp
call fcn.140012e50
mov rbx, qword [rsp + 0x1428]
add rsp, 0x1410
pop rdi
ret