joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a370
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c58], 0
lea rbx, [rcx + 0x5c60]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001a417
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001a3ca
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001cb40
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003f00
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c58]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c68]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400b33b8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001a41f
mov rcx, rbx
call fcn.140003f00
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001a900
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movzx r8d, byte [rcx]
lea rdx, [rcx + 1]
mov r14, qword [0x1400b33c0]
mov r9d, 0xffffffff
mov ebx, r9d
test r8b, r8b
je 0x14001a964
lea r10, [0x140054f50]
cmp r8b, 0x23
jne 0x14001a947
cmp byte [rdx], r8b
jne 0x14001a947
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x14001a934
mov eax, dword [r14 + 0x5bd0]
xor edi, edi
mov qword [rsp + 0x30], rbp
not ebx
mov qword [rsp + 0x38], rsi
test eax, eax
jle 0x14001a9c5
mov esi, edi
mov ebp, edi
test rsi, rsi
js 0x14001a98a
cmp edi, eax
jl 0x14001a9a4
mov r8d, 0x70b
lea rdx, str.E:ImGui_Designerdivinity_menu_masterdivinity_menu_masterimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rdx, qword [r14 + 0x5bd8]
cmp dword [rdx + rbp + 8], ebx
je 0x14001a9e2
mov eax, dword [r14 + 0x5bd0]
inc edi
inc rsi
add rbp, 0x48
cmp edi, eax
jl 0x14001a981
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
test edi, edi
js 0x14001a9ef
cmp edi, dword [r14 + 0x5bd0]
jl 0x14001aa10
mov r8d, 0x70b
lea rdx, str.E:ImGui_Designerdivinity_menu_masterdivinity_menu_masterimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rdx, qword [r14 + 0x5bd8]
movsxd rax, edi
lea rcx, [rax + rax*8]
lea rax, [rdx + rcx*8]
jmp 0x14001a9c7
Function at 0x140005580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
cmp qword [rsp + 0x20], 0
je 0x1400055aa
cmp qword [rsp + 0x28], 0
je 0x1400055aa
cmp dword [rsp + 0x30], 0
jne 0x1400055b1
xor eax, eax
jmp 0x140005708
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
cmp dword [rax], 0x4550
je 0x1400055ff
xor eax, eax
jmp 0x140005708
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
movzx eax, word [rax + 0x16]
and eax, 0x2000
test eax, eax
je 0x14000561e
mov dword [rsp], 1
jmp 0x140005625
mov dword [rsp], 0
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp]
mov dword [rax + 0x48], ecx
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
movzx ecx, word [rcx + 0x14]
lea rax, [rax + rcx + 0x18]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov ecx, 8
imul rcx, rcx, 1
lea rax, [rax + rcx + 0x88]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov ecx, 8
imul rcx, rcx, 5
lea rax, [rax + rcx + 0x88]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov ecx, 8
imul rcx, rcx, 9
lea rax, [rax + rcx + 0x88]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov ecx, 8
imul rcx, rcx, 3
lea rax, [rax + rcx + 0x88]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x38], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov ecx, 8
imul rcx, rcx, 0
lea rax, [rax + rcx + 0x88]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x40], rax
mov eax, 1
add rsp, 0x18
ret

Function at 0x140005710
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp + 0xc], 0
mov dword [rsp], 0xffffefff
mov dword [rsp + 4], 0
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x1400057a4
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov dword [rsp + 8], 0
jmp 0x14000576e
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 8
jge 0x140005798
mov eax, dword [rsp]
and eax, 1
imul eax, eax, 0xffffffff
mov dword [rsp + 0xc], eax
mov eax, dword [rsp]
shr eax, 1
mov ecx, dword [rsp + 0xc]
and ecx, 0xedb88320
xor eax, ecx
mov dword [rsp], eax
jmp 0x140005764
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
jmp 0x140005730
mov eax, dword [rsp]
not eax
add rsp, 0x18
ret
Function at 0x14000ab50
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140038018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0x44]
call fcn.14000ab10
cmp dword [rsp + 0x44], 0xffffff
jae 0x14000ad07
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000acf9
mov dword [rsp + 0x40], 1
jmp 0x14000ad01
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
jmp 0x14000ad0c
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000e5c0
add rsp, 0x58
ret

