joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001cc90
Capabilities:
Accept command line arguments
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x898]
sub rsp, 0x980
mov rax, qword [0x1400c50b0]
xor rax, rsp
mov qword [rbp + 0x870], rax
call fcn.1400169a4
lea rcx, [rsp + 0x68]
mov rbx, rax
call fcn.140024a70
xor r12d, r12d
cmp qword [rbx], r12
jne 0x14001cd13
lea rcx, [rbx + 0x30]
mov dword [rbx + 0xc], 2
mov rdx, rax
mov qword [rbx + 0x28], r12
call fcn.140016f20
lea rax, [0x14001c4b8]
lea rcx, [0x140016a04]
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov qword [rbx], rax
lea rcx, [rsp + 0x68]
call fcn.140006690
call fcn.14001c5dc
movdqa xmm0, xmmword [0x1400b40c0]
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], r12d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, 1
mov r15, rax
mov ebx, esi
cmp dword [rsp + 0x40], esi
jle 0x14001cdad
lea edi, [rsi + 1]
lea r14, [rax + 8]
mov rcx, qword [r14]
lea rdx, str.__load
call fcn.14007958c
test eax, eax
jne 0x14001cd82
cmp edi, dword [rsp + 0x40]
jl 0x14001ce59
mov rcx, qword [r14]
lea rdx, str.__run
call fcn.14007958c
test eax, eax
jne 0x14001cd9f
cmp edi, dword [rsp + 0x40]
jl 0x14001ce70
add ebx, esi
add edi, esi
add r14, 8
cmp ebx, dword [rsp + 0x40]
jl 0x14001cd65
mov esi, r12d
lea r8, [rsp + 0x48]
mov edx, esi
lea rcx, [rbp - 0x60]
call fcn.14001d354
xorps xmm0, xmm0
lea rcx, [rsp + 0x68]
movups xmmword [rsp + 0x68], xmm0
lea r14, [0x1400a925c]
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 0x60]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsp + 0x68], r12w
lea rbx, [0x1400a927c]
cmovne rbx, r14
call fcn.140013250
movzx r9d, byte [rdi + 0x123]
mov r8d, dword [rdi + 0x11c]
mov edx, dword [rdi + 0x118]
mov ecx, dword [rax + 8]
movzx eax, word [rdi + 0x120]
mov dword [rsp + 0x30], ecx
lea rcx, str.Started_on_Windows__d._d._d._d__s._Driver_status:_0x_X
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
call fcn.140017710
lea rcx, [rbp - 0x60]
cmp esi, 2
je 0x14001ce8c
xor edx, edx
mov r8d, 0x8d
call fcn.140012604
mov rbx, rax
jmp 0x14001cea1
movsxd rdx, ebx
lea rcx, [rsp + 0x48]
mov rdx, qword [r15 + rdx*8 + 8]
call fcn.1400066f4
jmp 0x14001cdb0
movsxd rdx, ebx
lea rcx, [rsp + 0x48]
mov rdx, qword [r15 + rdx*8 + 8]
call fcn.1400066f4
mov esi, 2
jmp 0x14001cdb0
lea rdx, [rbp + 0x30]
call fcn.14001fddc
lea rcx, [rbp - 0x60]
call fcn.140020510
mov ebx, r12d
lea rcx, [rbp - 0x60]
call fcn.14001d828
lea rcx, [rsp + 0x48]
call fcn.140006690
mov eax, ebx
mov rcx, qword [rbp + 0x870]
xor rcx, rsp
call fcn.140068fb0
lea r11, [rsp + 0x980]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001e48c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rdi, rcx
lea rbx, [rcx + 0x578]
mov qword [rsp + 0x60], rbx
mov rcx, rbx
call fcn.14006860c
test eax, eax
jne 0x14001e54c
lea ecx, [rax + 0x10]
call fcn.140068fd8
mov qword [rax], rdi
lea rcx, [fcn.140020510]
mov qword [rax + 8], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140016838]
xor edx, edx
xor ecx, ecx
call fcn.14007944c
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14001e53c
cmp dword [rsp + 0x48], 0
je 0x14001e554
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call fcn.140068300
test eax, eax
jne 0x14001e534
mov rcx, rbx
call fcn.140068614
mov eax, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov ecx, eax
call fcn.140068180
nop
and dword [rsp + 0x48], 0
mov ecx, 6
call fcn.1400681bc
nop
mov ecx, eax
call fcn.140068180
nop
mov ecx, 1
call fcn.1400681bc
int3
Function at 0x140024a70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x1400c50b0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, rcx
mov qword [rsp + 0x60], rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.14006ba60
mov dword [rsp + 0x60], 0x104
call fcn.140023eb0
mov r14, rax
mov ecx, 0x20
call fcn.140068fd8
mov rbx, rax
mov qword [rsp + 0x50], 0x1a
mov qword [rsp + 0x58], 0x1f
movups xmm0, xmmword [str.QueryFullProcessImageNameW]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1400b2bb0]
movsd qword [rax + 0x10], xmm1
movzx eax, word [0x1400b2bb8]
mov word [rbx + 0x18], ax
mov byte [rbx + 0x1a], 0
mov qword [rsp + 0x40], rbx
call fcn.140045b80
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movabs r9, 0xcbf29ce484222325
xor r15d, r15d
mov ecx, r15d
movabs rdx, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + rbx]
xor r9, rax
imul r9, rdx
inc rcx
cmp rcx, 0x1a
jb 0x140024b40
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.1400252e0
mov rdi, qword [rax + 8]
test rdi, rdi
je 0x140024b85
cmp rdi, qword [r14 + 8]
je 0x140024b85
mov rdi, qword [rdi + 0x30]
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140024b92
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, r15
mov edx, 0x20
mov rcx, rbx
call fcn.140068fd0
test rdi, rdi
je 0x140024bbd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
xor edx, edx
call rdi
jmp 0x140024bcf
mov r8d, dword [rsp + 0x60]
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r15w
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.1400066f4
nop
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140024770
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140024c44
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024c3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024c74
call fcn.140068fd0
mov rax, rsi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140068fb0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.140077970
int3

Function at 0x1400250b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x1400250be
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret
Function at 0x140030ba0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x1400c50b0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x38], rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x20], xmm1
xor ebp, ebp
mov qword [rsp + 0x30], rbp
xor edx, edx
lea ecx, [rbp + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
setg r15b
test rax, rax
jg 0x140030c0b
mov qword [r14], rbp
mov qword [r14 + 8], rbp
jmp 0x140030cb2
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x44]
call fcn.14006ba60
mov dword [rsp + 0x40], 0x238
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rdi, qword [rsp + 0x28]
test eax, eax
je 0x140030ca6
nop dword [rax]
cmp qword [rsi + 0x10], 0
je 0x140030c62
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140030c54
mov rdx, qword [rsi]
lea rcx, [rsp + 0x6c]
call fcn.14007958c
test eax, eax
jne 0x140030c94
cmp rdi, rbp
je 0x140030c78
mov eax, dword [rsp + 0x48]
mov dword [rdi], eax
add rdi, 4
mov qword [rsp + 0x28], rdi
jmp 0x140030c94
lea r8, [rsp + 0x48]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140031230
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140030c40
mov rax, qword [rsp + 0x20]
mov qword [r14], rax
mov qword [r14 + 8], rdi
mov qword [r14 + 0x10], rbp
test r15b, r15b
je 0x140030cc5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, r14
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140068fb0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140033690
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r15d, edx
mov rbp, rcx
mov rax, qword [rcx + 0x10]
mov rcx, qword [rax + 0x10]
movzx r12d, byte [rcx + 0x15]
xor eax, eax
test r12b, r12b
sete al
mov dword [rsp + 0x20], eax
lea rbx, [rbp + 0x58]
mov qword [rsp + 0x28], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r9, qword [rbp + 0x20]
mov rdx, qword [r9]
cmp rdx, r9
je 0x1400337b0
movabs rcx, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
mov rsi, qword [rdx]
mov rax, qword [rdx + 0x38]
cmp byte [rax + 0x58], 0
jne 0x14003379c
mov r11, qword [rdx + 0x20]
lea r10, [rdx + 0x10]
cmp qword [rdx + 0x28], 8
jb 0x140033726
mov r10, qword [rdx + 0x10]
mov r8, rcx
xor eax, eax
add r11, r11
je 0x140033748
movzx ecx, byte [rax + r10]
xor r8, rcx
imul r8, rbx
inc rax
cmp rax, r11
jb 0x140033730
mov r9, qword [rbp + 0x20]
movsxd rcx, dword [rdx + 0x30]
xor rcx, r8
and rcx, qword [rbp + 0x48]
add rcx, rcx
mov rax, qword [rbp + 0x30]
mov r8, qword [rax + rcx*8]
cmp qword [rax + rcx*8 + 8], rdx
jne 0x140033780
cmp r8, rdx
jne 0x140033775
mov qword [rax + rcx*8], r9
mov qword [rax + rcx*8 + 8], r9
jmp 0x140033789
mov r9, qword [rdx + 8]
mov qword [rax + rcx*8 + 8], r9
jmp 0x140033789
cmp r8, rdx
jne 0x140033789
mov qword [rax + rcx*8], rsi
lea rcx, [rbp + 0x20]
call fcn.140038df0
movabs rcx, 0xcbf29ce484222325
mov r9, qword [rbp + 0x20]
mov rdx, rsi
cmp rsi, r9
jne 0x140033702
lea rbx, [rbp + 0x58]
mov r8d, dword [rsp + 0x20]
mov edx, r15d
mov rcx, rbp
call fcn.140036cb0
test r15d, r15d
jne 0x1400337d9
test r12b, r12b
je 0x1400337d9
xor edx, edx
lea r8d, [r15 + 1]
mov rcx, rbp
call fcn.140036cb0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rax, [rbp + 0x18]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140036240
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x1a0
mov rax, qword [0x1400c50b0]
xor rax, rsp
mov qword [rsp + 0x190], rax
xorps xmm0, xmm0
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x108
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call fcn.14006ba60
mov rax, qword [rdi + 8]
mov qword [rsp + 0x30], 0
test rbx, rbx
je 0x14003632f
mov rax, qword [rax + 0x70]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
lea r8, [rsp + 0x40]
mov r9d, 0x40
mov rdx, rbx
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jne 0x14003632f
mov eax, 0x5a4d
cmp word [rsp + 0x40], ax
jne 0x14003632f
movsxd rdx, dword [rsp + 0x7c]
mov rax, qword [rdi + 8]
mov qword [rsp + 0x30], 0
add rdx, rbx
je 0x14003632f
mov rax, qword [rax + 0x70]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
mov r9d, 0x108
lea r8, [rsp + 0x80]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jne 0x14003632f
cmp dword [rsp + 0x80], 0x4550
jne 0x14003632f
mov al, 1
jmp 0x140036331
xor al, al
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140068fb0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x1a0
pop rdi
ret
Function at 0x140036a50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rsi
push r15
sub rsp, 0xb0
mov rax, qword [0x1400c50b0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rsi, rcx
movsxd r15, r8d
lea rcx, [rsp + 0x48]
call fcn.140024440
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140024ef0
xor ebx, ebx
mov dword [rsp + 0x88], r15d
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov rdx, qword [rsp + 0x40]
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm1
cmp rdx, 8
jb 0x140036af7
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036af2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036caa
call fcn.140068fd0
mov qword [rsp + 0xe0], rbp
lea rcx, [rsp + 0x68]
mov rbp, qword [rsp + 0x80]
movabs rdx, 0xcbf29ce484222325
mov qword [rsp + 0xe8], rdi
cmp rbp, 8
mov rdi, qword [rsp + 0x68]
mov qword [rsp + 0xa8], r12
cmovae rcx, rdi
mov qword [rsp + 0xa0], r14
mov r14, qword [rsp + 0x78]
lea r8, [r14 + r14]
test r8, r8
je 0x140036b73
movabs r9, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
inc rbx
xor rdx, rax
imul rdx, r9
cmp rbx, r8
jb 0x140036b60
mov rax, qword [rsi + 0x30]
mov rcx, r15
xor rcx, rdx
and rcx, qword [rsi + 0x48]
add rcx, rcx
mov r11, qword [rax + rcx*8 + 8]
cmp r11, qword [rsi + 0x20]
je 0x140036c31
mov rbx, qword [rax + rcx*8]
nop word [rax + rax]
cmp qword [r11 + 0x28], 8
lea rax, [r11 + 0x10]
jb 0x140036baf
mov rax, qword [r11 + 0x10]
cmp rbp, 8
lea r9, [rsp + 0x68]
cmovae r9, rdi
cmp r14, qword [r11 + 0x20]
jne 0x140036c06
mov rcx, r14
test r14, r14
je 0x140036c00
movzx edx, word [r9]
movzx r8d, word [rax]
cmp dx, r8w
jb 0x140036c06
sub r9, rax
cmp dx, r8w
ja 0x140036c06
cmp rcx, 1
je 0x140036c00
movzx edx, word [rax + r9 + 2]
add rax, 2
dec rcx
movzx r8d, word [rax]
cmp dx, r8w
jae 0x140036bdf
jmp 0x140036c06
cmp r15d, dword [r11 + 0x30]
je 0x140036c11
cmp r11, rbx
je 0x140036c31
mov r11, qword [r11 + 8]
jmp 0x140036ba0
test r11, r11
je 0x140036c31
lea rdx, [rsp + 0x68]
lea rcx, [rsi + 0x18]
call fcn.140038c60
mov rbp, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x68]
mov r14, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
cmp rbp, 8
jb 0x140036c78
lea rdx, [rbp*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140036c70
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036ca4
mov rcx, rdi
call fcn.140068fd0
mov rbp, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140068fb0
add rsp, 0xb0
pop r15
pop rsi
pop rbx
ret
call fcn.140077970
int3
call fcn.140077970
int3
Function at 0x140038c60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, qword [rdx + 0x18]
mov rbx, rdx
mov rdi, qword [rdx + 0x10]
mov r9, rdx
cmp r12, 8
jb 0x140038c93
mov r9, qword [rdx]
lea r10, [rdi + rdi]
xor edx, edx
movabs r8, 0xcbf29ce484222325
test r10, r10
je 0x140038cd4
movabs r11, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + r9]
inc rdx
xor r8, rax
imul r8, r11
cmp rdx, r10
jb 0x140038cc0
mov rsi, qword [rcx + 0x18]
lea r13, [rcx + 8]
movsxd rbp, dword [rbx + 0x20]
mov r15, qword [r13]
mov r14, rbp
xor r14, r8
mov qword [rsp + 0x50], rsi
and r14, qword [rcx + 0x30]
mov rax, r14
add rax, rax
mov r9, qword [rsi + rax*8 + 8]
cmp r9, r15
je 0x140038dcc
mov rsi, qword [rsi + rax*8]
nop dword [rax + rax]
cmp qword [r9 + 0x28], 8
lea rax, [r9 + 0x10]
jb 0x140038d1f
mov rax, qword [r9 + 0x10]
mov r10, rbx
cmp r12, 8
jb 0x140038d2b
mov r10, qword [rbx]
cmp rdi, qword [r9 + 0x20]
jne 0x140038d70
mov r8, rdi
test rdi, rdi
je 0x140038d6a
movzx ecx, word [r10]
movzx edx, word [rax]
cmp cx, dx
jb 0x140038d70
sub r10, rax
cmp cx, dx
ja 0x140038d70
cmp r8, 1
je 0x140038d6a
movzx ecx, word [r10 + rax + 2]
add rax, 2
dec r8
movzx edx, word [rax]
cmp cx, dx
jae 0x140038d4b
jmp 0x140038d70
cmp ebp, dword [r9 + 0x30]
je 0x140038d7b
cmp r9, rsi
je 0x140038dcc
mov r9, qword [r9 + 8]
jmp 0x140038d10
test r9, r9
je 0x140038dcc
mov rcx, qword [rsp + 0x50]
add r14, r14
mov rax, qword [rcx + r14*8]
cmp qword [rcx + r14*8 + 8], r9
jne 0x140038dae
cmp rax, r9
jne 0x140038da3
mov qword [rcx + r14*8], r15
mov qword [rcx + r14*8 + 8], r15
jmp 0x140038dba
mov r15, qword [r9 + 8]
mov qword [rcx + r14*8 + 8], r15
jmp 0x140038dba
cmp rax, r9
jne 0x140038dba
mov rax, qword [r9]
mov qword [rcx + r14*8], rax
mov rdx, r9
mov rcx, r13
call fcn.140038df0
mov eax, 1
jmp 0x140038dce
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14003bca0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
lea rsi, [rcx + 0x10]
mov rdi, rcx
mov rcx, qword [rsi]
xor r15d, r15d
movzx ebp, r8b
mov rbx, rdx
test rcx, rcx
je 0x14003bcdc
jle 0x14003bcd9
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14003bcf1
jle 0x14003bced
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], r15
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003bd04
jle 0x14003bd01
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], r15
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x14003bd19
jle 0x14003bd15
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rdi + 0x48], r15
lea r14, [rdi + 0xf8]
mov qword [rdi + 0x20], r15
mov rcx, r14
mov qword [rdi + 0x28], r15
mov rdx, rbx
call fcn.140016f20
mov byte [rdi + 0x1c], r15b
cmp qword [rbx + 0x18], 8
jb 0x14003bd41
mov rbx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov edx, 0x120089
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rdi]
mov rbx, rax
cmp rax, rcx
je 0x14003bd84
test rcx, rcx
jle 0x14003bd7e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], rbx
mov rcx, rbx
test rcx, rcx
jle 0x14003be8b
mov qword [rsp + 0x28], r15
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r15d
mov r8d, 0x1000002
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x14003bdc6
test rcx, rcx
jle 0x14003bdbf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
xor r9d, r9d
test rcx, rcx
jle 0x14003bdd4
mov byte [rdi + 0x18], r15b
jmp 0x14003be17
mov rcx, qword [rdi]
xor edx, edx
mov qword [rsp + 0x28], r15
mov byte [rdi + 0x18], 1
mov dword [rsp + 0x20], r15d
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x14003be0f
test rcx, rcx
jle 0x14003be08
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
test rcx, rcx
jle 0x14003be5c
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
lea edx, [r8 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
lea rax, [rsp + 0x60]
cmp rax, rsi
je 0x14003be4e
mov rcx, qword [rsi]
cmp rbx, rcx
je 0x14003be5c
test rcx, rcx
jle 0x14003be49
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi], rbx
jmp 0x14003be5c
test rbx, rbx
jle 0x14003be5c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [rsi], r15
je 0x14003be8b
xor edx, edx
mov rcx, rdi
call fcn.14003bfb0
test eax, eax
js 0x14003be9a
test bpl, bpl
jne 0x14003be9a
cmp qword [r14 + 0x18], 8
jb 0x14003be7e
mov r14, qword [r14]
mov rdx, r14
mov rcx, rdi
call fcn.14003d1c0
jmp 0x14003be9a
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14003bec0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor esi, esi
mov rcx, qword [rcx + 0x10]
movzx edi, dl
test rcx, rcx
je 0x14003beec
jle 0x14003bee8
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003bf01
jle 0x14003befd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003bf14
jle 0x14003bf11
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x14003bf29
jle 0x14003bf25
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
test dil, dil
jne 0x14003bf97
cmp qword [rbx + 0x110], 8
lea rcx, [rbx + 0xf8]
jb 0x14003bf4e
mov rcx, qword [rbx + 0xf8]
mov qword [rbx + 0x108], rsi
mov word [rcx], si
cmp byte [rbx + 0x1c], sil
je 0x14003bf75
lea rcx, [rbx + 0x118]
cmp qword [rcx + 0x18], 8
jb 0x14003bf6f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rbx + 0x130], 8
lea rax, [rbx + 0x118]
jb 0x14003bf8d
mov rax, qword [rbx + 0x118]
mov qword [rbx + 0x128], rsi
mov word [rax], si
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14003bfb0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x14003bfdd
mov rcx, qword [rcx + 0x10]
cmp rdx, rcx
je 0x14003bfdd
test rcx, rcx
jle 0x14003bfd9
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x14003bff6
mov eax, 0xc0000141
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003c16e
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
mov qword [rbx + 0x20], rdx
mov qword [rbx + 0x28], rdx
cmp dword [rdx], 0x4550
jne 0x14003c16e
mov eax, 0x20b
mov qword [rsp + 0x50], rsi
cmp word [rdx + 0x18], ax
jne 0x14003c043
mov byte [rbx + 0x19], 1
lea rdi, [rdx + 0x108]
mov rax, qword [rdx + 0x30]
mov r8b, 1
jmp 0x14003c054
mov byte [rbx + 0x19], 0
lea rdi, [rdx + 0xf8]
mov eax, dword [rdx + 0x34]
xor r8b, r8b
mov qword [rbx + 0x30], rax
mov eax, dword [rdx + 0x50]
mov dword [rbx + 0x38], eax
mov eax, dword [rdx + 0x54]
mov dword [rbx + 0x40], eax
mov eax, dword [rdx + 0x28]
mov dword [rbx + 0x3c], eax
mov rax, rdx
movzx r9d, word [rdx + 0x5c]
mov dword [rbx + 0x54], r9d
movzx eax, word [rdx + 0x5e]
mov dword [rbx + 0x5c], eax
movzx eax, word [rdx + 0x16]
shr ax, 0xd
not al
and al, 1
mov byte [rbx + 0x1a], al
test r8b, r8b
je 0x14003c09a
add rdx, 0xf8
jmp 0x14003c0a1
add rdx, 0xe8
mov eax, dword [rdx]
test eax, eax
je 0x14003c0f6
mov edx, eax
mov r8d, 1
mov rcx, rbx
call fcn.14003cf90
test rax, rax
je 0x14003c0f6
test byte [rax + 0x10], 1
je 0x14003c0f6
sub eax, dword [rbx + 0x10]
lea rdx, [rbx + 0xf8]
add eax, 0x10
mov byte [rbx + 0x1b], 1
lea rcx, [rbx + 0x138]
mov dword [rbx + 0x58], eax
call fcn.140044130
test al, al
je 0x14003c0fa
xor edx, edx
lea rcx, [rbx + 0x138]
call fcn.140044270
jmp 0x14003c0fa
mov byte [rbx + 0x1b], 0
mov rax, qword [rbx + 0x20]
xor esi, esi
cmp si, word [rax + 6]
jae 0x14003c15c
mov qword [rsp + 0x48], rbp
nop dword [rax + rax]
mov rdx, qword [rbx + 0x68]
cmp rdx, qword [rbx + 0x70]
je 0x14003c139
movups xmm0, xmmword [rdi]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rdx + 0x10], xmm1
movsd xmm0, qword [rdi + 0x20]
movsd qword [rdx + 0x20], xmm0
add qword [rbx + 0x68], 0x28
jmp 0x14003c145
mov r8, rdi
lea rcx, [rbx + 0x60]
call fcn.14003d820
mov rax, qword [rbx + 0x20]
inc esi
add rdi, 0x28
movzx ecx, word [rax + 6]
cmp esi, ecx
jl 0x14003c110
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x58]
mov eax, 0xc000007b
add rsp, 0x30
pop rdi
ret