joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006e660
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
sub rsp, 0x28
cmp dword [rcx + 0x130], 0
mov rbp, rcx
mov ebx, edx
je 0x14006e811
mov qword [rsp + 0x20], rdi
lea rdi, [rcx + 0xe8]
mov r8, qword [rdi]
test r8, r8
je 0x14006e6b2
xor edx, edx
mov eax, ebx
div dword [rdi + 0x10]
mov rax, qword [r8 + rdx*8]
test rax, rax
je 0x14006e6b2
nop dword [rax]
cmp dword [rax + 0x18], ebx
jne 0x14006e6a9
cmp dword [rax], ebx
je 0x14006e6be
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14006e6a0
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rbp
pop rbx
ret
mov qword [rsp + 0x50], rsi
mov rsi, qword [rax + 8]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CancelWaitableTimer]
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x14006e6e8
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rsi + 0x10], 0
movsxd rax, dword [rsi + 0x18]
mov edx, 0x20
mov rcx, rsi
mov qword [rbp + rax*8 + 0x140], 0
call fcn.140076db4
mov edx, ebx
mov rcx, rdi
call fcn.14000a6e0
lea rcx, [rbp + 0xb8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rsi, qword [rsp + 0x50]
mov dword [rbp + 0x138], 1
cmp qword [rdi + 8], 0
je 0x14006e7cc
mov edx, dword [rdi + 0x10]
xor ecx, ecx
test edx, edx
je 0x14006e74f
mov r9, qword [rdi]
cmp qword [r9 + rcx*8], 0
jne 0x14006e761
inc ecx
cmp ecx, edx
jb 0x14006e742
xor r9d, r9d
test r9, r9
je 0x14006e7cc
mov r11, r9
test r9, r9
jne 0x14006e767
jmp 0x14006e79d
mov r9, qword [r9 + rcx*8]
jmp 0x14006e752
mov rcx, qword [r9 + 0x10]
test rcx, rcx
jne 0x14006e79a
mov eax, dword [r9 + 0x18]
xor edx, edx
mov r10d, dword [rdi + 0x10]
div r10d
inc edx
nop
cmp edx, r10d
jae 0x14006e79a
mov rax, qword [rdi]
mov r9, qword [rax + rdx*8]
test r9, r9
cmovne rcx, r9
inc edx
test rcx, rcx
je 0x14006e780
mov r9, rcx
mov r10, qword [r11 + 8]
test r10, r10
je 0x14006e7c7
movsxd r8, dword [rbp + 0x138]
lea eax, [r8 + 1]
mov dword [rbp + 0x138], eax
mov rax, qword [r10 + 0x10]
mov qword [rbp + r8*8 + 0x140], rax
mov dword [r10 + 0x18], r8d
test r9, r9
jne 0x14006e757
lea rcx, [rbp + 0xb8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov r9d, dword [rbp + 0x138]
lea rdx, str.CTimerEventNotify::KillTimer
mov r8d, 0x9c
lea rcx, str._s__d_m_nhWaitHandlesCount_d
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rbp
pop rbx
jmp fcn.14002f950
mov rcx, qword [0x1400da180]
mov rdx, rbx
add rsp, 0x28
pop rbp
pop rbx
jmp qword [sym.imp.USER32.dll_KillTimer]
cmp dword [rax - 0x1a], edi
invalid
Function at 0x14006eb40
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x12c], 0
mov rdi, rcx
jne 0x14006ec60
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
nop word [rax + rax]
mov ecx, dword [rdi + 0x130]
lea rdx, [rdi + 0x138]
or r9d, 0xffffffff
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_synch_l1_2_1.dll_WaitForMultipleObjects]
mov esi, eax
test eax, eax
je 0x14006ec44
cmp qword [rdi + 0xe8], 0
je 0x14006ec44
mov edx, dword [rdi + 0xf0]
xor ecx, ecx
test edx, edx
je 0x14006ebc2
mov rbx, qword [rdi + 0xe0]
cmp qword [rbx + rcx*8], 0
jne 0x14006ebda
inc ecx
cmp ecx, edx
jb 0x14006ebb5
xor ebx, ebx
test rbx, rbx
je 0x14006ec44
nop dword [rax]
mov r11, rbx
test rbx, rbx
jne 0x14006ebe0
jmp 0x14006ec21
mov rbx, qword [rbx + rcx*8]
jmp 0x14006ebc4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
jne 0x14006ec1e
mov eax, dword [rbx + 0x18]
xor edx, edx
mov r10d, dword [rdi + 0xf0]
div r10d
inc edx
nop word [rax + rax]
cmp edx, r10d
jae 0x14006ec1e
mov rax, qword [rdi + 0xe0]
mov r9, qword [rax + rdx*8]
test r9, r9
cmovne rcx, r9
inc edx
test rcx, rcx
je 0x14006ec00
mov rbx, rcx
mov rax, qword [r11 + 8]
test rax, rax
je 0x14006ec3f
cmp dword [rax + 0x18], esi
jne 0x14006ec3f
mov rcx, qword [rax]
test rcx, rcx
je 0x14006ec3f
mov edx, dword [rax + 8]
call fcn.14006e830
test rbx, rbx
jne 0x14006ebd0
cmp dword [rdi + 0x12c], 0
je 0x14006eb70
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r8d, 0xd4
lea rdx, str.CTimerEventNotify::WorkThreadLoop
lea rcx, [0x1400934a8]
add rsp, 0x20
pop rdi
jmp fcn.14002f950
Function at 0x14006f770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r15, qword [rsp + 0x1b0]
xor edx, edx
mov rbp, qword [rsp + 0x1b8]
mov rsi, rcx
lea rcx, [rsp + 0xe0]
mov r14, r9
lea r8d, [rdx + 0x64]
call fcn.14007eaa0
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x64]
call fcn.14007eaa0
lea r8, [0x1400a4540]
mov edx, 0x65
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14006f974
mov rdx, rax
mov qword [rsp + 0x198], rbx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov rdx, rdi
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
xor r8d, r8d
mov dword [rsp + 0x24], 0x204d454d
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov dword [rsp + 0x3c], edi
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioOpenW]
mov r9d, 0x20
mov dword [rsp + 0xb0], 0x45564157
mov rcx, rax
lea rdx, [rsp + 0xa8]
xor r8d, r8d
mov rbx, rax
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioDescend]
mov rcx, rbx
test eax, eax
jne 0x14006f8d4
lea r9d, [rax + 0x10]
mov dword [rsp + 0x90], 0x20746d66
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioDescend]
mov rcx, rbx
test eax, eax
jne 0x14006f8d4
xor r8d, r8d
lea rdx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioAscend]
mov r9d, 0x10
mov dword [rsp + 0xc0], 0x61746164
lea r8, [rsp + 0xa8]
mov rcx, rbx
lea rdx, [rsp + 0xc0]
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioDescend]
mov rcx, rbx
test eax, eax
je 0x14006f905
xor edx, edx
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioClose]
mov rbx, qword [rsp + 0x198]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140076320
add rsp, 0x160
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
lea rdx, [rsp + 0xc0]
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioAscend]
mov edx, dword [rsp + 0x9c]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioSeek]
mov r8d, dword [rsp + 0x94]
lea rdi, [rsi + 0xfc]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioRead]
cmp dword [rsp + 0x94], eax
je 0x14006f954
xor edx, edx
mov rcx, rbx
jmp 0x14006f8d6
mov eax, dword [rsp + 0xc4]
xor edx, edx
mov qword [r14], rdi
mov dword [r15], eax
movzx ecx, word [rsi + 0x108]
div ecx
mov dword [rbp], eax
jmp 0x14006f8dc
mov eax, 0x80004005
jmp 0x14006f8e6
Function at 0x140070620
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rcx + 0x58], rdx
lea r8, [rsp + 0x30]
mov rbx, rcx
mov rcx, qword [rcx + 0x28]
mov rax, qword [rcx]
mov edx, dword [rbx + 0x50]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
jns 0x140070675
mov edx, eax
lea rcx, str.Failed_to_get_buffer:__x._n
call fcn.140070ff0
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140076320
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 0x28]
mov r8d, 2
mov edx, dword [rbx + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jns 0x1400706af
mov edx, eax
lea rcx, str.Failed_to_release_buffer:__x._n
call fcn.140070ff0
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140076320
add rsp, 0x40
pop rbx
ret
xor eax, eax
lea r8, [0x140070800]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x140070700
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Unable_to_create_transport_thread:__x.
call fcn.140070ff0
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140076320
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x50]
test eax, eax
jns 0x140070731
mov edx, eax
lea rcx, str.Unable_to_start_render_client:__x._n
call fcn.140070ff0
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140076320
add rsp, 0x40
pop rbx
ret
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140076320
add rsp, 0x40
pop rbx
ret
Function at 0x140071050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [rcx + 0xa0], 1
mov rcx, qword [rcx]
xor edi, edi
test rcx, rcx
je 0x14007108f
call fcn.140076db4
mov qword [rbx], rdi
lea r8, [0x1400a4540]
mov qword [rbx + 8], rdi
mov edx, 0x65
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x1400710d3
lea r8, [0x1400ad748]
xor ecx, ecx
lea edx, [rax + 0x65]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x1400710d3
mov eax, 0x80004005
jmp 0x1400711fa
xor ecx, ecx
mov qword [rsp + 0xc0], rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140071122
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x140071122
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov rsi, rax
test rax, rax
jne 0x14007112c
mov eax, 0x80004005
jmp 0x1400711f2
mov rcx, rdi
mov qword [rsp + 0xb8], rbp
call fcn.1400769a0
mov qword [rbx + 0xc0], rax
test rax, rax
jne 0x140071152
mov eax, 0x8007000e
jmp 0x1400711ea
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.14007db90
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x64]
call fcn.14007eaa0
mov rax, qword [rbx + 0xc0]
lea rdx, [rsp + 0x20]
mov r8d, 0x10000
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov dword [rsp + 0x24], 0x204d454d
mov dword [rsp + 0x3c], edi
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioOpenW]
mov rcx, rbx
mov qword [rbx + 8], rax
call fcn.140071220
mov edi, eax
test eax, eax
jns 0x1400711bb
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.api_ms_win_mm_misc_l1_1_0.dll_mmioClose]
jmp 0x1400711e8
mov rcx, rbx
call fcn.1400713c0
mov edi, eax
test eax, eax
js 0x1400711ea
mov eax, dword [rbx + 0x14]
lea rdx, str.CWaveFile::Open
mov r8d, 0x66
mov dword [rbx + 0x38], eax
lea rcx, str._s__d_End
call fcn.14002f950
mov eax, edi
mov rbp, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140076320
mov rbx, qword [rsp + 0xc8]
add rsp, 0xa0
pop rdi
ret
Function at 0x140073910
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x4860
call fcn.14007f4d0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48b0], rbx
mov rax, qword [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x4850], rax
mov r14, rdx
mov r12, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdx
xor edx, edx
mov r8d, 0x4000
lea rcx, [rsp + 0x50]
call fcn.14007eaa0
mov dword [rsp + 0x40], 0
xor ebx, ebx
lea r8, [rsp + 0x40]
mov edx, 0x4000
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_K32EnumProcesses]
or ebp, 0xffffffff
test eax, eax
je 0x140073ade
mov r15d, dword [rsp + 0x40]
shr r15, 2
xor esi, esi
test r15, r15
je 0x140073ade
lea r13d, [rbx + 1]
test ebx, ebx
jne 0x140073ade
mov r8d, dword [rsp + rsi*4 + 0x50]
mov edx, r13d
mov ecx, 0x1fffff
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140073ad2
mov qword [rsp + 0x38], 0
lea r9, [rsp + 0x40]
lea r8d, [rbx + 8]
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_K32EnumProcessModules]
test eax, eax
je 0x140073ac9
test dword [rsp + 0x40], 0xfffffff8
jbe 0x140073ac9
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x4050]
call fcn.14007eaa0
mov r9d, 0x3ff
lea r8, [rsp + 0x4050]
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_K32GetModuleBaseNameW]
lea rdx, [rsp + 0x4050]
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140073ac9
mov rax, qword [r14]
cmp dword [rax - 0x10], ebx
jne 0x140073a61
mov ebx, r13d
jmp 0x140073ac9
xor eax, eax
mov qword [rsp + 0x48], rax
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140074240
mov rdx, qword [r14]
test rdx, rdx
je 0x140073aab
mov rax, qword [rsp + 0x48]
cmp dword [rax - 0x10], 0
jl 0x140073ab0
mov rcx, rax
call fcn.14007e078
mov rcx, rax
test rax, rax
je 0x140073aab
mov rax, qword [rsp + 0x48]
sub rcx, rax
sar rcx, 1
test ecx, ecx
cmovns ebx, r13d
jmp 0x140073ab0
mov rax, qword [rsp + 0x48]
lea rdx, [rax - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
sub eax, r13d
jg 0x140073ac9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
inc rsi
cmp rsi, r15
jl 0x1400739b0
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140073afc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x140073b17
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rcx, qword [rsp + 0x4850]
xor rcx, rsp
call fcn.140076320
mov rbx, qword [rsp + 0x48b0]
add rsp, 0x4860
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140073c90
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x28
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140073ca0
test rax, rax
jne 0x140073cb9
mov eax, 1
add rsp, 0x28
ret
mov r8, rcx
mov qword [rsp + 0x20], rbx
xor ecx, ecx
mov edx, 1
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
jne 0x140073cf3
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rbx, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x28
ret
mov eax, 1
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x140075470
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp dword [rcx + 8], 0
mov rbx, rcx
je 0x1400754cb
lea rax, [rsp + 0x30]
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x140075410]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x18], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140076320
add rsp, 0x40
pop rbx
ret
xor r8d, r8d
lea rcx, [0x1400753b0]
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CreateThreadpoolWork]
mov rcx, rax
mov qword [rbx + 0x10], rax
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_SubmitThreadpoolWork]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140076320
add rsp, 0x40
pop rbx
ret

Function at 0x140075690
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov dword [rcx + 8], 1
mov ecx, 0x90
call fcn.140076964
xor edx, edx
mov qword [rsp + 0x30], rax
mov r8d, 0x90
mov rcx, rax
mov rbx, rax
call fcn.14007eaa0
mov rcx, rbx
call fcn.14003be00
mov qword [rdi + 0x10], rax
call fcn.140009810
movzx ecx, word [rax + 0x4a]
mov rax, qword [rdi + 0x10]
and ecx, 1
mov dword [rax + 0x1c], ecx
call fcn.140009810
mov ecx, dword [rax + 0x48]
mov rax, qword [rdi + 0x10]
shr ecx, 0x11
and ecx, 1
mov dword [rax + 0x20], ecx
call fcn.140009810
mov ecx, dword [rax + 0x48]
mov rax, qword [rdi + 0x10]
shr ecx, 9
and ecx, 1
mov dword [rax + 0x24], ecx
call fcn.140009810
mov ecx, dword [rax + 0x48]
mov rax, qword [rdi + 0x10]
shr ecx, 0xb
and ecx, 1
mov dword [rax + 0x28], ecx
mov rcx, qword [rdi + 0x10]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14003c060
Function at 0x14007e7d0
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x14008f540]
xor ecx, ecx
lea r8, [0x14008f538]
lea rdx, str.FlsAlloc
call fcn.14007e5f8
mov rbx, rax
test rax, rax
je 0x14007e810
mov rcx, rax
call fcn.140077244
mov rcx, rdi
call rbx
jmp 0x14007e816
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14007e878
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x14008f550]
mov ecx, 2
lea r8, [0x14008f548]
lea rdx, str.FlsGetValue
call fcn.14007e5f8
mov rdi, rax
test rax, rax
je 0x14007e8b9
mov rcx, rax
call fcn.140077244
mov ecx, ebx
call rdi
jmp 0x14007e8c1
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14007e8cc
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x14008f558]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x14008f550]
call fcn.14007e5f8
mov rsi, rax
test rax, rax
je 0x14007e918
mov rcx, rax
call fcn.140077244
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x14007e923
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800015f0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.180002070
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.180002070
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x180001660
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x180017154]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x180001810
mov rax, qword [0x180017158]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1800016ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x180001737
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x180001690
mov rcx, r12
call fcn.180002540
mov rbp, rax
test rax, rax
je 0x18000186d
mov rax, qword [0x180017158]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.180002670
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x180017158]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001852
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x180001730
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1800017c0
add dword [0x180017154], 1
cmp ebx, 8
jae 0x180001768
test bl, 4
jne 0x180001820
test ebx, ebx
je 0x180001759
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x180001840
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x180001759
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x18000179a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x180017158]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180001730
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1800015f0
xor edi, edi
jmp 0x1800016b7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x180001759
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x180001759
mov rax, qword [0x180017158]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.1800015f0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1800015f0
nop
nop dword [rax]
Function at 0x180002150
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1800171a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x180017180]
test rbx, rbx
je 0x1800021a4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x18000219b
test r12, r12
je 0x18000219b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x180002180
lea rcx, [0x1800171a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x180002540
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [sym.k7avwscn.dll_Ordinal_0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1800025b9
mov rcx, r10
call fcn.180002410
test eax, eax
je 0x1800025b9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1800025b6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1800025ad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1800025b9
add r8, 0x28
cmp r8, r9
jne 0x180002598
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x180008420
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
cmp dword [rcx + 0xc], 0
je 0x18000842f
add rsp, 0x28
ret
mov dword [rcx + 0xc], 1
mov rax, qword [rcx + 0x30]
mov ecx, dword [rax]
cmp ecx, 2
jge 0x180008457
cmp ecx, 1
je 0x18000846b
test ecx, ecx
jne 0x180008485
mov rax, qword [rax + 8]
mov dword [rax + 0x10], 1
jmp 0x18000842a
je 0x180008478
cmp ecx, 3
jne 0x180008485
mov rax, qword [rax + 8]
mov dword [rax + 8], 1
jmp 0x18000842a
mov rcx, qword [rax + 8]
add rsp, 0x28
jmp fcn.180009caa
mov rax, qword [rax + 8]
mov dword [rax + 0x28], 1
jmp 0x18000842a
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitThread]