joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016a60
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 0x140016a90
xor eax, eax
jmp 0x140016b53
mov rbp, rbx
cmp word [rax], si
je 0x140016ab5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140016a9c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140016a98
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.1400169b0
movsxd r14, eax
test eax, eax
jne 0x140016af3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140016a89
mov rcx, r14
call fcn.140013938
mov rdi, rax
test rax, rax
jne 0x140016b0c
xor ecx, ecx
call fcn.140012cc4
jmp 0x140016ae8
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.1400169b0
test eax, eax
jne 0x140016b3d
mov rcx, rdi
call fcn.140012cc4
jmp 0x140016b47
xor ecx, ecx
call fcn.140012cc4
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 0x14001bcdc
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.140015ab4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001bd66
cmp byte [rbp - 0x21], r15b
je 0x14001bd61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001bd9c
call fcn.140012f18
test eax, eax
jne 0x14001bd88
cmp byte [rbp - 0x21], r15b
je 0x14001bd80
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001bd9c
cmp byte [rbp - 0x21], r15b
je 0x14001bd99
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.140015090
test eax, eax
jne 0x14001be3c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140015ab4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001bddb
cmp byte [rbp - 0x21], r15b
je 0x14001be10
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001be10
call fcn.140012f18
test eax, eax
jne 0x14001bdfc
cmp byte [rbp - 0x21], r15b
je 0x14001bdf5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001be10
cmp byte [rbp - 0x21], r15b
je 0x14001be0d
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.140015090
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001be3c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001be3f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001be4d
mov rcx, rdi
call fcn.140012cc4
cmp byte [rbp + 0x3f], r15b
je 0x14001be5c
mov rcx, qword [rbp + 0x27]
call fcn.140012cc4
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 0x14001e400
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001e428
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001e428
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000cdd0
Capabilities:
Access pe header
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x3e0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ecx, dword [rax + 0x58]
mov dword [rsp + 0x38], ecx
lea rax, str.Sun_Jan__7_13:04:15_2024
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x7e7
mov dword [rsp + 0x20], 0x908
mov edx, 1
mov r9d, edx
lea r8d, [rdx + 3]
lea rcx, str.___Kernel_Driver_Utility_v_lu._lu._lu__build__lu__started___c_2020____lu_KDU_Project_r_n___Built_at__s__header_checksum_0x_lX_r_n___Supported_x64_OS_:_Windows_7_and_above_r_n
call fcn.140002fc8
lea rdi, [rsp + 0xd0]
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rdi, [rsp + 0x1d0]
mov ecx, 0x20a
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov dword [rsp + 0x3f0], 0x1040108
movzx ecx, word [rax + 0x58]
or ecx, 0x23120000
mov dword [rsp + 0x3f4], ecx
lea r9, [rsp + 0xd0]
mov r10, qword [rsp + 0x3f0]
mov word [rsp + 0xce], 0x5f2d
xor esi, esi
mov dil, sil
lea r8, [rsp + 0xc4]
movzx ecx, dil
lea edx, [rdi + 0x61]
lea eax, [rdx - 0x20]
mov byte [r8 - 0x34], al
mov byte [rsp + rcx + 0xaa], dl
cmp cl, 0xa
jae 0x14000cedb
sub dl, 0x31
mov byte [r8], dl
inc dil
inc r8
cmp dil, 0x1a
jl 0x14000cebb
mov ecx, 0xd
mov rax, r10
shr r10, 5
and eax, 0x3f
movsx eax, byte [rsp + rax + 0x90]
mov word [r9], ax
lea r9, [r9 + 2]
sub rcx, 1
jne 0x14000ceec
mov word [r9], si
lea r9, [rsp + 0xd0]
lea r8, str.BaseNamedObjects_ws
mov edx, 0x104
lea rcx, [rsp + 0x1d0]
call fcn.1400032a8
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x58], 0x30
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x70], 0x40
lea rax, [rsp + 0x48]
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
xor r9d, r9d
lea r8, [rsp + 0x58]
mov edx, 0x1f0001
lea rcx, [rsp + 0x3f8]
call qword [sym.imp.ntdll.dll_NtCreateMutant]
mov edi, 0xb7
mov ecx, 0xc0000035
cmp eax, ecx
cmovne edi, esi
je 0x14000cfb8
call fcn.14000c930
mov edi, eax
mov dword [rsp + 0x40], eax
jmp 0x14000cfc9
lea rdx, str.____Another_instance_is_running__close_it_before_r_n
mov ecx, 1
call fcn.140011090
mov edx, edi
lea rcx, str.___Return_value:__d._Bye_bye__r_n
call fcn.140002fc8
mov eax, edi
mov rsi, qword [rsp + 0x400]
add rsp, 0x3e0
pop rdi
ret
Function at 0x1400019d8
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x140084080]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp qword [0x1400871b8], 0xf
lea rcx, [0x1400871a0]
mov r8d, 0x104
lea rdx, [rsp + 0x50]
cmova rcx, qword [0x1400871a0]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xorps xmm0, xmm0
mov qword [rsp + 0x20], 0
xorps xmm1, xmm1
lea rax, [rsp + 0x50]
movups xmmword [rsp + 0x28], xmm0
mov r8, 0xffffffffffffffff
movdqu xmmword [rsp + 0x38], xmm1
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140003480
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.140006bd0
cmp qword [0x140087178], 0xf
lea rdx, [0x140087160]
mov r8, qword [0x140087170]
lea rcx, [rsp + 0x20]
cmova rdx, qword [0x140087160]
call fcn.140005da0
cmp qword [rsp + 0x40], 0xf
lea rbx, [rsp + 0x28]
cmova rbx, qword [rsp + 0x28]
mov ecx, 0x4e20
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call fcn.1400034f0
jmp 0x1400034d2
Function at 0x140003fc0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140003fe2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000405c
mov rdi, r14
mov rcx, rbx
call fcn.140005d40
test rax, rax
jle 0x140004034
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140062fa0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000404c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140004054
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140003ff6
sub r14, rdi
jmp 0x14000413f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140004073
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004075
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400040a7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140062fa0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000413c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400040e2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000411d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14002cd80
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000413c
cmp rbp, rax
ja 0x1400040f0
test rbp, rbp
je 0x14000413c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14002cd80
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x140013d50
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140013830
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140013d8f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140065350]
jmp 0x140013d99
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14003b750
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret

Function at 0x14003e700
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14003dde0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14003e767
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x140065358]
jmp 0x14003e789
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14003ea90
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret
Function at 0x140040550
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140062800
sub rsp, rax
mov rax, qword [0x140084080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1400869b0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140040742
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140040696
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140040696
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14004067b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140040618
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140040702
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140040761
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14004073d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140040761
jmp 0x1400405ee
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140009dc0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140040780
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140062800
sub rsp, rax
mov rax, qword [0x140084080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1400869b0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14004098d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1400408d9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400408d9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1400408b9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140040848
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14004094d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400409ac
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140040988
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400409ac
jmp 0x14004081e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140009dc0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140042450
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004247c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002f2e0
mov eax, 0xffffffff
jmp 0x14004247e
xor eax, eax
add rsp, 0x28
ret
Function at 0x140051b60
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140009610
lea rcx, [rsp + 0x40]
call fcn.140051b20
movzx eax, al
test eax, eax
jne 0x140051ba8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140051a50
mov rax, qword [rsp + 0x70]
jmp 0x140051d79
lea rcx, [rsp + 0x40]
call fcn.140009680
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140051ad0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140009680
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14004e830
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140051c4e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140051a50
mov rax, qword [rsp + 0x80]
jmp 0x140051d79
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14002b1f0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140009610
lea rcx, [rsp + 0x48]
call fcn.140009d60
movzx eax, al
test eax, eax
jne 0x140051cb5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140009d40
lea rcx, [rsp + 0x40]
call fcn.140051a50
mov rax, qword [rsp + 0x88]
jmp 0x140051d79
lea rcx, [rsp + 0x48]
call fcn.140009680
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140009680
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14004e830
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140051d4b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140009d40
lea rcx, [rsp + 0x40]
call fcn.140051a50
mov rax, qword [rsp + 0xa0]
jmp 0x140051d79
lea rcx, [rsp + 0x48]
call fcn.14000cfa0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140009d40
lea rcx, [rsp + 0x40]
call fcn.140051a50
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x4ee8b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x4ee8bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x4ee8cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x4ee8b5
lea eax, [rcx + 1]
jmp 0x4ee8db
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x4ee8ee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x4ee8d4
sub eax, 3
jb 0x4ee90e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x4ee95d
sar eax, 1
movsxd rbp, eax
jb 0x4ee944
jmp 0x4ee91c
add ebx, ebx
jne 0x4ee91a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x4ee944
inc ecx
add ebx, ebx
jne 0x4ee92a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x4ee944
call r11
adc ecx, ecx
add ebx, ebx
jne 0x4ee93d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x4ee92c
add ecx, 2
jmp 0x4ee949
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.004ee872
jmp 0x4ee8bd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x8800
mov dl, 9
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x4ee9ad
cmp rsi, rcx
jae 0x4ee9b5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x4ee994
cmp al, 0x8f
ja 0x4ee994
cmp byte [rsi - 2], 0xf
je 0x4ee99a
sub al, 0xe8
cmp al, 1
ja 0x4ee97e
cmp rsi, rcx
jae 0x4ee9b5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x4ee984
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x4ee9b5
lodsb al, byte [rsi]
jmp 0x4ee994
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xec000]
mov eax, dword [rdi]
or eax, eax
je 0x4eea12
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xee000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x4ee9c2
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x4eea0c
mov qword [rbx], rax
add rbx, 8
jmp 0x4ee9e2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.004eea95], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.004eea95
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x4eea85
sub rsp, 0xffffffffffffff80
jmp 0x4014a0