joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016b4
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov dword [rbp + 0x10], ecx
mov eax, dword [rbp + 0x10]
mov r8d, eax
mov edx, 0
mov ecx, 0x1f0fff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rdx, rax
lea rcx, str.Opened_process__p_n
call sym.printf
mov rax, qword [rbp - 8]
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x46
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov r8, rax
mov edx, 0x46
lea rcx, str.Allocated__zu_bytes_of_memory_for_dllpath_to:__p_n
call sym.printf
mov qword [rbp - 0x30], 0
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x46
lea r8, str.C:UsersgodDocumentsC2mydll.dll
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x10]
mov r8, rdx
mov rdx, rax
lea rcx, str.Wrote__zu_bytes_to__p_n
call sym.printf
lea rcx, str.Kernel32
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
lea rdx, str.LoadLibraryW
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x20], rax
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp - 0x28], rax
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x28]
mov r8, rdx
mov rdx, rax
lea rcx, str.Created_remote_thread__p_starting_at__p__waiting..._n
call sym.printf
mov rax, qword [rbp - 0x28]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rcx, str.Done
call sym.printf
nop
add rsp, 0x70
pop rbp
ret
Function at 0x401db0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401f38
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401dfc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401e85
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401de0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401f6d
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401f50
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401e7e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401ee0
add dword [0x00408624], 1
cmp edi, 8
jae 0x401eb3
test dil, 4
jne 0x401f24
test edi, edi
je 0x401ea8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401f3f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401ea8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401ecc
jmp 0x401ea8
add rsi, qword [0x00408628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401e7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401ea8
xor esi, esi
jmp 0x401e07
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401ea8
mov rax, qword [0x00408628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4026c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x402714
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40270b
test rsi, rsi
je 0x40270b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4026f0
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402950
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402960
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402970
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4029b1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4029a8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4029b3
add rax, 0x28
cmp rax, r9
jne 0x402994
xor eax, eax
ret

Function at 0x402a50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405460]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402abd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402abd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402abd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402ab4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402abf
add rax, 0x28
cmp rax, r9
jne 0x402aa0
xor eax, eax
add rsp, 0x28
ret

Function at 0x402bc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405460]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402be0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402bd8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402c3d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402c34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402c44
add rax, 0x28
cmp rax, r9
jne 0x402c20
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402c60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00405460]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402cce
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402cce
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402cce
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402cce
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402cc5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402cd5
add rcx, 0x28
cmp rcx, rax
jne 0x402cb0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402ce8
jmp 0x402cce
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402cf6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402cce
test r9d, r9d
jg 0x402ce0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x402f80
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
nop
nop
nop
nop
nop
nop
Function at 0x14000e10c
Capabilities:
Parse pe header

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

Function at 0x1400122e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140012173
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012173
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140012173
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140012173
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140012173
cmp dword [rcx + 0x84], 0xe
jbe 0x140012173
cmp dword [rcx + 0xf8], 0
je 0x140012173
mov ecx, ebx
call fcn.140012214
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140012004
cmp dword [rbp + 0x20], 0
je 0x1400121c0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400121c8
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001210c
Function at 0x14000d280
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x40
mov rax, qword [0x14011b170]
mov r12, rcx
mov rbx, rdx
test rax, rax
je 0x14000d330
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x14000d310
call sym.strlen
lea r13, [rsp + 0x20]
mov rdx, r12
mov rcx, r13
mov r8, rax
call sym.toNimStr
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x14011b170]
test r12, r12
je 0x14000d2e9
test byte [r12 + 7], 0x40
je 0x14000d368
lea rcx, [0x1400ec400]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x14000d388
add rsp, 0x40
pop rbx
pop r12
pop r13
ret
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], 0
call rax
jmp 0x14000d2e9
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, r12
mov r8, rbx
mov edx, 1
mov r13, rax
mov r9, rax
call sym.fwrite
mov rcx, r13
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp sym.fflush
lea rcx, [0x1400ec420]
call sym.__emutls_get_address
mov rdx, r12
mov rcx, rax
call sym.rawDealloc__system_u6951
jmp 0x14000d2e9
mov byte [rax], 0
lea rcx, [0x1400ec340]
call sym.__emutls_get_address
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp sym.eqcopy___stdZtypedthreads_u169

Function at 0x14000e240
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
test rax, rax
jle 0x14000e2a0
lea r8, [rax + rdx + 8]
lea rcx, [rdx + 8]
xor eax, eax
nop word [rax + rax]
movzx edx, byte [rcx]
add rcx, 1
add rdx, rax
mov rax, rdx
shl rax, 0xa
add rax, rdx
mov rdx, rax
shr rdx, 6
xor rax, rdx
cmp r8, rcx
jne 0x14000e260
lea rax, [rax + rax*8]
mov rdx, rax
shr rdx, 0xb
xor rdx, rax
mov rax, rdx
shl rax, 0xf
add rax, rdx
ret
xor eax, eax
ret

Function at 0x140010710
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
cmp qword [0x14011b170], 0
je 0x140010770
lea r12, [rsp + 0x20]
mov r8d, 0x1d
lea rdx, [0x1400edc48]
mov rcx, r12
call sym.toNimStr
mov r13, qword [rsp + 0x28]
mov rcx, r12
call qword [0x14011b170]
test r13, r13
je 0x140010756
test byte [r13 + 7], 0x40
je 0x1400107b0
lea rcx, [0x1400ec400]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x1400107d0
add rsp, 0x38
pop r12
pop r13
ret
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, [0x1400edc48]
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp sym.fflush
lea rcx, [0x1400ec420]
call sym.__emutls_get_address
mov rdx, r13
mov rcx, rax
call sym.rawDealloc__system_u6951
jmp 0x140010756
mov byte [rax], 0
lea rcx, [0x1400ec340]
call sym.__emutls_get_address
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop r12
pop r13
jmp sym.eqcopy___stdZtypedthreads_u169
Function at 0x1400124d0
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r13, [0x14011b140]
mov rsi, rdx
mov rbx, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x14001255f
lea rcx, [0x1400ec400]
xor r14d, r14d
lea r12, [rsp + 0x20]
call sym.__emutls_get_address
mov rbp, qword [sym.__acrt_iob_func]
mov rdi, rax
jmp 0x14001252d
add r14, 1
add rbx, 0x10
cmp rsi, r14
je 0x140012566
mov ecx, 1
call rbp
movdqu xmm0, xmmword [rbx]
xor r8d, r8d
mov rdx, r12
mov rcx, rax
movaps xmmword [rsp + 0x20], xmm0
call sym.writeWindows__system_u8909
cmp byte [rdi], 0
je 0x140012520
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rbp, qword [sym.__acrt_iob_func]
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x1400ed601]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rbp
mov rcx, rax
call sym.fflush
mov rcx, r13
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140027a90
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [0x1400f151e]
mov rax, qword [rcx + 8]
add rax, 8
cmp qword [rcx], 0
cmovne rdx, rax
mov rcx, rdx
call sym.system
mov rcx, qword [0x140109eb0]
movsxd rbx, eax
call sym.__emutls_get_address
cmp byte [rax], 0
mov eax, 0
cmove rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14005ba70
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
sub rsp, 0x28
movzx eax, byte [rcx + 8]
mov r12, rcx
mov r15, rdx
mov r13, r8
cmp al, 2
je 0x14005bb68
ja 0x14005bb10
xor r14d, r14d
test al, al
je 0x14005baf7
mov rdx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x28]
mov rax, rdx
sub rax, rcx
jo 0x14005bbe8
cmp rax, r8
mov r14, r8
cmovle r14, rax
test r14, r14
jle 0x14005baf7
cmp rdx, rcx
jle 0x14005bbb8
test rcx, rcx
js 0x14005bbb8
mov rax, qword [r12 + 0x20]
mov r8, r14
lea rdx, [rax + rcx + 8]
mov rcx, r15
call sym.memcpy
mov rax, r14
add rax, qword [r12 + 0x28]
jo 0x14005bbe8
mov qword [r12 + 0x28], rax
mov rax, r14
add rsp, 0x28
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rcx + 0x50]
mov rcx, qword [rcx + 0x58]
test rax, rax
je 0x14005bb88
test rcx, rcx
je 0x14005bb90
call rax
mov rcx, qword [0x140109eb0]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x14005bbf8
mov r9, qword [r12 + 0x48]
mov rax, qword [r12 + 0x40]
test r9, r9
je 0x14005bbd0
mov r8, r13
mov rdx, r15
mov rcx, r12
add rsp, 0x28
pop r12
pop r13
pop r14
pop r15
jmp rax
test r8, r8
js 0x14005bb98
mov rcx, qword [rcx + 0x10]
add rsp, 0x28
pop r12
pop r13
pop r14
pop r15
jmp sym.readBuffer__stdZsyncio_u165
test rcx, rcx
jne 0x14005bb22
jmp 0x14005bb39
call rax
jmp 0x14005bb24
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r13
xor r14d, r14d
call sym.raiseRangeErrorI
jmp 0x14005baf7
sub rdx, 1
call sym.raiseIndexError2
jmp 0x14005baf7
mov r8, r13
mov rdx, r15
mov rcx, r12
add rsp, 0x28
pop r12
pop r13
pop r14
pop r15
jmp rax
call sym.raiseOverflow
jmp 0x14005baf7
xor r14d, r14d
jmp 0x14005baf7

Function at 0x14009d6f0
Capabilities:
Link many functions at runtime

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, qword [rdx]
mov rsi, qword [rdx + 8]
mov rbp, qword [r8]
mov rdi, qword [r8 + 8]
mov r13, rcx
mov rcx, qword [0x140109eb0]
call sym.__emutls_get_address
mov rbx, rax
test r13, r13
je 0x14009d7d0
test r12, r12
lea rax, [0x1401038e0]
lea rdx, [rsi + 8]
mov rcx, r13
cmove rdx, rax
call sym.symAddr__pureZdynlib_u74
cmp byte [rbx], 0
jne 0x14009d749
test rax, rax
je 0x14009d760
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test rbp, rbp
jle 0x14009d77b
lea rdx, [rdi + 8]
mov rcx, r13
call sym.symAddr__pureZdynlib_u74
cmp byte [rbx], 0
jne 0x14009d749
test rax, rax
jne 0x14009d749
mov r13, qword [0x14011b5f8]
test r13, r13
je 0x14009d7f8
test r12, r12
lea rax, [0x1401038e0]
lea rdx, [rsi + 8]
mov rcx, r13
cmove rdx, rax
call sym.symAddr__pureZdynlib_u74
cmp byte [rbx], 0
jne 0x14009d749
test rax, rax
jne 0x14009d749
test rbp, rbp
jle 0x14009d7e6
lea rdx, [rdi + 8]
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.symAddr__pureZdynlib_u74
mov r13, qword [0x14011b5f8]
test r13, r13
je 0x14009d7f8
cmp byte [rbx], 1
je 0x14009d7e6
test r13, r13
jne 0x14009d787
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call sym.loadLib__pureZdynlib_u6
cmp byte [rbx], 0
mov r13, rax
jne 0x14009d7e6
mov qword [0x14011b5f8], rax
jmp 0x14009d7dc
Function at 0x1400d4940
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 0x1400d5572
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14011b788]
test eax, eax
je 0x1400d560a
lea rax, [0x14011b760]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14011b790]
mov qword [rbp - 8], rax
jmp 0x1400d55ee
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 0x1400d55e2
cmp qword [rbp - 0x10], 0
je 0x1400d55e2
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 0x1400d55a8
lea rax, [0x14011b760]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400d560b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400d5710
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 0x1400d5738
mov eax, 0
jmp 0x1400d5786
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 0x1400d5761
mov eax, 0
jmp 0x1400d5786
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 0x1400d5781
mov eax, 0
jmp 0x1400d5786
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400d578c
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 0x1400d580a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400d5801
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 0x1400d5801
mov rax, qword [rbp - 8]
jmp 0x1400d581f
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 0x1400d57d4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400e1234
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 0x1400e137e
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x1400e1371
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 0x1400e1327
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x1400e133d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x1400e1323
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x1400e135c
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 0x1400e137f
nop
add rsp, 0x90
pop rbp
ret