joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001590
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x78
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov ecx, 0x30
call fcn.140001c1c
mov rcx, rax
mov qword [rsp + 0x20], rax
movdqa xmm0, xmmword [0x1400033e0]
movdqu xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [str.bios_get_manufacturer]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400033c0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1400033d0]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x1400033d8]
mov word [rcx + 0x28], ax
xor eax, eax
mov word [rcx + 0x2a], ax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400011c0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x14000164c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001647
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001680
call fcn.140001c58
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000168c
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001687
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001687
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001c58
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140002400
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400489f0]
mov dword [rax], 1
mov rax, qword [0x140048a00]
mov dword [rax], 1
mov rax, qword [0x140048a10]
mov dword [rax], 1
mov rax, qword [0x1400489e0]
mov dword [rax], 1
mov rax, qword [0x140048830]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14000199c
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
mov rcx, rdx
mov r13, rdx
call sub.msvcrt.dll_strlen
mov rcx, r13
mov r9, r12
mov edx, 1
mov r8, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x28
pop r12
pop r13
jmp fcn.140036788

Function at 0x14000541f
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.140036eb0]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp fcn.140036788
Function at 0x1400060b1
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rdx
mov rbp, rcx
lea rcx, [0x14004f120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
shl rbx, 4
mov r12, qword [fcn.140036eb0]
mov qword [rsp + 0x28], rbx
xor ebx, ebx
mov ecx, 1
call r12
mov rdi, qword [rbp + rbx]
mov r13, qword [rbp + rbx + 8]
lea r8, [0x140045084]
mov rsi, rax
test rdi, rdi
je 0x14000610b
lea r8, [r13 + 8]
lea rdx, [0x140045224]
mov rcx, rsi
lea r15, [rsp + 0x38]
call fcn.14002eeab
movsxd r14, eax
cmp r14, rdi
jge 0x140006192
test r14, r14
jns 0x14000613a
lea rdx, [rdi - 1]
mov rcx, r14
call fcn.140004e78
jmp 0x140006192
cmp byte [r13 + r14 + 8], 0
je 0x140006162
lea r8, [r13 + r14 + 8]
lea rdx, [0x140045224]
mov rcx, rsi
call fcn.14002eeab
test eax, eax
jle 0x140006192
movsxd rdx, eax
mov r8, r15
jmp 0x140006178
xor ecx, ecx
mov rdx, rsi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x140006192
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.140001a9a
test al, al
je 0x14000618b
call fcn.140002a7c
jmp 0x140006192
mov r14, qword [rsp + 0x38]
jmp 0x140006122
lea rcx, [0x140044340]
call fcn.140037240
cmp byte [rax], 0
jne 0x140006202
add rbx, 0x10
cmp rbx, qword [rsp + 0x28]
jne 0x1400060e6
mov ecx, 1
call r12
mov r8d, 1
mov edx, 1
lea rcx, [0x1400450c7]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call r12
mov rcx, rax
call fcn.140036788
lea rcx, [0x14004f120]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002fd50
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140036eb0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140036eb0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140030982
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14004f388]
test eax, eax
je 0x140030a1a
lea rax, [0x14004f360]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14004f390]
mov qword [rbp - 8], rax
jmp 0x1400309fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400309f2
cmp qword [rbp - 0x10], 0
je 0x1400309f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400309b8
lea rax, [0x14004f360]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140030a1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140030b20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140030b48
mov eax, 0
jmp 0x140030b96
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140030b71
mov eax, 0
jmp 0x140030b96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140030b91
mov eax, 0
jmp 0x140030b96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140030b9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140030c1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140030c11
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140030c11
mov rax, qword [rbp - 8]
jmp 0x140030c2f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140030be4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400385e4
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14003872e
mov rcx, qword [rbp + 0x10]
call fcn.14003cbbd
cmp eax, 1
jne 0x140038721
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x1400386d7
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x1400386ed
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x1400386d3
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14003870c
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.msvcrt.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14003872f
nop
add rsp, 0x90
pop rbp
ret
Function at 0x140039925
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x14003974b]
mov rdx, rax
lea rax, [0x14004fe10]
mov rcx, rax
call fcn.140038d56
mov eax, dword [0x1400444b0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140039978
mov rax, qword [rbp - 0x10]
jmp 0x140039ad8
call fcn.1400384c0
mov qword [rbp - 0x10], rax
mov rax, qword [0x140052050]
test rax, rax
je 0x140039994
cmp qword [rbp - 0x10], 0
jne 0x14003999e
mov eax, 0
jmp 0x140039ad8
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.1400385e4
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x140039a79
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1400444b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x140039ad4
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140039bd2
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.140039925
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.140039779
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x140039c3f
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x1400444b0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140039d83
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140039cdc
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140039c97
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14003839c
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400444b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x140039d83
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140039d16
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x140039d83
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14003839c
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400444b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x1400016b9
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov dword [0x140012038], 1
mov eax, dword [0x140012038]
mov dword [0x14001205c], eax
mov eax, dword [0x14001205c]
mov dword [0x140012058], eax
mov qword [0x140012040], 0
lea rax, str.POSIXLY_CORRECT
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [0x140012050], rax
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
cmp al, 0x2d
jne 0x140001724
mov dword [0x140012048], 2
add qword [rbp + 0x10], 1
jmp 0x140001762
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
cmp al, 0x2b
jne 0x140001740
mov dword [0x140012048], 0
add qword [rbp + 0x10], 1
jmp 0x140001762
mov rax, qword [0x140012050]
test rax, rax
je 0x140001758
mov dword [0x140012048], 0
jmp 0x140001762
mov dword [0x140012048], 1
mov rax, qword [rbp + 0x10]
add rsp, 0x20
pop rbp
ret
Function at 0x140002951
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended

Disassembly:
push rbp
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0xe0]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp - 8], 0
mov dword [rbp - 0x90], 0x68
mov qword [rbp - 0x88], 0
mov qword [rbp - 0x78], 0
mov qword [rbp - 0x80], 0
mov dword [rbp - 0x64], 0
mov eax, dword [rbp - 0x64]
mov dword [rbp - 0x68], eax
mov eax, dword [rbp - 0x68]
mov dword [rbp - 0x6c], eax
mov eax, dword [rbp - 0x6c]
mov dword [rbp - 0x70], eax
mov word [rbp - 0x50], 0
mov qword [rbp - 0x48], 0
mov word [rbp - 0x4e], 0
mov dword [rbp - 0x54], 0x101
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x38], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp - 0x90]
lea rdx, [rax + 0x60]
mov rax, qword [rbp + 0x28]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 2
mov r9, rdx
mov r8, rbx
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
mov rax, qword [0x14000f5e0]
mov rax, qword [rax]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x90]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
je 0x140002aa8
mov rax, qword [rbp - 0x20]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x140002b01
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
mov r8d, 0xa
lea rax, [0x140012060]
mov rdx, rax
call sub.msvcrt.dll__itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rax, str.Failed_to_execute_shell__error___s
mov rcx, rax
call fcn.140003252
mov rax, qword [rbp - 8]
add rsp, 0xe8
pop rbx
pop rbp
ret

Function at 0x140002ef8
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
mov word [rbp + 0x13e], 0x101
movzx eax, word [rbp + 0x13e]
lea rdx, [rbp - 0x60]
mov ecx, eax
mov rax, qword [sym.imp.WSOCK32.dll_WSAStartup]
call rax
mov dword [rbp + 0x138], eax
cmp dword [rbp + 0x138], 0
jne 0x140002f55
movzx eax, word [rbp - 0x60]
cmp al, 1
jne 0x140002f4a
movzx eax, word [rbp - 0x60]
shr ax, 8
cmp al, 1
je 0x140002f56
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
jmp 0x140002f56
nop
add rsp, 0x1c0
pop rbp
ret
Function at 0x14000450d
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov dword [rbp + 0x20], ecx
mov qword [rbp + 0x28], rdx
mov rdx, qword [0x1400121c8]
mov eax, dword [rbp + 0x20]
cdqe
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov ebx, eax
cmp ebx, 1
je 0x140004566
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
mov edx, eax
lea rax, str.udptest_first_write_failed___errno__d
mov rcx, rax
call fcn.140003252
mov eax, dword [0x140012218]
test eax, eax
je 0x140004583
mov eax, dword [0x140012218]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__sleep]
call rax
jmp 0x1400045f9
mov word [0x140012214], 0
mov dword [0x140012218], 5
mov rax, qword [rbp + 0x28]
mov r9d, 0
mov r8d, 0
mov edx, 0x7a69
mov rcx, rax
call fcn.140003c72
mov ebx, eax
test ebx, ebx
jle 0x1400045cf
mov eax, dword [rbp + 0x20]
cdqe
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_shutdown]
call rax
movsxd rax, ebx
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov dword [0x140012218], 0
movzx eax, word [0x140012214]
add eax, 1
mov word [0x140012214], ax
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov dword [rax], 0
mov rdx, qword [0x1400121c8]
mov eax, dword [rbp + 0x20]
cdqe
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov ebx, eax
cmp ebx, 1
jne 0x140004638
mov eax, dword [rbp + 0x20]
jmp 0x140004664
mov eax, dword [rbp + 0x20]
cdqe
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_shutdown]
call rax
mov eax, dword [rbp + 0x20]
cdqe
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov eax, 0xffffffff
add rsp, 0x28
pop rbx
pop rbp
ret

Function at 0x14000486c
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x30], rcx
mov dword [rbp + 0x38], edx
mov edi, 0
mov rbx, qword [rbp + 0x30]
mov esi, dword [rbp + 0x38]
jmp 0x140004921
movzx eax, byte [rbx]
cmp al, 0xff
jne 0x140004916
mov byte [0x140012232], 0xff
add rbx, 1
sub esi, 1
movzx eax, byte [rbx]
cmp al, 0xfb
je 0x1400048b4
movzx eax, byte [rbx]
cmp al, 0xfc
jne 0x1400048b9
mov edi, 0xfffffffe
movzx eax, byte [rbx]
cmp al, 0xfd
je 0x1400048c7
movzx eax, byte [rbx]
cmp al, 0xfe
jne 0x1400048cc
mov edi, 0xfffffffc
test dil, dil
je 0x140004919
mov byte [0x140012233], dil
add rbx, 1
sub esi, 1
movzx eax, byte [rbx]
mov byte [0x140012234], al
mov eax, dword [0x14000d010]
cdqe
mov r9d, 0
mov r8d, 3
lea rdx, [0x140012232]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov edi, 0
jmp 0x14000491a
nop
jmp 0x14000491a
nop
add rbx, 1
sub esi, 1
test esi, esi
jg 0x140004891
nop
nop
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret