joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022710
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140021360
mov ecx, dword [0x140026438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400226c8
test byte [rbx + 0x40], 0xc
jne 0x14002267f
mov eax, dword [0x14002fd68]
test eax, eax
jne 0x140022690
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400205c0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400226b3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400226b3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400226dc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400208b0
call fcn.140021410
mov rbx, rax
test rax, rax
jne 0x14002266f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400226fa
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400208b0
call fcn.140022570
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140022780
call fcn.140023830
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400227b8
call fcn.140021360
mov ecx, dword [0x140026438]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140022810
test esi, esi
je 0x140022796
call fcn.140022650
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400227f0
mov edx, edi
call fcn.1400238e0
call fcn.140022650
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140021360
mov ecx, dword [0x140026438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140022800
call fcn.140022650
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140022650
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140021360
mov ecx, dword [0x140026438]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140022755
call fcn.140021410
mov rbx, rax
jmp 0x140022755
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002276e
call fcn.140021410
jmp 0x140022796
call fcn.140021410
mov rbx, rax
jmp 0x140022751

Function at 0x140022820
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140021360
mov ecx, dword [0x140026438]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140022890
test esi, esi
je 0x140022870
call fcn.140022650
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400228a0
mov edx, esi
call fcn.1400238e0
call fcn.140022650
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140022650
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140022650
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140021410
mov rbx, rax
jmp 0x140022841
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002285a
Function at 0x1400e7a60
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10088
call fcn.140114560
sub rsp, rax
mov rax, qword [0x140152038]
xor rax, rsp
mov qword [rsp + 0x10070], rax
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.14010ee70
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1400e7add
lea rcx, [rsp + 0x70]
call fcn.140126690
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140114530
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140114530
add rsp, 0x10088
ret

Function at 0x1400e7bc0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140152038]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [0x140134818]
call fcn.1400e7a60
xor edi, edi
mov qword [0x140158368], rax
lea rdx, [0x140134818]
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
lea r8d, [rdi + 0x28]
call fcn.14010ee70
lea rdx, [0x140134820]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, str.PYTHONHOME
call fcn.1400e7a60
mov cl, 1
mov qword [0x140158370], rax
call fcn.140110110
lea r8d, [rdi + 0x28]
mov word [rsp + 0x20], di
lea rdx, str.PYTHONHOME
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.14010ee70
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov cl, 1
call fcn.140110110
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov rax, qword [sym.imp.python310.dll__Py_path_config]
mov dword [rax + 0x30], 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140114530
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x1400e8160
Capabilities:
Set environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140152038]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rsi, rdx
mov rbp, rcx
call fcn.1400f9cd0
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.14010ee70
lea rcx, [rsp + 0x20]
test r14, r14
je 0x1400e8223
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, r14
call sub.python310.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
je 0x1400e8211
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x1400e8243
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1400e8243
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x1400e8243
mov rcx, rbp
call fcn.140007720
sub qword [rdi], 1
jne 0x1400e8253
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x1400e8263
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140114530
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14010ef20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x14010efe4
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x14010ef40
not eax
ret
Function at 0x140114fa8
Capabilities:
Parse pe header

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

Function at 0x140119f88
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 0x140119df3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140119df3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140119df3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140119df3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140119df3
cmp dword [rcx + 0x84], 0xe
jbe 0x140119df3
cmp dword [rcx + 0xf8], 0
je 0x140119df3
mov ecx, ebx
call fcn.140119ea4
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.140119c80
nop
cmp dword [rbp + 0x20], 0
je 0x140119e41
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140119e4c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140119d84
Function at 0x14012b810
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 0x14012b897
mov rsi, rbx
cmp word [rax], bp
je 0x14012b856
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14012b840
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14012b83c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140126e7c
mov rdi, rax
test rax, rax
je 0x14012b884
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401152d0
mov rbp, rdi
xor ecx, ecx
call fcn.1401279c4
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 0x14012efb0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14012efc6
mov al, 1
jmp 0x14012f026
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14012efd7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14012f024
mov ecx, dword [rcx + 0x18]
nop
call fcn.14012bb58
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14012f024
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14012f024
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14012f024
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14012f026
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x6db77ae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6db985e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6db77c68
mov rax, qword [0x6db985e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6db77b2c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6db77bb5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6db77b10
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6db77c9d
mov rax, qword [0x6db985e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6db985e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6db77c80
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6db77bae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6db77c10
add dword [0x6db985e4], 1
cmp edi, 8
jae 0x6db77be3
test dil, 4
jne 0x6db77c54
test edi, edi
je 0x6db77bd8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6db77c6f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6db77bd8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6db77bfc
jmp 0x6db77bd8
add rsi, qword [0x6db985e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6db77bae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6db77bd8
xor esi, esi
jmp 0x6db77b37
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6db77bd8
mov rax, qword [0x6db985e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6db783f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6db988c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6db988a0]
test rbx, rbx
je 0x6db78444
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 0x6db7843b
test rsi, rsi
je 0x6db7843b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6db78420
lea rcx, [0x6db988c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6db78680
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6db78690
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6db786a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6db786e1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6db786d8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6db786e3
add rax, 0x28
cmp rax, r9
jne 0x6db786c4
xor eax, eax
ret

Function at 0x6db78780
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6db951f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6db787ed
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6db787ed
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6db787ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6db787e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6db787ef
add rax, 0x28
cmp rax, r9
jne 0x6db787d0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6db788f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6db951f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6db78910
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6db78908
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6db7896d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6db78964
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6db78974
add rax, 0x28
cmp rax, r9
jne 0x6db78950
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6db78990
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6db951f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6db789fe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6db789fe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6db789fe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6db789fe
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6db789f5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6db78a05
add rcx, 0x28
cmp rcx, rax
jne 0x6db789e0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6db78a18
jmp 0x6db789fe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6db78a26
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6db789fe
test r9d, r9d
jg 0x6db78a10
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6db78d60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140007480
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x1400074b0
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x1400074af
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400074b5
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x1400074af
mov eax, 0
jmp 0x1400074af

Function at 0x140007b30
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140007ae0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x1400111a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1409efaf4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140011330
mov rax, qword [0x1409efaf8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x1400111ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140011275
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x1400111d0
mov rcx, rdi
call fcn.140011d00
test rax, rax
mov r12, rax
je 0x140011382
mov rax, qword [0x1409efaf8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140011e40
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1409efaf8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140011365
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001126e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400112e0
add dword [0x1409efaf4], 1
cmp ebx, 8
jae 0x1400112a1
test bl, 4
jne 0x140011340
test ebx, ebx
je 0x140011296
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140011354
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 0x140011296
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 0x1400112ba
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 [0x1409efaf8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
add dword [rbp + 0x52850fc0], eax
invalid
invalid
invalid
call qword [0x1409f12cc]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140011130
xor esi, esi
jmp 0x1400111f7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140011296
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140011296
mov rax, qword [0x1409efaf8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140011130
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140011130
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140011d00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409e9530]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140011d6f
mov rcx, r9
call fcn.140011bd0
test eax, eax
je 0x140011d6f
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 0x140011d6d
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 0x140011d64
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140011d6f
add rdx, 0x28
cmp rdx, r9
jne 0x140011d50
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret