joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b310
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x80
cmp qword [rdx + 8], 0xffffffffffffffff
mov rbp, r8
mov rdi, rdx
mov esi, ecx
je 0x14001b385
cmp qword [rdx], 0xffffffffffffffff
je 0x14001b385
mov edx, dword [rdx + 0x10]
xor r8d, r8d
call fcn.14002c694
test eax, eax
js 0x14001b385
mov rcx, qword [rdi + 8]
inc rcx
call fcn.140020304
mov rbx, rax
test rax, rax
je 0x14001b385
mov r12, qword [rdi + 8]
mov rdx, rax
mov ecx, esi
mov r8d, r12d
call fcn.14002b9c4
movsxd rcx, eax
cmp rcx, r12
je 0x14001b3a5
mov rcx, rbx
call fcn.140020490
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
cmp dword [rdi + 0x14], 0
jne 0x14001b3c0
mov byte [r12 + rbx], 0
test rbp, rbp
je 0x14001b3bb
mov eax, dword [rdi + 8]
mov dword [rbp], eax
mov rax, rbx
jmp 0x14001b387
cmp dword [rdi + 0x14], 8
jne 0x14001b385
mov eax, dword [rdi + 8]
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
mov r9d, 0x58
lea r8, str.1.2.3
lea rcx, [rsp + 0x20]
lea edx, [r9 - 0x67]
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], eax
call fcn.14001c210
test eax, eax
js 0x14001b37d
mov rcx, qword [rdi]
inc rcx
call fcn.140020304
mov rsi, rax
test rax, rax
je 0x14001b37d
mov qword [rsp + 0x30], rax
mov eax, dword [rdi]
lea rcx, [rsp + 0x20]
mov edx, 1
mov dword [rsp + 0x38], eax
call fcn.14001c3f8
mov rcx, rbx
test eax, eax
jns 0x14001b44c
call fcn.140020490
mov rcx, rsi
jmp 0x14001b380
mov rax, qword [rdi]
mov byte [rsi + rax], 0
call fcn.140020490
lea rcx, [rsp + 0x20]
call fcn.14001d978
test eax, eax
js 0x14001b444
test rbp, rbp
je 0x14001b470
mov eax, dword [rdi]
mov dword [rbp], eax
mov rax, rsi
jmp 0x14001b387
Function at 0x14001b478
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov rbp, rdx
mov edx, 0xffffffea
mov ebx, ecx
lea r8d, [rdx + 0x18]
call fcn.14002c694
mov edi, eax
test eax, eax
js 0x14001b5e3
mov r8d, 0x16
mov rdx, rbp
mov ecx, ebx
call fcn.14002b9c4
test eax, eax
js 0x14001b5e3
movzx eax, byte [rbp + 2]
movzx ecx, byte [rbp + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x14001b4f4
mov eax, edi
jmp 0x14001b5e6
xor edx, edx
mov ecx, ebx
lea r8d, [rdx + 2]
call fcn.14002c694
mov r12d, eax
test eax, eax
js 0x14001b5e3
mov edi, 0x10015
mov r8d, 2
mov ecx, ebx
cmp eax, edi
mov esi, edi
cmovl esi, eax
mov edx, esi
neg edx
call fcn.14002c694
test eax, eax
js 0x14001b5e3
mov ecx, edi
call fcn.140020304
mov rdi, rax
test rax, rax
je 0x14001b5e3
mov r8d, esi
mov rdx, rax
mov ecx, ebx
call fcn.14002b9c4
test eax, eax
js 0x14001b5db
movsxd rsi, eax
add eax, 0xffffffea
movsxd rbx, eax
add rsi, rdi
add rbx, rdi
cmp rbx, rdi
jb 0x14001b5db
cmp byte [rbx], 0x50
jne 0x14001b5b1
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x14001b5b1
movzx eax, byte [rbx + 0x15]
shl eax, 8
movsxd rcx, eax
movzx eax, byte [rbx + 0x14]
or rcx, rax
lea rax, [rcx + rbx + 0x16]
cmp rax, rsi
je 0x14001b5b6
dec rbx
jmp 0x14001b568
mov r8d, 0x16
mov rdx, rbx
mov rcx, rbp
call fcn.14001f170
mov rcx, rdi
call fcn.140020490
mov r11d, r12d
sub r11, rsi
lea rax, [rbx + r11]
jmp 0x14001b5e6
mov rcx, rdi
call fcn.140020490
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x14001ebf4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14001ea64

Function at 0x14001efa0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x3ca7965c
jmp 0x14000bfb8
dec rcx
jmp 0x14000c0c1
jne 0x14000bfb8
jmp 0x14000c408
jmp 0x14000c717
jmp 0x14000c736
jmp 0x14000c7bb
jmp 0x14000c80e
jmp 0x14000c82a
jmp 0x14000c87e
jmp 0x14000c8c1
jmp 0x14000c955
jmp 0x14000c993
jmp 0x14000c9b7
jmp 0x14000ca35
jmp 0x14000ca64
jmp 0x14000cad6
jmp 0x14000cb25
jmp 0x14000cb76
jmp 0x14000cbbf
jmp 0x14000cc26
jmp 0x14000cc63
jmp 0x14000cc97
jmp 0x14000cd17
xor rcx, rcx
mov rdx, 0x8487
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call 0x14000cd37
pop rsi
add rsi, 0xe42
mov rdi, rax
mov rcx, 0x8487
rep movsb byte [rdi], byte [rsi]
jmp rax
sub rsp, 0x28
call fcn.1400245e8
add rsp, 0x28
xor rcx, rcx
jmp 0x14000bf90

Function at 0x14002134c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x140021376
call fcn.140020e10
and dword [rax], 0
call fcn.140020df0
mov ebx, 0x16
mov dword [rax], ebx
call fcn.14002204c
mov eax, ebx
jmp 0x1400213c6
test edx, 0xfffffff9
jne 0x140021359
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14002139f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140020e30
call fcn.140020df0
mov eax, dword [rax]
jmp 0x1400213c6
test al, 0x10
jne 0x1400213c4
test al, 1
je 0x1400213c4
test bl, 2
je 0x1400213c4
call fcn.140020e10
mov dword [rax], 5
call fcn.140020df0
mov dword [rax], 0xd
jmp 0x140021396
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140025a07
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400380c0]
jne 0x14001f86a
rol rcx, 0x10
test cx, 0xffff
jne 0x14001f866
repz ret
ror rcx, 0x10
jmp 0x140025960
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14003a470]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14003a568]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400259e5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14003a470]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140025a07
mov rax, qword [rsp + 0x88]
mov qword [0x14003a568], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14003a508], rax
mov rax, qword [0x14003a568]
mov qword [0x14003a3e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14003a4f0], rax
mov dword [0x14003a3d0], 0xc0000409
mov dword [0x14003a3d4], 1
mov rax, qword [0x1400380c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400380c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14003a468], eax
mov ecx, 1
call fcn.140029dfc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400346d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14003a468], 0
jne 0x140025a8e
mov ecx, 1
call fcn.140029dfc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140029e4c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400380c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400220a8
xor ebx, ebx
cmp qword [0x14003a970], rbx
mov rdi, rax
jne 0x140029f5f
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14002a036
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002a036
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14003a970], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14003a978], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14003a980], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14003a990], rax
test rax, rax
je 0x140029f56
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14003a988], rax
jmp 0x140029f66
mov rax, qword [0x14003a988]
jmp 0x140029f6d
mov rax, qword [0x14003a988]
mov r11, qword [0x14003a990]
cmp rax, rdi
je 0x140029fd4
cmp r11, rdi
je 0x140029fd4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14003a990]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140029fd4
test rax, rax
je 0x140029fd4
call rsi
test rax, rax
je 0x140029fce
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140029fce
test byte [rsp + 0x40], 1
jne 0x140029fd4
bts ebp, 0x15
jmp 0x14002a014
mov rcx, qword [0x14003a978]
cmp rcx, rdi
je 0x14002a014
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002a014
call rax
mov rbx, rax
test rax, rax
je 0x14002a014
mov rcx, qword [0x14003a980]
cmp rcx, rdi
je 0x14002a014
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002a014
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14003a970]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002a036
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14002a038
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001f850
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400d83a0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400d83b0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400199d0
jmp 0x14000123c
mov rax, qword [0x1400d83b0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400d83b0]
mov dword [rax], 1
mov rax, qword [0x1400d8410]
mov rdx, rax
mov rax, qword [0x1400d8400]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140106024], 1
mov rax, qword [0x1400d83b0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400d83f0]
mov rdx, rax
mov rax, qword [0x1400d83e0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400d83b0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400d83a0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400d82e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400d82e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14000e5a8
mov rax, qword [0x1400d8450]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400d8390]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14000dda0
mov eax, dword [0x140106004]
lea rdx, [0x140106008]
mov ecx, eax
call fcn.14000147c
call fcn.14000db37
mov rax, qword [0x1400d8320]
mov rax, qword [rax]
mov rdx, qword [0x140106010]
mov qword [rax], rdx
mov rcx, qword [0x140106010]
mov rdx, qword [0x140106008]
mov eax, dword [0x140106004]
mov r8, rcx
mov ecx, eax
call fcn.1400cbb50
mov dword [0x14010601c], eax
mov eax, dword [0x140106020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14010601c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140106024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14010601c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400d8350]
mov dword [rax], 1
mov rax, qword [0x1400d8360]
mov dword [rax], 1
mov rax, qword [0x1400d8370]
mov dword [rax], 1
mov rax, qword [0x1400d8310]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002153
Capabilities:
Get session user name

