joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002d110
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x158
mov rax, qword [0x18004b008]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp edx, 1
jne 0x18002d1ee
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.18002a770
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.180033314
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x26], 0x75732074
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x2c], 0x74726f
mov dword [rsp + 0x21], 0x6174736e
mov word [rsp + 0x2a], 0x7070
mov byte [rsp + 0x20], 0x69
mov byte [rsp + 0x25], 0x6e
call fcn.18002ba30
test rax, rax
jne 0x18002d222
lea rdx, [sym.gphelper.dll_yxy7et]
lea rcx, [0x180077aa0]
call fcn.18002e1f0
test eax, eax
je 0x18002d222
lea rdx, [sym.gphelper.dll_vo16cr]
lea rcx, [0x180077a20]
call fcn.18002e1f0
test eax, eax
je 0x18002d222
lea rdx, [sym.gphelper.dll_emob0g]
lea rcx, [0x180077a78]
call fcn.18002e1f0
test eax, eax
je 0x18002d222
lea rdx, [sym.gphelper.dll_bwdbsw]
lea rcx, [0x180077a60]
call fcn.18002e1f0
jmp 0x18002d222
test edx, edx
jne 0x18002d222
lea rcx, [0x180077aa0]
call fcn.18002e610
lea rcx, [0x180077a20]
call fcn.18002e610
lea rcx, [0x180077a78]
call fcn.18002e610
lea rcx, [0x180077a60]
call fcn.18002e610
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18002e780
add rsp, 0x158
ret
Function at 0x140f69a00
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f69a0a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f69a33
pop rbp
sub rbp, 0x33
sub rbp, 0xf69a00
sub rsp, 0x20
jmp 0x140f69a52
mov rax, 0xf69a00
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffe5b29584
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f69a71
jmp 0x140f69a88
int3
Function at 0x140003b94
Capabilities:
Parse pe header

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

Function at 0x1400043b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x1400083e8]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400043ec
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.140003b50
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1400044a8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14000450e
test ebx, ebx
jne 0x14000450e
lea ecx, [rax + 2]
call fcn.140003b50
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.140003350
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x140004630
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000468c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000468c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000468c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000468c
cmp dword [rcx + 0x84], 0xe
jbe 0x14000468c
cmp dword [rcx + 0xf8], 0
je 0x14000468c
mov ecx, ebx
call fcn.1400048a0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x140008ac8]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.140004a20
cmp dword [rsp + 0x60], 0
jne 0x1400046cf
mov ecx, ebx
call fcn.140004920
int3
add rsp, 0x40
pop rbx
ret

Function at 0x1400046e0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x60], 0
xor ecx, ecx
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004742
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004742
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x140004742
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x140004742
cmp dword [rdx + 0x84], 0xe
jbe 0x140004742
cmp dword [rdx + 0xf8], 0
je 0x140004742
mov ecx, ebx
call fcn.1400048a0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x140008ac8]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.140004a20
cmp dword [rsp + 0x60], 0
jne 0x140004785
mov ecx, ebx
call fcn.140004920
int3
add rsp, 0x40
pop rbx
ret
Function at 0x140001780
Capabilities:
Persist via run registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x370
mov rax, qword [0x14002d018]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rdi, rdx
lea rax, str.MsUpdate.exe
xor edx, edx
mov rbx, rcx
cmp rcx, rax
mov r8d, 0x104
lea rcx, [rsp + 0x40]
jne 0x1400018b5
call fcn.140002670
xor edx, edx
lea rcx, [rsp + 0x150]
mov r8d, 0x208
call fcn.140002670
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [0x14002ecf8]
test eax, eax
je 0x140001929
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
lea r8, str._s_s
mov edx, 0x208
lea rcx, [rsp + 0x150]
call fcn.140001720
test eax, eax
js 0x140001929
lea rcx, [rsp + 0x150]
call qword [0x14002ed80]
cmp eax, 0xffffffff
je 0x14000183e
test al, 0x10
je 0x140001929
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [0x14002ed48]
test eax, eax
jne 0x140001929
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], 0
mov rdx, rdi
call qword [0x14002ed68]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [0x14002ed58]
test ebx, ebx
jne 0x1400018ae
cmp dword [rsp + 0x38], 1
je 0x140001929
mov eax, 1
jmp 0x14000192b
call fcn.140002670
xor edx, edx
lea rcx, [rsp + 0x150]
mov r8d, 0x208
call fcn.140002670
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 7]
call qword [0x14002ecf8]
test eax, eax
je 0x140001929
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
lea r8, str._s_s
mov edx, 0x208
lea rcx, [rsp + 0x150]
call fcn.140001720
test eax, eax
js 0x140001929
lea rcx, [rsp + 0x150]
call qword [0x14002ed80]
cmp eax, 0xffffffff
je 0x1400018ae
shr eax, 4
and eax, 1
jmp 0x14000192b
xor eax, eax
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.140003210
mov rbx, qword [rsp + 0x390]
add rsp, 0x370
pop rdi
ret
Function at 0x140001e20
Capabilities:
Resolve function by parsing pe exports

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, 0x140
mov rax, qword [0x14002d018]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r14d, edx
mov rbx, rcx
test rcx, rcx
je 0x140001ecc
test edx, edx
je 0x140001ecc
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140001ecc
mov esi, dword [rax + rcx + 0x88]
xor r12d, r12d
mov r13d, dword [rax + rcx + 0x8c]
add rsi, rcx
mov r9d, r12d
mov r10d, dword [rsi + 0x20]
mov r15d, dword [rsi + 0x1c]
add r10, rcx
mov r11d, dword [rsi + 0x24]
add r15, rcx
mov ebp, dword [rsi + 0x14]
add r11, rcx
test ebp, ebp
je 0x140001ecc
movzx eax, word [r11]
mov ecx, dword [r10]
add rcx, rbx
mov edi, dword [r15 + rax*4]
add rdi, rbx
call fcn.1400025c0
cmp eax, r14d
je 0x140001eff
inc r9d
add r11, 2
add r10, 4
cmp r9d, ebp
jb 0x140001ea1
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140003210
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp rdi, rsi
jb 0x140001fbd
lea rax, [rsi + r13]
cmp rdi, rax
jae 0x140001fbd
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.140002670
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rdi + r8], r12b
jne 0x140001f31
test r8, r8
je 0x140001f4c
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140006a80
mov ecx, r12d
lea rax, [rsp + 0x20]
inc rbx
cmp byte [rax + rbx], cl
jne 0x140001f54
test rbx, rbx
je 0x140001f78
lea rdx, [rsp + 0x20]
cmp byte [rdx], 0x2e
je 0x140001fa8
inc ecx
inc rdx
movsxd rax, ecx
cmp rax, rbx
jb 0x140001f66
mov eax, r12d
lea rcx, [rsp + 0x21]
add rcx, rax
call fcn.1400025c0
mov rdx, qword [0x14002ecd0]
lea rcx, [rsp + 0x20]
mov ebx, eax
call qword [rdx + 0x40]
mov rcx, rax
mov edx, ebx
call fcn.140001e20
jmp 0x140001ece
movsxd rax, ecx
mov r12d, ecx
cmp rax, 0x104
jae 0x140001fc5
mov byte [rsp + rax + 0x20], 0
jmp 0x140001f78
mov rax, rdi
jmp 0x140001ece
call fcn.140003338
int3
Function at 0x140001fd0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x14002d018]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword gs:[0x60]
mov esi, ecx
mov rdx, qword [rax + 0x18]
mov rdi, qword [rdx + 0x20]
test ecx, ecx
jne 0x14000200f
mov rax, qword [rdi + 0x20]
jmp 0x14000219c
mov qword [rsp + 0x150], rbx
mov qword [rsp + 0x158], rbp
test rdi, rdi
je 0x14000218a
mov ebp, 0x104
nop dword [rax]
mov rbx, qword [rdi + 0x50]
test rbx, rbx
je 0x14000217e
cmp word [rdi + 0x48], bp
jae 0x14000217e
mov r8, rbp
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140002670
xor eax, eax
cmp word [rbx], ax
je 0x1400020a1
xor r10d, r10d
mov r11, rbx
xor ecx, ecx
nop word [rax + rax]
movzx r9d, byte [rcx + r11]
lea ecx, [r9 + 0x20]
movzx edx, cl
lea r8d, [r9 - 0x41]
cmp r8b, 0x19
cmova edx, r9d
inc eax
mov byte [rsp + r10 + 0x20], dl
mov rbx, qword [rdi + 0x50]
mov r10d, eax
lea rcx, [rax + rax]
cmp word [rcx + rbx], 0
jne 0x140002070
mov ecx, eax
cmp rcx, rbp
jae 0x1400021c3
mov rcx, rbx
mov byte [rsp + rax + 0x20], 0
call fcn.1400025c0
cmp eax, esi
je 0x1400021bd
movzx eax, byte [rsp + 0x20]
mov ecx, 0xffffefff
test al, al
je 0x140002178
lea rdx, [rsp + 0x20]
nop dword [rax + rax]
movsx eax, al
lea rdx, [rdx + 1]
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 ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
movzx eax, byte [rdx]
test al, al
jne 0x1400020e0
not ecx
cmp ecx, esi
je 0x1400021bd
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140002030
xor eax, eax
mov rbx, qword [rsp + 0x150]
mov rbp, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140003210
mov rsi, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
ret
mov rax, qword [rdi + 0x20]
jmp 0x14000218c
call fcn.140003338
int3
Function at 0x1400025c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffefff
movzx ecx, byte [rcx]
test cl, cl
je 0x14000266c
movsx edx, cl
lea r8, [r8 + 1]
xor eax, edx
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 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
movzx ecx, byte [r8]
test cl, cl
jne 0x1400025d3
not eax
ret
Function at 0x140002b20
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [0x14002da44]
mov r9, rcx
shl edx, 0xd
xor edx, dword [0x14002da44]
mov r8d, edx
shr r8d, 0x11
xor r8d, edx
mov edx, dword [rcx]
mov eax, r8d
shl eax, 5
xor eax, r8d
add edx, eax
mov dword [0x14002da44], eax
mov dword [rcx], edx
cmp edx, 0x491fd3a1
ja 0x140002b88
mov ecx, eax
nop dword [rax + rax]
shl eax, 0xd
xor eax, ecx
mov ecx, eax
shr ecx, 0x11
xor ecx, eax
mov eax, ecx
shl eax, 5
xor eax, ecx
add edx, eax
mov ecx, eax
mov dword [r9], edx
cmp edx, 0x491fd3a1
jbe 0x140002b60
mov dword [0x14002da44], eax
ret
Function at 0x140003c04
Capabilities:
Parse pe header

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

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

Disassembly:
xor edx, edx
lea r8, [0x14002ee40]
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 0x140005e30
ret

Function at 0x140005ed0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140005efe
lea r10, [0x14002ee40]
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 0x140005ee0
mov eax, ecx
ret

Function at 0x14000fb2c
Capabilities:
Parse pe header

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

Function at 0x140012430
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140012450
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140010a3c
or eax, 0xffffffff
jmp 0x140012452
xor eax, eax
add rsp, 0x28
ret
Function at 0x140014864
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140014841
call fcn.140010ac8
mov dword [rax], 0x16
call fcn.14001098c
or eax, 0xffffffff
jmp 0x14001485e
sub dword [rcx + 0x10], 1
jns 0x140014850
add rsp, 0x28
jmp 0x14001b288
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140014820
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14001b2ba
call fcn.140010ac8
mov dword [rax], 0x16
call fcn.14001098c
jmp 0x14001b3d9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001b3d9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001b3d9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001b2e9
lock or dword [rcx + 0x14], 0x10
jmp 0x14001b3d9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001b2fd
call fcn.14001ea7c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140011798
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14001d88c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14001b3c7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14001b392
mov rcx, rsi
call fcn.140011798
cmp eax, edi
je 0x14001b37d
mov rcx, rsi
call fcn.140011798
cmp eax, 0xfffffffe
je 0x14001b37d
mov rcx, rsi
call fcn.140011798
movsxd rbx, eax
lea r14, [0x14002e580]
mov rcx, rsi
sar rbx, 6
call fcn.140011798
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14001b384
lea rdx, [0x14002d170]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001b392
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14001b3b6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14001b3b6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14001b3b6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14001b3dc
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14001633c
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 0x14001636c
xor eax, eax
jmp 0x14001642f
mov rbp, rbx
cmp word [rax], si
je 0x140016391
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140016378
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140016374
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.14001628c
movsxd r14, eax
test eax, eax
jne 0x1400163cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140016365
mov rcx, r14
call fcn.14001229c
mov rdi, rax
test rax, rax
jne 0x1400163e8
xor ecx, ecx
call fcn.1400105c8
jmp 0x1400163c4
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.14001628c
test eax, eax
jne 0x140016419
mov rcx, rdi
call fcn.1400105c8
jmp 0x140016423
xor ecx, ecx
call fcn.1400105c8
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 0x14001ceb4
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.140009a10
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001cf3e
cmp byte [rbp - 0x21], r15b
je 0x14001cf39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001cf74
call fcn.140010d78
test eax, eax
jne 0x14001cf60
cmp byte [rbp - 0x21], r15b
je 0x14001cf58
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001cf74
cmp byte [rbp - 0x21], r15b
je 0x14001cf71
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.140009894
test eax, eax
jne 0x14001d014
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140009a10
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001cfb3
cmp byte [rbp - 0x21], r15b
je 0x14001cfe8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001cfe8
call fcn.140010d78
test eax, eax
jne 0x14001cfd4
cmp byte [rbp - 0x21], r15b
je 0x14001cfcd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001cfe8
cmp byte [rbp - 0x21], r15b
je 0x14001cfe5
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.140009894
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001d014
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001d017
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001d025
mov rcx, rdi
call fcn.1400105c8
cmp byte [rbp + 0x3f], r15b
je 0x14001d034
mov rcx, qword [rbp + 0x27]
call fcn.1400105c8
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