joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400011d0
Capabilities:
Check os version
Execute syscall

Disassembly:
mov rax, qword gs:[0x60]
cmp dword [rax + 0x118], 0xa
je 0x1400011e4
jmp 0x1400011f8
cmp word [rax + 0x120], 0x4a65
je 0x1400011f1
jmp 0x1400011f8
mov eax, 0x26
jmp 0x1400011f9
ret
mov r10, rcx
syscall
ret

Function at 0x1400011ff
Capabilities:
Check os version
Execute syscall

Disassembly:
mov rax, qword gs:[0x60]
cmp dword [rax + 0x118], 0xa
je 0x140001213
jmp 0x140001227
cmp word [rax + 0x120], 0x4a65
je 0x140001220
jmp 0x140001227
mov eax, 0x18
jmp 0x140001228
ret
mov r10, rcx
syscall
ret

Function at 0x14000122e
Capabilities:
Check os version
Execute syscall

Disassembly:
mov rax, qword gs:[0x60]
cmp dword [rax + 0x118], 0xa
je 0x140001242
jmp 0x140001256
cmp word [rax + 0x120], 0x4a65
je 0x14000124f
jmp 0x140001256
mov eax, 0x3a
jmp 0x140001257
ret
mov r10, rcx
syscall
ret

Function at 0x14000125d
Capabilities:
Check os version
Execute syscall

Disassembly:
mov rax, qword gs:[0x60]
cmp dword [rax + 0x118], 0xa
je 0x140001271
jmp 0x140001286
cmp dword [rax + 0x120], 0x4a65
je 0x14000127f
jmp 0x140001286
mov eax, 0xc2
jmp 0x140001287
ret
mov r10, rcx
syscall
ret

Function at 0x14000128d
Capabilities:
Check os version
Execute syscall

Disassembly:
mov rax, qword gs:[0x60]
cmp dword [rax + 0x118], 0xa
je 0x1400012a1
jmp 0x1400012b5
cmp word [rax + 0x120], 0x4a65
je 0x1400012ae
jmp 0x1400012b5
mov eax, 4
jmp 0x1400012b6
ret
mov r10, rcx
syscall
ret

Function at 0x140001bd4
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400186d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011479
Capabilities:
Parse pe header

Disassembly:
jmp 0x140019a20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019a40
xor al, al
jmp 0x140019ac1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140019a53
xor al, al
jmp 0x140019ac1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140019a7d
xor al, al
jmp 0x140019ac1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140019a91
xor al, al
jmp 0x140019ac1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140019aa3
xor al, al
jmp 0x140019ac1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140019abf
xor al, al
jmp 0x140019ac1
mov al, 1
add rsp, 0x38
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400054e0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400054f0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x1400054f0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400054f0]
mov dword [rax], 1
mov rax, qword [0x140005530]
mov rdx, rax
mov rax, qword [0x140005520]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x140009024], 1
mov rax, qword [0x1400054f0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140005510]
mov rdx, rax
mov rax, qword [0x140005500]
mov rcx, rax
call sym._initterm
mov rax, qword [0x1400054f0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400054e0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140005430]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140005430]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400054d0]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x140009004]
lea rdx, [0x140009008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x140005460]
mov rax, qword [rax]
mov rdx, qword [0x140009010]
mov qword [rax], rdx
mov rcx, qword [0x140009010]
mov rdx, qword [0x140009008]
mov eax, dword [0x140009004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x14000901c], eax
mov eax, dword [0x140009020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000901c]
mov ecx, eax
call sym.exit
mov eax, dword [0x140009024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14000901c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005490]
mov dword [rax], 1
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x1400054b0]
mov dword [rax], 1
mov rax, qword [0x140005450]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
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 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001a60
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002732
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x1400027ca
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x1400027ae
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 0x1400027a2
cmp qword [rbp - 0x10], 0
je 0x1400027a2
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 0x140002768
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400027cb
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400028d0
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 0x1400028f8
mov eax, 0
jmp 0x140002946
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 0x140002921
mov eax, 0
jmp 0x140002946
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 0x140002941
mov eax, 0
jmp 0x140002946
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000294c
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 0x1400029ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400029c1
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 0x1400029c1
mov rax, qword [rbp - 8]
jmp 0x1400029df
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 0x140002994
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001010
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x18000103e
xor al, al
jmp 0x18000107c
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x18000104f
xor al, al
jmp 0x18000107c
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180001076
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180001076
mov al, 1
jmp 0x18000107c
xor al, al
jmp 0x18000107c
add rsp, 0x50
pop rbx
ret

Function at 0x1800010e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x180001102
add rbx, 0xffffffffffff0000
add rbx, rax
mov qword [rsp + 0x60], rsi
cmp rbx, rdi
jae 0x1800011c5
mov esi, 0x80010000
nop word [rax + rax]
lea rax, [rbx - 0x50000000]
cmp rax, 0x30000000
ja 0x180001137
mov rbx, rsi
jmp 0x1800011bc
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800011c5
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x1800011a2
cmp rcx, 0x10000
jb 0x1800011a2
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1800011c7
add rbx, 0x10000
jmp 0x1800011bc
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx eax, bx
test rax, rax
je 0x1800011bc
add rbx, 0xffffffffffff0000
add rbx, rax
cmp rbx, rdi
jb 0x180001120
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1800011e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x1800012b6
nop dword [rax]
lea rax, [rbx - 0x50000000]
cmp rax, 0x30000000
ja 0x180001229
mov ebx, 0x4fff0000
jmp 0x1800012ad
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800012b6
cmp dword [rsp + 0x40], 0x10000
jne 0x180001291
cmp qword [rsp + 0x38], 0x10000
jb 0x180001291
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1800012b8
sub rbx, 0x10000
jmp 0x1800012ad
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x180001210
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1800012d0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
cmp rcx, 0x7ff80000
jbe 0x180001304
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0xffffffff80000000
jb 0x180001309
mov rsi, 0xfffffffffff80000
jmp 0x180001310
mov edi, 0x10000
lea rsi, [rcx + 0x7ff80000]
mov rdx, qword [0x1800573d8]
mov rax, qword [0x1800573c8]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x180001337
test rax, rax
je 0x18000134e
mov rdx, rax
mov qword [0x1800573d8], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x18000134e
cmp rcx, rdi
jb 0x18000134e
cmp rcx, rsi
jbe 0x180001488
mov qword [0x1800573d8], rax
mov rdx, rax
test rax, rax
je 0x180001392
mov rcx, rax
test rax, rax
je 0x18000137c
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x18000137c
cmp rax, rdi
jb 0x18000137c
cmp rax, rsi
jbe 0x180001488
mov rdx, qword [rdx + 8]
mov qword [0x1800573d8], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x180001360
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x1800013cf
mov rdx, rbx
lea rcx, [rbx - 0x40000000]
call fcn.1800010e0
mov rdx, rax
test rax, rax
jne 0x180001436
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.1800011e0
mov rdx, rax
test rax, rax
jne 0x180001436
movabs rax, 0xffffffff40000000
cmp rbx, rax
jae 0x18000140c
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.1800011e0
mov rdx, rax
test rax, rax
jne 0x180001436
mov rdx, rsi
lea rcx, [rbx + 0x40000000]
call fcn.1800010e0
mov rdx, rax
test rax, rax
jne 0x180001436
mov rdx, rbx
mov rcx, rdi
call fcn.1800011e0
mov rdx, rax
test rax, rax
jne 0x180001436
mov rdx, rsi
mov rcx, rbx
call fcn.1800010e0
mov rdx, rax
test rax, rax
je 0x1800014bf
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x1800573d8], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x1800573c8]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x1800573c8], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x180001470
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x1800014bf
cmp rax, rsi
ja 0x1800014bf
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x180051d10]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x1800014c1
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180001550
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x1800573c4], 0
jne 0x1800015ce
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x1800573c4], ecx
jne 0x1800015ce
xor eax, eax
mov qword [rsp + 0x20], rbx
mov rbx, qword [0x1800573c8]
mov qword [0x1800573d0], rax
mov qword [0x1800573e0], rax
mov dword [0x1800573c0], eax
mov qword [0x1800573e8], rax
test rbx, rbx
je 0x1800015c2
nop
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1800015a0
mov rbx, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x180001ba0
Capabilities:
Suspend thread

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x1800573c0]
mov rbx, rcx
test eax, eax
jne 0x180001c30
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rbx, rax
jne 0x180001bc6
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rdi
call fcn.180003320
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180001c14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.180003300
mov rdi, qword [rsp + 0x30]
mov eax, ebx
mov dword [0x1800573c0], ebx
mov qword [0x1800573e8], 0
add rsp, 0x20
pop rbx
ret
mov rax, qword [0x1800573e0]
mov qword [rdi], rax
xor eax, eax
mov qword [rdi + 8], rbx
mov qword [0x1800573e0], rdi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x180002110
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x20
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1800573c4], eax
je 0x18000213e
mov eax, 0x10dd
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov eax, dword [0x1800573c0]
test eax, eax
jne 0x180002245
test rsi, rsi
je 0x180002168
cmp qword [rsi], 0
jne 0x180002178
mov dword [0x1800573c0], 6
mov qword [0x1800573e8], rsi
mov eax, 6
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbx
mov ecx, 0x30
mov qword [rsp + 0x38], rdi
call fcn.180003320
mov rcx, qword [rsi]
mov rbx, rax
call fcn.1800014e0
mov rcx, rbp
mov rdi, rax
call fcn.1800014e0
movzx edx, byte [rdi + 0x3e]
mov rbp, qword [rdi + 0x48]
sub rbp, rdx
test dl, dl
je 0x180002216
cmp rdx, 0x1e
ja 0x180002216
cmp qword [rdi + 0x50], rax
jne 0x180002216
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800021e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x180002224
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rbp
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0x28], eax
mov rax, qword [0x1800573d0]
mov qword [rbx], rax
xor eax, eax
mov qword [0x1800573d0], rbx
jmp 0x18000223b
cmp dword [0x1800573bc], 0
mov edi, 9
jne 0x18000222a
mov dword [0x1800573c0], edi
mov rcx, rbx
call fcn.180003300
mov eax, edi
mov qword [0x1800573e8], rsi
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret

Function at 0x180002830
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x1c0
mov rax, qword [0x180055008]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, rcx
mov rdx, rcx
mov rcx, qword [0x180055b60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1800028ca
mov rax, rbx
shr rax, 0x10
test ax, ax
jne 0x180002889
mov r8, rbx
lea rdx, [0x18003f404]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rbx, [rsp + 0x20]
mov r8, rbx
lea rdx, [0x18003f408]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfA]
mov r9d, 0x10
lea r8, str.AheadLib
lea rdx, [rsp + 0xa0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.180002e90
add rsp, 0x1c0
pop rbx
ret
Function at 0x180002a80
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x358
mov rax, qword [0x180055008]
xor rax, rsp
mov qword [rsp + 0x340], rax
cmp edx, 1
jne 0x180002be6
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, [0x18003f3c0]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180055b60], rax
test rax, rax
jne 0x180002b28
lea r8, [rsp + 0x20]
lea rdx, [0x18003f3d0]
lea rcx, [rsp + 0x130]
call qword [sym.imp.USER32.dll_wsprintfA]
mov r9d, 0x10
lea r8, str.AheadLib
lea rdx, [rsp + 0x130]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rax, qword [0x180055b60]
test rax, rax
je 0x180002bcc
lea rcx, [0x18003f430]
call fcn.180002830
mov qword [0x180055b20], rax
test rax, rax
je 0x180002bcc
lea rcx, [0x18003f440]
call fcn.180002830
mov qword [0x180055b28], rax
test rax, rax
je 0x180002bcc
lea rcx, [0x18003f450]
call fcn.180002830
mov qword [0x180055b30], rax
test rax, rax
je 0x180002bcc
lea rcx, [0x18003f460]
call fcn.180002830
mov qword [0x180055b38], rax
test rax, rax
je 0x180002bcc
lea rcx, [0x18003f470]
call fcn.180002830
mov qword [0x180055b40], rax
test rax, rax
je 0x180002bcc
call fcn.180001550
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180001ba0
lea rdx, [0x1800028f0]
lea rcx, [0x180055b58]
call fcn.180001c40
jmp 0x180002c22
xor eax, eax
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.180002e90
add rsp, 0x358
ret
test edx, edx
jne 0x180002c27
mov rcx, qword [0x180055b60]
test rcx, rcx
je 0x180002bfc
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.180001550
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180001ba0
lea rdx, [0x1800028f0]
lea rcx, [0x180055b58]
call fcn.180002110
call fcn.1800015e0
mov eax, 1
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.180002e90
add rsp, 0x358
ret

Function at 0x1800073f0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.180006ed0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18000742f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x18003f318]
jmp 0x180007439
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret