joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400136fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140013712
mov al, 1
jmp 0x140013772
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140013723
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140013770
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000fc08
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140013770
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140013770
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140013770
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140013772
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400147b0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000e2d8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001483a
cmp byte [rbp - 0x21], r15b
je 0x140014835
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140014870
call fcn.14000b074
test eax, eax
jne 0x14001485c
cmp byte [rbp - 0x21], r15b
je 0x140014854
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140014870
cmp byte [rbp - 0x21], r15b
je 0x14001486d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000d8b8
test eax, eax
jne 0x140014910
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000e2d8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400148af
cmp byte [rbp - 0x21], r15b
je 0x1400148e4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400148e4
call fcn.14000b074
test eax, eax
jne 0x1400148d0
cmp byte [rbp - 0x21], r15b
je 0x1400148c9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400148e4
cmp byte [rbp - 0x21], r15b
je 0x1400148e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000d8b8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140014910
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140014913
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140014921
mov rcx, rdi
call fcn.14000ae24
cmp byte [rbp + 0x3f], r15b
je 0x140014930
mov rcx, qword [rbp + 0x27]
call fcn.14000ae24
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140016ea0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140016ec8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140016ec8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002de0
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140013590
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400270a8]
call fcn.140011451
lea rcx, str.___Detour_Function_Called_n
call fcn.140011217
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x6a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400135fb
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str._ERROR__Failed_to_allocate_memory_for_shellcode_n
mov rcx, rax
call fcn.1400113f7
jmp 0x14001362e
mov r8d, 0x6a
lea rdx, str.SVWUTXf
mov rcx, qword [rbp + 8]
call fcn.140011235
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
call qword [rbp + 0x28]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011276
Capabilities:
Terminate process

Disassembly:
jmp 0x1400162d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011311
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017620
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017640
xor al, al
jmp 0x1400176c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017653
xor al, al
jmp 0x1400176c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001767d
xor al, al
jmp 0x1400176c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017691
xor al, al
jmp 0x1400176c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400176a3
xor al, al
jmp 0x1400176c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400176bf
xor al, al
jmp 0x1400176c1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x140013650
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001128f
Capabilities:
Execute command

Disassembly:
jmp 0x140011c70
push rbp
push rdi
sub rsp, 0x548
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xe6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x508], rax
lea rcx, [0x1400230a2]
call fcn.140011393
mov dword [rbp + 0x1d4], 0
mov dword [rbp + 0x1f4], 0
mov byte [rbp + 0x2f4], 0x30
mov byte [rbp + 0x314], 0x58
mov dword [rbp + 0x334], 0
jmp 0x140011ce9
mov eax, dword [rbp + 0x334]
inc eax
mov dword [rbp + 0x334], eax
cmp dword [rbp + 0x334], 0x13
jge 0x140011d34
mov dword [rbp + 0x354], 0
jmp 0x140011d0c
mov eax, dword [rbp + 0x354]
inc eax
mov dword [rbp + 0x354], eax
cmp dword [rbp + 0x354], 0x13
jge 0x140011d32
movsxd rax, dword [rbp + 0x334]
imul rax, rax, 0x13
lea rax, [rbp + rax + 0x10]
movsxd rcx, dword [rbp + 0x354]
mov byte [rax + rcx], 0x2b
jmp 0x140011cfe
jmp 0x140011cdb
lea rax, [rbp + 0x290]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x220]
lea r8, [rbp + 0x1f4]
lea rdx, [rbp + 0x1d4]
lea rcx, [rbp + 0x10]
call fcn.14001116d
lea rax, [rbp + 0x290]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x220]
mov r8d, dword [rbp + 0x1f4]
mov edx, dword [rbp + 0x1d4]
lea rcx, [rbp + 0x10]
call fcn.140011271
xor eax, eax
cmp eax, 1
je 0x140011e62
lea rcx, [0x14001afb8]
call fcn.1400111a9
lea r8, [rbp + 0x1b4]
lea rdx, [rbp + 0x194]
lea rcx, str._d__d
call fcn.140011212
movzx r9d, byte [rbp + 0x2f4]
mov r8d, dword [rbp + 0x1b4]
mov edx, dword [rbp + 0x194]
lea rcx, [rbp + 0x10]
call fcn.140011366
lea rax, [rbp + 0x290]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x220]
lea r8, [rbp + 0x1f4]
lea rdx, [rbp + 0x1d4]
lea rcx, [rbp + 0x10]
call fcn.14001116d
lea rcx, [0x14001aff0]
call qword [sym.imp.ucrtbased.dll_system]
lea rax, [rbp + 0x290]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x220]
mov r8d, dword [rbp + 0x1f4]
mov edx, dword [rbp + 0x1d4]
lea rcx, [rbp + 0x10]
call fcn.140011271
movzx eax, byte [rbp + 0x2f4]
mov byte [rbp + 0x374], al
movzx eax, byte [rbp + 0x314]
mov byte [rbp + 0x2f4], al
movzx eax, byte [rbp + 0x374]
mov byte [rbp + 0x314], al
jmp 0x140011d87
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001aeb0]
call fcn.14001132a
mov eax, edi
mov rcx, qword [rbp + 0x508]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x518]
pop rdi
pop rbp
ret
Function at 0x140011299
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014990
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400149b0
xor al, al
jmp 0x140014a31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400149c3
xor al, al
jmp 0x140014a31
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400149ed
xor al, al
jmp 0x140014a31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014a01
xor al, al
jmp 0x140014a31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014a13
xor al, al
jmp 0x140014a31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014a2f
xor al, al
jmp 0x140014a31
mov al, 1
add rsp, 0x38
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14017a8e0]
mov dword [rax], 1
mov rax, qword [0x14017a8f0]
mov dword [rax], 1
mov rax, qword [0x14017a900]
mov dword [rax], 1
mov rax, qword [0x14017a8d0]
mov dword [rax], 1
mov rax, qword [0x14017a780]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
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 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400026fa
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x14000271b
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp fcn.1400190d0

