joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a23a0
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4a2adf
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x4a23cd
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x4a2651
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x4a267d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x0058cbc0]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x00520b20]
lea rbx, [0x0058a680]
call fcn.00436d60
inc rax
cmp rax, r8
jge 0x4a26a2
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x4a26d7
lea rdi, [0x00520ba0]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x4a23c3
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x4a26bb
jmp 0x4a2690
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.004652e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.004a23a0

Function at 0x4a2c80
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4a2c97
inc rax
cmp rax, 4
jge 0x4a2caf
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4a2c94
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4a2cc0
inc rax
cmp rax, 4
jge 0x4a2cce
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4a2cf7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4a2cdb
jmp 0x4a2cbd
Function at 0x4b1120
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movd xmm0, dword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movdqu xmm1, xmmword [rsi]
movdqu xmm2, xmmword [rsi + 0x10]
movdqu xmm3, xmmword [rsi + 0x20]
movdqu xmm4, xmmword [rsi + 0x30]
pxor xmm1, xmm0
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jb 0x4b11f5
movdqa xmm0, xmmword [0x00589d30]
movdqa xmm5, xmm1
movdqa xmm6, xmm2
movdqa xmm7, xmm3
movdqa xmm8, xmm4
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm2, xmm0, 0
pclmulqdq xmm3, xmm0, 0
pclmulqdq xmm4, xmm0, 0
movdqu xmm11, xmmword [rsi]
movdqu xmm12, xmmword [rsi + 0x10]
movdqu xmm13, xmmword [rsi + 0x20]
movdqu xmm14, xmmword [rsi + 0x30]
pclmulqdq xmm5, xmm0, 0x11
pclmulqdq xmm6, xmm0, 0x11
pclmulqdq xmm7, xmm0, 0x11
pclmulqdq xmm8, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
pxor xmm4, xmm8
pxor xmm1, xmm11
pxor xmm2, xmm12
pxor xmm3, xmm13
pxor xmm4, xmm14
add rdi, 0x40
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jge 0x4b1161
movdqa xmm0, xmmword [0x00589d40]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm2
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm3
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm4
cmp rcx, 0x10
jb 0x4b1277
movdqu xmm10, xmmword [rsi]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm10
sub rcx, 0x10
add rsi, 0x10
cmp rcx, 0x10
jge 0x4b124b
pcmpeqb xmm3, xmm3
pclmulqdq xmm0, xmm1, 1
psrldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm2, xmm1
movq xmm0, qword [0x00589a28]
psrlq xmm3, 0x20
psrldq xmm2, 4
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
movdqa xmm0, xmmword [0x00589d50]
movdqa xmm2, xmm1
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0x10
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
pextrd eax, xmm1, 1
mov dword [rsp + 0x28], eax
ret
Function at 0x4c8a80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4c8c52
push rbp
mov rbp, rsp
sub rsp, 0x38
movsd qword [rsp + 0x48], xmm0
movsd qword [rsp + 0x50], xmm1
movsd qword [rsp + 0x58], xmm2
movsd qword [rsp + 0x60], xmm3
movsd qword [rsp + 0x68], xmm4
movsd qword [rsp + 0x70], xmm5
movups xmm6, xmm2
subsd xmm2, xmm0
movups xmm7, xmm3
subsd xmm3, xmm1
subsd xmm4, xmm6
movsd qword [rsp + 0x28], xmm4
subsd xmm5, xmm7
movsd qword [rsp + 0x20], xmm5
movsd qword [rsp], xmm2
movsd qword [rsp + 8], xmm3
call fcn.0046d7c0
xorps xmm15, xmm15
mov r14, qword [0x006c43b8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
movsd xmm0, qword [rsp + 0x10]
movsd qword [rsp + 0x18], xmm0
movsd xmm1, qword [rsp + 0x28]
movsd qword [rsp], xmm1
movsd xmm1, qword [rsp + 0x20]
movsd qword [rsp + 8], xmm1
nop dword [rax]
call fcn.0046d7c0
xorps xmm15, xmm15
mov r14, qword [0x006c43b8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
movsd xmm0, qword [rsp + 0x18]
addsd xmm0, qword [rsp + 0x10]
movsd xmm1, qword [0x00589a50]
addsd xmm1, xmm0
cvttsd2si rcx, xmm1
cmp rcx, 4
mov eax, 4
cmovl rcx, rax
mov qword [rsp + 0x30], rcx
lea rax, [0x00534700]
mov rbx, rcx
call fcn.0044c240
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
movsd xmm1, qword [0x00589a68]
subsd xmm0, xmm1
movsd xmm2, qword [rsp + 0x58]
movsd xmm3, qword [rsp + 0x48]
movsd xmm4, qword [rsp + 0x70]
movsd xmm5, qword [rsp + 0x68]
movsd xmm6, qword [rsp + 0x60]
movsd xmm7, qword [rsp + 0x50]
xor edx, edx
jmp 0x4c8c40
xorps xmm8, xmm8
cvtsi2sd xmm8, rdx
divsd xmm8, xmm0
mov rsi, rdx
shl rsi, 4
subsd xmm1, xmm8
movups xmm9, xmm1
mulsd xmm1, xmm1
addsd xmm9, xmm9
mulsd xmm9, xmm8
mulsd xmm8, xmm8
movups xmm10, xmm3
mulsd xmm10, xmm1
movups xmm11, xmm2
mulsd xmm11, xmm9
addsd xmm11, xmm10
movups xmm10, xmm5
mulsd xmm10, xmm8
addsd xmm10, xmm11
mulsd xmm1, xmm7
mulsd xmm9, xmm6
addsd xmm9, xmm1
mulsd xmm8, xmm4
addsd xmm8, xmm9
inc rdx
nop
movsd qword [rax + rsi], xmm10
movsd qword [rax + rsi + 8], xmm8
movsd xmm1, qword [0x00589a68]
cmp rdx, rcx
jl 0x4c8bb9
mov rbx, rcx
add rsp, 0x38
pop rbp
ret
movsd qword [rsp + 8], xmm0
movsd qword [rsp + 0x10], xmm1
movsd qword [rsp + 0x18], xmm2
movsd qword [rsp + 0x20], xmm3
movsd qword [rsp + 0x28], xmm4
movsd qword [rsp + 0x30], xmm5
call fcn.004652e0
movsd xmm0, qword [rsp + 8]
movsd xmm1, qword [rsp + 0x10]
movsd xmm2, qword [rsp + 0x18]
movsd xmm3, qword [rsp + 0x20]
movsd xmm4, qword [rsp + 0x28]
movsd xmm5, qword [rsp + 0x30]
nop
jmp fcn.004c8a80
Function at 0x140014df0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov r15, rdx
movsxd rdi, ecx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
xor r9d, r9d
mov r8, rbx
xor edx, edx
call fcn.1400278c8
test eax, eax
jne 0x140014e51
lea rcx, str.Fatal_Error:_MFC_initialization_failed_n
call fcn.140001c70
mov eax, 1
jmp 0x140014fca
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, 0x2c0
call fcn.1400152e8
mov qword [rsp + 0x78], rax
test rax, rax
je 0x140014e7a
mov rcx, rax
call fcn.14000fa50
mov rsi, rax
jmp 0x140014e7c
xor esi, esi
mov r14, rdi
mov ebp, 1
cmp rbp, rdi
jge 0x140014f85
lea r12, [0x140064fd8]
mov rdi, qword [r15 + rbp*8]
call fcn.140015d90
test rax, rax
je 0x140014f7a
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
test rdi, rdi
je 0x140014efc
test rdi, 0xffffffffffff0000
jne 0x140014ee7
movzx edi, di
mov ecx, edi
call fcn.140016424
test rax, rax
je 0x140014f13
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140001ea0
jmp 0x140014f0e
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x140014ef0
jmp 0x140014efe
xor eax, eax
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.1400022a0
mov rbx, qword [rsp + 0x78]
cmp qword [rsi + 0x2a8], 0
jne 0x140014f3e
xor ecx, ecx
nop
movzx eax, word [rbx + rcx*2]
inc rcx
cmp ax, word [r12 + rcx*2 - 2]
jne 0x140014f3e
cmp rcx, 8
jne 0x140014f20
mov byte [rsi + 0x240], 1
jmp 0x140014f52
lea rcx, [rsi + 0x298]
mov r8, rbx
mov rdx, qword [rcx + 0x10]
call fcn.1400159d4
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140014f6c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc rbp
cmp rbp, r14
jl 0x140014e94
jmp 0x140014f85
mov ecx, 0x80004005
call fcn.140002430
int3
mov rcx, rsi
call fcn.1400108d0
cmp byte [rsi + 0x240], 0
jne 0x140014fba
mov rax, qword [rsi + 0x260]
cmp dword [rax - 0x10], 0
je 0x140014fba
mov rax, qword [rsi + 0x268]
cmp dword [rax - 0x10], 0
je 0x140014fba
mov rcx, rsi
call fcn.140010520
jmp 0x140014fca
call fcn.14000bf90
mov rcx, rax
mov rdx, rsi
call fcn.14000c2d0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140005edf
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
call fcn.140004dcc
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
cmp rax, qword [rbp + 0x20]
je 0x140005f53
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.140005b27
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jmp 0x140005f54
nop
mov rax, qword [rbp - 0x18]
add rsp, 0x40
pop rbp
ret

Function at 0x140007807
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140007837
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.1400077d1
mov rcx, rax
jmp 0x14000783c
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140011c64
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x58], rax
lea rax, [0x140024008]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov word [rbp - 0x40], 0
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.14000ea4f
call fcn.14000653c
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x50], 0xac5
lea rax, [0x14002b080]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x50], 0xd
lea rax, str.C:Program_Files_nim_2.0.4lib_systemiterators.nim
mov qword [rbp - 0x48], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x50], 0xe
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jge 0x140011de5
mov qword [rbp - 0x50], 0xac6
lea rax, [0x140024008]
mov qword [rbp - 0x48], rax
cmp qword [rbp - 8], 0
js 0x140011d28
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jl 0x140011d41
mov rax, qword [rbp + 0x18]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.14000cc6a
jmp 0x140011e76
mov rax, qword [rbp - 8]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov ecx, 1
mov rax, qword [fcn.140020f70]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rdx
lea rax, [rbp - 0x80]
mov r8d, 0
mov rdx, rax
call fcn.140011936
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x140011e75
mov qword [rbp - 0x50], 0x10
lea rax, str.C:Program_Files_nim_2.0.4lib_systemiterators.nim
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x68]
mov rax, qword [rbp - 8]
mov r8, rdx
mov edx, 1
mov rcx, rax
call fcn.140006277
test al, al
je 0x140011dd8
call fcn.14000db6d
jmp 0x140011e76
mov rax, qword [rbp - 0x68]
mov qword [rbp - 8], rax
jmp 0x140011cf6
nop
mov qword [rbp - 0x50], 0xae1
lea rax, [0x140024008]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x20], 0
mov ecx, 1
mov rax, qword [fcn.140020f70]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x1400246f1]
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x50], 0xae2
mov dword [rbp - 0x24], 0
mov ecx, 1
mov rax, qword [fcn.140020f70]
call rax
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0x24], eax
mov qword [rbp - 0x50], 0xae6
lea rax, [0x14002b080]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140011e76
nop
call fcn.140006372
nop
add rsp, 0xa0
pop rbp
ret

Function at 0x14001adb0
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 fcn.140020f70
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.140020f70
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 0x14001ae20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002b1c4]
test esi, esi
mov rbx, rcx
jle 0x14001af50
mov rax, qword [0x14002b1c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001ae6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001aef5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001ae50
mov rcx, rbx
call fcn.14001b890
test rax, rax
mov rdi, rax
je 0x14001af72
mov rax, qword [0x14002b1c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14001b9d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002b1c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001af57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001aeee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14001af00
add dword [0x14002b1c4], 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 [0x14002b1c8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001aeee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14001adb0
nop dword [rax]
xor esi, esi
jmp 0x14001ae78
mov rax, qword [0x14002b1c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14001adb0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14001adb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14001b4e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002b220]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002b200]
test rbx, rbx
je 0x14001b53c
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 0x14001b533
test rsi, rsi
je 0x14001b533
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001b518
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 0x14001b750
Capabilities:
Parse pe header

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

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

Function at 0x14001b770
Capabilities:
Parse pe header

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

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

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

Function at 0x14001b910
Capabilities:
Parse pe header

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

Function at 0x14001b9d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140025e30]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001b9ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14001b9f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14001bca0
Capabilities:
Allocate thread local storage
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 [0x140025db0]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x14001bcd8
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14001bd40
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 0x14001bd50
mov esi, dword [0x14002b2a8]
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 0x14001bda8
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x14001bdf0
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x14001bcc7
mov rcx, rbx
call fcn.14001bc00
mov qword [rsi + r12*8 + 8], rax
jmp 0x14001bcc7
call fcn.14001bc00
mov qword [rbx + 0x10], rax
jmp 0x14001bcc7
mov r10d, dword [rsi]
test r10d, r10d
je 0x14001be81
mov r9d, dword [0x140022440]
test r9d, r9d
je 0x14001bea9
lea rcx, [0x14002b2c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x14001be8e
mov eax, dword [rsi]
test eax, eax
je 0x14001bce1
lea rcx, [0x14002b2c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14001bce1
lea rcx, [r12 + 0x21]
mov edx, 8
call sub.msvcrt.dll_calloc
lea rdi, [r12 + 0x20]
test rax, rax
mov rsi, rax
je 0x14001bee4
mov qword [rax], rdi
mov ecx, dword [0x14002b2a8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14001bd1b
call r13
jmp 0x14001bd1b
lea rdi, [rbp + rbp]
mov rcx, rsi
lea rax, [r12 + 0x20]
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
test rax, rax
mov rsi, rax
je 0x14001bee4
mov qword [rax], rdi
lea rcx, [rax + rbp*8 + 8]
sub rdi, rbp
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x14001bdcb
lea rcx, [0x14002b2c0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14001bedc
lea rdx, [0x14001bbb0]
mov ecx, eax
mov dword [0x14002b2a8], eax
call fcn.1400216e0
test eax, eax
jne 0x14001bee4
mov dword [0x140022440], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14001bd6c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x14001bce1
mov rax, qword [0x14002b2a0]
lea r12, [rax + 1]
mov qword [0x14002b2a0], r12
mov qword [rbx + 0x10], r12
jmp 0x14001bd86
lock add dword [0x140022444], 1
je 0x14001be39
mov r8d, dword [0x140022440]
lea rdi, [0x140022440]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
test r8d, r8d
jne 0x14001be77
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x14001bed0
jmp 0x14001be77
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001be69
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
cmp qword [rcx], rdx
jae 0x14001bf00
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14001bf0a
mov qword [rcx + 8], r8
test r9, r9
je 0x14001bf14
cmp qword [rcx], rdx
je 0x14001bf18
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001c010]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001c020]
mov dword [rax], 1
mov rax, qword [0x14001c030]
mov dword [rax], 1
mov rax, qword [0x14001c000]
mov dword [rax], 1
mov rax, qword [0x14001bea0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14001bff0]
mov dword [0x14001f020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14001bfb0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14001bf90]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14001be30]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001cf0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]