joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140085b60
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
lea rdx, [0x1400857f0]
lea rcx, [0x1400dad28]
call fcn.140085990
mov ecx, dword [0x1400dad30]
test ecx, ecx
je 0x140085b9a
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x140085bc3
lea rcx, [rsp + 0x28]
call fcn.14004ac98
mov dword [rsp + 0x40], 0
lea rax, vtable.boost::thread_resource_error.0
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
call fcn.1400164f0
nop
add rsp, 0x50
pop rbx
ret

Function at 0x140085bd0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov ecx, dword [0x1400dad30]
test ecx, ecx
jne 0x140085bfc
xor edi, edi
jmp 0x140085c05
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov qword [rsp + 0x40], rdi
test rdi, rdi
je 0x140085cfe
cmp qword [rdi + 0x28], 0
jne 0x140085c27
cmp qword [rdi + 0x20], 0
je 0x140085cf6
jmp 0x140085c30
cmp qword [rdi + 0x20], 0
je 0x140085c86
nop
mov rsi, qword [rdi + 0x20]
mov rax, qword [rsi + 8]
mov qword [rdi + 0x20], rax
mov rcx, qword [rsi]
test rcx, rcx
je 0x140085c6b
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsi]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rdi + 0x20], 0
jne 0x140085c30
cmp qword [rdi + 0x28], 0
je 0x140085c1a
nop dword [rax]
mov rsi, qword [rdi + 0x28]
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x28], rax
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140085caf
mov rax, qword [rcx]
mov rdx, qword [rsi + 0x18]
call qword [rax + 8]
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x140085cd6
lock dec dword [rbx + 8]
jne 0x140085cd6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
lock dec dword [rbx + 0xc]
jne 0x140085cd6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rdi + 0x28], 0
jne 0x140085c90
jmp 0x140085c13
xor ecx, ecx
call fcn.140085b60
nop
test rdi, rdi
je 0x140085d27
lock dec dword [rdi + 8]
jne 0x140085d27
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
jmp 0x140085bd0
Function at 0x140085d40
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov ecx, dword [0x1400dad30]
test ecx, ecx
jne 0x140085bfc
xor edi, edi
jmp 0x140085c05
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov qword [rsp + 0x40], rdi
test rdi, rdi
je 0x140085cfe
cmp qword [rdi + 0x28], 0
jne 0x140085c27
cmp qword [rdi + 0x20], 0
je 0x140085cf6
jmp 0x140085c30
cmp qword [rdi + 0x20], 0
je 0x140085c86
nop
mov rsi, qword [rdi + 0x20]
mov rax, qword [rsi + 8]
mov qword [rdi + 0x20], rax
mov rcx, qword [rsi]
test rcx, rcx
je 0x140085c6b
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsi]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rdi + 0x20], 0
jne 0x140085c30
cmp qword [rdi + 0x28], 0
je 0x140085c1a
nop dword [rax]
mov rsi, qword [rdi + 0x28]
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x28], rax
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140085caf
mov rax, qword [rcx]
mov rdx, qword [rsi + 0x18]
call qword [rax + 8]
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x140085cd6
lock dec dword [rbx + 8]
jne 0x140085cd6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
lock dec dword [rbx + 0xc]
jne 0x140085cd6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rdi + 0x28], 0
jne 0x140085c90
jmp 0x140085c13
xor ecx, ecx
call fcn.140085b60
nop
test rdi, rdi
je 0x140085d27
lock dec dword [rdi + 8]
jne 0x140085d27
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
jmp 0x140085bd0
Function at 0x140086420
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 8
mov rsi, r8
mov rdi, rcx
jb 0x14008643a
mov rdx, qword [rdx]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r11d, eax
cmp eax, 0xffffffff
jne 0x14008650e
mov qword [rsp + 0x40], rbx
call fcn.1400868a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x20]
mov qword [rsi], rcx
mov qword [rsi + 8], rbx
mov eax, dword [rsi]
mov rbx, qword [rsp + 0x40]
cmp eax, 2
je 0x1400864e5
cmp eax, 3
je 0x1400864e5
cmp eax, 0x7b
je 0x1400864e5
cmp eax, 0xf
je 0x1400864e5
cmp eax, 0x15
je 0x1400864e5
cmp eax, 0x57
je 0x1400864e5
cmp eax, 0xa1
je 0x1400864e5
cmp eax, 0x35
je 0x1400864e5
cmp eax, 0x20
jne 0x1400864d1
mov rax, qword [0x1400dad50]
mov dword [rdi], 9
mov qword [rsi], rax
mov rax, qword [0x1400dad58]
mov qword [rsi + 8], rax
mov rax, rdi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov dword [rdi], 0
mov rax, rdi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rax, qword [0x1400dad50]
mov dword [rdi], 1
mov qword [rsi], rax
mov rax, qword [0x1400dad58]
mov qword [rsi + 8], rax
mov rax, rdi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rax, qword [0x1400dad50]
mov dword [rsp + 0x48], 3
mov qword [rsi], rax
mov rax, qword [0x1400dad58]
mov qword [rsi + 8], rax
lea rax, [rsp + 0x48]
test r11b, 0x10
jne 0x14008653e
mov dword [rsp + 0x48], 2
mov eax, dword [rax]
mov rsi, qword [rsp + 0x50]
mov dword [rdi], eax
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x140086570
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [r8 + 0x18], 8
mov rax, rdx
mov rdi, rcx
jb 0x14008658a
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x140086594
mov rax, qword [rdx]
mov rdx, r8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1400865a8
xor ebx, ebx
jmp 0x1400865b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400868a0
mov dword [rdi], ebx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x1400865d0
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x20], 0
call fcn.1400868a0
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x28], rax
call fcn.140086420
cmp dword [rsp + 0x20], 0
je 0x14008662a
mov rax, qword [rsp + 0x20]
mov qword [rdi], rax
mov rax, qword [rsp + 0x28]
mov qword [rdi + 8], rax
mov rax, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x140086686
cmp eax, 3
jne 0x140086671
cmp qword [rbx + 0x18], 8
jb 0x140086642
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140086686
call fcn.1400868a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rdi + 8], rbx
mov dword [rdi], eax
mov rax, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp qword [rbx + 0x18], 8
jb 0x14008667b
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14008664b
mov rax, qword [0x1400dad50]
mov rbx, qword [rsp + 0x40]
mov qword [rdi], rax
mov rax, qword [0x1400dad58]
mov qword [rdi + 8], rax
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x1400866d0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x30], 0
call fcn.1400868a0
mov dword [rsp + 0x20], 0
mov rsi, rax
call fcn.1400868a0
cmp qword [rdi + 0x18], 8
mov qword [rsp + 0x28], rax
jb 0x140086713
mov rcx, qword [rdi]
jmp 0x140086716
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140086728
mov byte [rbx + 0x10], 1
jmp 0x14008678a
call fcn.1400868a0
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
cmp eax, 0xb7
jne 0x140086786
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x58]
mov rdx, rdi
call fcn.140086420
cmp dword [rsp + 0x58], 3
jne 0x140086786
mov rax, qword [0x1400dad50]
mov byte [rbx + 0x10], 0
mov qword [rbx], rax
mov rax, qword [0x1400dad58]
mov qword [rbx + 8], rax
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov byte [rbx + 0x10], 0
mov rax, qword [rsp + 0x30]
mov qword [rbx], rax
mov qword [rbx + 8], rsi
mov rsi, qword [rsp + 0x60]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140001c20
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1412d10ca
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1412d10f3
pop rbp
sub rbp, 0x33
sub rbp, 0x12d10c0
sub rsp, 0x20
jmp 0x1412d1112
mov rax, 0x12d10c0
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x5209148d
xor byte [rax], dl
inc rax
dec rcx
jne 0x1412d1131
jmp 0x1412d1148
invalid
Function at 0x6d8ea2c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d90b5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8ea448
mov rax, qword [0x6d90b5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8ea30c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8ea395
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8ea2f0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8ea47d
mov rax, qword [0x6d90b5e8]
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 [0x6d90b5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8ea460
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8ea38e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8ea3f0
add dword [0x6d90b5e4], 1
cmp edi, 8
jae 0x6d8ea3c3
test dil, 4
jne 0x6d8ea434
test edi, edi
je 0x6d8ea3b8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8ea44f
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 0x6d8ea3b8
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 0x6d8ea3dc
jmp 0x6d8ea3b8
add rsi, qword [0x6d90b5e8]
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 0x6d8ea38e
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 0x6d8ea3b8
xor esi, esi
jmp 0x6d8ea317
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8ea3b8
mov rax, qword [0x6d90b5e8]
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 0x6d8eabd0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d90b8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d90b8a0]
test rbx, rbx
je 0x6d8eac24
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 0x6d8eac1b
test rsi, rsi
je 0x6d8eac1b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8eac00
lea rcx, [0x6d90b8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8eae60
Capabilities:
Parse pe header

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

Function at 0x6d8eae80
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 0x6d8eaec1
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 0x6d8eaeb8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8eaec3
add rax, 0x28
cmp rax, r9
jne 0x6d8eaea4
xor eax, eax
ret

Function at 0x6d8eaf60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d9081f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8eafcd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8eafcd
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 0x6d8eafcd
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 0x6d8eafc4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8eafcf
add rax, 0x28
cmp rax, r9
jne 0x6d8eafb0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8eb0d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d9081f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8eb0f0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8eb0e8
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 0x6d8eb14d
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 0x6d8eb144
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8eb154
add rax, 0x28
cmp rax, r9
jne 0x6d8eb130
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8eb170
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d9081f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8eb1de
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8eb1de
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8eb1de
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8eb1de
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 0x6d8eb1d5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8eb1e5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8eb1c0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8eb1f8
jmp 0x6d8eb1de
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8eb206
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8eb1de
test r9d, r9d
jg 0x6d8eb1f0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8eb570
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 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140043020]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140043030]
mov dword [rax], 1
mov rax, qword [0x140043040]
mov dword [rax], 1
mov rax, qword [0x140043010]
mov dword [rax], 1
mov rax, qword [0x140042f00]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140043000]
mov dword [0x14004900c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140042fe0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140042fc0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140042eb0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x1400074b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140007540
cmp r11, r10
ja 0x1400075b6
cmp r10, rdx
ja 0x1400075ca
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140007542
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140007520
jmp 0x1400075a4
ja 0x14000754a
mov r11, r10
cmp rax, r8
jne 0x1400074e4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140007580
mov rdi, r8
sub ecx, edx
jns 0x14000759b
jmp 0x1400075a6
cmp r8, rsi
je 0x1400075db
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x1400075a6
xor al, 1
cmp rdi, rsi
jne 0x140007560
jmp 0x1400075a6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call dbg.slice_end_index_len_fail
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call dbg.panic
ud2

Function at 0x14000de30
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae dbg.do_count_chars
cmp rax, rcx
je 0x14000de55
cmp rdx, 4
jae 0x14000de58
xor r8d, r8d
xor eax, eax
jmp 0x14000def0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14003c7e0]
movdqa xmm3, xmmword [0x14003c7f0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000de80
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000df07
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000def0
ret