Disassembly:
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
lea rsi, [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov dword [rsp + 0x2c], 0x100
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rdx, rsi
mov rcx, rbx
call fcn.1400016e8
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
ret

Function at 0x1400033a7
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push r13
mov eax, 0x13d8
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000f0d0
sub rsp, rax
lea rax, [rsp + 0x30]
mov rsi, rcx
mov ebp, edx
mov byte [rsp + 0x30], 0
lea rbx, [rsp + 0xa08]
mov qword [rsp + 0x20], rax
xor eax, eax
lea rdx, [0x1400d210e]
mov rcx, rbx
mov qword [rsp + 0x28], rax
call fcn.1400016e8
lea rdi, [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
call fcn.140098860
mov rcx, rbx
call fcn.1400a8e80
mov rcx, rdi
call fcn.140098a60
mov dword [rsp + 0xa08], eax
mov edx, 1
jmp 0x14000342f
mov eax, dword [rbx + rdx*4 - 4]
mov ecx, eax
shr ecx, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
inc rdx
cmp rdx, 0x270
jne 0x14000342f
mov qword [rsp + 0x13c8], 0x270
xor r12d, r12d
lea r13, [rsp + 0x20]
cmp r12d, ebp
jge 0x1400034aa
mov rcx, rbx
call fcn.1400a4b70
mov edx, eax
imul rdx, rdx, 0x1a
mov eax, edx
cmp edx, 0x19
ja 0x140003496
cmp eax, 0x15
ja 0x140003496
mov rcx, rbx
call fcn.1400a4b70
mov edx, eax
imul rdx, rdx, 0x1a
mov eax, edx
jmp 0x14000347f
shr rdx, 0x20
mov rcx, r13
add edx, 0x61
call fcn.1400abc20
inc r12d
jmp 0x140003465
lea rbx, [rsp + 0x20]
lea rdx, str.____
mov rcx, rsi
mov r8, rbx
call fcn.1400c8620
mov rcx, rdi
call fcn.1400987e0
mov rcx, rbx
call fcn.1400a8e80
mov rax, rsi
add rsp, 0x13d8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x14000ddb0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140019760
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
Function at 0x14000ea82
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1401061e8]
test eax, eax
je 0x14000eb1a
lea rax, [0x1401061c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1401061f0]
mov qword [rbp - 8], rax
jmp 0x14000eafe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000eaf2
cmp qword [rbp - 0x10], 0
je 0x14000eaf2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000eab8
lea rax, [0x1401061c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000eb1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000ec20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000ec48
mov eax, 0
jmp 0x14000ec96
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000ec71
mov eax, 0
jmp 0x14000ec96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000ec91
mov eax, 0
jmp 0x14000ec96
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000ec9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000ed1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000ed11
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000ed11
mov rax, qword [rbp - 8]
jmp 0x14000ed2f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000ece4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001cc79
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14001cdc4
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14001c29d
cmp eax, 1
jne 0x14001cdb7
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x15], 0
mov qword [rbp - 0xd], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x14001cd6d
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14001cd83
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x14001cd69
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14001cda2
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14001cdc5
nop
add rsp, 0x90
pop rbp
ret
Function at 0x14001dfd7
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x14001ddfa]
mov rdx, rax
lea rax, [0x140106c70]
mov rcx, rax
call fcn.14001d3f2
mov eax, dword [0x1400cf1e0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001e02a
mov rax, qword [rbp - 0x10]
jmp 0x14001e18a
call fcn.14001cb55
mov qword [rbp - 0x10], rax
mov rax, qword [0x140109048]
test rax, rax
je 0x14001e046
cmp qword [rbp - 0x10], 0
jne 0x14001e050
mov eax, 0
jmp 0x14001e18a
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.14001cc79
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x14001e12b
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1400cf1e0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14001e186
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret