joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006ba8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and al, 0x4d
insb byte [rdi], dx
mov byte [rsp + 0x4e], 0x41
mov byte [rsp + 0x4f], 0x6c
mov byte [rsp + 0x50], 0x6c
mov byte [rsp + 0x51], 0x6f
mov byte [rsp + 0x52], 0x63
mov byte [rsp + 0x53], 0
mov byte [rsp + 0x38], 0x47
mov byte [rsp + 0x39], 0x6c
mov byte [rsp + 0x3a], 0x6f
mov byte [rsp + 0x3b], 0x62
mov byte [rsp + 0x3c], 0x61
mov byte [rsp + 0x3d], 0x6c
mov byte [rsp + 0x3e], 0x46
mov byte [rsp + 0x3f], 0x72
mov byte [rsp + 0x40], 0x65
mov byte [rsp + 0x41], 0x65
mov byte [rsp + 0x42], 0
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.14000685c
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call fcn.14000685c
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe0], 0
je 0x140006b7c
cmp qword [rsp + 0xe8], 0
jne 0x140006b83
xor eax, eax
jmp 0x140006e82
mov edx, 0x40
mov ecx, 0x40
call qword [rsp + 0xe0]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140006ba8
xor eax, eax
jmp 0x140006e82
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0xe0]
mov qword [rax + 0x30], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0xe8]
mov qword [rax + 0x38], rcx
mov byte [rsp + 0xa8], 0x47
mov byte [rsp + 0xa9], 0x65
mov byte [rsp + 0xaa], 0x74
mov byte [rsp + 0xab], 0x4d
mov byte [rsp + 0xac], 0x6f
mov byte [rsp + 0xad], 0x64
mov byte [rsp + 0xae], 0x75
mov byte [rsp + 0xaf], 0x6c
mov byte [rsp + 0xb0], 0x65
mov byte [rsp + 0xb1], 0x48
mov byte [rsp + 0xb2], 0x61
mov byte [rsp + 0xb3], 0x6e
mov byte [rsp + 0xb4], 0x64
mov byte [rsp + 0xb5], 0x6c
mov byte [rsp + 0xb6], 0x65
add byte [rax], al
mov byte gs:[rsp + 0xb7], 0x41

Function at 0x140006c4c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [rax], al
mov byte gs:[rsp + 0xb7], 0x41
mov byte [rsp + 0xb8], 0
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x20]
cmp qword [rax + 8], 0
jne 0x140006c8a
jmp 0x140006e80
mov byte [rsp + 0x68], 0x4c
mov byte [rsp + 0x69], 0x6f
mov byte [rsp + 0x6a], 0x61

Function at 0x140006c98
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [rax], al
mov byte gs:[rsp + 0xb7], 0x41
mov byte [rsp + 0xb8], 0
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x20]
cmp qword [rax + 8], 0
jne 0x140006c8a
jmp 0x140006e80
mov byte [rsp + 0x68], 0x4c
mov byte [rsp + 0x69], 0x6f
mov byte [rsp + 0x6a], 0x61
Function at 0x140006e8c
Capabilities:
Parse pe header

Disassembly:
mov r8, rdx
test rcx, rcx
je fcn.140006eed
cmp qword [rcx + 0x10], 0
je fcn.140006eed
xor eax, eax
mov edx, 0x5a4d
cmp dx, word [r8]
sete al
jne 0x140006edd
movsxd rdx, dword [r8 + 0x3c]
xor eax, eax
add rdx, r8
mov r8d, 0x4550
cmp dword [rdx], r8d
sete al
jne 0x140006edd
mov eax, 0x8664
cmp ax, word [rdx + 4]
jne 0x140006ee9
xor eax, eax
mov r8d, 0x20b
cmp r8w, word [rdx + 0x18]
sete al
test eax, eax
jne 0x140006eef
mov dword [rcx + 0x20], 1
ret
xor eax, eax
jmp 0x140006ee1

Function at 0x1400072f8
Capabilities:
Inspect section memory permissions

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
cmp qword [rsp + 0xb0], 0
je 0x14000731e
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x10], 0
jne 0x140007325
xor eax, eax
jmp 0x1400075a4
mov dword [rsp + 0x70], 1
mov dword [rsp + 0x74], 8
mov dword [rsp + 0x78], 2
mov dword [rsp + 0x7c], 4
mov dword [rsp + 0x80], 0x10
mov dword [rsp + 0x84], 0x80
mov dword [rsp + 0x88], 0x20
mov dword [rsp + 0x8c], 0x40
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x10]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0xb0]
movabs rcx, 0xffffffff00000000
mov rax, qword [rax]
and rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 6]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x58]
add rax, 0x108
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x140007421

Function at 0x14000768c
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x400
in al, dx
add byte [rax + rax], al
add byte [rax - 0x75], cl
fimul dword [rbp + rcx*4 + 0x1c]
and al, 0x45
xor edx, edx
mov r9d, r10d
mov edx, 8
shl r9d, 0x18
mov eax, r9d
lea ecx, [r9 + r9]
mov r9d, ecx
xor r9d, 0x4c10db7
test eax, eax
cmovns r9d, ecx
sub rdx, 1
jne 0x1400076ab
mov dword [r11], r9d
inc r10d
add r11, 4
cmp r10d, 0x100
jl 0x14000769f
xor eax, eax
test r8d, r8d
je 0x1400076fd
movzx ecx, byte [rbx]
inc rbx
mov edx, eax
shr rdx, 0x18
xor rdx, rcx
shl eax, 8
xor eax, dword [rsp + rdx*4]
add r8d, 0xffffffff
jne 0x1400076e2
add rsp, 0x400
pop rbx
ret

Function at 0x1400502fc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140050084
Function at 0x14005bcfc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14005bd1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140055dc0
or eax, 0xffffffff
jmp 0x14005bd1e
xor eax, eax
add rsp, 0x28
ret

Function at 0x14006bf20
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006bf36
mov al, 1
jmp 0x14006bf96
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006bf47
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14006bf94
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400678d4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006bf94
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14006bf94
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14006bf94
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14006bf96
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14006d908
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140095da0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14006d95f
cmp word [rdx], r13w
jne 0x14006d95f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14006d964
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14006da89
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14006daaa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14006d99d
mov rdx, r9
mov word [rbx], cx
jmp 0x14006d9c4
cmp r9, r8
jae 0x14006d9d4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14006d97e
jmp 0x14006da89
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006da7e
cmp dword [rsp + 0x80], esi
je 0x14006da7e
lea r8, [0x140095da0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14006da56
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14006da26
mov word [rbx], r13w
jmp 0x14006da86
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14006da33
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14006da86
cmp word [rsp + 0x70], r13w
jne 0x14006da63
cmp rbx, r14
je 0x14006da20
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14006caa4
cmp word [rsp + 0x70], r13w
je 0x14006da89
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140095da0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14006da83
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14006da89
Function at 0x140075ad0
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14006caa4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14006caa4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140075c20
cmp rax, 0xffffffffffffffff
je 0x140075c20
xor edi, edi
test rbp, rbp
jle 0x140075bcb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140057950
mov rbx, rax
test rax, rax
jne 0x140075b58
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140075bc1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400504a8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14005ae14
cmp eax, 0xffffffff
je 0x140075ba1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140075b68
mov edx, r15d
mov ecx, r14d
call fcn.1400504a8
jmp 0x140075bc1
cmp byte [rsi + 0x38], dil
je 0x140075bb8
cmp dword [rsi + 0x34], 5
jne 0x140075bb8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140075bc1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400579d0
jmp 0x140075c34
jns 0x140075c34
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14006caa4
cmp rax, 0xffffffffffffffff
jne 0x140075bec
cmp byte [rsi + 0x30], dil
je 0x140075c34
mov edi, dword [rsi + 0x2c]
jmp 0x140075c34
mov ecx, r14d
call fcn.1400678d4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140075c34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140075c34
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140075c2d
mov eax, dword [rsi + 0x2c]
jmp 0x140075c32
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14006caa4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140078c40
Capabilities:
Reference the vmware io port

Disassembly:
mov eax, 0x5658
mov dword [rcx], 0x564d5868
mov word [rcx + 0x18], ax
jmp 0x140078cc0
push rbx
push rsi
push rdi
mov rax, rcx
push rax
mov rdi, qword [rax + 0x28]
mov rsi, qword [rax + 0x20]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov rbx, qword [rax + 8]
mov rax, qword [rax]
in eax, dx
xchg qword [rsp], rax
mov qword [rax + 0x28], rdi
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], rdx
mov qword [rax + 0x10], rcx
mov qword [rax + 8], rbx
pop qword [rax]
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14005d610]
mov dword [rax], 1
mov rax, qword [0x14005d620]
mov dword [rax], 1
mov rax, qword [0x14005d630]
mov dword [rax], 1
mov rax, qword [0x14005d600]
mov dword [rax], 1
mov rax, qword [0x14005d4b0]
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 0x140007a85
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_5
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 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 - 0x18], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp + 0x20]
je 0x140007afb
mov rcx, qword [rbp + 0x10]
call sym.checkErr__stdZsyncio_u165
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jmp 0x140007afc
nop
mov rax, qword [rbp - 0x10]
add rsp, 0x40
pop rbp
ret

Function at 0x140009355
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_5
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 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 - 0x18], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x10], rax
mov rcx, qword [rbp + 0x10]
call sym.checkErr__stdZsyncio_u165
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
nop
mov rax, qword [rbp - 0x10]
add rsp, 0x40
pop rbp
ret
Function at 0x14000999e
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 0x1400099ce
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen_1
mov rdx, rax
jmp 0x1400099d3
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 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 0x14001374c
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 0x1400170dc
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, [0x1400578f8]
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_7
call sym.nimErrorFlag_6
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x50], 0xac5
lea rax, [0x1400691a0]
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, [0x1400581a8]
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 0x14001725d
mov qword [rbp - 0x50], 0xac6
lea rax, [0x1400578f8]
mov qword [rbp - 0x48], rax
cmp qword [rbp - 8], 0
js 0x1400171a0
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jl 0x1400171b9
mov rax, qword [rbp + 0x18]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
jmp 0x1400172ee
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 [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 - 0x80], rax
mov qword [rbp - 0x78], rdx
lea rax, [rbp - 0x80]
mov r8d, 0
mov rdx, rax
call sym.writeWindows__system_u9054
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x1400172ed
mov qword [rbp - 0x50], 0x10
lea rax, [0x1400581a8]
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x68]
mov rax, qword [rbp - 8]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.nimAddInt_5
test al, al
je 0x140017250
call sym.raiseOverflow
jmp 0x1400172ee
mov rax, qword [rbp - 0x68]
mov qword [rbp - 8], rax
jmp 0x14001716e
nop
mov qword [rbp - 0x50], 0xae1
lea rax, [0x1400578f8]
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, [0x1400578e9]
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x50], 0xae2
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], 0xae6
lea rax, [0x1400691a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400172ee
nop
call sym.popFrame_7
nop
add rsp, 0xa0
pop rbp
ret
Function at 0x140041760
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 0x140042392
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400695e8]
test eax, eax
je 0x14004242a
lea rax, [0x1400695c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400695f0]
mov qword [rbp - 8], rax
jmp 0x14004240e
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 0x140042402
cmp qword [rbp - 0x10], 0
je 0x140042402
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 0x1400423c8
lea rax, [0x1400695c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14004242b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140042530
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 0x140042558
mov eax, 0
jmp 0x1400425a6
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 0x140042581
mov eax, 0
jmp 0x1400425a6
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 0x1400425a1
mov eax, 0
jmp 0x1400425a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400425ac
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 0x14004262a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140042621
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 0x140042621
mov rax, qword [rbp - 8]
jmp 0x14004263f
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 0x1400425f4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14004a0d4
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 0x14004a21e
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x14004a211
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 0x14004a1c7
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14004a1dd
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x14004a1c3
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14004a1fc
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 0x14004a21f
nop
add rsp, 0x90
pop rbp
ret