Function at 0x14000ad20
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xe
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add rsp, 0x38
ret

Function at 0x14000ad50
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140038018]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000e5c0
add rsp, 0x38
ret
Function at 0x14000efb4
Capabilities:
Parse pe header

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

Function at 0x1400111d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
lea r8, [0x14003f680]
nop dword [rax]
mov ecx, edx
lea r8, [r8 + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [r8 - 4], eax
cmp edx, 0x100
jb 0x1400111e0
ret

Function at 0x140011280
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1400112ae
lea r10, [0x14003f680]
nop dword [rax]
movzx r9d, byte [rdx]
lea rdx, [rdx + 1]
mov eax, ecx
shr ecx, 8
xor r9, rax
movzx eax, r9b
xor ecx, dword [r10 + rax*4]
sub r8, 1
jne 0x140011290
mov eax, ecx
ret

Function at 0x14001b080
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001ae70

Function at 0x14001f0d0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001f0f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001bed4
or eax, 0xffffffff
jmp 0x14001f0f2
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400219ac
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 0x1400219dc
xor eax, eax
jmp 0x140021a9f
mov rbp, rbx
cmp word [rax], si
je 0x140021a01
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400219e8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400219e4
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.1400218fc
movsxd r14, eax
test eax, eax
jne 0x140021a3f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400219d5
mov rcx, r14
call fcn.14001d344
mov rdi, rax
test rax, rax
jne 0x140021a58
xor ecx, ecx
call fcn.14001bff8
jmp 0x140021a34
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.1400218fc
test eax, eax
jne 0x140021a89
mov rcx, rdi
call fcn.14001bff8
jmp 0x140021a93
xor ecx, ecx
call fcn.14001bff8
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 0x140025f8c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14003ece0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140025fea
cmp word [rdx], r12w
jne 0x140025fea
or byte [rax + r8*8 + 0x38], cl
jmp 0x140025ff0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002614b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140026126
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140026029
mov rcx, r9
jmp 0x14002604c
cmp r9, rdx
jae 0x140026063
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14002600d
jmp 0x14002614b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140026120
cmp dword [rsp + 0x80], edi
je 0x140026120
mov rdx, r14
lea r11, [0x14003ece0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400260f9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400260cc
mov word [rbx], r12w
jmp 0x140026147
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400260d5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140026147
cmp word [rsp + 0x70], r12w
jne 0x140026106
cmp rbx, rsi
je 0x1400260c6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140029280
cmp word [rsp + 0x70], r12w
je 0x14002614b
mov word [rbx], r13w
jmp 0x140026147
lea r11, [0x14003ece0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140026143
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002614b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140028e34
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140019eb4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140028ebe
cmp byte [rbp - 0x21], r15b
je 0x140028eb9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140028ef4
call fcn.14001c24c
test eax, eax
jne 0x140028ee0
cmp byte [rbp - 0x21], r15b
je 0x140028ed8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140028ef4
cmp byte [rbp - 0x21], r15b
je 0x140028ef1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140019d38
test eax, eax
jne 0x140028f94
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140019eb4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140028f33
cmp byte [rbp - 0x21], r15b
je 0x140028f68
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140028f68
call fcn.14001c24c
test eax, eax
jne 0x140028f54
cmp byte [rbp - 0x21], r15b
je 0x140028f4d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140028f68
cmp byte [rbp - 0x21], r15b
je 0x140028f65
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140019d38
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140028f94
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140028f97
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140028fa5
mov rcx, rdi
call fcn.14001bff8
cmp byte [rbp + 0x3f], r15b
je 0x140028fb4
mov rcx, qword [rbp + 0x27]
call fcn.14001bff8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002a490
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140029280
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140029280
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002a5e0
cmp rax, 0xffffffffffffffff
je 0x14002a5e0
xor edi, edi
test rbp, rbp
jle 0x14002a58b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001bf80
mov rbx, rax
test rax, rax
jne 0x14002a518
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002a581
mov edx, 0x8000
mov ecx, r14d
call fcn.14001b0fc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140023e64
cmp eax, 0xffffffff
je 0x14002a561
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002a528
mov edx, r15d
mov ecx, r14d
call fcn.14001b0fc
jmp 0x14002a581
cmp byte [rsi + 0x38], dil
je 0x14002a578
cmp dword [rsi + 0x34], 5
jne 0x14002a578
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002a581
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001bff8
jmp 0x14002a5f4
jns 0x14002a5f4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140029280
cmp rax, 0xffffffffffffffff
jne 0x14002a5ac
cmp byte [rsi + 0x30], dil
je 0x14002a5f4
mov edi, dword [rsi + 0x2c]
jmp 0x14002a5f4
mov ecx, r14d
call fcn.1400224a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002a5f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14002a5f4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002a5ed
mov eax, dword [rsi + 0x2c]
jmp 0x14002a5f2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140029280
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002b380
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002b3a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002b3a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140018860
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400189eb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [0x140395c50]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.140038180
xorps xmm15, xmm15
mov r14, qword [0x1408c7c58]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x1400188c5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x1400188d4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x1400188f3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x140018903
cmp rbx, 0x1000
jae 0x1400188cb
jmp 0x14001896d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x140018915
xor edx, edx
jmp 0x140018964
mov rcx, qword [0x140395c50]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.140038180
xorps xmm15, xmm15
mov r14, qword [0x1408c7c58]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x1400188f9
jmp 0x1400188e8
call fcn.14006f160
xorps xmm15, xmm15
mov r14, qword [0x1408c7c58]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.14003c760
lea rax, [0x1404812c3]
mov ebx, 0x18
nop dword [rax]
call fcn.14003cfe0
mov rax, qword [rsp + 0x38]
call fcn.14003cd20
lea rax, [0x140481d0b]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.14003cfe0
mov rax, qword [rsp + 0x30]
call fcn.14003cd20
call fcn.14003c9a0
call fcn.14003c7c0
lea rax, [0x140486af5]
mov ebx, 0x21
call fcn.14003acc0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.14006b9e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.140018860
Function at 0x140018a20
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140018c46
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [0x140395c48]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.140038200
xorps xmm15, xmm15
mov r14, qword [0x1408c7c58]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x140018a93
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x140018aa2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x140018ac5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x140018ad5
cmp rbx, 0x1000
jae 0x140018a99
nop
jmp 0x140018b58
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x140018aed
xor esi, esi
jmp 0x140018b4a
mov rax, qword [0x140395c48]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.140038200
xorps xmm15, xmm15
mov r14, qword [0x1408c7c58]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x140018acb
jmp 0x140018ab6
call fcn.14006f160
xorps xmm15, xmm15
mov r14, qword [0x1408c7c58]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x140018be0
nop dword [rax + rax]
call fcn.14003c760
lea rax, [0x140481d24]
mov ebx, 0x19
call fcn.14003cfe0
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.14003cd20
lea rax, [0x140481d0b]
mov ebx, 0x19
call fcn.14003cfe0
mov eax, dword [rsp + 0x34]
call fcn.14003cd20
nop
call fcn.14003c9a0
call fcn.14003c7c0
lea rax, [0x140479592]
mov ebx, 0xd
call fcn.14003acc0
nop dword [rax + rax]
cmp eax, 0x5af
je 0x140018b80
call fcn.14003c760
lea rax, [0x140481d24]
mov ebx, 0x19
call fcn.14003cfe0
mov rax, qword [rsp + 0x38]
call fcn.14003cd20
lea rax, [0x140481d0b]
mov ebx, 0x19
call fcn.14003cfe0
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.14003cd20
call fcn.14003c9a0
call fcn.14003c7c0
lea rax, [0x1404857ce]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.14003acc0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.14006b9e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.140018a20