Function at 0x1400054bb
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.1400197f0]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp fcn.1400190d0
push r13
push r12
sub rsp, 0x38
cmp qword [0x140182150], 0
jne 0x14000551a
add rsp, 0x38
pop r12
pop r13
jmp 0x1400054bb
lea r13, [rsp + 0x20]
mov rdx, rcx
mov rcx, r13
call fcn.14000542c
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x140182150]
test r12, r12
je 0x14000554d
test byte [r12 + 7], 0x40
jne 0x14000554d
mov rcx, r12
call fcn.1400037e7
lea rcx, [0x140026340]
call fcn.140013710
cmp byte [rax], 0
je 0x140005587
mov byte [rax], 0
lea rcx, [0x140026240]
call fcn.140013710
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop r12
pop r13
jmp fcn.1400047d6
add rsp, 0x38
pop r12
pop r13
ret
Function at 0x1400054fe
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.1400197f0]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp fcn.1400190d0
push r13
push r12
sub rsp, 0x38
cmp qword [0x140182150], 0
jne 0x14000551a
add rsp, 0x38
pop r12
pop r13
jmp 0x1400054bb
lea r13, [rsp + 0x20]
mov rdx, rcx
mov rcx, r13
call fcn.14000542c
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x140182150]
test r12, r12
je 0x14000554d
test byte [r12 + 7], 0x40
jne 0x14000554d
mov rcx, r12
call fcn.1400037e7
lea rcx, [0x140026340]
call fcn.140013710
cmp byte [rax], 0
je 0x140005587
mov byte [rax], 0
lea rcx, [0x140026240]
call fcn.140013710
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop r12
pop r13
jmp fcn.1400047d6
add rsp, 0x38
pop r12
pop r13
ret

Function at 0x140005c21
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r13, [0x140182120]
xor r12d, r12d
lea rbp, [0x140026340]
mov rsi, rcx
mov rbx, rdx
lea rdi, [rsp + 0x20]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp r12, rbx
jl 0x140005ca8
mov rbx, qword [fcn.1400197f0]
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x14002735b]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
call fcn.1400190d0
mov rcx, r13
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r12, r12
jns 0x140005cc7
lea rdx, [rbx - 1]
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.140004efc
mov r14, r12
mov ecx, 1
call qword [fcn.1400197f0]
shl r14, 4
xor r8d, r8d
mov rdx, rdi
add r14, rsi
mov rcx, rax
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x20], xmm0
call fcn.140005b03
mov rcx, rbp
call fcn.140013710
cmp byte [rax], 0
jne 0x140005d1d
add r12, 1
jno 0x140005c54
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.1400038ff
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14000f40c
Capabilities:
Parse pe header

Disassembly:
push r12
sub rsp, 0x20
test rcx, rcx
je 0x14000f44d
cmp word [rcx], 0x5a4d
jne 0x14000f44d
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x14000f44d
call fcn.1400074b4
mov rcx, qword [0x14017a760]
mov r12, rax
call fcn.140013710
cmp byte [rax], 0
jne 0x14000f44d
cmp dword [r12], 0x4550
je 0x14000f450
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop r12
ret

Function at 0x1400123c0
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 fcn.1400197f0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400197f0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140012ff2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140182b68]
test eax, eax
je 0x14001308a
lea rax, [0x140182b40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140182b70]
mov qword [rbp - 8], rax
jmp 0x14001306e
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 0x140013062
cmp qword [rbp - 0x10], 0
je 0x140013062
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 0x140013028
lea rax, [0x140182b40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001308b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140013190
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 0x1400131b8
mov eax, 0
jmp 0x140013206
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 0x1400131e1
mov eax, 0
jmp 0x140013206
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 0x140013201
mov eax, 0
jmp 0x140013206
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14001320c
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 0x14001328a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140013281
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 0x140013281
mov rax, qword [rbp - 8]
jmp 0x14001329f
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 0x140013254
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14001abe4
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 0x14001ad2e
mov rcx, qword [rbp + 0x10]
call fcn.14001f1bd
cmp eax, 1
jne 0x14001ad21
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 - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 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.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x14001acd7
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14001aced
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x14001acd3
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14001ad0c
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.msvcrt.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14001ad2f
nop
add rsp, 0x90
pop rbp
ret
Function at 0x14001bf25
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, [0x14001bd4b]
mov rdx, rax
lea rax, [0x1401835f0]
mov rcx, rax
call fcn.14001b356
mov eax, dword [0x140026660]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001bf78
mov rax, qword [rbp - 0x10]
jmp 0x14001c0d8
call fcn.14001aac0
mov qword [rbp - 0x10], rax
mov rax, qword [0x140185050]
test rax, rax
je 0x14001bf94
cmp qword [rbp - 0x10], 0
jne 0x14001bf9e
mov eax, 0
jmp 0x14001c0d8
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.14001abe4
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 0x14001c079
call sub.msvcrt.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 [0x140026660]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14001c0d4
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret