joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1409b96d9
Capabilities:
Encode data using base64

Disassembly:
lea rsp, [rsp + 0x10]
jmp 0x1409a798f

Function at 0x1409b9759
Capabilities:
Encode data using base64

Disassembly:
mov dword [rbx], r8d
lea rsp, [rsp + 0x20]
jmp fcn.14099c16a

Function at 0x1409b992d
Capabilities:
Encode data using base64

Disassembly:
add dil, dil
dec cl
inc qword [rsp + rdi - 0x8ec13cd]
xor byte [rsp + rdi*4 - 0x23b04f3b], dil
not cl
xor r11b, cl
sar byte [rsp + rdi*2 - 0x11d82795], 0xa1
sub edi, 0xdd889b91
lea rcx, [rsp + rcx + 0x10]
mov rdi, qword [rdi + rcx - 0x2b63783f]
sub rbx, 8
push 0xffffffff9a23b386
mov qword [rbx], rdi
lea rsp, [rsp + 0x18]
jmp fcn.1409a889a
xor cl, r11b
inc cl
mov qword [rsp + 8], 0x2d0d89a2
sal rdi, 0x63
sar rdi, 0x60
rol cl, 1
mov qword [rsp + rdi*2 - 0x11d826d0], rdi
jmp 0x1409b948c

Function at 0x1409b9d40
Capabilities:
Encode data using base64

Disassembly:
pop rsi
mov rsi, qword gs:[r9]
mov qword [rbx], rsi
lea rsp, [rsp + 8]
jmp fcn.14099c16a

Function at 0x1409ba2b9
Capabilities:
Encode data using base64

Disassembly:
sub rbx, 4
mov dword [rbx], edx
lea rsp, [rsp + 0x10]
jmp 0x1409a798f

Function at 0x1409ba639
Capabilities:
Encode data using base64

Disassembly:
lea rsp, [rsp + 0x10]
jmp 0x1409a798f

Function at 0x1409babc9
Capabilities:
Encode data using base64

Disassembly:
movzx edx, word [r9 + rbx]
sub r9, 0xffffffff92bb6226
not r9
add r9, 0xffffffff9614959b
xor dx, r11w
shl r9, 0x9a
and r9d, r9d
sub r9d, r9d
neg dx
bswap r9
or r9w, r9w
adc dx, 0xb800
call fcn.14098d019
add r8, 6
call fcn.1409b68cd
shr r9, 0x20
lea rbx, [rbx + r9 - 2]
shl r9w, 0x4a
ror r9d, 0x9d
jp 0x1409b0e85

Function at 0x1409babed
Capabilities:
Encode data using base64

Disassembly:
call fcn.1409af4ac
call fcn.1409993ce

Function at 0x1409babf7
Capabilities:
Encode data using base64

Disassembly:
push 0x5ea955a3
mov dword [rbx], edx
mov dword [rbx + 4], eax
lea rsp, [rsp + 0x30]
jmp fcn.14099c16a

Function at 0x1409bb2ed
Capabilities:
Encode data using base64

Disassembly:
add r10, 2
push 0x20932d9d
not ax
call fcn.1409b0a37
mov eax, 0x7e087184
mov r11d, 0xff3e0c04
call fcn.1409b1bb2
mov qword [rbx], r8
lea rsp, [rsp + 0x10]
jmp fcn.14099c16a

Function at 0x1409bb8c0
Capabilities:
Encode data using base64

Disassembly:
add rbx, 4
mov dword [rbx], eax
push 0x6cac4f9d
lea rsp, [rsp + 0x10]
jmp fcn.14099c16a

Function at 0x1409bb975
Capabilities:
Encode data using base64

Disassembly:
sub bl, 0xb5
mov qword [rsp + r11 - 0xc222], r11
sar r11w, 0xc9
xor r8b, bl
sal r11d, 0xea
add r11d, 0x5db18ea1
dec byte [rsp + r11 - 0x61b1129a]
lea rbx, [rsp + rbx + 8]
sbb r11w, word [rsp + r11 - 0x61b112a1]
jg 0x140989e3e

Function at 0x1409bb9af
Capabilities:
Encode data using base64

Disassembly:
sal eax, cl
mov qword [rsp], 0xffffffffbf3e6697
mov dword [rbx], eax
push 0xb9edc9b
lea rsp, [rsp + 0x20]
jmp fcn.14099c16a

Function at 0x1409bcd63
Capabilities:
Encode data using base64

Disassembly:
sub rbx, 4
push 0x652a7c26
mov dword [rbx], r9d
lea rsp, [rsp + 0x20]
jmp fcn.1409a889a

Function at 0x1409bd06b
Capabilities:
Encode data using base64

Disassembly:
mov byte ss:[rsi], dl
lea rsp, [rsp + 8]
jmp fcn.14099c16a
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rbx, [0x140004060]
mov rdx, rbx
lea rcx, str._i__Data_RawData_var_:_0x_p__n
call fcn.140001010
lea rcx, str.____Decrypting_shellcode.._n
call fcn.140001010
xor eax, eax
lea r9, [0x140004040]
xor r8d, r8d
nop dword [rax + rax]
xor ecx, ecx
cmp rax, 0x1b
cmovbe rcx, rax
movzx eax, byte [rcx + r9]
xor byte [r8 + rbx], al
lea rax, [rcx + 1]
xor ecx, ecx
cmp rax, 0x1b
cmovbe rcx, rax
movzx eax, byte [rcx + r9]
xor byte [r8 + rbx + 1], al
lea rax, [rcx + 1]
xor ecx, ecx
cmp rax, 0x1b
cmovbe rcx, rax
movzx eax, byte [rcx + r9]
xor byte [r8 + rbx + 2], al
lea rax, [rcx + 1]
xor ecx, ecx
cmp rax, 0x1b
cmovbe rcx, rax
movzx eax, byte [rcx + r9]
xor byte [r8 + rbx + 3], al
add r8, 4
lea rax, [rcx + 1]
cmp r8, 0x110
jb 0x1400010b0
lea rcx, str.____Shellcode_successfully_decrypted__n
call fcn.140001010
xor ecx, ecx
mov edx, 0x110
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x140001161
lea rcx, str.Failed_to_allocate_executable_buffer._n
call fcn.140001010
lea eax, [rdi + 1]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 2
lea rax, [rax + 0x80]
movups xmm0, xmmword [rbx]
lea rbx, [rbx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rbx - 0x70]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rax - 0x10], xmm1
sub rcx, 1
jne 0x140001166
movups xmm0, xmmword [rbx]
mov rdx, rdi
lea rcx, str.___Base_Address_of_Allocated_Memory_for_Decrypted_Shellcode:_0x_p_n
movups xmmword [rax], xmm0
call fcn.140001010
call rdi
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140001ad4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b1e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b1e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b1e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b1e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b1e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b20
xor al, al
add rsp, 0x28
ret
Function at 0x6da443a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6da655e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6da44528
mov rax, qword [0x6da655e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6da443ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6da44475
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6da443d0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6da4455d
mov rax, qword [0x6da655e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6da655e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6da44540
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6da4446e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6da444d0
add dword [0x6da655e4], 1
cmp edi, 8
jae 0x6da444a3
test dil, 4
jne 0x6da44514
test edi, edi
je 0x6da44498
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6da4452f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6da44498
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6da444bc
jmp 0x6da44498
add rsi, qword [0x6da655e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6da4446e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6da44498
xor esi, esi
jmp 0x6da443f7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6da44498
mov rax, qword [0x6da655e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6da44cb0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6da658c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6da658a0]
test rbx, rbx
je 0x6da44d04
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6da44cfb
test rsi, rsi
je 0x6da44cfb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6da44ce0
lea rcx, [0x6da658c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6da44f40
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6da44f50
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6da44f60
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6da44fa1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6da44f98
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6da44fa3
add rax, 0x28
cmp rax, r9
jne 0x6da44f84
xor eax, eax
ret

Function at 0x6da45040
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da621f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6da450ad
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da450ad
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da450ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da450a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da450af
add rax, 0x28
cmp rax, r9
jne 0x6da45090
xor eax, eax
add rsp, 0x28
ret

Function at 0x6da451b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da621f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6da451d0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da451c8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da4522d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da45224
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da45234
add rax, 0x28
cmp rax, r9
jne 0x6da45210
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6da45250
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6da621f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6da452be
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da452be
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6da452be
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6da452be
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6da452b5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6da452c5
add rcx, 0x28
cmp rcx, rax
jne 0x6da452a0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6da452d8
jmp 0x6da452be
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6da452e6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6da452be
test r9d, r9d
jg 0x6da452d0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6da45620
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400064f3
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140006523
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.1400064b5
mov rcx, rax
jmp 0x140006528
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400139a0
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.1400199e0
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.1400199e0
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 0x140013a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002a214]
mov rbx, rcx
test esi, esi
jle 0x140013b40
mov rax, qword [0x14002a218]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140013a5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140013ae5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140013a40
mov rcx, rbx
call fcn.140014460
mov rdi, rax
test rax, rax
je 0x140013b62
mov rax, qword [0x14002a218]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400145a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002a218]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140013b47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140013ade
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140013af0
add dword [0x14002a214], 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 [0x14002a218]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140013ade
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400139a0
nop dword [rax]
xor esi, esi
jmp 0x140013a68
mov rax, qword [0x14002a218]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400139a0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400139a0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400140d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002a280]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002a260]
test rbx, rbx
je 0x14001412c
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 0x140014123
test rsi, rsi
je 0x140014123
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014108
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 0x140014460
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400144e0
Capabilities:
Parse pe header

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

Function at 0x1400145a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400238c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400145bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400145c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14001aa60
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14001ab62
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001ab3a
add rax, 1
cmp rax, 0x6b
je 0x14001ab57
cmp byte [rcx + rax], 0
jne 0x14001ab30
movsxd rdx, eax
cmp eax, 0x6a
je 0x14001ab57
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14001ab4b

Function at 0x14001af00
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14002ad80], 1
je 0x14001af78
lea rdi, [0x14002ad80]
mov rcx, rdi
call fcn.14001a7e0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001a160
mov esi, dword [0x14002ad80]
test esi, esi
jne 0x14001af88
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140020478], eax
cmp eax, 0xffffffff
je 0x14001f946
mov dword [0x14002ad80], 1
mov rcx, rbp
call fcn.14001a450
test rbx, rbx
je 0x14001af78
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001ab80
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14001af58
mov ecx, 2
call qword [fcn.1400199e0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001af58
call sub.msvcrt.dll_abort
nop
Function at 0x14001afb0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001ac90
cmp qword [0x14002c048], 0
mov rbx, rax
je 0x14001b0c8
test rax, rax
je 0x14001b0c8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14001e230
cmp eax, 1
je 0x14001b0d6
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.14001f94c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140020478]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14001b0dc
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14001aa60
nop
jmp fcn.14001f94c

Function at 0x14001b0f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001af00
mov ecx, dword [0x140020478]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001b110
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001afb0
Function at 0x14001b880
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 0x14001b9a8
cmp eax, 1
je 0x14001b8db
call fcn.14001a7e0
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.14001a160
mov r12d, dword [rbx]
test r12d, r12d
je 0x14001b8f0
cmp r12d, 1
jne 0x14001b980
mov rcx, rbp
call fcn.14001a450
test rdi, rdi
je 0x14001b8db
mov rcx, rdi
call fcn.14001ab80
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x14001ac60]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14001af00
mov ecx, dword [0x140020478]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x14001b9e8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14001af00
mov ecx, dword [0x140020478]
call r12
test rax, rax
je 0x14001b9d0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14001af00
mov ecx, dword [0x140020478]
call r12
test rax, rax
je 0x14001b9c0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14001b8c6
mov ecx, 2
call qword [fcn.1400199e0]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001b8c6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14001afb0
test rax, rax
jne 0x14001b969
jmp 0x14001f965
call fcn.14001afb0
test rax, rax
jne 0x14001b945
jmp 0x14001f97e
call fcn.14001afb0
test rax, rax
jne 0x14001b91f
jmp 0x14001f974
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 0x14001bc70
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.14001af00
mov ecx, dword [0x140020478]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001bce8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14001e240
cmp esi, dword [rbx + 0x48]
jae 0x14001bcc3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001bcc3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14001e280
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.14001afb0
mov rbx, rax
jmp 0x14001bc9d