joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d4d00
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d5702
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d579a
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d577e
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 0x2fc4d5772
cmp qword [rbp - 0x10], 0
je 0x2fc4d5772
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 0x2fc4d5738
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d579b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d58a0
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 0x2fc4d58c8
mov eax, 0
jmp 0x2fc4d5916
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 0x2fc4d58f1
mov eax, 0
jmp 0x2fc4d5916
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 0x2fc4d5911
mov eax, 0
jmp 0x2fc4d5916
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d591c
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 0x2fc4d599a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d5991
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 0x2fc4d5991
mov rax, qword [rbp - 8]
jmp 0x2fc4d59af
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 0x2fc4d5964
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14077f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14077f1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14077f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14077f06f
add dl, dl
jne 0x14077f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14077f0f6
xor eax, eax
add dl, dl
jne 0x14077f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14077f1ad
add dl, dl
jne 0x14077f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14077f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14077f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14077f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14077f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14077f07e
mov eax, 1
add dl, dl
jne 0x14077f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14077f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14077f0fb
sub eax, ebx
mov ebx, 1
jne 0x14077f14c
mov ecx, 1
add dl, dl
jne 0x14077f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14077f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14077f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14077f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14077f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14077f15d
cmp eax, 0x7d00
jae 0x14077f19b
cmp eax, 0x500
jb 0x14077f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077f07e
cmp eax, 0x7f
ja 0x14077f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14077f1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14077f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140006930
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.140007940
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.140007940
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 0x1400069a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401680c4]
mov rbx, rcx
test esi, esi
jle 0x140006ad0
mov rax, qword [0x1401680c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400069eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140006a75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400069d0
mov rcx, rbx
call fcn.1400073f0
mov rdi, rax
test rax, rax
je 0x140006af2
mov rax, qword [0x1401680c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140007530
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401680c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140006ad7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140006a6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140006a80
add dword [0x1401680c4], 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 [0x1401680c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140006a6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140006930
nop dword [rax]
xor esi, esi
jmp 0x1400069f8
mov rax, qword [0x1401680c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140006930
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140006930
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140007060
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140168120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140168100]
test rbx, rbx
je 0x1400070bc
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 0x1400070b3
test rsi, rsi
je 0x1400070b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140007098
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 0x1400073f0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140007470
Capabilities:
Parse pe header

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

Function at 0x140007530
Capabilities:
Parse pe header

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

Function at 0x140007a80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x28
call fcn.140006720
mov rax, qword [0x140165450]
xor edx, edx
mov rcx, qword [rax]
mov rax, qword [0x140165470]
mov r9d, dword [rax]
mov rax, qword [0x140165460]
mov r8, qword [rax]
add rsp, 0x28
jmp fcn.140001ab0
Function at 0x140002bcc
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
sub rsp, 0x38
mov rsi, rcx
mov rcx, rdx
mov edx, 1
mov r9, rsi
mov rdi, r8
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rdi, rax
je 0x140002bff
mov rcx, rsi
mov qword [rsp + 0x28], rax
call fcn.140002b0e
mov rax, qword [rsp + 0x28]
add rsp, 0x38
pop rsi
pop rdi
ret

Function at 0x140002f48
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, rdx
mov edx, 1
mov r9, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rbx
mov qword [rsp + 0x28], rax
call fcn.140002b0e
mov rax, qword [rsp + 0x28]
add rsp, 0x30
pop rbx
ret

Function at 0x1400035fb
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x14000361a
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x140026d48
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]

Function at 0x140005ce5
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov qword [rsp + 0x28], rdx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp 0x140026d48

Function at 0x140006e3c
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor ebx, ebx
mov rdi, rcx
mov rbp, rdx
cmp rbx, rbp
jl 0x140006e94
mov ecx, 1
call rsi
mov r8d, 1
mov edx, 1
lea rcx, [0x1400284aa]
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 1
call rsi
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp 0x140026d48
mov r12, qword [rdi + rbx*8]
mov ecx, 1
inc rbx
call rsi
xor r8d, r8d
mov rcx, rax
mov rdx, r12
call fcn.140006da7
jmp 0x140006e55
Function at 0x14000b5f0
Capabilities:
Hash data using murmur3

Disassembly:
xor r10d, r10d
mov rax, rdx
mov r8, rdx
mov r9, rcx
cqo
mov ecx, 4
idiv rcx
mov rcx, r8
xor eax, eax
sub rcx, rdx
cmp rcx, rax
jg 0x14000b634
xor eax, eax
cmp r8, 0xfffffffffffffffd
cmovge rax, rcx
mov ecx, 4
mov r11, rax
mov rax, r8
cqo
add r9, r11
idiv rcx
xor ecx, ecx
jmp 0x14000b65d
mov edx, dword [r9 + rax]
add rax, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
imul edx, edx, 0x1b873593
xor edx, r10d
rol edx, 0xd
lea edx, [rdx + rdx*4]
lea r10d, [rdx - 0x19ab949c]
jmp 0x14000b60e
test rdx, rdx
jle 0x14000b671
dec rdx
shl ecx, 8
movzx eax, byte [r9 + rdx]
or ecx, eax
jmp 0x14000b65d
imul eax, ecx, 0xcc9e2d51
xor r10d, r8d
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r10d
mov edx, eax
shr edx, 0x10
xor eax, edx
imul eax, eax, 0x85ebca6b
mov edx, eax
shr edx, 0xd
xor edx, eax
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
ret
xor edx, edx
test rcx, rcx
je 0x14000b6b6
mov rdx, qword [rcx]
add rcx, 0x10
jmp 0x14000b5f0

Function at 0x14000b6a8
Capabilities:
Hash data using murmur3

Disassembly:
xor r10d, r10d
mov rax, rdx
mov r8, rdx
mov r9, rcx
cqo
mov ecx, 4
idiv rcx
mov rcx, r8
xor eax, eax
sub rcx, rdx
cmp rcx, rax
jg 0x14000b634
xor eax, eax
cmp r8, 0xfffffffffffffffd
cmovge rax, rcx
mov ecx, 4
mov r11, rax
mov rax, r8
cqo
add r9, r11
idiv rcx
xor ecx, ecx
jmp 0x14000b65d
mov edx, dword [r9 + rax]
add rax, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
imul edx, edx, 0x1b873593
xor edx, r10d
rol edx, 0xd
lea edx, [rdx + rdx*4]
lea r10d, [rdx - 0x19ab949c]
jmp 0x14000b60e
test rdx, rdx
jle 0x14000b671
dec rdx
shl ecx, 8
movzx eax, byte [r9 + rdx]
or ecx, eax
jmp 0x14000b65d
imul eax, ecx, 0xcc9e2d51
xor r10d, r8d
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, r10d
mov edx, eax
shr edx, 0x10
xor eax, edx
imul eax, eax, 0x85ebca6b
mov edx, eax
shr edx, 0xd
xor edx, eax
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
ret
xor edx, edx
test rcx, rcx
je 0x14000b6b6
mov rdx, qword [rcx]
add rcx, 0x10
jmp 0x14000b5f0

Function at 0x14000ba91
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
mov rsi, rcx
mov rdi, rdx
mov rbx, r8
jne 0x14000babe
cmp qword [0x140045898], 0
jne 0x14000bafb
call fcn.140009ac6
mov qword [0x140045898], rax
jmp 0x14000bafb
mov rcx, rdx
call fcn.14000b870
mov rcx, rsi
mov rdx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
jne 0x14000bb48
test rbx, rbx
je 0x14000baa6
cmp qword [rbx], 0
jle 0x14000baa6
mov rcx, rbx
call fcn.14000b870
mov rcx, rsi
mov rdx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14000baa6
jmp 0x14000bb48
mov rsi, qword [0x140045898]
test rsi, rsi
jne 0x14000bb0b
xor eax, eax
jmp 0x14000bb48
mov rcx, rdi
call fcn.14000b870
mov rcx, rsi
mov rdx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
jne 0x14000bb48
test rbx, rbx
je 0x14000bb07
cmp qword [rbx], 0
jle 0x14000bb07
mov rcx, rbx
call fcn.14000b870
mov rcx, rsi
mov rdx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sub.KERNEL32.dll_GetProcAddress
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x14000bb50
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov qword [rsp + 0x28], rdx
call fcn.14000b92d
mov r8, qword [rsp + 0x28]
mov rdx, rbx
mov rcx, rax
add rsp, 0x30
pop rbx
jmp fcn.14000ba91

Function at 0x14000bd5b
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov qword [rsp + 0x28], rdx
call fcn.14000b887
mov r8, qword [rsp + 0x28]
mov rdx, rbx
mov rcx, rax
add rsp, 0x30
pop rbx
jmp fcn.14000ba91
Function at 0x14001bcff
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor eax, eax
xor esi, esi
lea rbp, [rsp + 0x50]
mov rbx, rcx
mov ecx, 4
add qword [rbx + 0x410], r8
mov rdi, rbp
mov r12, rdx
mov r14, r8
rep stosd dword [rdi], eax
mov r13, r9
lea rax, [rbx + 0x3d8]
mov qword [rsp + 0x38], rax
lea rax, [rbx + 0x3c8]
mov qword [rsp + 0x40], rax
lea rax, [rbx + 0x3f8]
mov qword [rsp + 0x48], rax
test r14, r14
jle 0x14001bded
mov rcx, qword [rsp + 0x38]
mov r11d, 0x10
mov edx, 0x10
mov r9, rbp
cmp r14, r11
mov r15, r11
cmovle r15, r14
xor edi, edi
call fcn.14001b70e
mov rdx, qword [rsp + 0x38]
mov r8d, 0x10
mov rcx, rbx
mov qword [rsp + 0x20], 0x10
call fcn.14001b1e7
lea rcx, [r12 + rsi]
lea r8, [r13 + rsi]
mov dl, byte [rbp + rdi]
xor dl, byte [rcx + rdi]
mov byte [r8 + rdi], dl
inc rdi
cmp rdi, r15
jne 0x14001bdab
mov qword [rsp + 0x20], rcx
mov r8, qword [rsp + 0x40]
add rsi, rdi
sub r14, rdi
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rdi
mov r9d, 0x10
mov edx, 0x10
call fcn.14001b8c8
jmp 0x14001bd59
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14001d910
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140026a00
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]
Function at 0x14001d980
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14004ac84]
test esi, esi
mov rbx, rcx
jle 0x14001dab0
mov rax, qword [0x14004ac88]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001d9cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001da55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001d9b0
mov rcx, rbx
call fcn.14001e3f0
test rax, rax
mov rdi, rax
je 0x14001dad2
mov rax, qword [0x14004ac88]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14001e530
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14004ac88]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001dab7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001da4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14001da60
add dword [0x14004ac84], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14004ac88]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001da4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14001d910
nop dword [rax]
xor esi, esi
jmp 0x14001d9d8
mov rax, qword [0x14004ac88]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14001d910
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14001d910
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14001e040
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14004ace0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14004acc0]
test rbx, rbx
je 0x14001e09c
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 0x14001e093
test rsi, rsi
je 0x14001e093
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001e078
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 0x14001e2b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14001e2e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14001e2f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x14001e2c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14001e2e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14001e2f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14001e2d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14001e2e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14001e2f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14001e3f0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14001e470
Capabilities:
Parse pe header

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

Function at 0x14001e530
Capabilities:
Parse pe header

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