joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14031e6c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
xor ebp, ebp
lea rbx, [0x140768440]
mov eax, dword [rcx + 0x28]
mov r12, rcx
mov rdi, rdx
mov rsi, r8
test eax, eax
jle 0x14031e754
nop dword [rax + rax]
mov r10d, ebp
xor r10d, 1
cmp ebp, 2
cmovge r10d, ebp
movsxd r9, r10d
shl r9, 5
add r9, qword [r12 + 0x20]
test rsi, rsi
je 0x14031e72e
mov r8, qword [r9]
xor ecx, ecx
jmp 0x14031e71d
movzx edx, byte [rbx + rdx]
cmp byte [rbx + rax], dl
jne 0x14031e768
add rcx, 1
movzx eax, byte [r8 + rcx]
movzx edx, byte [rsi + rcx]
cmp eax, edx
jne 0x14031e710
test eax, eax
jne 0x14031e719
mov rcx, qword [r9 + 0x18]
xor r8d, r8d
mov rdx, rdi
add rcx, 0x20
call dbg.findElementWithHash
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14031e756
add ebp, 1
cmp dword [r12 + 0x28], ebp
jg 0x14031e6e8
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
test r10d, r10d
jne 0x14031e74a
mov rcx, rsi
mov eax, 0x6d
lea r8, str.main
jmp 0x14031e798
cdqe
movzx edx, byte [rbx + rdx]
cmp byte [rbx + rax], dl
jne 0x14031e74a
movzx eax, byte [r8 + 1]
add r8, 1
add rcx, 1
movzx edx, byte [rcx]
cmp eax, edx
jne 0x14031e780
test eax, eax
jne 0x14031e78b
jmp 0x14031e72e

Function at 0x140324e20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r15d, dword [rsp + 0xb0]
mov rsi, qword [rcx + 0x10]
mov rbp, qword [rsp + 0xb8]
mov r12d, dword [rsp + 0xc0]
mov rdi, rcx
mov r13d, edx
mov rcx, qword [rcx]
mov dword [rsp + 0x3c], r9d
lea edx, [r15*8 + 0x30]
mov r14d, r8d
movsxd rdx, edx
call sym.sqlite3DbMallocRawNN
mov rbx, rax
test rax, rax
je 0x140324f60
mov byte [rax + 0x29], r15b
mov edx, dword [rsi + 0x90]
cmp r12d, 1
mov r10d, 0x3f
mov qword [rax], 0
adc r10d, 0
mov qword [rax + 8], rbp
mov qword [rax + 0x18], 0
mov dword [rax + 0x24], 0
mov dword [rax + 0x20], edx
cmp edx, dword [rsi + 0x94]
jge 0x140324f40
lea eax, [rdx + 1]
mov edi, dword [rsp + 0x3c]
mov dword [rsi + 0x90], eax
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
lea rax, [rax + rcx*8]
xor ecx, ecx
mov byte [rax], r10b
mov word [rax + 2], cx
mov dword [rax + 4], r13d
mov dword [rax + 8], r14d
mov dword [rax + 0xc], edi
mov qword [rax + 0x10], 0
mov byte [rax + 1], 0
mov r9d, 0xfffffff0
mov r8, rbx
mov rcx, rsi
call sym.sqlite3VdbeChangeP4
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x140324f2d
mov rdx, qword [rsi + 0x88]
lea rax, [rax + rax*2]
and r12d, 0x2e
lea rax, [rdx + rax*8]
mov word [rax - 0x16], r12w
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [rsp + 0x3c]
mov edx, r10d
mov r9d, r14d
mov r8d, r13d
mov rcx, rsi
mov dword [rsp + 0x20], eax
call dbg.growOp3
mov edx, eax
jmp 0x140324ef9
test byte [rbp + 4], 0x10
je 0x140324f2d
mov rcx, qword [rdi]
mov rdx, rbp
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.sqlite3DbFreeNN
Function at 0x140326050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [rdx + 0x28]
mov r12, rcx
mov rbx, rdx
mov edi, r8d
test rsi, rsi
je 0x140326110
mov rcx, rsi
call sym.strlen
mov r9d, eax
and r9d, 0x3fffffff
je 0x1403260e0
test edi, edi
je 0x1403260f0
mov edx, dword [r12 + 0x90]
cmp edx, dword [r12 + 0x94]
jge 0x1403261a0
lea eax, [rdx + 1]
mov dword [r12 + 0x90], eax
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [r12 + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 4], edi
mov dword [rax + 8], r9d
mov dword [rax + 0xc], 0
mov qword [rax + 0x10], 0
mov dword [rax], 0x5c
mov r8, rsi
jmp 0x1403260f8
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov r8, rsi
mov edx, 0xffffffff
mov rcx, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp sym.sqlite3VdbeChangeP4
mov r13, qword [rcx]
movsx ecx, word [rdx + 0x46]
add ecx, 1
movsxd rcx, ecx
call sym.sqlite3Malloc
mov rsi, rax
test rax, rax
je 0x1403261d8
xor edx, edx
xor ecx, ecx
cmp word [rbx + 0x46], 0
jle 0x1403261d0
nop dword [rax]
mov rax, rdx
shl rax, 5
add rax, qword [rbx + 8]
test byte [rax + 0x1c], 0x20
jne 0x140326160
movzx r8d, byte [rax + 0x19]
movsxd rax, ecx
add ecx, 1
mov byte [rsi + rax], r8b
movsx eax, word [rbx + 0x46]
add rdx, 1
cmp eax, edx
jg 0x140326140
movsxd rcx, ecx
mov rdx, rsi
lea rax, [rsi + rcx]
nop word cs:[rax + rax]
mov byte [rax], 0
cmp rdx, rax
je 0x140326191
sub rax, 1
cmp byte [rax], 0x41
jle 0x140326180
mov qword [rbx + 0x28], rsi
jmp 0x140326071
mov edx, 0x5c
mov r8d, edi
mov rcx, r12
mov dword [rsp + 0x3c], r9d
mov dword [rsp + 0x20], 0
call dbg.growOp3
mov r9d, dword [rsp + 0x3c]
mov edx, eax
jmp 0x1403260d9
mov byte [rax], 0
jmp 0x140326191
mov rcx, r13
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp sym.sqlite3OomFault

Function at 0x1403321f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [0x140762280]
mov r15, r8
mov r8, qword [r8]
mov r12, rcx
movzx eax, word [r8 + 8]
and eax, 0x3f
cmp byte [rbp + rax], 5
je 0x140332298
cmp edx, 1
jle 0x1403322b7
mov rax, qword [rcx + 8]
mov rcx, qword [rcx + 0x18]
xor r13d, r13d
movsxd rdi, edx
mov ebx, 1
cmp qword [rax + 8], 0
movsxd rax, dword [r12 + 0x20]
mov r8, qword [rcx + 0x88]
setne r13b
xor esi, esi
lea rax, [rax + rax*2]
neg r13d
lea rax, [r8 + rax*8]
mov r14, qword [rax - 8]
jmp 0x140332286
movsxd rax, esi
mov r8, r14
mov rcx, qword [r15 + rax*8]
call dbg.sqlite3MemCompare
xor eax, r13d
cmovns esi, ebx
add rbx, 1
cmp rdi, rbx
je 0x1403322b0
mov rdx, qword [r15 + rbx*8]
movzx eax, word [rdx + 8]
and eax, 0x3f
cmp byte [rbp + rax], 5
jne 0x140332268
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movsxd rsi, esi
mov r8, qword [r15 + rsi*8]
mov rcx, qword [r12]
mov rdx, r8
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.sqlite3VdbeMemCopy
Function at 0x140383450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
movzx eax, byte [rdx]
mov r12, rdx
mov r15, rcx
mov edx, eax
cmp al, 0xaf
jne 0x140383475
movzx edx, byte [r12 + 2]
cmp dl, 0xb0
je 0x140383590
cmp dl, 0x89
je 0x1403834a0
mov rdx, r12
mov rcx, r15
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp dbg.sqlite3ExprCodeTemp
mov rdx, qword [r12 + 0x20]
mov rdx, qword [rdx + 0x20]
mov ebx, dword [rdx]
cmp ebx, 1
je 0x140383483
mov dword [r8], 0
cmp al, 0x89
je 0x1403835a0
mov eax, dword [r15 + 0x38]
lea r13d, [rax + 1]
add eax, ebx
mov dword [r15 + 0x38], eax
test ebx, ebx
jle 0x140383573
xor r14d, r14d
lea rdi, [dbg.exprNodeIsConstant]
lea rbp, [rsp + 0x30]
lea rsi, [dbg.sqlite3SelectWalkFail]
jmp 0x140383525
mov rcx, rbp
mov dword [rsp + 0x2c], r8d
mov qword [rsp + 0x20], rdx
call dbg.walkExpr
cmp word [rsp + 0x54], 0
mov rdx, qword [rsp + 0x20]
mov r8d, dword [rsp + 0x2c]
jne 0x140383562
mov rcx, r15
add r14d, 1
call dbg.sqlite3ExprCodeCopy
cmp r14d, ebx
je 0x140383573
movsxd rax, r14d
lea r8d, [r13 + r14]
shl rax, 5
add rax, qword [r12 + 0x20]
cmp byte [r15 + 0x23], 0
mov rdx, qword [rax + 8]
je 0x140383514
mov eax, 2
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x54], ax
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x58], 0
test rdx, rdx
jne 0x1403834f0
mov rcx, r15
add r14d, 1
call dbg.sqlite3ExprCodeRunJustOnce
cmp r14d, ebx
jne 0x140383525
mov eax, r13d
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [r12 + 0x20]
mov ebx, dword [rdx]
jmp 0x1403834ab
mov rdx, r12
mov rcx, r15
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp dbg.sqlite3CodeSubselect
Function at 0x1403c65e0
Capabilities:
Reference sql statements

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
movsxd rdi, edx
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rbp, r8
cmp qword [rcx + rdi*8 + 0x28], 0
mov rsi, rdi
lea r12, [rdi + 4]
mov r13, r9
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov qword [rsp + 0x48], rax
je 0x1403c6680
mov ecx, dword [rbx + 0x40]
test ecx, ecx
je 0x1403c6638
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rbx + rdi*8 + 0x28]
mov r8, rbp
mov edx, 1
mov rcx, r12
call sym.sqlite3_bind_int64
mov rcx, r12
call dbg.sqlite3_step
cmp eax, 0x65
je 0x1403c66a0
cmp eax, 0x64
je 0x1403c66d0
mov rcx, r12
call dbg.sqlite3_reset
mov edx, dword [rbx + 0x40]
test edx, edx
jne 0x1403c6626
mov dword [rbx + 0x40], eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdx, qword [rsp + rdi*8 + 0x40]
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
call dbg.rtreeCheckPrepare
mov qword [rbx + r12*8 + 8], rax
jmp 0x1403c661f
test esi, esi
lea rdx, str.__parent
mov r9, r13
mov r8, rbp
lea rax, str.__rowid
mov rcx, rbx
cmove rax, rdx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov qword [rsp + 0x20], rax
call dbg.rtreeCheckAppendMsg
jmp 0x1403c665f
xor edx, edx
mov rcx, r12
call dbg.columnMem
mov rcx, rax
call sym.sqlite3VdbeIntValue
mov rdi, rax
test r12, r12
je 0x1403c66f2
mov rcx, r12
call sym.columnMallocFailure.part.0
cmp r13, rdi
je 0x1403c665f
test esi, esi
lea rdx, str.__parent
mov r9, rdi
mov r8, rbp
lea rax, str.__rowid
mov qword [rsp + 0x30], r13
mov rcx, rbx
cmove rax, rdx
mov qword [rsp + 0x28], rbp
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov qword [rsp + 0x20], rax
call dbg.rtreeCheckAppendMsg
jmp 0x1403c665f
Function at 0x1403ce240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
sub rsp, 0x20
cmp byte [rcx + 0xa], 0
mov r12, rcx
jne 0x1403ce268
mov rcx, r12
call sym.rtreeSearchPointPop
mov rcx, r12
add rsp, 0x20
pop r12
jmp dbg.rtreeStepToLeaf
mov byte [rcx + 0xa], 0
mov rcx, qword [rcx + 0x38]
call dbg.sqlite3_reset
jmp 0x1403ce24f
Function at 0x1403dc420
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
test rax, rax
mov qword [0x1407d72f0], rax
je 0x1403dc455
lea rcx, [0x1407d7300]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, [0x1407687e0]
lea r9, [rax + 0x60]
mov r8d, 0x3d
mov edx, 1
call sym.fwrite
call sym.abort
nop
nop dword [rax]

Function at 0x1403dc4f0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x20
mov r8, rdx
xor edx, edx
call qword [sym.imp.msvcrt.dll__beginthread]
cmp rax, 0xffffffffffffffff
je 0x1403dc50c
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, [0x140768820]
lea rcx, [rax + 0x60]
mov r8d, ebx
call sym.fprintf
call sym.abort
nop
nop word cs:[rax + rax]

Function at 0x1403dc600
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call sym._cgo_maybe_run_preinit
lea rcx, [0x1407d7300]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea rcx, [0x1407d7300]
mov dword [0x1407d72e8], 1
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov rcx, qword [0x1407d72f0]
call qword [sym.imp.KERNEL32.DLL_SetEvent]
test eax, eax
je 0x1403dc643
add rsp, 0x28
ret
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.runtime:_failed_to_signal_runtime_initialization_complete._n
lea r9, [rax + 0x60]
mov r8d, 0x3b
mov edx, 1
call sym.fwrite
call sym.abort
nop
nop word [rax + rax]

Function at 0x1403dc6d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x18
call sym.malloc
test rax, rax
je 0x1403dc70a
mov rdx, qword [rbx]
mov rcx, rax
mov qword [rax], rdx
mov rdx, qword [rbx + 8]
mov qword [rax + 8], rdx
mov rdx, qword [rbx + 0x10]
mov qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
jmp dbg._cgo_sys_thread_start
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.runtime_cgo:_out_of_memory_in_thread_start_n
lea r9, [rax + 0x60]
mov r8d, 0x2b
mov edx, 1
call sym.fwrite
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1403dc790
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov r8, rcx
lea rcx, [dbg.threadentry]
call qword [sym.imp.msvcrt.dll__beginthread]
cmp rax, 0xffffffffffffffff
je 0x1403dc7b3
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, str.runtime:_failed_to_create_new_OS_thread___d__n
lea rcx, [rax + 0x60]
mov r8d, ebx
call sym.fprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
Function at 0x1403dcad0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x1403dcb40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1407d73c4]
mov r12, rcx
test ebx, ebx
jle 0x1403dcc70
mov rax, qword [0x1407d73c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1403dcb8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1403dcc13
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1403dcb70
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x1403dcc92
mov rax, qword [0x1407d73c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1407d73c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
je 0x1403dcc77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1403dcc0c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1403dcc20
add dword [0x1407d73c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1407d73c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x1403dcc0c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x1403dcb97
mov rax, qword [0x1407d73c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1403dd150
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1407d7420]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x1407d7400]
test rbx, rbx
je 0x1403dd1a4
mov rdi, qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1403dd19b
test r12, r12
je 0x1403dd19b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1403dd180
lea rcx, [0x1407d7420]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
Function at 0x1403dd3c0
Capabilities:
Parse pe header

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

Function at 0x1403dd3f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1403dd43c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x1403dd433
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x1403dd43e
add rax, 0x28
cmp rax, r9
jne 0x1403dd420
xor eax, eax
ret

Function at 0x1403dd440
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1403dd4d0
mov rdx, qword [0x140768e80]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x1403dd4be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1403dd4be
cmp word [rax + 0x18], 0x20b
jne 0x1403dd4be
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1403dd4d0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1403dd4a9
add r12, 0x28
cmp r12, rsi
je 0x1403dd4d0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1403dd4a0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x140768e80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1403dd500
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1403dd508
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1403dd500
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1403dd555
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1403dd54c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1403dd500
add rax, 0x28
cmp rax, r9
jne 0x1403dd538
xor eax, eax
ret

Function at 0x1403dd560
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140768e80]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1403dd580
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1403dd588
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1403dd580
movzx r8d, word [rax + 6]
mov eax, r8d
ret
Function at 0x1403dd5a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140768e80]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1403dd5c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1403dd5c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1403dd5c0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1403dd608
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1403dd5ff
test rcx, rcx
je 0x1403dd5c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1403dd5f0
xor eax, eax
ret

Function at 0x1403dd610
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140768e80]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1403dd630
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1403dd638
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rax, qword [0x140768e80]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1403dd670
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1403dd678
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1403dd670
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1403dd670
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1403dd6b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1403dd6c8
add rax, 0x28
cmp r9, rax
jne 0x1403dd6a0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x140768e80]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1403dd702
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1403dd710
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1403dd702
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1403dd702
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1403dd702
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1403dd75d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1403dd770
add rdx, 0x28
cmp r10, rdx
jne 0x1403dd748
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1403dd77f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1403dd78f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1403dd766
test ecx, ecx
jg 0x1403dd778
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1403df150
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140768f00]
mov rax, qword [rsi]
test rax, rax
je 0x1403df1e0
cmp qword [rax + 0x30], 0
jne 0x1403df200
lea rbx, [0x14043d418]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x1403df1b0
cmp qword [rax + 0x30], 0
jne 0x1403df1d0
lea rdx, [0x14043d418]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1403df192
test rax, rax
jne 0x1403df1d0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x1403df1a0
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1403df170
test rax, rax
jne 0x1403df200
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1403df17b

Function at 0x1403df210
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1403df322
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1403df2fa
add rax, 1
cmp rax, 0x6b
je 0x1403df317
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1403df2f0
cmp edx, 0x6a
je 0x1403df317
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call sym.abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1403df30b