joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016b70
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
test rbx, rbx
mov qword [rcx], rdx
je 0x140016be0
mov rax, qword [rbx - 0x10]
lea rdx, [rbx - 0x10]
cmp rax, 0xf
jbe 0x140016bb0
sub rax, 0x10
jo 0x140016be6
lea r8, sym.rttiDestroy__pureZtimes_u5470
xor ecx, ecx
mov qword [rbx - 0x10], rax
add rsp, 0x20
pop rbx
jmp sym.rememberCycle__system_u3465
lea r8, sym.rttiDestroy__pureZtimes_u5470
mov ecx, 1
call sym.rememberCycle__system_u3465
mov rcx, rbx
call sym.eqdestroy___pureZtimes_u1560
mov edx, 8
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp sym.nimRawDispose
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp sym.raiseOverflow

Function at 0x1400170e0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rcx
je 0x140017150
mov rax, qword [rcx - 0x10]
lea rdx, [rcx - 0x10]
cmp rax, 0xf
jbe 0x140017120
sub rax, 0x10
jo 0x140017156
mov qword [rcx - 0x10], rax
lea r8, sym.rttiDestroy__pureZtimes_u5470
xor ecx, ecx
add rsp, 0x20
pop rbx
jmp sym.rememberCycle__system_u3465
lea r8, sym.rttiDestroy__pureZtimes_u5470
mov ecx, 1
call sym.rememberCycle__system_u3465
mov rcx, rbx
call sym.eqdestroy___pureZtimes_u1560
mov edx, 8
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp sym.nimRawDispose
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp sym.raiseOverflow

Function at 0x140017160
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [rcx]
test rdx, rdx
je 0x14001717b
mov rax, qword [rdx - 0x10]
add rax, 0x10
jo 0x1400171e6
mov qword [rdx - 0x10], rax
test rbx, rbx
mov qword [rcx], rdx
je 0x1400171e0
mov rax, qword [rbx - 0x10]
lea rdx, [rbx - 0x10]
cmp rax, 0xf
jbe 0x1400171b0
sub rax, 0x10
jo 0x140017204
lea r8, sym.rttiDestroy__pureZtimes_u5470
xor ecx, ecx
mov qword [rbx - 0x10], rax
add rsp, 0x30
pop rbx
jmp sym.rememberCycle__system_u3465
lea r8, sym.rttiDestroy__pureZtimes_u5470
mov ecx, 1
call sym.rememberCycle__system_u3465
mov rcx, rbx
call sym.eqdestroy___pureZtimes_u1560
mov edx, 8
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp sym.nimRawDispose
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
call sym.raiseOverflow
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
jmp 0x14001717b
add rsp, 0x30
pop rbx
jmp sym.raiseOverflow
Function at 0x1400173e0
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
xor eax, eax
movdqu xmm6, xmmword [rcx]
mov ecx, 0xc
mov rbx, rdx
lea rdx, [rdx + 8]
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, sym.rttiDestroy__pureZtimes_u5468
mov qword [rbx], rax
call sym.local__pureZtimes_u2084
mov rcx, qword [0x14002f050]
mov rsi, rax
call dbg.__emutls_get_address
cmp byte [rax], 0
jne 0x140017450
lea rcx, [rsp + 0x20]
mov r8, rbx
mov rdx, rsi
movaps xmmword [rsp + 0x20], xmm6
call sym.inZone__pureZtimes_u1848
nop
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
test rsi, rsi
je 0x14001743d
mov rax, qword [rsi - 0x10]
lea rdx, [rsi - 0x10]
cmp rax, 0xf
jbe 0x140017490
sub rax, 0x10
jo 0x1400174c3
mov qword [rsi - 0x10], rax
movaps xmm6, xmmword [rsp + 0x30]
lea r8, sym.rttiDestroy__pureZtimes_u5470
xor ecx, ecx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
jmp sym.rememberCycle__system_u3465
lea r8, sym.rttiDestroy__pureZtimes_u5470
mov ecx, 1
call sym.rememberCycle__system_u3465
mov rcx, rsi
call sym.eqdestroy___pureZtimes_u1560
nop
movaps xmm6, xmmword [rsp + 0x30]
mov edx, 8
mov rcx, rsi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
jmp sym.nimRawDispose
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
jmp sym.raiseOverflow
Function at 0x140017610
Capabilities:
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
lea r13, sym.rttiDestroy__pureZtimes_u5468
xor r12d, r12d
mov rax, r12
lea rbp, [rcx + 8]
mov rbx, rcx
mov ecx, 0xc
mov rdi, rbp
rep stosq qword [rdi], rax
mov rax, qword [0x14002ef10]
lea rcx, [rsp + 0x38]
mov qword [rbx], r13
call qword [rax]
mov rcx, qword [rsp + 0x38]
call sym.rdFileTime__windowsZwinlean_u282
mov rcx, qword [0x14002f050]
mov rdi, rax
call dbg.__emutls_get_address
cmp byte [rax], 0
mov rsi, rax
jne 0x1400176c1
lea r14, [rsp + 0x20]
mov rdx, rdi
mov rcx, r14
call sym.fromWinTime__pureZtimes_u1245
cmp byte [rsi], 0
movdqu xmm6, xmmword [rsp + 0x20]
jne 0x1400176c1
mov rax, r12
mov ecx, 0xc
mov rdi, rbp
rep stosq qword [rdi], rax
mov qword [rbx], r13
call sym.local__pureZtimes_u2084
cmp byte [rsi], 0
mov rdi, rax
jne 0x1400176d8
mov r8, rbx
mov rdx, rax
mov rcx, r14
movaps xmmword [rsp + 0x20], xmm6
call sym.inZone__pureZtimes_u1848
nop
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
test rax, rax
je 0x1400176c1
lea rdx, [rax - 0x10]
mov rax, qword [rax - 0x10]
cmp rax, 0xf
jbe 0x140017720
sub rax, 0x10
jo 0x14001775a
mov qword [rdi - 0x10], rax
movaps xmm6, xmmword [rsp + 0x40]
lea r8, sym.rttiDestroy__pureZtimes_u5470
xor ecx, ecx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.rememberCycle__system_u3465
lea r8, sym.rttiDestroy__pureZtimes_u5470
mov ecx, 1
call sym.rememberCycle__system_u3465
mov rcx, rdi
call sym.eqdestroy___pureZtimes_u1560
nop
movaps xmm6, xmmword [rsp + 0x40]
mov edx, 8
mov rcx, rdi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.nimRawDispose
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.raiseOverflow
Function at 0x140019f70
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r10, qword [rcx]
test r10, r10
mov rbx, rcx
je 0x14001a061
jle 0x14001a087
lea rdi, [r10 - 1]
mov r11, qword [rcx + 8]
mov r8, r10
lea r9, [r10 - 2]
mov rcx, rdi
jmp 0x140019fdf
cmp r8, 1
jle 0x14001a0ae
cmp r10, r9
jle 0x14001a07f
movzx eax, byte [r11 + rcx + 7]
cmp al, 0x5c
je 0x140019fc5
cmp al, 0x2f
jne 0x14001a0b8
test rcx, rcx
je 0x14001a020
sub rcx, 1
sub r9, 1
sub r8, 1
cmp r10, rcx
jle 0x14001a070
movzx eax, byte [r11 + rcx + 8]
cmp al, 0x5c
je 0x140019fc5
cmp al, 0x2f
je 0x140019fc5
cmp al, 0x2e
mov rsi, r8
je 0x140019fa0
test dl, dl
je 0x14001a0d5
test r8, r8
jns 0x14001a0dc
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rsi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp sym.raiseRangeErrorI
test dl, dl
je 0x14001a092
mov rdx, rcx
mov rcx, rbx
call sym.setLengthStrV2
mov edx, 1
mov rcx, rbx
call sym.prepareAdd
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov byte [rdx + rax + 8], 0x5c
mov rax, qword [rbx]
add rax, 1
jo 0x14001a0e4
mov rdx, qword [rbx + 8]
mov qword [rbx], rax
mov byte [rdx + rax + 8], 0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov rdx, rdi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp sym.raiseIndexError2
mov rdx, rdi
mov rcx, r9
jmp 0x14001a073
test dl, dl
mov rsi, r10
jne 0x14001a005
movdqa xmm0, xmmword [0x14002db40]
lea rdx, [rsp + 0x20]
mov rcx, rbx
movaps xmmword [rsp + 0x20], xmm0
call sym.eqsink___system_u2635
jmp 0x14001a061
mov esi, 1
nop dword [rax + rax]
test dl, dl
mov rcx, rsi
jne 0x14001a024
mov rdx, rsi
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp sym.setLengthStrV2
test r8, r8
jg 0x14001a0c3
jmp 0x14001a092
mov rcx, r8
jmp 0x14001a024
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp sym.raiseOverflow
Function at 0x14001a550
Capabilities:
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r12, qword [r8]
mov r13, qword [r8 + 8]
test r12, r12
mov rbx, rcx
mov rbp, rdx
jle 0x14001a608
mov rdi, qword [0x14002f050]
movzx r14d, byte [r13 + r12 + 7]
mov rcx, rdi
call dbg.__emutls_get_address
cmp byte [rax], 0
jne 0x14001a670
cmp r14b, 0x5c
sete sil
cmp r14b, 0x2f
sete al
or esi, eax
xor edx, edx
mov rcx, rbx
call sym.normalizePathEnd__stdZprivateZospaths2_u19
mov rcx, rdi
call dbg.__emutls_get_address
cmp byte [rax], 0
mov rdi, rax
jne 0x14001a670
lea rcx, [rsp + 0x20]
mov r8, rbp
mov rdx, rbx
mov qword [rsp + 0x20], r12
mov r9d, 0x5c
mov qword [rsp + 0x28], r13
call sym.addNormalizePath__pureZpathnorm_u87
cmp byte [rdi], 0
jne 0x14001a670
movzx edx, sil
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.normalizePathEnd__stdZprivateZospaths2_u19
jne 0x14001a680
mov rdx, qword [rcx]
test rdx, rdx
jle 0x14001a680
mov rax, qword [rcx + 8]
test rax, rax
je 0x14001a690
test byte [rax + 7], 0x40
je 0x14001a690
call sym.nimPrepareStrMutationImpl__system_u2380
mov rdx, qword [rbx]
mov rcx, rdx
sub rcx, 1
jo 0x14001a6ab
test rcx, rcx
js 0x14001a6a0
cmp rdx, rcx
jle 0x14001a6a0
mov rax, qword [rbx + 8]
lea rsi, [rax + rcx + 8]
mov rdi, qword [0x14002f050]
mov rcx, rdi
call dbg.__emutls_get_address
cmp byte [rax], 0
jne 0x14001a670
movzx eax, byte [rsi]
cmp al, 0x5c
sete sil
cmp al, 0x2f
sete al
or esi, eax
jmp 0x14001a5a3
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdi, qword [0x14002f050]
xor esi, esi
jmp 0x14001a5a3
lea rcx, [rdx - 1]
jmp 0x14001a632
sub rdx, 1
call sym.raiseIndexError2
jmp 0x14001a645
call sym.raiseOverflow
jmp 0x14001a645

Function at 0x14001ba70
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
movdqu xmm0, xmmword [rcx]
lea rsi, [rsp + 0x30]
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sym.prettyPrint__nimaliciousZcommon_u27
mov rcx, qword [0x14002f050]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
call dbg.__emutls_get_address
cmp byte [rax], 0
jne 0x14001bacd
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rsi
mov qword [rsp + 0x30], rdi
mov rcx, rax
mov qword [rsp + 0x38], rbx
call sym.write__stdZsyncio_u271
test rbx, rbx
je 0x14001bad8
test byte [rbx + 7], 0x40
je 0x14001bae0
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov rcx, rbx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
jmp sym.deallocShared
Function at 0x14001baf0
Capabilities:
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
movdqu xmm0, xmmword [rcx]
lea rbp, [rsp + 0x30]
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
mov rcx, rbp
call sym.prettyList__nimaliciousZcommon_u2
mov rcx, qword [0x14002f050]
mov rbx, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
call dbg.__emutls_get_address
cmp byte [rax], 0
jne 0x14001bbd3
lea r13, [rbx + 1]
mov rcx, rbp
mov rdx, r13
call sym.rawNewString
mov rdi, qword [rsp + 0x38]
test rbx, rbx
mov rsi, qword [rsp + 0x30]
lea r14, [rsi + rdi + 8]
jle 0x14001bb92
mov rax, rbx
add rax, 1
jo 0x14001bc40
test r13, r13
js 0x14001bc20
lea rdx, [r12 + 8]
mov r8, r13
mov rcx, r14
call sym.memcpy
add rbx, rsi
jo 0x14001bc40
lea r14, [rbx + rdi + 8]
mov rsi, rbx
mov rbx, rsi
mov eax, 0xa
add rbx, 1
mov word [r14], ax
jo 0x14001bc50
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rbp
mov qword [rsp + 0x30], rbx
mov rcx, rax
mov qword [rsp + 0x38], rdi
call sym.write__stdZsyncio_u271
test rdi, rdi
je 0x14001bbd3
test byte [rdi + 7], 0x40
je 0x14001bbf0
test r12, r12
je 0x14001bbe0
test byte [r12 + 7], 0x40
je 0x14001bc00
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rdi
call sym.deallocShared
jmp 0x14001bbd3
mov rcx, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.deallocShared
movabs r8, 0x7fffffffffffffff
xor edx, edx
movabs rcx, 0x8000000000000000
call sym.raiseRangeErrorI
jmp 0x14001bb92
call sym.raiseOverflow
jmp 0x14001bb92
call sym.raiseOverflow
mov rbx, rsi
jmp 0x14001bba8
Function at 0x14001d370
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sym.atmCatcatsUsersatsrunneradminatsdotchoosenimatstoolchainsatsnimminus2dot2dot0atslibatsstdatsexitprocsdotnim_Init000
call sym.atmCatcatsUsersatsrunneradminatsdotchoosenimatstoolchainsatsnimminus2dot2dot0atslibatsstdatssynciodotnim_Init000
nop
add rsp, 0x28
jmp sym.atmCatcatsUsersatsrunneradminatsdotchoosenimatstoolchainsatsnimminus2dot2dot0atslibatswindowsatswinleandotnim_Init000

