joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e960
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x44ea0f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [sym.runtime.callers.func1]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call sym.runtime.systemstack.abi0
xorps xmm15, xmm15
mov r14, qword [0x00531858]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp sym.runtime.callers

Function at 0x457160
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x00531648], 0
je 0x45716e
jmp sym.aeshashbody
jmp sym.runtime.memhashFallback

Function at 0x457180
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x00531648], 0
je 0x457195
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp sym.aeshashbody
jmp sym.runtime.strhashFallback

Function at 0x4571a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x00531648], 0
je 0x4571d5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x00531b80]
aesenc xmm0, xmmword [0x00531b90]
aesenc xmm0, xmmword [0x00531ba0]
movq rax, xmm0
ret
jmp sym.runtime.memhash32Fallback

Function at 0x4571e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x00531648], 0
je 0x457216
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00531b80]
aesenc xmm0, xmmword [0x00531b90]
aesenc xmm0, xmmword [0x00531ba0]
movq rax, xmm0
ret
jmp sym.runtime.memhash64Fallback

Function at 0x458ac0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rdx, 2
jmp sym.sigtramp

Function at 0x458ec0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x458ef4
mov rcx, 0x28
jmp 0x458eff
shl rcx, 3
add rcx, 0x1480
mov qword [0x00531858], rcx
pop rbp
ret
Function at 0x45e040
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45e10a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x00531858]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x45e0ef
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x00466160]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x45e0de
mov edi, 1
lea rsi, [0x00466160]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0048b348]
lea rsi, [0x0048b098]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString
Function at 0x140001510
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rbx, rcx
mov ebp, r9d
mov ecx, 0xc8
mov rsi, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor edx, edx
mov r8d, 0xc8
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov r14, 0xffffffffffffffff
mov dword [rsp + 0x28], 0xc8
mov r9d, r14d
mov qword [rsp + 0x20], rdi
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMyAppApp
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001665
mov rcx, qword [rsp + 0x40]
lea r9d, [r14 + 3]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.SHLWAPI.dll_SHOpenRegStream2W]
mov rbx, rax
test rax, rax
je 0x140001665
mov r9, qword [rax]
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, rax
call qword [r9 + 0x60]
test eax, eax
jne 0x140001665
mov ecx, dword [rsp + 0x60]
mov eax, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.1400019b8
mov r10, qword [rbx]
lea r9, [rsp + 0xa0]
mov r8d, dword [rsp + 0x60]
mov rdx, rax
mov rcx, rbx
mov rdi, rax
call qword [r10 + 0x18]
test eax, eax
jne 0x140001665
xor eax, eax
mov r9d, r14d
mov qword [rsp + 0x38], rax
mov r8, rdi
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x28], ebp
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
call fcn.1400019b0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [r14 + 2]
jmp 0x140001667
xor eax, eax
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140001990
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400017e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x140001897
movsxd r13, dword [rax + 0x3c]
mov r12d, dword [r13 + rax + 0x88]
mov r15d, dword [r12 + rax + 0x1c]
mov r10d, dword [r12 + rax + 0x20]
add r15, rax
mov r11d, dword [r12 + rax + 0x24]
add r10, rax
add r11, rax
test esi, 0xffff0000
jne 0x14000184e
movzx eax, si
sub eax, dword [r12 + rbx + 0x10]
mov eax, dword [r15 + rax*4]
add rax, rbx
jmp 0x140001899
mov edi, dword [r12 + rax + 0x18]
xor r14d, r14d
mov r9d, r14d
test edi, edi
je 0x140001897
nop dword [rax]
mov eax, dword [r10]
mov r8, rsi
movzx ebp, word [r11]
add rax, rbx
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001883
inc rax
test ecx, ecx
jne 0x140001870
test edx, edx
je 0x1400018b6
inc r9d
add r11, 2
add r10, 4
cmp r9d, edi
jb 0x140001860
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, dword [r15 + rbp*4]
cmp r12, rcx
ja 0x14000196e
mov eax, dword [r13 + rbx + 0x8c]
add eax, r12d
cmp rcx, rax
jae 0x14000196e
lea rbp, [rcx + rbx]
mov rcx, rbp
lea rdx, [0x140003498]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rdi, rax
lea rsi, [rax + 1]
mov rax, 0xffffffffffffffff
sub rsi, rbp
mov rcx, rsi
add rcx, 4
lea edx, [rax + 2]
cmovb rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x140001897
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
movzx ecx, word [0x14000349c]
mov word [rbx + rsi], cx
movzx ecx, byte [0x14000349e]
mov byte [rbx + rsi + 2], cl
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14000195d
lea rdx, [rdi + 1]
mov rcx, rbx
call fcn.1400017e0
mov r14, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, r14
jmp 0x140001899
lea rax, [rcx + rbx]
jmp 0x140001899
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020630]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020630]
call fcn.1400123b8
lea rcx, [0x140021200]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test eax, 0xf9aa9a1f
cmp dword [rax], esp
push 0x5e7cc3d3
mov bh, 0x53
test dword [ecx], esi
movabs al, byte [0x669b5d1883c6a37f]
sbb byte [rbp - 0x65], bl
cmp ax, 0x6f71
or byte [rsi - 0x56], ch
sbb byte [rbp - 0x65], bl
cmp ax, 0x6f71
or byte [rsi - 0x56], ch
push 0x2e894c4e
mov dword [rsi], ebp
jl 0x14003f683
insb byte [rdi], dx
ret 0xa24d
pop rbx
leave
sahf
jmp case.0x140007272.4
rol dword [rax], 0x48
cmc
xor al, 0x80
xchg esp, eax
outsb dx, byte [rsi]
movsd dword [rdi], dword [rsi]
push rcx
cmp al, 0xe2
jmp 0x14003f716
movabs dword [0xd95c80429dbe77d2], eax
push rdi
mov dh, 0xd0
retf
stc
stosb byte [rdi], al
or ch, byte [rsi]
mov dl, 0xd2
fld xword [rbx]
mov bh, 0xab
xor dword [rcx], ebx
movabs dword [0x9c5b2b7b2beb312], eax
mov cl, 0x13
wait
and al, 0xe8
invalid
adc dh, byte [rbx - 0x4d484d42]
invalid
add esi, dword [rax]
xchg ecx, eax
lodsb al, byte [rsi]
scasd eax, dword [rdi]
test byte [rax], al
invalid
mov ah, 0xbf
int 0x5a
mov cs, word [r11 - 0x395d8172]
movabs dword [0x6f9e2608b59c1c59], eax
cmpsd dword [rsi], dword [rdi]
lodsb al, byte [rsi]
ret 0xbe0b
jb 0x14003f6d7
invalid

Function at 0x14000727c
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x140007342
lea rcx, [0x140021200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020630]
jmp 0x140007306
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007303
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140020630]
mov rdx, rsi
call fcn.1400123b8
jmp 0x140007306
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400072d3
mov rdx, qword [0x14001f110]
lea rcx, [0x140020630]
mov rdi, rdx
inc rdx
mov qword [0x14001f110], rdx
lea edx, [rbx + 0x20]
call fcn.140012400
lea rcx, [0x140021200]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x180001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x180004008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp ebx, 1
jne 0x1800011ec
mov qword [rsp + 0x58], rbp
lea rcx, str.common.dll
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
mov byte [rsp + 0x30], 5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
lea ecx, [rbx + 0x37]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x40
lea rdx, [rsi + 0x18c8b6]
mov rbx, rax
lea rax, [rsp + 0x34]
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 0x3f]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xor ebp, ebp
lea r8, [rsp + 0x30]
lea rdx, [rsi + 0x18c8b6]
mov qword [rsp + 0x20], rbp
mov rcx, rbx
lea r9d, [rbp + 1]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsp + 0x31], 9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
lea ecx, [rbp + 0x38]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
lea r9d, [rbp + 0x40]
lea rax, [rsp + 0x34]
mov rcx, rbx
lea r8d, [rbp + 1]
mov qword [rsp + 0x20], rax
lea rdx, [rsi + 0x18c8be]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea r9d, [rbp + 1]
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x31]
mov rcx, rbx
lea rdx, [rsi + 0x18c8be]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsp + 0x32], 0x11
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
lea ecx, [rbp + 0x38]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
lea r9d, [rbp + 0x40]
lea rax, [rsp + 0x34]
mov rcx, rbx
lea r8d, [rbp + 1]
mov qword [rsp + 0x20], rax
lea rdx, [rsi + 0x18c8c6]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea r9d, [rbp + 1]
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x32]
mov rcx, rbx
lea rdx, [rsi + 0x18c8c6]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsp + 0x33], 0x21
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
lea ecx, [rbp + 0x38]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
lea rax, [rsp + 0x34]
lea r9d, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r8d, [rbp + 1]
mov rcx, rbx
lea rdx, [rsi + 0x18c8ce]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea r9d, [rbp + 1]
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x33]
mov rcx, rbx
lea rdx, [rsi + 0x18c8ce]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180001220
add rsp, 0x40
pop rbx
ret
Function at 0x140004830
Capabilities:
Allocate or change rwx memory
Enumerate threads
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x540
mov rax, qword [0x140054140]
xor rax, rsp
mov qword [rsp + 0x530], rax
mov rbx, rdx
mov esi, ecx
mov r8d, ecx
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [rbx + 8]
mov r9d, 0x3000
mov edi, ecx
mov dword [rsp + 0x20], 0x40
mov r8d, ecx
xor edx, edx
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8, qword [rbx]
mov r9d, edi
mov r14, rax
mov rcx, rbp
lea rax, [rsp + 0x30]
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor edx, edx
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], 0x1c
mov rcx, rax
mov rdi, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x140004963
nop dword [rax]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x140004963
cmp dword [rsp + 0x44], esi
jne 0x1400048e0
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rcx, rax
mov dword [rsp + 0x90], 0x10000b
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
cmp eax, 0xffffffff
jne 0x140004930
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400048e0
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x158], r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14001c660
lea r11, [rsp + 0x540]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14001b170
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14001b19e
xor eax, eax
jmp 0x14001b284
cmp qword [rcx + 0x68], 0
je 0x14001b1af
call fcn.14001b2a0
jmp 0x14001b284
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001b1c6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001b1c8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001b1fa
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140038b10
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14001b27e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14001b231
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14001b25a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140026c18
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14001b27e
cmp rsi, rbx
ja 0x14001b238
test rsi, rsi
je 0x14001b27e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140026c18
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14001cda4
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400233ab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400233ab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400233ab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400233ab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400233ab
cmp dword [rcx + 0x84], 0xe
jbe 0x1400233ab
cmp dword [rcx + 0xf8], 0
je 0x1400233ab
mov ecx, ebx
call fcn.14002345c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140023238
nop
cmp dword [rbp + 0x20], 0
je 0x1400233f9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140023404
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002333c
Function at 0x14002f2d8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14001cbd0
sub rsp, rax
mov rax, qword [0x140054140]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002deb8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002f327
mov rax, rbp
jmp 0x14002f42f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x58540]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400303f8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x58540]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002f42b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002f42b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400303f8
test rax, rax
js 0x14002f42b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002f42b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002f41d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002f41d
cmp byte [rcx], 0xd
jne 0x14002f403
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002f412
cmp byte [rcx + 1], 0xa
jne 0x14002f412
inc rcx
jmp 0x14002f412
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x54580]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002f3e5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002f42f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001c660
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14002f650
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002f666
mov al, 1
jmp 0x14002f6c6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002f677
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002f6c4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140033804
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002f6c4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002f6c4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002f6c4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002f6c6
xor al, al
add rsp, 0x20
pop rbx
ret