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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x3b0
mov rax, qword [0x140198190]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
xor edi, edi
lea rdx, [0x14019ea08]
lea ecx, [rdi + 0x20]
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
js 0x140064042
mov qword [0x14019e86c], rdi
mov qword [0x14019e878], 1
mov qword [0x14019e894], rdi
mov dword [0x14019e888], 1
mov r9, qword [0x14019e9f0]
mov qword [0x14019e880], r9
mov dword [0x14019e874], edi
mov dword [0x14019e868], 0x15
mov eax, dword [0x14019f0bc]
mov dword [0x14019e860], eax
mov eax, dword [0x14019f0c4]
mov dword [0x14019e864], eax
mov dword [0x14019e88c], 1
mov dword [0x14019e890], 0x50
mov dword [0x14019e89c], edi
mov rcx, qword [0x14019ea08]
mov rax, qword [rcx]
lea rdx, [0x14019e848]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdi
lea rdx, [0x14019e860]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
xor edx, edx
lea r8d, [rdi + 1]
call qword [rax + 0xa0]
test eax, eax
js 0x14006402a
call fcn.140016640
mov rbx, qword [0x14019e7b0]
mov qword [rbx + 0x20], rdi
mov edx, 0x104
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rsp + 0x50]
call fcn.1400070a0
nop
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x60]
call fcn.140009320
mov rcx, rax
lea rdx, str.FontsTahoma.ttf
call fcn.1400095e0
mov rbx, qword [rbx + 0x38]
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x68]
call fcn.140008770
nop
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x170]
call fcn.14006e910
nop
cmp qword [rax + 0x18], 0x10
jb 0x140063f95
mov rax, qword [rax]
lea rcx, [0x140175570]
mov qword [rsp + 0x20], rcx
movss xmm2, dword [0x14017cdc4]
mov rdx, rax
mov rcx, rbx
call fcn.140037610
nop
lea rcx, [rsp + 0x170]
call fcn.140008ae0
nop
lea rcx, [rsp + 0x150]
call fcn.1400089c0
xor ecx, ecx
call fcn.140032af0
mov rcx, qword [0x14019e9f0]
call fcn.14003ca20
mov rcx, qword [0x14019e848]
call fcn.14003c680
mov rcx, qword [0x14019ea08]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
lea rcx, [rsp + 0x50]
call fcn.140003d50
xor eax, eax
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.14010f620
mov rbx, qword [rsp + 0x3c0]
add rsp, 0x3b0
pop rdi
ret
mov rcx, qword [0x14019ea08]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov ecx, 4
call fcn.140119040
int3
mov ecx, 3
call fcn.140119040
int3
Function at 0x140065850
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x28], ecx
lea rdx, [rsp + 0x20]
lea rcx, [0x1400658a0]
mov qword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x14006588c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x14006588c
mov rax, qword [rsp + 0x20]
test rax, rax
jne 0x14006588e
xor eax, eax
add rsp, 0x38
ret
Function at 0x14006a080
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 0x1384], 0xffffffff
lea r9, [rcx + 8]
mov dword [rcx + 4], edx
mov r8d, 1
nop word [rax + rax]
mov eax, edx
lea r9, [r9 + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, r8d
inc r8
mov dword [r9 - 4], edx
cmp r8, 0x270
jb 0x14006a0a0
mov dword [rcx], 0x270
mov rax, rcx
ret

Function at 0x14006dfc0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14006e021
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14006dfe0
mov ecx, dword [r9]
jmp 0x14006e108
cmp ecx, 0x4e0
jb 0x14006e108
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14006e040
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14006e090
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14006e1d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
xor esi, esi
mov rbx, r8
cmp qword [rdx + 0x18], 8
mov rdi, rdx
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x68], rsi
jb 0x14006e1fd
mov rdx, qword [rdx]
lea rax, [rsp + 0x68]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x14006e294
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x14006e22f
mov rdx, qword [rdi]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x14006e274
mov rdx, qword [rdi]
lea rax, [rsp + 0x68]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006e393
cmp qword [rbx + 0x18], 8
mov rdx, rbx
mov dword [rsp + 0x60], 4
mov dword [rsp + 0x70], esi
jb 0x14006e2b5
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14006e349
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x70], eax
jne 0x14006e2ff
mov rcx, rdi
call fcn.1400089c0
mov rcx, rbx
call fcn.1400089c0
xor eax, eax
jmp 0x14006e3a8
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x14006e30c
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
call fcn.1400089c0
mov rcx, rbx
call fcn.1400089c0
mov eax, 1
jmp 0x14006e3a8
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x14006e356
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
call fcn.1400089c0
mov rcx, rbx
call fcn.1400089c0
mov eax, 1
jmp 0x14006e3a8
mov rcx, rdi
call fcn.1400089c0
mov rcx, rbx
call fcn.1400089c0
mov eax, 2
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14006e3c0
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x419
cmp ax, cx
je 0x14006e3ee
mov ecx, 0x422
cmp ax, cx
je 0x14006e3ee
mov ecx, 0x43f
cmp ax, cx
sete al
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret
Function at 0x14006f390
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140198190]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov qword [rsp + 0x38], rcx
mov rdi, rcx
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x34], ntohl
mov qword [rsp + 0x20], rcx
mov rbx, r9
mov rdx, r8
mov dword [rsp + 0x30], 0x104
xor esi, esi
mov rcx, 0xffffffff80000002
mov r9d, 0x101
mov qword [rsp + 0x38], rsi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov r8, 0xffffffffffffffff
mov qword [rdi + 0x18], rsi
inc r8
cmp word [rax + r8*2], si
jne 0x14006f436
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400099b0
mov rax, rdi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14010f620
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x140071480
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x140198190]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x60], 0x238
xor edx, edx
lea ecx, [rbp + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x1400715bc
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x1400715bc
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
lea rax, [rsp + 0x8c]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140071540
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x30]
call fcn.140008ce0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x50], eax
mov rdi, qword [rbx + 8]
cmp rdi, qword [rbx + 0x10]
je 0x14007158a
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140007f90
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x20], eax
add qword [rbx + 8], 0x28
jmp 0x14007159b
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call fcn.1400732f0
nop
lea rcx, [rsp + 0x30]
call fcn.1400089c0
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140071510
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14010f620
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140071600
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140198190]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov ebx, dword [0x14019e850]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140071691
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140071691
cmp dword [rsp + 0x28], ebx
je 0x1400716b4
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140071688
nop dword [rax + rax]
cmp dword [rsp + 0x28], ebx
je 0x1400716b4
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140071670
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14010f620
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
mov al, 1
jmp 0x140071693
Function at 0x1400716c0
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x20
xor edx, edx
mov r8d, ecx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x1400716e2
add rsp, 0x20
pop rdi
ret
mov edx, 1
mov qword [rsp + 0x30], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140075120
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x180
mov rax, qword [0x140198190]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov r14, rdx
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
nop
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x140158428]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140158418]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x1400751c5
lea rcx, [rsp + 0x90]
cmp eax, 0x80004002
je 0x140075372
cmp eax, 0x80004003
je 0x140075338
cmp eax, 0x80040110
je 0x1400752fe
cmp eax, 0x80040154
je 0x1400752c4
jmp 0x14007528a
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call fcn.140073a90
mov rdi, rax
mov qword [rsp + 0x40], rax
mov rdx, rsi
mov rcx, rdi
call fcn.140073e90
mov rsi, rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x90], r14
lea rax, [rsp + 0x48]
mov qword [rsp + 0x98], rax
lea rax, [0x14017b8d8]
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rsp + 0x58], xmm0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140074250
nop
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.14010f620
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
lea rdx, str.Error_initializing_IWbemLocator:_Unknown_Error
call fcn.1400080b0
nop
mov r8d, ebx
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xb0]
call fcn.140073a30
lea rdx, [0x140195330]
lea rcx, [rsp + 0xb0]
call fcn.140112660
nop
lea rdx, str.Error_initializing_IWbemLocator:_REGDB_E_CLASSNOTREG
call fcn.1400080b0
nop
mov r8d, ebx
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xd8]
call fcn.140073a30
lea rdx, [0x140195330]
lea rcx, [rsp + 0xd8]
call fcn.140112660
nop
lea rdx, str.Error_initializing_IWbemLocator:_CLASS_E_NOAGGREGATION
call fcn.1400080b0
nop
mov r8d, ebx
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x100]
call fcn.140073a30
lea rdx, [0x140195330]
lea rcx, [rsp + 0x100]
call fcn.140112660
nop
lea rdx, str.Error_initializing_IWbemLocator:_E_POINTER
call fcn.1400080b0
nop
mov r8d, ebx
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x128]
call fcn.140073a30
lea rdx, [0x140195330]
lea rcx, [rsp + 0x128]
call fcn.140112660
nop
lea rdx, str.Error_initializing_IWbemLocator:_E_NOINTERFACE
call fcn.1400080b0
nop
mov r8d, ebx
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x150]
call fcn.140073a30
lea rdx, [0x140195330]
lea rcx, [rsp + 0x150]
call fcn.140112660
int3
Function at 0x140082838
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x190
mov rax, qword [0x140198190]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x40]
call fcn.140112010
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x108
call fcn.140112010
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rdi
call fcn.1400932e0
test eax, eax
jne 0x1400828d3
mov eax, 0x5a4d
cmp word [rsp + 0x30], ax
jne 0x1400828d3
movsxd rdx, dword [rsp + 0x6c]
lea r9, [rsp + 0x70]
mov rcx, qword [rbx + 8]
add rdx, rdi
mov r8d, 0x108
call fcn.1400932e0
test eax, eax
jne 0x1400828d3
cmp dword [rsp + 0x70], 0x4550
sete al
jmp 0x1400828d5
xor al, al
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14010f620
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x190
pop rdi
ret
Function at 0x140085358
Capabilities:
Read file via mapping

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, 0x50
mov rdi, rdx
mov bpl, r8b
mov dl, 1
mov rbx, rcx
call fcn.14008554c
lea r14, [rbx + 0x108]
cmp r14, rdi
je 0x1400853a6
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x14008539a
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, r14
call fcn.140008ce0
mov byte [rbx + 0x1c], 0
cmp qword [rdi + 0x18], 8
jb 0x1400853b4
mov rdi, qword [rdi]
and qword [rsp + 0x30], 0
xor r9d, r9d
and dword [rsp + 0x28], 0
mov edx, 0x120089
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rbx]
mov rdi, rax
cmp rax, rcx
je 0x1400853f8
test rcx, rcx
jle 0x1400853f2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rdi
mov rcx, rdi
test rcx, rcx
jle 0x140085522
and qword [rsp + 0x28], 0
xor r9d, r9d
and dword [rsp + 0x20], 0
xor edx, edx
mov r8d, 0x1000002
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rbx + 8]
mov rdi, rax
cmp rax, rcx
je 0x14008543b
test rcx, rcx
jle 0x140085434
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rdi
mov rcx, rdi
xor r9d, r9d
test rcx, rcx
jle 0x140085463
and qword [rsp + 0x20], r9
lea edx, [r9 + 4]
xor r8d, r8d
mov byte [rbx + 0x18], r9b
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
lea rax, [rsp + 0x40]
jmp 0x1400854c2
and qword [rsp + 0x28], 0
xor edx, edx
mov rcx, qword [rbx]
and dword [rsp + 0x20], 0
mov byte [rbx + 0x18], 1
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rbx + 8]
mov rdi, rax
cmp rax, rcx
je 0x14008549f
test rcx, rcx
jle 0x140085498
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rdi
mov rcx, rdi
test rcx, rcx
jle 0x1400854f1
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
lea rax, [rsp + 0x48]
lea rsi, [rbx + 0x10]
cmp rax, rsi
je 0x1400854e3
mov rcx, qword [rsi]
cmp rdi, rcx
je 0x1400854f1
test rcx, rcx
jle 0x1400854de
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi], rdi
jmp 0x1400854f1
test rdi, rdi
jle 0x1400854f1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [rbx + 0x10], 0
je 0x140085522
xor edx, edx
mov rcx, rbx
call fcn.14008562c
test eax, eax
js 0x140085531
test bpl, bpl
jne 0x140085531
cmp qword [r14 + 0x18], 8
jb 0x140085515
mov r14, qword [r14]
mov rdx, r14
mov rcx, rbx
call fcn.140085ed4
jmp 0x140085531
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x14008554c
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]
mov dil, dl
test rcx, rcx
je 0x140085578
jle 0x140085574
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14008558d
jle 0x140085589
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400855a0
jle 0x14008559d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400855b5
jle 0x1400855b1
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
test dil, dil
jne 0x14008561a
lea rax, [rbx + 0x108]
cmp qword [rax + 0x18], 8
mov rcx, rax
jb 0x1400855d6
mov rcx, qword [rax]
mov qword [rax + 0x10], rsi
mov word [rcx], si
cmp byte [rbx + 0x1c], sil
je 0x1400855ff
add rbx, 0x128
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400855f7
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140085606
add rbx, 0x128
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x140085613
mov rax, qword [rbx]
mov qword [rbx + 0x10], rsi
mov word [rax], si
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14008562c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x140085665
mov rcx, qword [rcx + 0x10]
cmp rdx, rcx
je 0x140085665
test rcx, rcx
jle 0x140085661
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x10], rsi
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x140085678
mov eax, 0xc0000141
jmp 0x1400857dd
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400857d8
movsxd rsi, dword [rax + 0x3c]
add rsi, rax
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
cmp dword [rsi], 0x4550
jne 0x1400857d8
mov eax, 0x20b
mov rdx, rsi
cmp word [rsi + 0x18], ax
jne 0x1400856c0
mov byte [rbx + 0x19], 1
lea rbp, [rsi + 0x108]
mov rax, qword [rsi + 0x30]
jmp 0x1400856ce
mov byte [rbx + 0x19], dil
lea rbp, [rsi + 0xf8]
mov eax, dword [rsi + 0x34]
mov qword [rbx + 0x40], rax
mov rcx, rbx
mov eax, dword [rsi + 0x50]
mov dword [rbx + 0x48], eax
mov eax, dword [rsi + 0x54]
mov dword [rbx + 0x50], eax
mov eax, dword [rsi + 0x28]
mov dword [rbx + 0x4c], eax
mov eax, 0x5e
movzx r8d, word [rsi + 0x5c]
mov dword [rbx + 0x64], r8d
movzx eax, word [rdx + rax]
mov edx, reloc.WS2_32.dll_ntohl
mov dword [rbx + 0x6c], eax
movzx eax, word [rsi + 0x16]
shr ax, 0xd
not al
lea r8d, [rdx - 0xd]
and al, 1
mov byte [rbx + 0x1a], al
call fcn.140085d08
mov ecx, dword [rsi + 0xc8]
mov dword [rbx + 0x30], ecx
mov ecx, dword [rsi + 0xcc]
mov dword [rbx + 0x34], ecx
mov ecx, dword [rsi + 0xd8]
mov dword [rbx + 0x38], ecx
mov ecx, dword [rsi + 0xdc]
mov dword [rbx + 0x3c], ecx
test rax, rax
je 0x14008574a
test byte [rax + 0x10], 1
mov cl, 1
jne 0x14008574d
mov cl, dil
mov byte [rbx + 0x1b], cl
test cl, cl
je 0x14008577f
sub eax, dword [rbx + 0x10]
lea rsi, [rbx + 0x148]
add eax, 0x10
lea rdx, [rbx + 0x108]
mov rcx, rsi
mov dword [rbx + 0x68], eax
call fcn.1400a20a4
test al, al
je 0x14008577f
mov rcx, rsi
call fcn.1400a21f0
mov rax, qword [rbx + 0x20]
cmp di, word [rax + 6]
jae 0x1400857d4
mov rdx, qword [rbx + 0x78]
cmp rdx, qword [rbx + 0x80]
je 0x1400857b6
movups xmm0, xmmword [rbp]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp + 0x10]
movups xmmword [rdx + 0x10], xmm1
movsd xmm0, qword [rbp + 0x20]
movsd qword [rdx + 0x20], xmm0
add qword [rbx + 0x78], 0x28
jmp 0x1400857c2
mov r8, rbp
lea rcx, [rbx + 0x70]
call fcn.140086410
mov rax, qword [rbx + 0x20]
inc edi
add rbp, 0x28
movzx ecx, word [rax + 6]
cmp edi, ecx
jl 0x140085789
xor eax, eax
jmp 0x1400857dd
mov eax, 0xc000007b
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret