joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003f4fe
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x140044260
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x1400e80ab]
call fcn.14003ff62
nop
mov dword [rbp + 4], 0
lea rax, [rbp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov byte [rbp + 0x48], 0
mov byte [rbp + 0x49], 0
mov byte [rbp + 0x4a], 0
mov byte [rbp + 0x4b], 0x33
mov byte [rbp + 0x4c], 0xfc
mov byte [rbp + 0x4d], 0x53
mov byte [rbp + 0x4e], 0x4d
mov byte [rbp + 0x4f], 0x42
mov byte [rbp + 0x50], 0xff
mov byte [rbp + 0x51], 0xff
mov byte [rbp + 0x52], 0xff
mov byte [rbp + 0x53], 0xff
mov byte [rbp + 0x54], 2
mov byte [rbp + 0x55], 0
mov byte [rbp + 0x56], 0
mov byte [rbp + 0x57], 0
mov byte [rbp + 0x58], reloc.WS2_32.dll_recv
mov byte [rbp + 0x59], 0
mov byte [rbp + 0x5a], 0
mov byte [rbp + 0x5b], 0
mov eax, dword [rbp + 0x180]
add rax, 0x24
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call fcn.14003ebf3
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0x78], 0
jne 0x140044363
lea rcx, str.Couldnt_allocate_memory_with_malloc___n
call fcn.14003e685
nop
xor edx, edx
mov rcx, qword [rbp + 0x170]
call fcn.14003e333
jmp 0x14004440b
mov r8d, socket
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x78]
call fcn.14003e711
nop
mov rax, qword [rbp + 0x78]
movabs rcx, 0x1ff2ffffbc
mov qword [rax + 0x14], rcx
mov rax, qword [rbp + 0x78]
movabs rcx, 0x1ff2ffffbc
mov qword [rax + 0x1c], rcx
mov eax, dword [rbp + 0x180]
mov rcx, qword [rbp + 0x78]
add rcx, 0x24
mov r8d, eax
mov rdx, qword [rbp + 0x178]
call fcn.14003e711
nop
mov eax, dword [rbp + 0x180]
add rax, 0x24
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
je 0x1400443fe
xor r9d, r9d
mov r8d, 8
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.WS2_32.dll_recv]
nop
mov rcx, qword [rbp + 0x78]
call fcn.14003e135
nop
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400c3230]
call fcn.14003f71f
mov rax, rdi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.14003e70c
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret

Function at 0x14003f51c
Capabilities:
Terminate process

Disassembly:
jmp 0x140092980
sub rsp, 0x28
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14009299a
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.14003fc0b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14003fcf6
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14005506c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400c5db8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400c5db0]
call fcn.140054ae4
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1400550ac
call qword [0x1400e9020]
jmp 0x1400550b2
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14003fd87
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400afdc0
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.14003e216
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400afe4a
cmp byte [rbp - 0x21], r15b
je 0x1400afe45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400afe80
call fcn.14004016a
test eax, eax
jne 0x1400afe6c
cmp byte [rbp - 0x21], r15b
je 0x1400afe64
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400afe80
cmp byte [rbp - 0x21], r15b
je 0x1400afe7d
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.14004034a
test eax, eax
jne 0x1400aff20
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003e216
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400afebf
cmp byte [rbp - 0x21], r15b
je 0x1400afef4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400afef4
call fcn.14004016a
test eax, eax
jne 0x1400afee0
cmp byte [rbp - 0x21], r15b
je 0x1400afed9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400afef4
cmp byte [rbp - 0x21], r15b
je 0x1400afef1
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.14004034a
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400aff20
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400aff23
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400aff31
mov rcx, rdi
call fcn.14003d16d
cmp byte [rbp + 0x3f], r15b
je 0x1400aff40
mov rcx, qword [rbp + 0x27]
call fcn.14003d16d
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 0x14003fe86
Capabilities:
Parse pe header

Disassembly:
jmp 0x14008b560
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 0x14008b32b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008b32b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008b32b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008b32b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008b32b
cmp dword [rcx + 0x84], 0xe
jbe 0x14008b32b
cmp dword [rcx + 0xf8], 0
je 0x14008b32b
mov ecx, ebx
call fcn.14008b4b0
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.14008b024
nop
cmp dword [rbp + 0x20], 0
jne 0x14008b38c
call fcn.14003d6db
cmp eax, 1
jne 0x14008b37c
xor dl, dl
jmp 0x14008b386
call fcn.14003e49b
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14008b397
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14008b3d8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14008b2bc
Function at 0x1400ae3f4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400ae40a
mov al, 1
jmp 0x1400ae476
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400ae41b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400ae474
mov ecx, dword [rcx + 0x18]
nop
call fcn.140040115
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400ae474
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400ae474
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400ae474
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400ae476
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov edx, 1
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1400010d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_Allocate_memory___u__n
call fcn.140001010
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400011b0
add rsp, 0x40
pop rbx
ret
movzx eax, byte [0x140021a70]
lea r9, [rsp + 0x30]
dec al
mov edx, 1
mov byte [0x140021a70], al
mov r8d, 0x20
mov rcx, rbx
mov byte [rbx], al
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000112c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_Change_memory_protection___u__n
call fcn.140001010
mov eax, 0xfffffffe
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400011b0
add rsp, 0x40
pop rbx
ret
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140001178
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_create_the_Thread___u__n
call fcn.140001010
mov eax, 0xfffffffd
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400011b0
add rsp, 0x40
pop rbx
ret
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400011b0
add rsp, 0x40
pop rbx
ret

Function at 0x140001b94
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bde
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bde
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bde
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bde
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bde
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001be0
xor al, al
add rsp, 0x28
ret
Function at 0x1400074cc
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 0x14000753b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000753b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000753b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000753b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000753b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000753b
cmp dword [rcx + 0xf8], 0
je 0x14000753b
mov ecx, ebx
call fcn.1400075ec
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.1400073c8
nop
cmp dword [rbp + 0x20], 0
je 0x140007589
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007594
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400074cc

Function at 0x1400076d0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400074cc
Function at 0x14000ca18
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 0x14000ca48
xor eax, eax
jmp 0x14000cb0b
mov rbp, rbx
cmp word [rax], si
je 0x14000ca6d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000ca54
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000ca50
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.14000c938
movsxd r14, eax
test eax, eax
jne 0x14000caab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000ca41
mov rcx, r14
call fcn.1400091cc
mov rdi, rax
test rax, rax
jne 0x14000cac4
xor ecx, ecx
call fcn.140008554
jmp 0x14000caa0
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.14000c938
test eax, eax
jne 0x14000caf5
mov rcx, rdi
call fcn.140008554
jmp 0x14000caff
xor ecx, ecx
call fcn.140008554
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 0x140010e2c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140010e42
mov al, 1
jmp 0x140010ea2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140010e53
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140010ea0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000d338
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140010ea0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140010ea0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140010ea0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140010ea2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140011ee0
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.14000ba08
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140011f6a
cmp byte [rbp - 0x21], r15b
je 0x140011f65
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140011fa0
call fcn.1400087a4
test eax, eax
jne 0x140011f8c
cmp byte [rbp - 0x21], r15b
je 0x140011f84
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140011fa0
cmp byte [rbp - 0x21], r15b
je 0x140011f9d
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.14000afe8
test eax, eax
jne 0x140012040
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000ba08
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140011fdf
cmp byte [rbp - 0x21], r15b
je 0x140012014
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012014
call fcn.1400087a4
test eax, eax
jne 0x140012000
cmp byte [rbp - 0x21], r15b
je 0x140011ff9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012014
cmp byte [rbp - 0x21], r15b
je 0x140012011
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.14000afe8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012040
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012043
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140012051
mov rcx, rdi
call fcn.140008554
cmp byte [rbp + 0x3f], r15b
je 0x140012060
mov rcx, qword [rbp + 0x27]
call fcn.140008554
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 0x1400145d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400145f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400145f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800030e8
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp dword [rcx + 0xc], ebx
jbe 0x180003134
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18000312d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180003101
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1802b5550]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]

Function at 0x180003158
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0x20
mov eax, ecx
imul rdi, rax, 0x38
add rdi, qword [0x1802b5580]
mov rdx, qword [rdi]
mov cl, byte [rdi + 0x20]
mov rsi, rdx
lea rbx, [rdx - 5]
and cl, 1
je 0x180003191
mov rsi, rbx
movzx eax, cl
lea r9, [rsp + 0x38]
test cl, cl
mov r8d, 0x40
cmove rbx, rdx
lea rbp, [rax*2 + 5]
mov rcx, rbx
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800031c4
mov eax, 0xa
jmp 0x180003211
mov byte [rbx], 0xe9
mov eax, dword [rdi + 8]
sub eax, esi
sub eax, 5
mov dword [rbx + 1], eax
test byte [rdi + 0x20], 1
je 0x1800031e0
mov rax, qword [rdi]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rdi + 0x20], 6
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1800035ec
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x180003603
cmp r8b, 0x90
je 0x180003603
cmp r8b, 0xcc
jne 0x180003625
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x180003621
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x180003625
add edx, r10d
cmp edx, r9d
jb 0x180003611
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x18000398c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x1800039d6
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x1802b5570]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x180003a0f
cmp rbx, r14
jb 0x180003a0c
cmp rbx, r12
jae 0x180003a0c
cmp qword [rbx + 8], rsi
jne 0x180003b71
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800039f8
mov r15, rdi
cmp rdi, r14
jb 0x180003b2b
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x180003a5b
mov r8d, Ordinal_50
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180003a95
cmp dword [rbp - 0x10], 0x10000
je 0x180003a65
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x180003a95
sub r15, r13
cmp r15, r14
jae 0x180003a31
jmp 0x180003a95
test r15, r15
je 0x180003a95
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180003b36
cmp r15, r14
jae 0x180003a20
test rbx, rbx
jmp 0x180003b29
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x180003b71
mov r8d, Ordinal_50
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180003b71
cmp dword [rbp - 0x10], 0x10000
je 0x180003b04
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jbe 0x180003ac1
jmp 0x180003b71
test rdi, rdi
je 0x180003b71
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180003b36
cmp rdi, r12
jbe 0x180003a9d
jmp 0x180003b71
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x180003b42
mov rax, qword [0x1802b5570]
mov qword [rbx], rax
mov qword [0x1802b5570], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret