joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009b150
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.1400a55b0
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.1400a55b0
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 0x14009b1c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400d7ac4]
mov rbx, rcx
test esi, esi
jle 0x14009b2f0
mov rax, qword [0x1400d7ac8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14009b20b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14009b295
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14009b1f0
mov rcx, rbx
call fcn.14009bc10
mov rdi, rax
test rax, rax
je 0x14009b312
mov rax, qword [0x1400d7ac8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14009bd50
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400d7ac8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14009b2f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14009b28e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14009b2a0
add dword [0x1400d7ac4], 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 [0x1400d7ac8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14009b28e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14009b150
nop dword [rax]
xor esi, esi
jmp 0x14009b218
mov rax, qword [0x1400d7ac8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14009b150
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14009b150
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14009b880
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400d7b20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d7b00]
test rbx, rbx
je 0x14009b8dc
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 0x14009b8d3
test rsi, rsi
je 0x14009b8d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14009b8b8
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 0x14009bc10
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14009bc90
Capabilities:
Parse pe header

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

Function at 0x14009bd50
Capabilities:
Parse pe header

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

Function at 0x14009c020
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x1400d7ba0], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x1400d7ba8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14009c070
lea rdx, [0x14009bf30]
mov ecx, eax
mov dword [0x1400d7b98], eax
call fcn.1400a5d60
test eax, eax
jne 0x14009c078
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14009c067
call sub.msvcrt.dll_abort
nop
nop
Function at 0x14009c080
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400cd430]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x14009c0b8
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14009c120
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x14009c130
mov esi, dword [0x1400d7b98]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x14009c1a0
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x14009c1e8
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x14009c0a7
mov rcx, rbx
call fcn.14009bf80
mov qword [rsi + r12*8 + 8], rax
jmp 0x14009c0a7
call fcn.14009bf80
mov qword [rbx + 0x10], rax
jmp 0x14009c0a7
mov r10d, dword [rsi]
test r10d, r10d
je 0x14009c24a
mov r9d, dword [0x1400a6cb0]
test r9d, r9d
je 0x14009c278
lock add dword [0x1400d7ba0], 1
jne 0x14009c2ac
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x14009c257
mov eax, dword [rsi]
test eax, eax
je 0x14009c0c1
lock sub dword [0x1400d7ba0], 1
js 0x14009c0c1
mov rcx, qword [0x1400d7ba8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x14009c0c1
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x14009c2d3
mov qword [rax], rdi
mov ecx, dword [0x1400d7b98]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14009c0fb
call r13
jmp 0x14009c0fb
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x14009c2d3
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call fcn.1400a5c28
jmp 0x14009c1c3
call fcn.14009c020
mov dword [0x1400a6cb0], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14009c14c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x14009c0c1
mov rax, qword [0x1400d7b90]
lea r12, [rax + 1]
mov qword [0x1400d7b90], r12
mov qword [rbx + 0x10], r12
jmp 0x14009c167
lock add dword [0x1400a6cb4], 1
je 0x14009c231
mov r8d, dword [0x1400a6cb0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x1400a6cb0]
test r8d, r8d
jne 0x14009c240
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x14009c2a0
jmp 0x14009c240
mov rcx, qword [0x1400d7ba8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14009c15a
lock sub dword [0x1400d7ba0], 1
jmp 0x14009c15a
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x14009c2f0
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14009c2fa
mov qword [rcx + 8], r8
test r9, r9
je 0x14009c304
cmp qword [rcx], rdx
je 0x14009c308
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x1400113c5
Capabilities:
Terminate process

Disassembly:
jmp 0x14001a680
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 0x1400114c4
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001b1b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001b1d0
xor al, al
jmp 0x14001b251
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001b1e3
xor al, al
jmp 0x14001b251
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 0x14001b20d
xor al, al
jmp 0x14001b251
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001b221
xor al, al
jmp 0x14001b251
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001b233
xor al, al
jmp 0x14001b251
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001b24f
xor al, al
jmp 0x14001b251
mov al, 1
add rsp, 0x38
ret
Function at 0x14077e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14077e1df
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 0x14077e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14077e06f
add dl, dl
jne 0x14077e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14077e0f6
xor eax, eax
add dl, dl
jne 0x14077e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14077e1ad
add dl, dl
jne 0x14077e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14077e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14077e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14077e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14077e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14077e07e
mov eax, 1
add dl, dl
jne 0x14077e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14077e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14077e0fb
sub eax, ebx
mov ebx, 1
jne 0x14077e14c
mov ecx, 1
add dl, dl
jne 0x14077e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14077e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14077e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14077e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14077e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14077e15d
cmp eax, 0x7d00
jae 0x14077e19b
cmp eax, 0x500
jb 0x14077e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077e07e
cmp eax, 0x7f
ja 0x14077e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14077e1d2
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 0x14077e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x14000c3b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x14006f1b0]
test rax, rax
je 0x14000c3fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c3fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c3fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c3fa
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c3fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000c3fc
xor al, al
add rsp, 0x28
ret

Function at 0x14004ad24
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004aaa0
Function at 0x1400074e0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r14, rcx
mov r13, rdx
mov r12, r8
test r8, r8
js 0x1400075d0
lea rdi, [rsp + 0x20]
mov rdx, r8
mov rcx, rdi
call sym.mnewString
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rdx, rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
test rdx, rdx
jle 0x140007620
mov rax, qword [rsp + 0x38]
mov r9, r13
mov r8, r12
mov edx, 1
lea rcx, [rax + 8]
call sym.fread
mov r15, rax
cmp r12, rax
je 0x140007562
mov rcx, r13
call sym.ferror
test eax, eax
jne 0x1400075f0
mov rcx, qword [0x1400a17a0]
call sym.__emutls_get_address
cmp byte [rax], 0
mov rbx, rax
jne 0x1400075ae
mov rcx, r13
call sym.fgetc
mov rdx, r13
mov ecx, eax
mov esi, eax
call sym.ungetc
cmp byte [rbx], 0
jne 0x1400075ae
test esi, esi
jns 0x140007630
cmp r12, r15
jle 0x1400075ae
test r15, r15
js 0x140007600
lea rcx, [rsp + 0x30]
mov rdx, r15
call sym.setLengthStrV2
movdqa xmm0, xmmword [rsp + 0x30]
mov rax, r14
movups xmmword [r14], xmm0
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r12
call sym.raiseRangeErrorI
jmp 0x1400075ae
mov rcx, r13
call sym.checkErr__stdZsyncio_u162.part.0
jmp 0x140007562
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r15
call sym.raiseRangeErrorI
jmp 0x1400075ae
sub rdx, 1
xor ecx, ecx
call sym.raiseIndexError2
jmp 0x1400075ae
mov rdx, r13
mov rcx, rdi
call sym.readAllBuffer__stdZsyncio_u511
cmp byte [rbx], 0
mov rsi, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
jne 0x14000768f
lea rcx, [rsp + 0x30]
mov rdx, rsi
call sym.prepareAdd
test rsi, rsi
jle 0x14000768f
mov r8, rsi
add r8, 1
jo 0x1400076b1
test r8, r8
js 0x1400076c0
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
lea rcx, [rdx + rax + 8]
lea rdx, [r12 + 8]
call sym.memcpy
add rsi, qword [rsp + 0x30]
jo 0x1400076b1
mov qword [rsp + 0x30], rsi
test r12, r12
je 0x1400075ae
test byte [r12 + 7], 0x40
jne 0x1400075ae
mov rcx, r12
call sym.deallocShared
jmp 0x1400075ae
call sym.raiseOverflow
jmp 0x14000768f
movabs r8, 0x7fffffffffffffff
xor edx, edx
movabs rcx, 0x8000000000000000
call sym.raiseRangeErrorI
jmp 0x14000768f

Function at 0x140007d40
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
mov rcx, rdx
mov r13, rdx
call sym.strlen
mov rcx, r13
mov r9, r12
mov edx, 1
mov r8, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x28
pop r12
pop r13
jmp sym.fflush

Function at 0x14000ef80
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov rbx, rdx
mov r13, rcx
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, r13
mov r8, rbx
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp sym.fflush
Function at 0x14000efd0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x40
mov rax, qword [0x1400ac1b0]
mov r12, rcx
mov rbx, rdx
test rax, rax
je 0x14000f080
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x14000f060
call sym.strlen
lea r13, [rsp + 0x20]
mov rdx, r12
mov rcx, r13
mov r8, rax
call sym.toNimStr
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x1400ac1b0]
test r12, r12
je 0x14000f039
test byte [r12 + 7], 0x40
je 0x14000f0b8
lea rcx, [0x140091480]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x14000f0d8
add rsp, 0x40
pop rbx
pop r12
pop r13
ret
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], 0
call rax
jmp 0x14000f039
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, r12
mov r8, rbx
mov edx, 1
mov r13, rax
mov r9, rax
call sym.fwrite
mov rcx, r13
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp sym.fflush
lea rcx, [0x1400914a0]
call sym.__emutls_get_address
mov rdx, r12
mov rcx, rax
call sym.rawDealloc__system_u6942
jmp 0x14000f039
mov byte [rax], 0
lea rcx, [0x1400913c0]
call sym.__emutls_get_address
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp sym.eqcopy___stdZtypedthreads_u169

Function at 0x1400102e0
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
test rax, rax
jle 0x140010340
lea r8, [rax + rdx + 8]
lea rcx, [rdx + 8]
xor eax, eax
nop word [rax + rax]
movzx edx, byte [rcx]
add rcx, 1
add rdx, rax
mov rax, rdx
shl rax, 0xa
add rax, rdx
mov rdx, rax
shr rdx, 6
xor rax, rdx
cmp r8, rcx
jne 0x140010300
lea rax, [rax + rax*8]
mov rdx, rax
shr rdx, 0xb
xor rdx, rax
mov rax, rdx
shl rax, 0xf
add rax, rdx
ret
xor eax, eax
ret

Function at 0x140011e30
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, [0x1400ac180]
mov rsi, rdx
mov rbx, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x140011ebf
lea rcx, [0x140091480]
xor r14d, r14d
lea r12, [rsp + 0x20]
call sym.__emutls_get_address
mov rbp, qword [sym.__acrt_iob_func]
mov rdi, rax
jmp 0x140011e8d
add r14, 1
add rbx, 0x10
cmp rsi, r14
je 0x140011ec6
mov ecx, 1
call rbp
movdqu xmm0, xmmword [rbx]
xor r8d, r8d
mov rdx, r12
mov rcx, rax
movaps xmmword [rsp + 0x20], xmm0
call sym.writeWindows__system_u8900
cmp byte [rdi], 0
je 0x140011e80
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rbp, qword [sym.__acrt_iob_func]
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x1400926c1]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rbp
mov rcx, rax
call sym.fflush
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]
Function at 0x14007cf20
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 r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x14007db52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400ad048]
test eax, eax
je 0x14007dbea
lea rax, [0x1400ad020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400ad050]
mov qword [rbp - 8], rax
jmp 0x14007dbce
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 0x14007dbc2
cmp qword [rbp - 0x10], 0
je 0x14007dbc2
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 0x14007db88
lea rax, [0x1400ad020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14007dbeb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14007dcf0
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 0x14007dd18
mov eax, 0
jmp 0x14007dd66
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 0x14007dd41
mov eax, 0
jmp 0x14007dd66
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 0x14007dd61
mov eax, 0
jmp 0x14007dd66
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14007dd6c
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 0x14007ddea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14007dde1
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 0x14007dde1
mov rax, qword [rbp - 8]
jmp 0x14007ddff
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 0x14007ddb4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400858e4
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 0x140085a2e
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x140085a21
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 0x1400859d7
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x1400859ed
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x1400859d3
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x140085a0c
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 sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x140085a2f
nop
add rsp, 0x90
pop rbp
ret