Function at 0x14001d390
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sym.atmCatcatsUsersatsrunneradminatsdotchoosenimatstoolchainsatsnimminus2dot2dot0atslibatsstdatssynciodotnim_DatInit000
call sym.atmCatcatsUsersatsrunneradminatsdotchoosenimatstoolchainsatsnimminus2dot2dot0atslibatssystemdotnim_Init000
call sym.atmCatcatsUsersatsrunneradminatsdotchoosenimatstoolchainsatsnimminus2dot2dot0atslibatswindowsatswinleandotnim_DatInit000
call sym.atmCatcatsUsersatsrunneradminatsdotchoosenimatstoolchainsatsnimminus2dot2dot0atslibatsstdatsexitprocsdotnim_Init000
call sym.atmCatcatsUsersatsrunneradminatsdotchoosenimatstoolchainsatsnimminus2dot2dot0atslibatsstdatssynciodotnim_Init000
nop
add rsp, 0x28
jmp sym.atmCatcatsUsersatsrunneradminatsdotchoosenimatstoolchainsatsnimminus2dot2dot0atslibatswindowsatswinleandotnim_Init000
Function at 0x14001d3c0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r8d, 8
mov edx, 0x10
mov ecx, 1
call sym.newSeqPayload
lea rbp, [rsp + 0x30]
movdqa xmm2, xmmword [0x14002e5f0]
mov qword [rax + 8], 0x47
lea rdi, [rsp + 0x40]
mov r12, rax
mov rdx, rbp
lea rax, [0x14002e5a0]
mov rcx, rdi
mov qword [r12 + 0x10], rax
movaps xmmword [rsp + 0x40], xmm2
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x38], r12
call sym.askConsent__nimaliciousZconsent_u18
mov rcx, qword [0x14002f050]
call dbg.__emutls_get_address
cmp byte [rax], 0
mov rbx, rax
jne 0x14001d59f
mov rcx, rdi
call sym.nosgetAppFilename
cmp byte [rbx], 0
mov rax, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
jne 0x14001d593
mov rdx, rbp
mov rcx, rdi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r15
call sym.readFile__stdZsyncio_u658
cmp byte [rbx], 0
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
jne 0x14001d593
mov qword [0x1400341d0], rdx
mov r8d, 8
mov edx, 0x10
mov ecx, 1
mov qword [0x1400341d8], rax
lea rsi, [0x14002e580]
call sym.newSeqPayload
mov rdx, rbp
mov rcx, rdi
mov qword [rax + 8], 3
mov qword [rax + 0x10], rsi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 1
call sym.findExes__nimaliciousZfiles_u48
mov rax, qword [rsp + 0x48]
cmp byte [rbx], 0
mov r13, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jne 0x14001d561
test r13, r13
jle 0x14001d561
lea r14, [rax + 8]
xor esi, esi
jmp 0x14001d50d
add rsi, 1
add r14, 0x10
cmp rsi, r13
je 0x14001d561
movdqu xmm0, xmmword [r14]
mov rdx, rbp
mov rcx, rdi
mov qword [0x1400341c8], r14
movdqa xmm1, xmmword [0x1400341d0]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm1
call sym.writeFile__stdZsyncio_u663
cmp byte [rbx], 0
je 0x14001d500
mov rcx, qword [0x14002f040]
mov byte [rbx], 0
call dbg.__emutls_get_address
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
call sym.eqcopy___stdZtypedthreads_u187
cmp byte [rbx], 0
je 0x14001d500
mov rax, qword [rsp + 0x20]
mov rcx, rdi
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], rax
call sym.eqdestroy___system_u3788
mov rax, qword [rsp + 0x28]
mov rcx, rdi
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], rax
call sym.eqdestroy___system_u3788
test r15, r15
je 0x14001d59f
test byte [r15 + 7], 0x40
je 0x14001d5e8
mov rcx, rdi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], 1
call sym.eqdestroy___system_u3788
cmp byte [rbx], 0
jne 0x14001d5cc
mov rcx, qword [0x1400341d8]
test rcx, rcx
je 0x14001d5cc
test byte [rcx + 7], 0x40
je 0x14001d5f8
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.nimTestErrorFlag
mov rcx, r15
call sym.deallocShared
jmp 0x14001d59f
call sym.deallocShared
jmp 0x14001d5cc
Function at 0x14001d900
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14001d970
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140034244]
test esi, esi
mov rbx, rcx
jle 0x14001daa0
mov rax, qword [0x140034248]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001d9bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001da45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001d9a0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x14001dac2
mov rax, qword [0x140034248]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140034248]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001daa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001da3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14001da50
add dword [0x140034244], 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 [0x140034248]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001da3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14001d9c8
mov rax, qword [0x140034248]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14001e030
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400342a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140034280]
test rbx, rbx
je 0x14001e08c
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 0x14001e083
test rsi, rsi
je 0x14001e083
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001e068
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 0x14001e2a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14001e2b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14001e2c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14001e2d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x14001e31d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x14001e314
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14001e31f
add rax, 0x28
cmp rax, r9
jne 0x14001e300
xor eax, eax
ret

Function at 0x14001e320
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14001e3b0
mov rdx, qword [0x14002f000]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14001e39e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14001e39e
cmp word [rax + 0x18], 0x20b
jne 0x14001e39e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14001e3b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14001e389
add rbx, 0x28
cmp rbx, rdi
je 0x14001e3b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14001e380
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

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

Function at 0x14001e440
Capabilities:
Parse pe header

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