joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a500
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.14002f0b0
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.1400265e0
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14001a559
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x14002dd90
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.14003f510
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.14003f510
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14002ea62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400542a8]
test eax, eax
je 0x14002eafa
lea rax, [0x140054280]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400542b0]
mov qword [rbp - 8], rax
jmp 0x14002eade
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 0x14002ead2
cmp qword [rbp - 0x10], 0
je 0x14002ead2
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 0x14002ea98
lea rax, [0x140054280]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002eafb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14002ec00
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 0x14002ec28
mov eax, 0
jmp 0x14002ec76
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 0x14002ec51
mov eax, 0
jmp 0x14002ec76
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 0x14002ec71
mov eax, 0
jmp 0x14002ec76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14002ec7c
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 0x14002ecfa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14002ecf1
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 0x14002ecf1
mov rax, qword [rbp - 8]
jmp 0x14002ed0f
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 0x14002ecc4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140045460
Capabilities:
Encode data using xor

Disassembly:
push rsi
sub rsp, 0x830
mov rax, qword [0x140157a58]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov qword [rsp + 0x848], rbx
mov rbx, rcx
call fcn.1400461a0
mov rsi, rax
cmp dword [rax + 0x28], 0
je 0x14004549d
mov rcx, rax
call qword [fcn.14010b150]
mov qword [rsp + 0x858], rdi
test rbx, rbx
jne 0x1400454b1
xor edi, edi
jmp 0x140045661
cmp byte [rbx], 1
jne 0x14004565e
movsx edx, byte [rbx + 1]
movzx eax, dl
add al, al
lea ecx, [rdx + 0x65]
add cl, al
xor byte [rbx + 2], cl
lea ecx, [rdx + rdx*8]
movzx r9d, byte [rbx + 2]
lea eax, [rcx + 0x68]
xor byte [rbx + 3], al
lea edx, [rcx + 4]
movzx eax, byte [rbx + 3]
shl r9d, 8
or r9, rax
jbe 0x140045511
mov r8, rbx
nop dword [rax]
movzx eax, byte [r8 + 4]
lea edx, [rdx + rdx*2]
lea ecx, [rdx + 0x65]
xor al, cl
lea edx, [rdx + 1]
mov byte [r8], al
inc r8
mov rax, r8
sub rax, rbx
cmp rax, r9
jl 0x1400454f0
xor edi, edi
mov byte [r9 + rbx], 0
call fcn.140595f33
nop
mov r8d, eax
lea edx, [rdi + 1]
lea rax, [0x1401632d0]
lea rcx, [0x140163284]
lea r9, [0x140000000]
cmp dword [rcx], r8d
je 0x14004554b
inc edx
add rcx, 4
cmp rcx, rax
jl 0x140045532
jmp 0x140045551
mov edi, edx
test edx, edx
jne 0x14004556e
mov ecx, dword [0x140163270]
cmp ecx, 0x13
jae 0x14004556e
inc ecx
mov dword [0x140163270], ecx
mov edi, ecx
mov dword [r9 + rcx*4 + 0x163280], r8d
mov eax, edi
mov rdi, qword [r9 + rax*8 + 0x1631d0]
mov qword [r9 + rax*8 + 0x1631d0], rbx
test rdi, rdi
je 0x14004565e
cmp rdi, rbx
je 0x14004565e
cmp byte [rbx], 1
je 0x14004565e
cmp byte [rdi], 1
je 0x14004565e
mov r8d, 0x800
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140595187
nop
lea rcx, [rsp + 0x20]
call fcn.140591e01
nop
mov r8d, eax
test eax, eax
je 0x14004565e
lea rax, [rsp + 0x20]
mov qword [rsp + 0x850], rbp
movzx ecx, al
mov r11d, 4
mov byte [rdi + 1], cl
mov byte [rdi], 1
lea ecx, [rcx + rcx*2]
lea ebp, [rcx + 0x65]
lea ecx, [rcx + 1]
lea edx, [rcx + rcx*2]
lea r10d, [rdx + 0x65]
inc edx
test r8d, r8d
jle 0x140045639
lea r9, [rsp + 0x20]
mov rax, rdi
sub rax, r9
lea rcx, [rsp + 0x20]
lea r11d, [r8 + 4]
lea r9, [rax + 4]
nop dword [rax]
lea edx, [rdx + rdx*2]
lea eax, [rdx + 0x65]
xor al, byte [rcx]
lea edx, [rdx + 1]
mov byte [r9 + rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x140045620
movsxd rax, r11d
lea ecx, [r11 - 4]
mov byte [rax + rdi], 0
mov eax, ecx
sar eax, 8
xor al, bpl
mov rbp, qword [rsp + 0x850]
xor r10b, cl
mov byte [rdi + 2], al
mov byte [rdi + 3], r10b
mov rdi, rbx
cmp dword [rsi + 0x28], 0
mov rbx, qword [rsp + 0x848]
je 0x140045678
mov rcx, rsi
call qword [fcn.14010b158]
mov rax, rdi
mov rdi, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.140090220
add rsp, 0x830
pop rsi
ret
Function at 0x1400456a0
Capabilities:
Encode data using xor

Disassembly:
push rsi
sub rsp, 0x830
mov rax, qword [0x140157a58]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov qword [rsp + 0x858], rdi
mov rdi, rcx
call fcn.1400461a0
mov rsi, rax
cmp dword [rax + 0x28], 0
je 0x1400456dd
mov rcx, rax
call qword [fcn.14010b150]
mov qword [rsp + 0x848], rbx
test rdi, rdi
jne 0x1400456f1
xor ebx, ebx
jmp 0x140045841
cmp byte [rdi], 1
jne 0x14004583e
movsx edx, byte [rdi + 1]
movzx eax, dl
add al, al
lea ecx, [rdx + 0x65]
add cl, al
xor byte [rdi + 2], cl
lea ecx, [rdx + rdx*8]
movzx r9d, byte [rdi + 2]
lea eax, [rcx + 0x68]
xor byte [rdi + 3], al
lea edx, [rcx + 4]
movzx eax, byte [rdi + 3]
shl r9d, 8
or r9, rax
jbe 0x14004574b
xor ebx, ebx
nop dword [rax + rax]
movzx eax, byte [rdi + rbx + 4]
lea edx, [rdx + rdx*2]
lea ecx, [rdx + 0x65]
xor al, cl
lea edx, [rdx + 1]
mov byte [rbx + rdi], al
inc rbx
cmp rbx, r9
jl 0x140045730
mov rbx, qword [0x1401632d0]
mov byte [r9 + rdi], 0
mov qword [0x1401632d0], rdi
test rbx, rbx
je 0x14004583e
cmp rbx, rdi
je 0x14004583e
cmp byte [rdi], 1
je 0x14004583e
cmp byte [rbx], 1
je 0x14004583e
mov r8d, 0x800
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140595187
nop
lea rcx, [rsp + 0x20]
call fcn.140591e01
nop
mov r8d, eax
test eax, eax
je 0x14004583e
lea rax, [rsp + 0x20]
mov qword [rsp + 0x850], rbp
movzx ecx, al
mov r11d, 4
mov byte [rbx + 1], cl
mov byte [rbx], 1
lea ecx, [rcx + rcx*2]
lea ebp, [rcx + 0x65]
lea ecx, [rcx + 1]
lea edx, [rcx + rcx*2]
lea r10d, [rdx + 0x65]
inc edx
test r8d, r8d
jle 0x140045819
lea r9, [rsp + 0x20]
mov rax, rbx
sub rax, r9
lea rcx, [rsp + 0x20]
lea r11d, [r8 + 4]
lea r9, [rax + 4]
nop word [rax + rax]
lea edx, [rdx + rdx*2]
lea eax, [rdx + 0x65]
xor al, byte [rcx]
lea edx, [rdx + 1]
mov byte [r9 + rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x140045800
movsxd rax, r11d
lea ecx, [r11 - 4]
mov byte [rax + rbx], 0
mov eax, ecx
sar eax, 8
xor al, bpl
mov rbp, qword [rsp + 0x850]
xor r10b, cl
mov byte [rbx + 2], al
mov byte [rbx + 3], r10b
mov rbx, rdi
cmp dword [rsi + 0x28], 0
mov rdi, qword [rsp + 0x858]
je 0x140045858
mov rcx, rsi
call qword [fcn.14010b158]
mov rax, rbx
mov rbx, qword [rsp + 0x848]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.140090220
add rsp, 0x830
pop rsi
ret
Function at 0x140045da0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov eax, 0x1040
call fcn.14008f990
sub rsp, rax
mov rax, qword [0x140157a58]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov qword [rsp + 0x1058], rbx
mov rbx, rcx
call fcn.1400461a0
mov rbp, rax
cmp dword [rax + 0x28], 0
je 0x140045de3
mov rcx, rax
call qword [fcn.14010b150]
mov qword [rsp + 0x1060], rsi
test rbx, rbx
jne 0x140045df7
xor esi, esi
jmp 0x140045f6f
cmp word [rbx], 1
jne 0x140045f6c
movzx edx, word [rbx + 2]
xor esi, esi
movzx eax, dx
mov qword [rsp + 0x1038], rdi
add ax, ax
lea ecx, [rdx + 0x65]
add cx, ax
xor word [rbx + 4], cx
lea ecx, [rdx + rdx*8]
movzx r9d, byte [rbx + 4]
lea eax, [rcx + 0x68]
xor word [rbx + 6], ax
lea edx, [rcx + 4]
movzx eax, byte [rbx + 6]
shl r9d, 8
or r9, rax
jbe 0x140045e60
mov r8d, esi
movzx eax, word [rbx + r8*2 + 8]
lea edx, [rdx + rdx*2]
lea ecx, [rdx + 0x65]
xor ax, cx
lea edx, [rdx + 1]
mov word [rbx + r8*2], ax
inc r8
cmp r8, r9
jl 0x140045e41
mov rdi, qword [0x1401632d8]
mov word [rbx + r9*2], si
mov qword [0x1401632d8], rbx
test rdi, rdi
je 0x140045f64
cmp rdi, rbx
je 0x140045f64
cmp word [rbx], 1
je 0x140045f64
cmp word [rdi], 1
je 0x140045f64
mov r8d, 0x800
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.14059916b
nop
lea rcx, [rsp + 0x20]
call fcn.140590706
nop
mov r8d, eax
test eax, eax
je 0x140045f64
mov eax, 1
mov qword [rsp + 0x1030], r14
mov word [rdi], ax
mov r11d, 4
lea rax, [rsp + 0x20]
movzx ecx, al
mov word [rdi + 2], cx
lea ecx, [rcx + rcx*2]
lea r14d, [rcx + 0x65]
lea ecx, [rcx + 1]
lea edx, [rcx + rcx*2]
lea r10d, [rdx + 0x65]
inc edx
test r8d, r8d
jle 0x140045f3b
lea r9, [rsp + 0x20]
mov rax, rdi
sub rax, r9
lea rcx, [rsp + 0x20]
lea r11d, [r8 + 4]
lea r9, [rax + 8]
nop word [rax + rax]
lea edx, [rdx + rdx*2]
lea eax, [rdx + 0x65]
xor ax, word [rcx]
lea edx, [rdx + 1]
mov word [r9 + rcx], ax
lea rcx, [rcx + 2]
sub r8, 1
jne 0x140045f20
movsxd rax, r11d
lea ecx, [r11 - 4]
mov word [rdi + rax*2], si
mov eax, ecx
sar eax, 8
xor ax, r14w
mov r14, qword [rsp + 0x1030]
xor r10w, cx
mov word [rdi + 4], ax
mov word [rdi + 6], r10w
mov rdi, qword [rsp + 0x1038]
mov rsi, rbx
cmp dword [rbp + 0x28], 0
mov rbx, qword [rsp + 0x1058]
je 0x140045f86
mov rcx, rbp
call qword [fcn.14010b158]
mov rax, rsi
mov rsi, qword [rsp + 0x1060]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140090220
add rsp, 0x1040
pop rbp
ret
Function at 0x140008d60
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140035030]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
call fcn.140008920
nop
lea rdx, str.All_Users
lea rcx, [rsp + 0x38]
call fcn.1400090b0
lea rdx, str.config_
lea rcx, [rsp + 0x38]
call fcn.1400090b0
lea rdx, str.configEx.ini
lea rcx, [rsp + 0x38]
call fcn.1400090b0
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140008e90
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140008e35
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008e30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008fd2
call fcn.14000bb4c
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], di
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140008e89
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140008e84
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008fd8
mov rcx, r8
call fcn.14000bb4c
xor al, al
jmp 0x140008f9f
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.14000e080
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, qword [rsp + 0x38]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140008ec0
mov rdx, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], pe_nt_image_headers64
lea r9, [rsp + 0x60]
lea r8, str.Error
lea rcx, str.Update
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140008ef2
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140001ae0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140008f4d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008f48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008fd2
call fcn.14000bb4c
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], di
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140008f9d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140008f98
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008fd8
mov rcx, r8
call fcn.14000bb4c
mov al, 1
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14000b8a0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140011f28
nop
call fcn.140011f28
int3
Function at 0x140003a60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, rdx
mov rsi, rdx
call sub.msvcrt.dll_strlen
mov rcx, rsi
mov r9, rbx
mov edx, 1
mov r8, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp 0x14001b208
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x14000c480
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
pxor xmm0, xmm0
xor eax, eax
movups xmmword [r8], xmm0
lea rbx, [rsp + 0x30]
mov rsi, rcx
mov r15, rdx
movups xmmword [r8 + 0x10], xmm0
mov ecx, 0xd
mov rdi, rbx
mov rbp, r8
rep stosq qword [rdi], rax
movdqu xmm0, xmmword [0x1400225c0]
mov rcx, qword [0x140031ce0]
movups xmmword [rsp + 0x38], xmm0
movdqu xmm0, xmmword [0x1400225d0]
movups xmmword [rsp + 0x48], xmm0
call fcn.140015a60
cmp byte [rax], 0
mov rdi, rax
jne 0x14000c659
test r15, r15
jle 0x14000c63b
mov eax, 0x40
lea rcx, [rsp + 0x58]
mov r14, r15
cmp r15, rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x38]
cmovle rax, r15
mov qword [rsp + 0x28], rcx
xor r13d, r13d
xor edx, edx
jmp 0x14000c5c4
test al, 4
jne 0x14000c670
test edx, edx
je 0x14000c544
movzx r9d, byte [r8]
mov byte [rcx], r9b
test dl, 2
jne 0x14000c688
mov r12, r13
xor edx, edx
add r12, rax
js 0x14000c6aa
cmp r12, rax
jb 0x14000c6aa
mov r13, r12
test rdx, rdx
jne 0x14000c6a0
sub r14, rax
add eax, dword [rsp + 0x30]
mov dword [rsp + 0x30], eax
jae 0x14000c579
add dword [rsp + 0x34], 1
test al, 0x3f
jne 0x14000c59b
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, 0x40
call fcn.14000c6c0
cmp byte [rdi], 0
jne 0x14000c659
test r14, r14
jle 0x14000c634
mov edx, dword [rsp + 0x30]
mov eax, 0x40
and edx, 0x3f
sub rax, rdx
cmp rax, r14
cmovg rax, r14
test r12, r12
js 0x14000c628
cmp r15, r12
jle 0x14000c628
lea rcx, [rbx + rdx + 0x28]
lea r8, [rsi + r13]
mov edx, eax
cmp eax, 8
jb 0x14000c528
mov rdx, qword [r8]
lea r10, [rcx + 8]
and r10, 0xfffffffffffffff8
mov qword [rcx], rdx
mov edx, eax
mov r9, qword [r8 + rdx - 8]
mov qword [rcx + rdx - 8], r9
sub rcx, r10
lea edx, [rax + rcx]
sub r8, rcx
and edx, 0xfffffff8
cmp edx, 8
jb 0x14000c544
and edx, 0xfffffff8
xor ecx, ecx
mov r9d, ecx
add ecx, 8
mov r11, qword [r8 + r9]
mov qword [r10 + r9], r11
cmp ecx, edx
jb 0x14000c60c
jmp 0x14000c544
lea rdx, [r15 - 1]
mov rcx, r12
call fcn.1400099a0
movzx eax, byte [rdi]
test al, al
jne 0x14000c659
mov rdx, rbp
mov rcx, rbx
call fcn.14000e520
cmp byte [rdi], 0
jne 0x14000c659
mov edx, 0x68
mov rcx, rbx
call fcn.14000c420
nop
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, dword [r8]
mov dword [rcx], r9d
mov r8d, dword [r8 + rdx - 4]
mov dword [rcx + rdx - 4], r8d
jmp 0x14000c544
movzx r8d, word [r8 + rdx - 2]
mov word [rcx + rdx - 2], r8w
jmp 0x14000c544
call fcn.140006d20
movzx eax, byte [rdi]
jmp 0x14000c637
mov edx, 1
jmp 0x14000c55b
Function at 0x140014bf0
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.14001ac30
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.14001ac30
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 0x140014c60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140037684]
mov rbx, rcx
test esi, esi
jle 0x140014d90
mov rax, qword [0x140037688]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140014cab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140014d35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140014c90
mov rcx, rbx
call fcn.1400156b0
mov rdi, rax
test rax, rax
je 0x140014db2
mov rax, qword [0x140037688]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400157f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140037688]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140014d97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140014d2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140014d40
add dword [0x140037684], 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 [0x140037688]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140014d2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140014bf0
nop dword [rax]
xor esi, esi
jmp 0x140014cb8
mov rax, qword [0x140037688]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140014bf0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140014bf0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140015320
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400376e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400376c0]
test rbx, rbx
je 0x14001537c
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 0x140015373
test rsi, rsi
je 0x140015373
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140015358
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 0x1400156b0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140015730
Capabilities:
Parse pe header

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

Function at 0x1400157f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140031cf0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001580f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140015818
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14001bcb0
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 0x14001bdb2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001bd8a
add rax, 1
cmp rax, 0x6b
je 0x14001bda7
cmp byte [rcx + rax], 0
jne 0x14001bd80
movsxd rdx, eax
cmp eax, 0x6a
je 0x14001bda7
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 0x14001bd9b