joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014f620
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov esi, r8d
mov qword [rbp - 0x40], rcx
mov rdi, rcx
test rdx, rdx
je 0x14014f660
add rdx, 0xc
mov rbx, rdx
jmp 0x14014f662
xor ebx, ebx
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x50], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.DLL_SetLastError
mov rcx, rdi
mov qword [rbp - 0x5c], rcx
mov rdx, rbx
mov qword [rbp - 0x64], rdx
mov r8d, esi
mov dword [rbp - 0x54], r8d
mov r9, r14
mov qword [rbp - 0x6c], r9
lea rcx, [rbp - 0x98]
call fcn.140004f80
mov rcx, qword [rbp - 0x5c]
mov rdx, qword [rbp - 0x64]
mov r8d, dword [rbp - 0x54]
mov r9, qword [rbp - 0x6c]
call sub.KERNEL32.DLL_GetTempFileNameW
mov esi, eax
lea rcx, [rbp - 0x98]
call fcn.140004fd0
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
call fcn.14000315d
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14014f870
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.14012a510
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.DLL_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, rbx
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140004f80
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.DLL_ReadFile
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.140004fd0
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
cmp byte [rbp - 0x40], 0
je 0x14014f920
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.14012a5a0
call fcn.14000315d
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14014f970
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rdi, rdx
mov ebx, r8d
mov rsi, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.14012a510
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
mov qword [rbp - 0x48], rsi
xor ecx, ecx
call sub.KERNEL32.DLL_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x54], rcx
mov rdx, rdi
mov qword [rbp - 0x5c], rdx
mov r8d, ebx
mov dword [rbp - 0x4c], r8d
mov r9, rsi
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.140004f80
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x64]
call sub.KERNEL32.DLL_ReadFile
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.140004fd0
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x14014fa33
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.14012a5a0
call fcn.14000315d
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14014fd60
Capabilities:
Create thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov rsi, rcx
mov rdi, rdx
mov rbx, r8
mov r14, r9
mov r15, qword [rbp + 0x38]
xor ecx, ecx
mov dword [rbp - 0x3c], ecx
mov qword [rbp - 0x48], rcx
lea rcx, [0x1402d0268]
call fcn.140004350
xor ecx, ecx
mov qword [rax + 8], rcx
mov dword [rax + 0x10], 4
mov byte [rax + 0x14], 1
mov byte [rax + 0x15], 1
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], r15
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9, r14
mov esi, dword [rbp + 0x30]
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x70], r8
mov qword [rbp - 0x78], r9
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x28], r15
lea rcx, [rbp - 0xa0]
call fcn.140004f80
mov rcx, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x70]
mov r9, qword [rbp - 0x78]
call sub.KERNEL32.DLL_CreateThread
mov rsi, rax
lea rcx, [rbp - 0xa0]
call fcn.140004fd0
mov qword [rbp - 0x48], rsi
xor eax, eax
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x3c], 1
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x58]
mov qword [rdx + 8], rax
mov rax, rdx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14014feb0
Capabilities:
Resume thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x90]
mov qword [rbp + 0x10], rcx
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.14012a510
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx + 8]
mov rcx, rax
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x70]
call fcn.140004f80
mov rcx, qword [rbp - 0x48]
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
lea rcx, [rbp - 0x70]
call fcn.140004fd0
nop
cmp byte [rbp - 0x40], 0
je 0x14014ff1a
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.14012a5a0
mov eax, esi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140150360
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rcx
mov rdi, rdx
mov ebx, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.DLL_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov qword [rbp - 0x4c], rcx
mov rdx, rdi
mov qword [rbp - 0x54], rdx
mov r8d, ebx
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140004f80
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.DLL_WriteFile
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.140004fd0
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.14000315d
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140150420
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.14012a510
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.DLL_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, rbx
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140004f80
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.DLL_WriteFile
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.140004fd0
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
cmp byte [rbp - 0x40], 0
je 0x1401504d0
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.14012a5a0
call fcn.14000315d
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140150520
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rdi, rdx
mov ebx, r8d
mov rsi, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.14012a510
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
mov qword [rbp - 0x48], rsi
xor ecx, ecx
call sub.KERNEL32.DLL_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x54], rcx
mov rdx, rdi
mov qword [rbp - 0x5c], rdx
mov r8d, ebx
mov dword [rbp - 0x4c], r8d
mov r9, rsi
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.140004f80
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x64]
call sub.KERNEL32.DLL_WriteFile
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.140004fd0
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x1401505e3
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.14012a5a0
call fcn.14000315d
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14018e070
Capabilities:
Create process on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x1a8
lea rbp, [rsp + 0x1e0]
xor eax, eax
mov qword [rbp - 0x148], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x140], xmm4
movabs rax, 0xffffffffffffff10
movaps xmmword [rbp + rax - 0x40], xmm4
movaps xmmword [rbp + rax - 0x30], xmm4
movaps xmmword [rbp + rax - 0x20], xmm4
add rax, 0x30
jne 0x14018e0a8
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x48]
mov rbx, qword [rbp + 0x58]
test rcx, rcx
jne 0x14018e0d3
xor r14d, r14d
jmp 0x14018e0df
add rcx, 0xc
mov qword [rbp - 0x40], rcx
mov r14, qword [rbp - 0x40]
test rdx, rdx
jne 0x14018e0e9
xor r15d, r15d
jmp 0x14018e0f5
add rdx, 0xc
mov qword [rbp - 0x48], rdx
mov r15, qword [rbp - 0x48]
mov qword [rbp - 0x50], r8
mov r12, r8
mov qword [rbp - 0x58], r9
mov r13, r9
xor esi, esi
cmp byte [rbp + 0x30], 0
setne sil
mov dword [rbp - 0x5c], esi
test rax, rax
jne 0x14018e120
xor edi, edi
mov qword [rbp - 0x140], rdi
jmp 0x14018e133
add rax, 0xc
mov qword [rbp - 0x68], rax
mov rdi, qword [rbp - 0x68]
mov qword [rbp - 0x140], rdi
lea rdi, [rbp - 0xc8]
mov rsi, qword [rbp + 0x50]
mov ecx, 0xc
rep movsq qword [rdi], qword [rsi]
xor ecx, ecx
xorps xmm0, xmm0
movups xmmword [rbp - 0x130], xmm0
movups xmmword [rbp - 0x120], xmm0
movups xmmword [rbp - 0x110], xmm0
movups xmmword [rbp - 0x100], xmm0
movups xmmword [rbp - 0xf0], xmm0
movups xmmword [rbp - 0xe0], xmm0
mov qword [rbp - 0xd0], rcx
lea rcx, [rbp - 0xc8]
lea rdx, [rbp - 0x130]
call fcn.1401c9db0
mov qword [rbp - 0x138], rbx
xor ecx, ecx
call sub.KERNEL32.DLL_SetLastError
mov esi, dword [rbp - 0x5c]
mov dword [rsp + 0x20], esi
mov esi, dword [rbp + 0x38]
mov dword [rsp + 0x28], esi
mov rsi, qword [rbp + 0x40]
mov qword [rsp + 0x30], rsi
mov rdi, qword [rbp - 0x140]
mov qword [rsp + 0x38], rdi
lea rcx, [rbp - 0x130]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rbx
mov rcx, r14
mov qword [rbp - 0x150], rcx
mov rdx, r15
mov qword [rbp - 0x158], rdx
mov r8, r12
mov qword [rbp - 0x160], r8
mov r9, r13
mov qword [rbp - 0x168], r9
lea rcx, [rbp - 0x190]
call fcn.140004f80
mov rcx, qword [rbp - 0x150]
mov rdx, qword [rbp - 0x158]
mov r8, qword [rbp - 0x160]
mov r9, qword [rbp - 0x168]
call sub.KERNEL32.DLL_CreateProcessW
mov esi, eax
lea rcx, [rbp - 0x190]
call fcn.140004fd0
call fcn.14000315d
mov rdi, rax
mov qword [rbp - 0x148], rdi
call sub.KERNEL32.DLL_GetLastError
mov rcx, qword [rbp - 0x148]
mov dword [rcx + 8], eax
test esi, esi
setne sil
movzx esi, sil
lea rcx, [rbp - 0x130]
call fcn.1401c9cf0
movzx eax, sil
add rsp, 0x1a8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14018ebe0
Capabilities:
Terminate process

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov rsi, rcx
mov edi, edx
xor ecx, ecx
call sub.KERNEL32.DLL_SetLastError
mov rcx, rsi
mov qword [rbp - 0x50], rcx
mov edx, edi
mov dword [rbp - 0x3c], edx
lea rcx, [rbp - 0x78]
call fcn.140004f80
mov rcx, qword [rbp - 0x50]
mov edx, dword [rbp - 0x3c]
call sub.KERNEL32.DLL_TerminateProcess
mov esi, eax
lea rcx, [rbp - 0x78]
call fcn.140004fd0
call fcn.14000315d
mov rdi, rax
mov qword [rbp - 0x48], rdi
call sub.KERNEL32.DLL_GetLastError
mov rdx, qword [rbp - 0x48]
mov dword [rdx + 8], eax
xor eax, eax
test esi, esi
setne al
movzx eax, al
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14018f160
Capabilities:
Resume thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x90]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rcx
xor ecx, ecx
call sub.KERNEL32.DLL_SetLastError
mov rcx, rsi
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x70]
call fcn.140004f80
mov rcx, qword [rbp - 0x48]
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
lea rcx, [rbp - 0x70]
call fcn.140004fd0
call fcn.14000315d
mov rdi, rax
mov qword [rbp - 0x40], rdi
call sub.KERNEL32.DLL_GetLastError
mov rdx, qword [rbp - 0x40]
mov dword [rdx + 8], eax
mov eax, esi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140191ae0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rcx
mov rdi, rdx
mov ebx, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.DLL_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov qword [rbp - 0x4c], rcx
mov rdx, rdi
mov qword [rbp - 0x54], rdx
mov r8d, ebx
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140004f80
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.DLL_WriteFile
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.140004fd0
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.14000315d
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140003d90
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003dc4
cmp word [rcx], 0x5a4d
jne 0x140003dc4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003dc4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003dc4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003cd0
test eax, eax
jne 0x140003de0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003d40
test rax, rax
je 0x140003dd5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004589
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004490
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004430
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400048e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140561718]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140561714]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004932
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000492a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004a19
inc ebx
add rax, 0x28
jmp 0x14000490a
mov rcx, r12
call fcn.140005111
mov rbp, rax
test rax, rax
jne 0x140004951
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004880
movsxd rbx, ebx
mov rax, qword [0x140561718]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.1400051bf
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140561718]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400049b3
mov rax, qword [0x140561718]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004880
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004a13
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004a13
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140561718]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004a13
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004880
inc dword [0x140561714]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004e40
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140561780]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140561760]
test rbx, rbx
je 0x140004e8c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004e86
test eax, eax
jne 0x140004e86
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004e5e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140005040
Capabilities:
Parse pe header

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

Function at 0x140005064
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000509e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140005095
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400050a0
inc r8d
add rax, 0x28
jmp 0x14000507c
xor eax, eax
ret

Function at 0x140005111
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14055d810]
mov r8, rcx
mov rcx, r9
call fcn.140005040
test eax, eax
je 0x14000513d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140005064
xor eax, eax
add rsp, 0x28
ret
Function at 0x18000ddc8
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000ddf8
xor eax, eax
jmp 0x18000debb
mov rbp, rbx
cmp word [rax], si
je 0x18000de1d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000de04
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000de00
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000dce8
movsxd r14, eax
test eax, eax
jne 0x18000de5b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000ddf1
mov rcx, r14
call fcn.18000ecc4
mov rdi, rax
test rax, rax
jne 0x18000de74
xor ecx, ecx
call fcn.18000c5fc
jmp 0x18000de50
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000dce8
test eax, eax
jne 0x18000dea5
mov rcx, rdi
call fcn.18000c5fc
jmp 0x18000deaf
xor ecx, ecx
call fcn.18000c5fc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1800149a8
Capabilities:
Get file size

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

Function at 0x180016e04
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x180016e7c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x180016e7c
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x180016e7c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x180016e70
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x180016e8e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x180016e5e
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x180016e7e

Function at 0x180017340
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180017368
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180017368
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret