joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002a0b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rsi, r9
mov rbx, r8
xor r15d, r15d
mov dil, r15b
cmp qword [rdx + 0x18], 7
jbe 0x14002a0e5
mov rdx, qword [rdx]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14, qword [rbp + 0x40]
test eax, eax
jne 0x14002a236
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14002a116
mov rdx, qword [rbx]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002a227
mov eax, dword [rbp - 0x30]
shr rax, 1
mov rcx, qword [r14 + 0x10]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r15
cmp rcx, rax
cmovbe rcx, rax
inc rcx
mov edx, 0x10000
cmp rcx, rdx
cmovb rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.1400013c4
nop
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rax, rcx
sar rax, 1
add eax, eax
mov dword [rbp - 0x2c], eax
cmp qword [rbx + 0x18], 7
jbe 0x14002a18f
mov rbx, qword [rbx]
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x28]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002a1eb
mov word [rbp + 0x28], r15w
mov rdx, qword [rbp - 0x10]
cmp rdx, qword [rbp - 8]
je 0x14002a1cf
mov word [rdx], r15w
add qword [rbp - 0x10], 2
jmp 0x14002a1dc
lea r8, [rbp + 0x28]
lea rcx, [rbp - 0x18]
call fcn.140028f80
mov rdx, qword [rbp - 0x18]
mov rcx, rsi
call fcn.1400020c0
mov dil, 1
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14002a227
mov rdx, qword [rbp - 8]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002a222
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002a25e
call fcn.140031bec
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
jne 0x14002a241
mov rdx, r14
mov rcx, rsi
call fcn.140003cac
mov al, dil
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400367c4
int3

Function at 0x14002a3b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
lea rax, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov ebx, eax
lea rax, str.unknown_folder
test ebx, ebx
cmovne rdx, rax
call fcn.1400020c0
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140031d00
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x14002f0e4
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
and dword [0x140067eb0], 0
mov edx, 1
mov rbx, rcx
mov byte [0x140067eb5], 1
mov byte [0x140067eb6], 1
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 2]
call fcn.14000235c
cmp qword [0x14005bd10], 0
jne 0x14002f12f
cmp byte [0x140067ed0], 0
je 0x14002f138
cmp dword [0x140067ec8], 0
jne 0x14002f14d
xor r9d, r9d
mov edx, 0x111
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x20
pop rbx
ret

Function at 0x14002f23c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor edi, edi
cmp byte [0x140067db0], dil
je 0x14002f371
cmp qword [0x140067de8], rdi
je 0x14002f371
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rbp + 0x37], xmm1
mov word [rbp + 0x27], di
lea rdx, [rbp + 0x27]
lea rcx, [0x140067dd8]
call fcn.14002c8a4
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareWinRAR_SFX
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002f335
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14002f2f6
mov rcx, qword [rbx]
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 7
cmova rdx, qword [rbp + 0x27]
mov eax, dword [rbx + 0x10]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0x3f]
cmp rdx, 7
jbe 0x14002f371
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f36c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f392
call fcn.140031bec
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140031d00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400367c4
int3
Function at 0x14002f4c0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
mov rdx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x14002f4f0
mov rdx, qword [rcx]
lea rcx, str.sfxcmd
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rbp - 0x18], xmm1
xor edi, edi
mov word [rbp - 0x28], di
mov qword [rbp - 0x30], rdi
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.14001c91c
test al, al
je 0x14002f57a
mov rax, qword [rbp - 0x30]
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14002f540
mov rcx, qword [rbx]
movzx ecx, word [rcx + rax*2]
call fcn.14001cc9c
test al, al
je 0x14002f55a
mov rax, qword [rbp - 0x30]
inc rax
mov qword [rbp - 0x30], rax
jmp 0x14002f533
cmp qword [rbx + 0x18], 7
jbe 0x14002f564
mov rbx, qword [rbx]
mov rax, qword [rbp - 0x30]
lea rdx, [rbx + rax*2]
lea rcx, str.sfxpar
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x14002f5b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f5b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f5d2
call fcn.140031bec
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140031d00
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
call fcn.1400367c4
int3
Function at 0x140031078
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400310f1
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400310f1
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
cmp r9w, r11w
jae 0x1400310f1
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400310e5
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140031103
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400310d3
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400310f3

Function at 0x140032cac
Capabilities:
Parse pe header

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

Function at 0x14003af44
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003aca8

Function at 0x140044e60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140044e88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140044e88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [str.4y_r_]
mov dword [rax], 1
mov rax, qword [str.8y_r_]
mov dword [rax], 1
mov rax, qword [str._y_r_]
mov dword [rax], 1
mov rax, qword [0x1400b5460]
mov dword [rax], 1
mov rax, qword [0x1400b52b0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140005472
Capabilities:
Read 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 + 0x20], r8
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x20]
je 0x1400054d3
mov rcx, qword [rbp + 0x10]
call sym.checkErr__systemZio_141
jmp 0x1400054d4
nop
mov rax, qword [rbp - 8]
add rsp, 0x30
pop rbp
ret

Function at 0x140006b3b
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 + 0x20], r8
mov qword [rbp - 8], 0
mov dword [rbp - 0xc], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
cdqe
mov qword [rbp - 8], rax
mov rcx, qword [rbp + 0x10]
call sym.checkErr__systemZio_141
mov rax, qword [rbp - 8]
add rsp, 0x30
pop rbp
ret
Function at 0x140006e8a
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x48], rax
lea rax, str.C:Users_runneradmin.choosenim_toolchains_nim_1.6.6lib_systemio.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.nimFrame_4
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x40], 8
lea rax, [0x1400a7968]
mov qword [rbp - 0x38], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x40], 9
lea rax, [0x1400a7968]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jge 0x140006fd9
mov qword [rbp - 0x40], 0x332
lea rax, str.C:Users_runneradmin.choosenim_toolchains_nim_1.6.6lib_systemio.nim
mov qword [rbp - 0x38], rax
cmp qword [rbp - 8], 0
js 0x140006f3b
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jl 0x140006f4f
mov rax, qword [rbp + 0x28]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
mov rax, qword [rbp - 8]
lea rdx, [rax*8]
mov rax, qword [rbp + 0x20]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rbx, qword [rax]
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r8d, 0
mov rdx, rbx
mov rcx, rax
call sym.writeWindows__systemZio_205
mov qword [rbp - 0x40], 0xb
lea rax, [0x1400a7968]
mov qword [rbp - 0x38], rax
mov edx, 0
mov rax, qword [rbp - 8]
add rax, 1
jno 0x140006fb3
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x58]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x140006fcc
call sym.raiseOverflow
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
jmp 0x140006f09
nop
mov qword [rbp - 0x40], 0x338
lea rax, str.C:Users_runneradmin.choosenim_toolchains_nim_1.6.6lib_systemio.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x14], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x1400a79b6]
mov rcx, rax
call sym.fwrite
mov dword [rbp - 0x14], eax
mov qword [rbp - 0x40], 0x339
lea rax, str.C:Users_runneradmin.choosenim_toolchains_nim_1.6.6lib_systemio.nim
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x18], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x18], eax
call sym.popFrame_4
nop
add rsp, 0x88
pop rbx
pop rbp
ret

Function at 0x14000900c
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 dword [rbp - 4], 0
cmp qword [rbp + 0x18], 0
je 0x14000903b
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen_1
mov rdx, rax
jmp 0x140009040
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov dword [rbp - 4], eax
mov dword [rbp - 8], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 8], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14001158c
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 + 0x20], r8
mov dword [rbp - 4], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov dword [rbp - 4], eax
mov dword [rbp - 8], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 8], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140015608
Capabilities:
Encode data using base64

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 + 0x10], 0
je 0x140015630
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax]
jmp 0x140015635
mov edx, 0
cmp qword [rbp + 0x18], 0
je 0x140015645
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
jmp 0x14001564a
mov eax, 0
add rax, rdx
add rax, 1
mov rcx, rax
call sym.rawNewString
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rdx, qword [rbp + 0x10]
mov rcx, rax
call sym.appendString_1
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.appendString_1
mov rax, qword [rbp - 8]
lea rdx, [0x1400a8330]
mov rcx, rax
call sym.appendString_1
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.sysFatal__system_3113
nop
Function at 0x14002c632
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.getEnv
mov qword [rbp - 0x48], rax
lea rax, str.C:Users_runneradmin.choosenim_toolchains_nim_1.6.6libpureincludesosenv.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.nimFrame_17
mov qword [rbp - 8], 0
mov qword [rbp - 0x40], 0x46
lea rax, str.C:Users_runneradmin.choosenim_toolchains_nim_1.6.6libpureincludesosenv.nim
mov qword [rbp - 0x38], rax
mov rcx, qword [rbp + 0x10]
call sym.nimToCStringConv_6
mov rcx, rax
call sym.getenv
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x40], 0x47
lea rax, str.C:Users_runneradmin.choosenim_toolchains_nim_1.6.6libpureincludesosenv.nim
mov qword [rbp - 0x38], rax
mov byte [rbp - 0x11], 0
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
call sym.eqeq___system_7825_1
mov byte [rbp - 0x11], al
movzx eax, byte [rbp - 0x11]
xor eax, 1
test al, al
jne 0x14002c6ea
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.copyString
mov qword [rbp - 8], rax
jmp 0x14002c70e
nop
mov qword [rbp - 0x40], 0x48
lea rax, str.C:Users_runneradmin.choosenim_toolchains_nim_1.6.6libpureincludesosenv.nim
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.cstrToNimstr
mov qword [rbp - 8], rax
call sym.popFrame_17
mov rax, qword [rbp - 8]
add rsp, 0x70
pop rbp
ret

Function at 0x14002dbe1
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
lea rax, str.existsEnv
mov qword [rbp - 0x48], rax
lea rax, str.C:Users_runneradmin.choosenim_toolchains_nim_1.6.6libpureincludesosenv.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.nimFrame_17
mov byte [rbp - 1], 0
mov qword [rbp - 0x40], 0x56
lea rax, str.C:Users_runneradmin.choosenim_toolchains_nim_1.6.6libpureincludesosenv.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x10], 0
mov rcx, qword [rbp + 0x10]
call sym.nimToCStringConv_6
mov rcx, rax
call sym.getenv
mov qword [rbp - 0x10], rax
mov byte [rbp - 0x11], 0
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
call sym.eqeq___system_7825_1
mov byte [rbp - 0x11], al
movzx eax, byte [rbp - 0x11]
test eax, eax
setne al
xor eax, 1
movzx eax, al
mov byte [rbp - 1], al
and byte [rbp - 1], 1
nop
call sym.popFrame_17
movzx eax, byte [rbp - 1]
add rsp, 0x70
pop rbp
ret
Function at 0x14009e6e0
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 0x14009f312
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400d79c8]
test eax, eax
je 0x14009f3aa
lea rax, [0x1400d79a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400d79d0]
mov qword [rbp - 8], rax
jmp 0x14009f38e
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 0x14009f382
cmp qword [rbp - 0x10], 0
je 0x14009f382
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 0x14009f348
lea rax, [0x1400d79a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14009f3ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14009f4b0
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 0x14009f4d8
mov eax, 0
jmp 0x14009f526
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 0x14009f501
mov eax, 0
jmp 0x14009f526
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 0x14009f521
mov eax, 0
jmp 0x14009f526
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14009f52c
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 0x14009f5aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14009f5a1
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 0x14009f5a1
mov rax, qword [rbp - 8]
jmp 0x14009f5bf
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 0x14009f574
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400024b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400024fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400024fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400024fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400024fa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400024fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400024fc
xor al, al
add rsp, 0x28
ret
Function at 0x100401080
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [0x1004089a0]
call sub.cygwin1.dll___getreent
mov rcx, qword [rax + 0x18]
lea r9, [0x1004081c0]
lea rdx, str._s:_I_O_error_reading___s__possible_reason_follows._n
mov r8, rbx
call sub.cygwin1.dll_fprintf
mov rcx, rbx
call sub.cygwin1.dll_perror
call sub.cygwin1.dll___getreent
mov rcx, qword [rax + 0x18]
lea rdx, str._s:_warning:_output_file_s__may_be_incomplete._n
mov r8, rbx
call sub.cygwin1.dll_fprintf
mov ecx, 1
call sub.cygwin1.dll_exit
nop
nop word cs:[rax + rax]