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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x1400127f8
cmp eax, 1
je 0x140012713
call fcn.140011720
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.1400110b0
mov ebp, dword [rbx]
test ebp, ebp
je 0x140012720
cmp ebp, 1
jne 0x1400127c0
mov rcx, r12
call fcn.140011380
mov rcx, rdi
call fcn.1400119f0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140011ad0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140011d70
mov ecx, dword [0x140017338]
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rbp
test rax, rax
je 0x140012840
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140011d70
mov ecx, dword [0x140017338]
call rbp
test rax, rax
je 0x140012828
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140011d70
mov ecx, dword [0x140017338]
call rbp
test rax, rax
je 0x140012810
mov rdx, qword [rsp + 0x30]
mov rcx, r12
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
call fcn.140011380
mov rcx, rdi
call fcn.1400119f0
jmp 0x140012713
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, ebp
mov r8, rbx
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call fcn.1400108a0
mov rcx, r12
call fcn.140011380
mov rcx, rdi
call fcn.1400119f0
jmp 0x140012713
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140011e20
test rax, rax
jne 0x140012796
jmp 0x1400169d5
call fcn.140011e20
test rax, rax
jne 0x140012773
jmp 0x1400169ee
call fcn.140011e20
test rax, rax
jne 0x14001274e
jmp 0x1400169e4
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x140012ad0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140011d70
mov ecx, dword [0x140017338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140012b48
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.1400151e0
cmp esi, dword [rbx + 0x48]
jae 0x140012b23
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140012b23
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140015230
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140011e20
mov rbx, rax
jmp 0x140012afd
Function at 0x140012b60
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.140011d70
mov ecx, dword [0x140017338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140012c58
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.1400151e0
mov rdi, qword [rbx + 0x50]
cmp esi, dword [rbx + 0x48]
jb 0x140012c23
lea r15d, [rsi + 1]
mov rcx, rdi
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 0x140012c65
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 0x140012c65
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
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140015230
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
call fcn.140011e20
mov rbx, rax
jmp 0x140012b9a
mov rcx, r13
call fcn.140015230
mov eax, 0xc
jmp 0x140012c41

Function at 0x140012d00
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140011d70
mov ecx, dword [0x140017338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012d28
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140011e20
test rax, rax
jne 0x140012d1a
add rsp, 0x28
ret

Function at 0x140012d90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140011d70
mov ecx, dword [0x140017338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012db8
add rax, 0x18
add rsp, 0x28
ret
call fcn.140011e20
test rax, rax
jne 0x140012daa
jmp 0x140012dae

Function at 0x140012ed0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140104208]
test eax, eax
jne 0x140012ee8
xor eax, eax
add rsp, 0x28
ret
call fcn.140011d70
mov ecx, dword [0x140017338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012f18
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140012ede
test byte [rax + 0x40], 3
je 0x140012ede
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140012ee0
call fcn.140011e20
test rax, rax
je 0x140012ede
jmp 0x140012efe
Function at 0x140012f30
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140011d70
mov ecx, dword [0x140017338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012f70
test ebx, ebx
jle 0x140012f60
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.140011e20
test rax, rax
jne 0x140012f4d
add rsp, 0x20
pop rbx
ret

Function at 0x140013060
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140011d70
mov ecx, dword [0x140017338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400130d8
test byte [rbx + 0x40], 0xc
jne 0x14001308f
mov eax, dword [0x140104208]
test eax, eax
jne 0x1400130a0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400110b0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400130c3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400130c3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400130ec
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140011380
call fcn.140011e20
mov rbx, rax
test rax, rax
jne 0x14001307f
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 0x14001310a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140011380
call fcn.140012f80
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140013188
call fcn.1400142e0
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.140011d70
mov ecx, dword [0x140017338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400131d0
test rsi, rsi
je 0x14001319e
call fcn.140013060
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400131c0
mov edx, edi
call fcn.140014390
call fcn.140013060
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140011d70
mov ecx, dword [0x140017338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400131e0
call fcn.140013060
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140013060
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140013176
call fcn.140011e20
mov rbx, rax
jmp 0x14001315c
call fcn.140011e20
jmp 0x14001319e
Function at 0x140013120
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140011d70
mov ecx, dword [0x140017338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400130d8
test byte [rbx + 0x40], 0xc
jne 0x14001308f
mov eax, dword [0x140104208]
test eax, eax
jne 0x1400130a0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400110b0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400130c3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400130c3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400130ec
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140011380
call fcn.140011e20
mov rbx, rax
test rax, rax
jne 0x14001307f
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 0x14001310a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140011380
call fcn.140012f80
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140013188
call fcn.1400142e0
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.140011d70
mov ecx, dword [0x140017338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400131d0
test rsi, rsi
je 0x14001319e
call fcn.140013060
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400131c0
mov edx, edi
call fcn.140014390
call fcn.140013060
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140011d70
mov ecx, dword [0x140017338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400131e0
call fcn.140013060
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140013060
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140013176
call fcn.140011e20
mov rbx, rax
jmp 0x14001315c
call fcn.140011e20
jmp 0x14001319e

Function at 0x1400131f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140011d70
mov ecx, dword [0x140017338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140013260
test esi, esi
je 0x140013240
call fcn.140013060
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140013270
mov edx, esi
call fcn.140014390
call fcn.140013060
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140013060
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140013060
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140011e20
mov rbx, rax
jmp 0x140013211
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001322a
Function at 0x140014630
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdi, [0x140017348]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call fcn.1400151e0
mov rax, qword [rbx]
cmp dword [rax], 0xbab1f0ed
jne 0x140014679
mov rax, qword [rbx]
mov eax, dword [rax + 4]
test eax, eax
jle 0x140014679
mov rax, qword [rbx]
mov rcx, rdi
sub dword [rax + 4], 1
call fcn.140015230
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..._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.1400108a0
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.140011380
lea rcx, [rbx + 0x18]
add rsp, 0x20
pop rbx
jmp fcn.140011380

Function at 0x140014ab0
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140014900
test eax, eax
je 0x140014ad8
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.1400110b0
test eax, eax
jne 0x140014b01
lock add dword [rsi + 0xc], 1
cmp dword [rsi + 0xc], 0x7fffffff
je 0x140014b18
mov rcx, rdi
call fcn.140011380
mov edx, eax
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140014630
lea r12, [rsi + 0x20]
mov rcx, r12
call fcn.1400110b0
mov ebp, eax
test eax, eax
je 0x140014b40
mov rcx, rdi
call fcn.140011380
mov edx, ebp
jmp 0x140014b03
mov eax, dword [rsi + 0x10]
sub dword [rsi + 0xc], eax
mov rcx, r12
mov dword [rsi + 0x10], 0
call fcn.140011380
mov rcx, rdi
mov esi, eax
call fcn.140011380
test esi, esi
mov edx, esi
cmove edx, eax
jmp 0x140014b03

Function at 0x140014de0
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.1400145c0
test eax, eax
jne 0x140014e60
mov rsi, qword [rbx]
mov edx, dword [rsi + 8]
test edx, edx
je 0x140014e30
lock sub dword [rsi + 8], 1
lea rcx, [rsi + 0x20]
call fcn.140011380
lea rcx, [rsi + 0x18]
mov edi, eax
call fcn.140011380
test edi, edi
cmove edi, eax
mov edx, edi
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp fcn.140014630
lea rdi, [rsi + 0x20]
mov rcx, rdi
call fcn.1400110b0
mov edx, eax
test eax, eax
jne 0x140014e1d
lock add dword [rsi + 0x10], 1
mov eax, dword [rsi + 0x10]
test eax, eax
je 0x140014e70
mov rcx, rdi
call fcn.140011380
mov edx, eax
jmp 0x140014e1d
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + 0x28]
call fcn.140015b30
mov rcx, rdi
mov dword [rsp + 0x2c], eax
call fcn.140011380
mov edx, dword [rsp + 0x2c]
test edx, edx
cmove edx, eax
jmp 0x140014e1d
Function at 0x140014e90
Capabilities:
Terminate process

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
call fcn.140014900
test eax, eax
je 0x140014eb8
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.1400110b0
mov ebp, eax
test eax, eax
jne 0x140014f09
lea r12, [rsi + 0x20]
mov rcx, r12
call fcn.1400110b0
mov ebp, eax
test eax, eax
jne 0x140014fa0
mov edx, dword [rsi + 8]
test edx, edx
jne 0x140014f04
mov edx, dword [rsi + 0x10]
mov eax, dword [rsi + 0xc]
test edx, edx
jle 0x140014f00
sub eax, edx
mov dword [rsi + 0x10], 0
mov dword [rsi + 0xc], eax
test eax, eax
jg 0x140014f20
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.140014630
neg eax
mov qword [rsp + 0x28], rsi
lea r13, [rsi + 0x28]
mov dword [rsi + 0x10], eax
lea rax, [0x1400146c0]
mov qword [rsp + 0x20], rax
call fcn.140012d90
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140012d90
lea rdx, [rsp + 0x20]
mov qword [rax], rdx
lock or qword [rsp], 0
jmp 0x140014f6f
mov eax, dword [rsi + 0x10]
test eax, eax
jns 0x140014fb0
mov rdx, r12
mov rcx, r13
call fcn.140015da0
mov edi, eax
test eax, eax
je 0x140014f68
call fcn.140012d90
mov rdx, qword [rsp + 0x30]
mov ebp, edi
mov qword [rax], rdx
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x20]
jmp 0x140014f09
mov rcx, rdi
call fcn.140011380
jmp 0x140014f09
call fcn.140012d90
mov rdx, qword [rsp + 0x30]
mov qword [rax], rdx
mov dword [rsi + 0xc], 0
jmp 0x140014f04
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140005740]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x140005750]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140008008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400056b0]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.140001a50
mov rcx, qword [0x1400057d0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140005730]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140001860
mov ebx, dword [0x140008028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x140008020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140008020], rbp
call fcn.140001660
mov rax, qword [0x1400056c0]
mov r8, qword [0x140008018]
mov ecx, dword [0x140008028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140008020]
call fcn.140002bb0
mov ecx, dword [0x14000800c]
mov dword [0x140008010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140008008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140005750]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call fcn.140002850
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x140005770]
mov rcx, qword [0x140005760]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140008010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140005790]
mov rcx, qword [0x140005780]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
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 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.140002680
call sub.api_ms_win_crt_runtime_l1_1_0.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 [0x1400080a4]
mov rbx, rcx
test esi, esi
jle 0x140001a10
mov rax, qword [0x1400080a8]
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.140002360
mov rdi, rax
test rax, rax
je 0x140001a32
mov rax, qword [0x1400080a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400024a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080a8]
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 - 4]
and edx, 0xfffffffb
je 0x1400019ae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400019c0
add dword [0x1400080a4], 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 [0x1400080a8]
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 [0x1400080a8]
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 0x140001fd0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x14000202c
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 rsi, rsi
je 0x140002023
test eax, eax
jne 0x140002023
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002008
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 0x140002360
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005680]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002380
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002388
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002380
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400023dd
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 0x1400023d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002380
add rax, 0x28
cmp rax, r9
jne 0x1400023c0
xor eax, eax
ret

Function at 0x1400023e0
Capabilities:
Parse pe header

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

Function at 0x1400024a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005680]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400024bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400024c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140003fe0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000403d
lea rbx, [0x140147150]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140004024
cmp r10, 2
jb 0x140004024
cmp byte [r9], r8b
jne 0x140004024
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140004000
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000407f
lea rbx, [0x140147150]
cmp r8b, 0x23
jne 0x140004063
cmp byte [r9], r8b
jne 0x140004063
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140004050
mov rbx, qword [rsp + 8]
not eax
ret