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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, eax
call fcn.140016e30
mov ecx, dword [0x1400b61d8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140017d30
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140016620
cmp esi, dword [rbx + 0x48]
jae 0x140017cb0
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140016660
mov ecx, ebp
call qword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov rdi, rax
test rax, rax
je 0x140017d3d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov r14, rax
test rax, rax
je 0x140017d3d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x140017c7f
call fcn.140016ee0
mov rbx, rax
jmp 0x140017c6a
mov rcx, r13
call fcn.140016660
mov eax, 0xc
jmp 0x140017c9d

Function at 0x140017dc0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140016e30
mov ecx, dword [0x1400b61d8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140017de8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140016ee0
test rax, rax
jne 0x140017dda
add rsp, 0x28
ret

Function at 0x140017e50
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140016e30
mov ecx, dword [0x1400b61d8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140017e78
add rax, 0x18
add rsp, 0x28
ret
call fcn.140016ee0
test rax, rax
jne 0x140017e6a
jmp 0x140017e6e

Function at 0x140017f90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400e8d08]
test eax, eax
jne 0x140017fa8
xor eax, eax
add rsp, 0x28
ret
call fcn.140016e30
mov ecx, dword [0x1400b61d8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140017fd8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140017f9e
test byte [rax + 0x40], 3
je 0x140017f9e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140017fa0
call fcn.140016ee0
test rax, rax
jne 0x140017fbe
jmp 0x140017f9e
Function at 0x140017ff0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140016e30
mov ecx, dword [0x1400b61d8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140018030
test ebx, ebx
jle 0x140018020
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140016ee0
test rax, rax
jne 0x14001800d
add rsp, 0x20
pop rbx
ret

Function at 0x140018120
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140016e30
mov ecx, dword [0x1400b61d8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018198
test byte [rbx + 0x40], 0xc
jne 0x14001814f
mov eax, dword [0x1400e8d08]
test eax, eax
jne 0x140018160
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016020
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140018183
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140018183
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400181ac
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016310
call fcn.140016ee0
mov rbx, rax
test rax, rax
jne 0x14001813f
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 0x1400181ca
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov rcx, rsi
call fcn.140016310
call fcn.140018040
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140018250
call fcn.140015dd0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140018288
call fcn.140016e30
mov ecx, dword [0x1400b61d8]
mov edi, esi
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400182e0
test esi, esi
je 0x140018266
call fcn.140018120
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400182c0
mov edx, edi
call fcn.140015e80
call fcn.140018120
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140016e30
mov ecx, dword [0x1400b61d8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x1400182d0
call fcn.140018120
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.140018120
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140016e30
mov ecx, dword [0x1400b61d8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140018225
call fcn.140016ee0
mov rbx, rax
jmp 0x140018225
mov ecx, edi
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x14001823e
call fcn.140016ee0
jmp 0x140018266
call fcn.140016ee0
mov rbx, rax
jmp 0x140018221
Function at 0x1400181e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140016e30
mov ecx, dword [0x1400b61d8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018198
test byte [rbx + 0x40], 0xc
jne 0x14001814f
mov eax, dword [0x1400e8d08]
test eax, eax
jne 0x140018160
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016020
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140018183
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140018183
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400181ac
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016310
call fcn.140016ee0
mov rbx, rax
test rax, rax
jne 0x14001813f
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 0x1400181ca
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov rcx, rsi
call fcn.140016310
call fcn.140018040
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140018250
call fcn.140015dd0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140018288
call fcn.140016e30
mov ecx, dword [0x1400b61d8]
mov edi, esi
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400182e0
test esi, esi
je 0x140018266
call fcn.140018120
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400182c0
mov edx, edi
call fcn.140015e80
call fcn.140018120
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140016e30
mov ecx, dword [0x1400b61d8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x1400182d0
call fcn.140018120
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.140018120
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140016e30
mov ecx, dword [0x1400b61d8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140018225
call fcn.140016ee0
mov rbx, rax
jmp 0x140018225
mov ecx, edi
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x14001823e
call fcn.140016ee0
jmp 0x140018266
call fcn.140016ee0
mov rbx, rax
jmp 0x140018221

Function at 0x1400182f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140016e30
mov ecx, dword [0x1400b61d8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018360
test esi, esi
je 0x140018340
call fcn.140018120
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018370
mov edx, esi
call fcn.140015e80
call fcn.140018120
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018120
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.140018120
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140016ee0
mov rbx, rax
jmp 0x140018311
mov ecx, esi
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x14001832a
Function at 0x140019720
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdi, [0x1400b61e8]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call fcn.140016620
mov rax, qword [rbx]
cmp dword [rax], 0xbab1f0ed
jne 0x140019769
mov rax, qword [rbx]
mov eax, dword [rax + 4]
test eax, eax
jle 0x140019769
mov rax, qword [rbx]
mov rcx, rdi
sub dword [rax + 4], 1
call fcn.140016660
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x20], 0x28
lea r9, str..._mingw_w64_mingw_w64_libraries_winpthreads_src_rwlock.c
lea r8, str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
mov rcx, rax
lea rdx, str.Assertion_failed:___s___file__s__line__d_n
call fcn.140014620
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word cs:[rax + rax]
nop
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
neg eax
mov dword [rcx + 0xc], eax
mov rbx, rcx
lea rcx, [rcx + 0x20]
mov dword [rcx - 0x10], 0
call fcn.140016310
lea rcx, [rbx + 0x18]
add rsp, 0x20
pop rbx
jmp fcn.140016310

Function at 0x140019b90
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400199f0
test eax, eax
je 0x140019bb8
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx]
lea rdi, [rsi + 0x18]
mov rcx, rdi
call fcn.140016020
test eax, eax
jne 0x140019be1
lock add dword [rsi + 0xc], 1
cmp dword [rsi + 0xc], 0x7fffffff
je 0x140019bf8
mov rcx, rdi
call fcn.140016310
mov edx, eax
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140019720
lea r12, [rsi + 0x20]
mov rcx, r12
call fcn.140016020
mov ebp, eax
test eax, eax
je 0x140019c20
mov rcx, rdi
call fcn.140016310
mov edx, ebp
jmp 0x140019be3
mov eax, dword [rsi + 0x10]
sub dword [rsi + 0xc], eax
mov rcx, r12
mov dword [rsi + 0x10], 0
call fcn.140016310
mov rcx, rdi
mov esi, eax
call fcn.140016310
test esi, esi
cmove esi, eax
mov edx, esi
jmp 0x140019be3

Function at 0x140019ec0
Capabilities:
Terminate process

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
call fcn.1400196b0
test eax, eax
jne 0x140019f40
mov rdi, qword [rbx]
mov edx, dword [rdi + 8]
lea rbp, [rdi + 0x20]
test edx, edx
je 0x140019f18
lock sub dword [rdi + 8], 1
mov rcx, rbp
call fcn.140016310
lea rcx, [rdi + 0x18]
mov esi, eax
call fcn.140016310
test esi, esi
cmove esi, eax
mov edx, esi
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140019720
mov rcx, rbp
call fcn.140016020
mov esi, eax
test eax, eax
jne 0x140019eff
lock add dword [rdi + 0x10], 1
mov eax, dword [rdi + 0x10]
test eax, eax
je 0x140019f50
mov rcx, rbp
call fcn.140016310
mov esi, eax
jmp 0x140019eff
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, [rdi + 0x28]
call fcn.140015550
mov rcx, rbp
mov esi, eax
call fcn.140016310
test esi, esi
cmove esi, eax
jmp 0x140019eff
Function at 0x140019f70
Capabilities:
Terminate process

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
call fcn.1400199f0
test eax, eax
je 0x140019f98
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rsi, qword [rbx]
lea rdi, [rsi + 0x18]
mov rcx, rdi
call fcn.140016020
mov ebp, eax
test eax, eax
jne 0x140019fe9
lea r12, [rsi + 0x20]
mov rcx, r12
call fcn.140016020
mov ebp, eax
test eax, eax
jne 0x14001a080
mov edx, dword [rsi + 8]
test edx, edx
jne 0x140019fe4
mov edx, dword [rsi + 0x10]
mov eax, dword [rsi + 0xc]
test edx, edx
jle 0x140019fe0
sub eax, edx
mov dword [rsi + 0x10], 0
mov dword [rsi + 0xc], eax
test eax, eax
jg 0x14001a000
lock add dword [rsi + 8], 1
mov edx, ebp
mov rcx, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.140019720
neg eax
mov qword [rsp + 0x28], rsi
lea r13, [rsi + 0x28]
mov dword [rsi + 0x10], eax
lea rax, [0x1400197b0]
mov qword [rsp + 0x20], rax
call fcn.140017e50
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140017e50
lea rdx, [rsp + 0x20]
mov qword [rax], rdx
lock or qword [rsp], 0
jmp 0x14001a04f
mov eax, dword [rsi + 0x10]
test eax, eax
jns 0x14001a090
mov rdx, r12
mov rcx, r13
call fcn.1400157b0
mov edi, eax
test eax, eax
je 0x14001a048
call fcn.140017e50
mov rdx, qword [rsp + 0x30]
mov ebp, edi
mov qword [rax], rdx
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x20]
jmp 0x140019fe9
mov rcx, rdi
call fcn.140016310
jmp 0x140019fe9
call fcn.140017e50
mov rdx, qword [rsp + 0x30]
mov qword [rax], rdx
mov dword [rsi + 0xc], 0
jmp 0x140019fe4

Function at 0x14001a510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r8d, 0xa
mov rbx, rcx
movzx edx, dx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_FindResourceA]
xor ecx, ecx
mov rbp, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.DLL_LoadResource]
mov rdx, rbp
xor ecx, ecx
mov rsi, rax
call qword [sym.imp.KERNEL32.DLL_SizeofResource]
mov rcx, rbx
mov ebp, eax
xor eax, eax
mov qword [rbx], rax
mov rdx, rbp
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
call fcn.14009e310
mov rdi, qword [rbx]
mov rcx, rbp
mov rax, rbx
rep movsb byte [rdi], byte [rsi]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14001a850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r8d, 0xa
movzx edx, cx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_FindResourceA]
xor ecx, ecx
mov rbx, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.DLL_LoadResource]
mov rdx, rbx
xor ecx, ecx
mov rsi, rax
call qword [sym.imp.KERNEL32.DLL_SizeofResource]
lea rcx, [0x1400b6290]
mov ebx, eax
mov rdx, rbx
call fcn.14009e310
mov rdi, qword [0x1400b6290]
mov rcx, rbx
rep movsb byte [rdi], byte [rsi]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x14007c3a0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007c3e8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007c3ba
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001450
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xf973121
call fcn.1400027c0
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 0x140001490
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xe990333
call fcn.1400027c0
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 0x1400014d0
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x598f0e4
call fcn.1400027c0
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 0x140001510
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x3af0e32
call fcn.1400027c0
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 0x140001550
Capabilities:
Execute syscall

Disassembly:
push rcx
push rdx
push r8
push r9
mov ecx, 0xf991917
call fcn.1400027c0
pop r9
pop r8
pop rdx
pop rcx
mov r10, rcx
syscall
ret

Function at 0x14000156c
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xbdaed542
call fcn.1400027c0
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 0x140001870
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.140002690
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002690
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400018e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000b294]
mov rbx, rcx
test esi, esi
jle 0x140001a10
mov rax, qword [0x14000b298]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000192b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400019b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001910
mov rcx, rbx
call fcn.140002330
mov rdi, rax
test rax, rax
je 0x140001a32
mov rax, qword [0x14000b298]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002470
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000b298]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400019c0
add dword [0x14000b294], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000b298]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001870
nop dword [rax]
xor esi, esi
jmp 0x140001938
mov rax, qword [0x14000b298]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001870
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001870
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001fa0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000b300]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000b2e0]
test rbx, rbx
je 0x140001ffc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001ff3
test rsi, rsi
je 0x140001ff3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fd8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002330
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006b50]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002350
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002358
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002350
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400023ad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400023a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002350
add rax, 0x28
cmp rax, r9
jne 0x140002390
xor eax, eax
ret

Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b50]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400023cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400023d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400023cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002470
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b50]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000248f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002498
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002830
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x14000a040], 0
jne 0x140002987
push r13
push r12
push rbp
push rdi
push rsi
push rbx
xor ebx, ebx
sub rsp, 0x28
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r8, qword [rax + 0x10]
xor eax, eax
mov rdx, qword [r8 + 0x30]
test rdx, rdx
je 0x140002899
movsxd rcx, dword [rdx + 0x3c]
mov ecx, dword [rdx + rcx + 0x88]
test ecx, ecx
je 0x140002891
lea rax, [rcx + rdx]
mov ecx, dword [rax + 0xc]
add rcx, rdx
cmp dword [rcx], 0x6c64746e
jne 0x140002891
cmp dword [rcx + 4], 0x6c642e6c
je 0x1400028a3
mov r8, qword [r8]
mov rbx, rdx
jmp 0x14000285e
test rax, rax
jne 0x1400028a6
jmp 0x140002978
mov rbx, rdx
mov ebp, dword [rax + 0x1c]
mov esi, dword [rax + 0x24]
xor r10d, r10d
lea r13, [0x14000a044]
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
add rsi, rbx
add rbp, rbx
lea r11d, [rdx - 1]
add rax, rbx
lea rdi, [rax + r11*4]
add r11, r11
add r11, rsi
mov ecx, dword [rdi]
add rcx, rbx
cmp word [rcx], 0x775a
jne 0x140002909
mov eax, r10d
inc r10d
lea r12, [r13 + rax*8]
call fcn.140002800
mov dword [r12], eax
movzx eax, word [r11]
mov eax, dword [rbp + rax*4]
mov dword [r12 + 4], eax
cmp r10d, 0x1f4
je 0x14000291b
sub rdi, 4
lea rax, [r11 - 2]
cmp rsi, r11
je 0x14000291b
mov r11, rax
jmp 0x1400028d3
mov dword [0x14000a040], r10d
lea r11, [0x14000a044]
dec r10d
test r10d, r10d
jne 0x140002938
mov edx, 1
jmp 0x140002978
lea rax, [0x14000a040]
xor edx, edx
lea ecx, [rdx + 1]
mov r8d, dword [rax + 8]
mov rdx, rcx
lea rcx, [r11 + rcx*8]
mov r9d, dword [rcx + 4]
cmp r9d, r8d
jae 0x14000296a
mov ebx, dword [rax + 4]
mov esi, dword [rcx]
mov dword [rax + 8], r9d
mov dword [rax + 4], esi
mov dword [rcx], ebx
mov dword [rcx + 4], r8d
add rax, 8
cmp edx, r10d
jb 0x140002941
dec r10d
jmp 0x14000292c
add rsp, 0x28
mov eax, edx
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov eax, 1
ret