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

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x180017fe5
test dword [0x18003f038], 0x80000000
je 0x180017fdc
mov ecx, dword [0x1800e2468]
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x180017fe1
call fcn.180010090
mov qword [rbx + 0x18], rax
mov rcx, rbx
call fcn.180025e40
test al, al
je 0x180018038
mov edx, dword [rbx + 8]
mov rcx, qword [rbx + 0x18]
shl edx, 4
sar edx, 4
test dword [rbx + 8], 0x8000000
jne 0x180018013
call fcn.180015dc0
mov edx, 3
jmp 0x18001801f
lock inc dword [rcx + 0xc4]
mov edx, 2
mov rcx, rbx
call fcn.180025dd0
mov rcx, qword [rbx + 0x18]
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp fcn.180015f80
add rsp, 0x20
pop rbx
ret

Function at 0x180019530
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x18003f018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
mov ecx, dword [rcx + 0x4c]
lea eax, [rcx + 1]
mov dword [rdi + 0x4c], eax
test ecx, ecx
jne 0x18001962e
cmp qword [rdi + 0x28], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x68], rbx
mov rbx, qword [rdi + 0x30]
jne 0x1800195fe
mov r8d, dword [rdi + 0x44]
test rbx, rbx
mov edx, dword [rdi + 0x40]
sete r9b
call fcn.18001bbb0
test rbx, rbx
jne 0x180019606
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdx, rax
lea rcx, [rsp + 0x30]
mov rbx, rax
call fcn.1800087e0
movzx ecx, word [rax + 8]
mov word [rdi + 0x18], cx
mov rcx, qword [rax]
mov qword [rdi + 0x10], rcx
mov rcx, qword [rdi + 0x20]
mov edx, dword [rdi + 0x40]
shl rdx, 6
mov rcx, qword [rcx + 0x20]
mov r8, qword [rdx + rcx]
movzx eax, word [rdx + rcx + 0x10]
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov rdx, rbx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x28], ax
mov qword [rsp + 0x20], r8
call fcn.180008e20
mov rcx, qword [rdi + 0x20]
mov rdx, rdi
call fcn.18001bb50
mov rcx, qword [rdi + 0x20]
mov rdx, rdi
call fcn.18001ad10
jmp 0x180019606
mov rdx, rdi
call fcn.18001adb0
mov rax, qword [rdi + 0x20]
mov rcx, qword [rax + 0x18]
mov ebx, dword [rcx + 0xb0]
mov ecx, ebx
call sub.KERNEL32.dll_TlsGetValue
mov rdx, rdi
mov qword [rdi + 0x38], rax
mov ecx, ebx
call fcn.180007f00
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18002d530
add rsp, 0x50
pop rdi
ret
Function at 0x18001bc70
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov rbp, rcx
mov rax, qword [rcx + 0x18]
mov ecx, dword [rax + 0xb0]
call sub.KERNEL32.dll_TlsGetValue
mov rbx, rax
test rax, rax
je 0x18001bd6f
xor edi, edi
and eax, 3
jne 0x18001bcbd
mov rcx, rbx
call fcn.180019530
jmp 0x18001bd2a
cmp rax, 1
jne 0x18001bcec
and rbx, 0xfffffffffffffffe
mov rbx, qword [rbx + 0x20]
add rbx, 0x10
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x18001bce2
cmp byte [rax + 0x70], dil
jne 0x18001bd6f
mov rcx, rbx
call fcn.180019530
jmp 0x18001bd2a
and rbx, 0xfffffffffffffffd
lea rsi, [rbx + 8]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
mov rbx, qword [rbx + 0x40]
add rbx, 0x20
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x18001bd19
cmp byte [rax + 0x70], dil
je 0x18001bd19
mov rbx, rdi
jmp 0x18001bd21
mov rcx, rbx
call fcn.180019530
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x28]
test rbx, rbx
je 0x18001bd6f
cmp qword [rbx + 0x20], rbp
je 0x18001bd67
mov ecx, 0x60
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18001bd5a
mov r8, rbx
mov rdx, rbp
mov rcx, rax
call fcn.1800193f0
mov rdi, rax
mov rcx, rdi
call fcn.180019530
mov rax, rdi
jmp 0x18001bd71
mov rdi, rbx
mov rax, rbx
jmp 0x18001bd71
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180023c50
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rcx + 0x1a8], rdx
mov rbp, rdx
mov qword [rcx + 0x10], r8
lea rdx, [rsp + 0x20]
mov eax, dword [rcx + 0x18]
mov rdi, rcx
xor eax, dword [r9]
mov r8, r9
and eax, 0xfffffff
mov r14, r9
xor dword [rcx + 0x18], eax
mov eax, dword [rcx + 0x18]
xor eax, dword [r9]
and eax, 0xfffffff
xor eax, dword [r9]
mov dword [rcx + 0x18], eax
mov rax, qword [r9 + 8]
mov qword [rcx + 0x20], rax
mov eax, dword [r9 + 4]
mov dword [rcx + 0x1c], eax
mov rax, qword [r9 + 0x10]
mov qword [rcx + 0x28], rax
mov dword [rcx + 0x1c0], 0
mov dword [rcx + 0x1d8], 1
mov rcx, qword [rbp + 8]
call fcn.180010ae0
mov rcx, qword [rdi + 0x38]
mov rbx, rax
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov ecx, dword [rbx]
mov dword [rdi + 0x30], ecx
mov rcx, qword [rbx + 8]
mov qword [rdi + 0x38], rcx
mov dword [rbx], 0
mov qword [rbx + 8], 0
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, dword [r14]
and eax, 0xfffffff
cmp eax, 3
jne 0x180023d9c
mov r10d, dword [r14 + 8]
movabs rdx, 0x100000001b3
mov r9, qword [rbp + 8]
movabs rax, 0xcbf29ce484222325
movzx r8d, r10b
xor r8, rax
mov eax, r10d
shr eax, 8
movzx ecx, al
mov eax, r10d
shr eax, 0x10
movzx eax, al
imul r8, rdx
xor r8, rcx
mov ecx, r10d
imul r8, rdx
shr rcx, 0x18
xor rax, r8
imul rax, rdx
xor rax, rcx
movsxd rcx, dword [r9 + 0x248]
imul rax, rdx
xor edx, edx
div rcx
mov rax, qword [r9 + 0x250]
movsxd rcx, edx
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x180023d95
cmp dword [rax + 8], r10d
je 0x180023ddc
mov rax, qword [rax]
test rax, rax
jne 0x180023d87
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x40], eax
lea rcx, [rdi + 0x68]
lea rdx, [rdi + 0x30]
call fcn.1800232c0
mov rax, qword [rdi + 0x88]
test rax, rax
je 0x180023dc9
mov rcx, qword [rdi + 0x88]
lea rdx, [rdi + 0x30]
add rcx, 8
call fcn.1800232c0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov eax, dword [rax + 0xc]
jmp 0x180023d99

Function at 0x180024540
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, r8
mov rdi, rdx
mov r8b, 1
lea rdx, [rcx + 0x38]
call qword [rax + 0x28]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180024580
Function at 0x180024580
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rsi, r9
mov ecx, dword [0x1800e2468]
mov rbp, r8
mov r14, rdx
call sub.KERNEL32.dll_TlsGetValue
mov rbx, rax
test rax, rax
je 0x180013200
mov rcx, rax
call fcn.180016870
cmp rax, rdi
jne 0x180013200
mov rcx, rbx
call fcn.180016820
jmp 0x180013207
mov rax, qword [rdi + 0x130]
mov r9, rsi
mov r8, rbp
mov rdx, r14
mov rcx, rax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp 0x180024500
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, r8
mov rdi, rdx
mov r8b, 1
mov rdx, r9
call qword [rax + 0x28]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180024580
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov rdi, rcx
test rdx, rdx
je 0x1800246f0
mov rax, qword [rcx + 0x1a8]
mov rsi, qword [rax + 8]
mov rcx, rsi
call fcn.180010fc0
mov rbp, rax
mov rcx, qword [rdi + 0x1a8]
test byte [rcx + 0x50], 4
jne 0x1800245ce
lock inc dword [rcx + 0x28]
lea rcx, [rdi + 0x58]
call fcn.180008300
lea rdx, [rbp + 0x20]
xor r14d, r14d
mov qword [rdx], r14
mov rax, qword [rdi + 0x50]
mov qword [rax], rbp
mov qword [rdi + 0x50], rdx
lea rcx, [rdi + 0x58]
call fcn.180008440
nop
call fcn.180010430
mov rbx, rax
test rax, rax
je 0x18002462d
mov rcx, rax
call fcn.180016870
cmp rax, rsi
jne 0x18002462d
cmp byte [rbx + 0x88], r14b
mov rax, qword [rbx + 0xf8]
je 0x180024625
inc dword [rax + 0x20]
jmp 0x180024686
inc dword [rax + 0xa0]
jmp 0x180024686
mov ecx, dword [rsi + 0x20]
call sub.KERNEL32.dll_TlsGetValue
mov rbx, rax
test rax, rax
jne 0x180024683
lea ecx, [rax + 0x40]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x180024666
mov qword [rax + 0x20], r14
mov qword [rax + 0x28], r14
mov dword [rax + 0x30], 1
jmp 0x180024669
mov rbx, r14
lea rcx, [rsi + 0x150]
mov rdx, rbx
call fcn.180022c70
mov rdx, rbx
mov ecx, dword [rsi + 0x20]
call fcn.180007f00
inc dword [rbx + 0x20]
test dword [rdi + 0x18], 0xfffffff
je 0x180024698
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + VariantCopy]
mov eax, dword [rsi + 0x2a8]
mov ecx, dword [rsi + 0x2a4]
sub ecx, eax
test ecx, ecx
jle 0x1800246db
mov eax, dword [rdi + 0x18]
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0x30], rax
mov eax, dword [rdi + 0x1c]
mov dword [rsp + 0x2c], eax
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsi]
lea r8, [rsp + 0x28]
mov rdx, rdi
mov rcx, rsi
call qword [rax + 0x70]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
lea rdx, str.proc
lea rcx, [rsp + 0x40]
call fcn.180004c40
lea rdx, [0x18003c888]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x180025d10
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1800e2590], eax
cmp eax, 0xffffffff
je 0x180025d2a
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x180025d3c
movzx eax, ax
or eax, 0x80070000
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.1800086e0
lea rdx, [0x18003caf8]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x180026420
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800264f0]
mov r9, qword [r9 + 8]
jmp fcn.180011ca0

Function at 0x180026450
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
add rcx, 0xe0
call fcn.180008300
call fcn.180010e80
mov dword [rdi + 0xa0], eax
lea rcx, [rdi + 0xe0]
xor eax, eax
mov dword [rdi], eax
mov dword [rdi + 4], eax
mov dword [rdi + 0xb0], eax
mov dword [rdi + 0xb4], eax
mov dword [rdi + 0xcc], eax
mov byte [rdi + 0xc8], al
mov dword [rdi + 0xbc], eax
mov dword [rdi + 0x90], eax
mov qword [rdi + 0xa8], rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.180008440

Function at 0x1800264c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x180026500]
mov r9, qword [r9 + 8]
jmp fcn.180011ca0

Function at 0x180027420
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov rdx, qword [rax + 0x18]
mov ecx, dword [rdx + 0xb0]
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x180027468
movzx edx, al
and dl, 3
cmp dl, 1
jne 0x180027468
and rax, 0xfffffffffffffffe
je 0x180027468
mov rcx, qword [rbx + 0x80]
cmp rax, rcx
jne 0x180027468
mov qword [rax + 0x20], 0
jmp 0x180027470
mov rcx, rbx
call fcn.1800275c0
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [rax + 0x40]

Function at 0x180027d10
Capabilities:
Hash data using fnv

Disassembly:
mov eax, dword [rdx]
and eax, 0xfffffff
je 0x180027dd4
sub eax, 1
je 0x180027dc6
sub eax, 1
je 0x180027dbc
sub eax, 1
je 0x180027d37
xor al, al
ret
mov r10d, dword [rdx + 8]
movabs rax, 0xcbf29ce484222325
mov r9, qword [rcx + 0x10]
movabs rdx, 0x100000001b3
movzx r8d, r10b
xor r8, rax
mov eax, r10d
shr eax, 8
movzx ecx, al
mov eax, r10d
shr eax, 0x10
movzx eax, al
imul r8, rdx
xor r8, rcx
mov ecx, r10d
imul r8, rdx
shr rcx, 0x18
xor rax, r8
imul rax, rdx
xor rax, rcx
movsxd rcx, dword [r9 + 0x20]
imul rax, rdx
xor edx, edx
div rcx
mov rax, qword [r9 + 0x28]
movsxd rcx, edx
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x180027db3
cmp dword [rax + 8], r10d
je 0x180027db5
mov rax, qword [rax]
test rax, rax
jne 0x180027da5
xor eax, eax
test rax, rax
setne al
ret
mov eax, dword [rdx + 8]
cmp dword [rcx + 8], eax
sete al
ret
mov eax, dword [rdx + 8]
mov rcx, qword [rcx + 0x10]
cmp dword [rcx + 0x40], eax
sete al
ret
mov al, 1
ret
Function at 0x18002b430
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp dword [rcx], 0xe06d7363
mov rdi, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
jne 0x18002b4ec
mov rax, qword [r9 + 0x38]
mov qword [rsp + 0x48], rbx
mov ebx, dword [rax]
add rbx, qword [r9 + 8]
mov eax, dword [rbx]
and eax, 0x1fffffff
sub eax, 0x19930521
cmp eax, 1
ja 0x18002b4e7
mov eax, 1
xchg dword [0x1800e2598], eax
cmp eax, 1
jne 0x18002b4a0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
xchg dword [0x1800e2598], eax
cmp eax, 1
je 0x18002b485
mov edx, 4
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8d, [rdx + 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18002b4df
and dword [rbx], 0xf9930520
lea r9, [rsp + 0x40]
or dword [rbx], 0x19930520
mov edx, 4
mov r8d, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
xchg dword [0x1800e2598], eax
mov rbx, qword [rsp + 0x48]
mov r9, rdi
mov r8, rbp
mov rdx, r14
mov rcx, rsi
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp qword [sym.imp.msvcrt.dll___CxxFrameHandler]
invalid
add ch, dh
Function at 0x18002b660
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x18003f018]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x18002b69c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.1800065f0
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x18002b758
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x18002b7be
test ebx, ebx
jne 0x18002b7be
lea ecx, [rax + 2]
call fcn.1800065f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.18002d530
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x18002bae0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x430
mov rax, qword [0x18003f018]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rbp, rdx
mov rdi, rcx
cmp rcx, rdx
je 0x18002bc21
lea r14, [0x180000000]
mov r15d, 0x5c
xor r12d, r12d
nop word [rax + rax]
mov eax, dword [rdi]
lea rsi, [r14 + 0xe25c0]
mov rbx, qword [rsi + rax*8]
lea rsi, [rsi + rax*8]
test rbx, rbx
je 0x18002bb55
cmp rbx, 0xffffffffffffffff
jne 0x18002bc63
jmp 0x18002bc14
cmp byte [0x1800e25b0], r12b
mov rbx, qword [r14 + rax*8 + 0x340e0]
je 0x18002bb74
mov r8d, 0x800
mov rcx, rbx
jmp 0x18002bbfa
test rbx, rbx
je 0x18002bc0a
cmp word [rbx], r12w
je 0x18002bc0a
mov edx, 0x200
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp ecx, 0x1fe
ja 0x18002bc0a
mov ecx, eax
inc eax
mov word [rsp + rcx*2 + 0x20], r15w
cmp eax, 0x200
jae 0x18002bc0a
movzx edx, word [rbx]
test dx, dx
je 0x18002bbdb
nop dword [rax + rax]
mov word [rsp + rax*2 + 0x20], dx
inc eax
cmp eax, 0x200
jae 0x18002bc0a
movzx edx, word [rbx + 2]
add rbx, 2
test dx, dx
jne 0x18002bbc0
mov ecx, eax
add rcx, rcx
cmp rcx, 0x400
jae 0x18002bc68
mov word [rsp + rcx + 0x20], r12w
mov r8d, 8
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x18002bc4f
mov rax, 0xffffffffffffffff
xchg qword [rsi], rax
add rdi, 4
cmp rdi, rbp
jne 0x18002bb30
xor eax, eax
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.18002d530
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rcx, rbx
xchg qword [rsi], rcx
test rcx, rcx
je 0x18002bc63
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, rbx
jmp 0x18002bc23
call fcn.18002e6b0
int3
Function at 0x140002952
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x140002971
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001a4e8

Function at 0x1400055bb
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov qword [rsp + 0x28], rdx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.14001a4e8

Function at 0x1400055fa
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x1400d30f0], 0
jne 0x140005612
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.1400055bb
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.140005534
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x1400d30f0]
test rbx, rbx
je 0x140005643
test byte [rbx + 7], 0x40
jne 0x140005643
mov rcx, rbx
call fcn.1400039df
lea rcx, [0x140020320]
call fcn.140015130
cmp byte [rax], 0
je 0x14000567b
lea rcx, [0x140020220]
mov byte [rax], 0
call fcn.140015130
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140003f44
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x140005cf2
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r12, [0x1400d30c0]
xor ebx, ebx
lea r14, [0x140020320]
lea r13, [rsp + 0x20]
mov rsi, rcx
mov rdi, rdx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rdi
mov ecx, 1
jl 0x140005d78
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14002139b]
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.14001a4e8
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rbp
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movaps xmmword [rsp + 0x20], xmm0
call fcn.140005bcb
mov rcx, r14
call fcn.140015130
cmp byte [rax], 0
jne 0x140005daa
inc rbx
jmp 0x140005d2b
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140011098
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400110d6
cmp word [rcx], 0x5a4d
jne 0x1400110d6
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x1400110d6
call fcn.1400075c9
mov rcx, qword [0x1400cde90]
mov rbx, rax
call fcn.140015130
cmp byte [rax], 0
jne 0x1400110d6
cmp dword [rbx], 0x4550
je 0x1400110d8
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400142a0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14001a1d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140014310
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400d3b04]
test esi, esi
mov rbx, rcx
jle 0x140014440
mov rax, qword [0x1400d3b08]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001435b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400143e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140014340
mov rcx, rbx
call fcn.140014d80
test rax, rax
mov rdi, rax
je 0x140014462
mov rax, qword [0x1400d3b08]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014ec0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400d3b08]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140014447
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400143de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400143f0
add dword [0x1400d3b04], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400d3b08]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400143de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400142a0
nop dword [rax]
xor esi, esi
jmp 0x140014368
mov rax, qword [0x1400d3b08]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1400142a0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1400142a0
nop
nop word cs:[rax + rax]
nop dword [rax]