joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140006ba0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x140006bb0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140002f70
jmp 0x14000123c
mov rax, qword [0x140006bb0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140006bb0]
mov dword [rax], 1
mov rax, qword [0x140006bf0]
mov rdx, rax
mov rax, qword [0x140006be0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x14000a024], 1
mov rax, qword [0x140006bb0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140006bd0]
mov rdx, rax
mov rax, qword [0x140006bc0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x140006bb0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140006ba0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140006b00]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140006b00]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400021f8
mov rax, qword [0x140006c30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140006b90]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400019f0
mov eax, dword [0x14000a004]
lea rdx, [0x14000a008]
mov ecx, eax
call fcn.14000147c
call fcn.140001787
mov rax, qword [0x140006b20]
mov rax, qword [rax]
mov rdx, qword [0x14000a010]
mov qword [rax], rdx
mov rcx, qword [0x14000a010]
mov rdx, qword [0x14000a008]
mov eax, dword [0x14000a004]
mov r8, rcx
mov ecx, eax
call fcn.140004030
mov dword [0x14000a01c], eax
mov eax, dword [0x14000a020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000a01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x14000a024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14000a01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140006b50]
mov dword [rax], 1
mov rax, qword [0x140006b60]
mov dword [rax], 1
mov rax, qword [0x140006b70]
mov dword [rax], 1
mov rax, qword [0x140006b10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001a00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140002d60
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400026d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000a168]
test eax, eax
je 0x14000276a
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000a170]
mov qword [rbp - 8], rax
jmp 0x14000274e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002742
cmp qword [rbp - 0x10], 0
je 0x140002742
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002708
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000276b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002870
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002898
mov eax, 0
jmp 0x1400028e6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400028c1
mov eax, 0
jmp 0x1400028e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400028e1
mov eax, 0
jmp 0x1400028e6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400028ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000296a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002961
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002961
mov rax, qword [rbp - 8]
jmp 0x14000297f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002934
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140003190
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push r15
lea r15, [rcx + 0xe0]
push r14
mov r14, rdx
push r13
xor r13d, r13d
push r12
push rdi
mov rdi, r9
push rsi
mov rsi, rcx
push rbx
mov rbx, r8
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp r14, r13
je 0x1400032a0
mov rcx, qword [rsp + 0x28]
xor eax, eax
mov rdx, rdi
movups xmm0, xmmword [rdi]
mov qword [rsp + 0x30], rax
lea r12, [rsi + 0xd0]
mov qword [rsp + 0x38], rax
call fcn.1400036c0
mov rcx, qword [rsp + 0x28]
mov rdx, r15
call fcn.1400034b0
mov rcx, qword [rsp + 0x28]
call fcn.140003650
mov rcx, qword [rsp + 0x28]
mov edx, 1
call fcn.140003a30
mov rcx, qword [rsp + 0x28]
mov rdx, r12
sub r12, 0x10
call fcn.1400034b0
mov rcx, qword [rsp + 0x28]
mov edx, 1
call fcn.1400037e0
cmp rsi, r12
jne 0x140003200
mov rcx, qword [rsp + 0x28]
call fcn.140003650
mov rcx, qword [rsp + 0x28]
mov edx, 1
call fcn.140003a30
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.1400034b0
mov rdx, qword [rsp + 0x28]
mov rcx, rbx
call fcn.1400039e0
xor eax, eax
mov dl, byte [r12 + rax + 0xf0]
xor byte [rbx + rax], dl
inc rax
cmp rax, 0x10
jne 0x140003273
movups xmmword [r12 + 0xf0], xmm0
add rbx, 0x10
add rdi, 0x10
inc r13
jmp 0x1400031c7
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140003300
Capabilities:
Encode data using xor

Disassembly:
push rbp
xor eax, eax
mov rbp, rsp
push r12
mov r12, rcx
mov ecx, 0x3c
push rdi
mov rdi, r12
push rsi
push rbx
xor ebx, ebx
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
mov qword [rsp + 0x22], rax
mov qword [rsp + 0x28], rax
xor eax, eax
rep stosd dword [rdi], eax
mov word [rsp + 0x20], 1
mov eax, ebx
mov ecx, ebx
xor r9d, r9d
sar eax, 2
and ecx, 3
cdqe
shl rax, 4
add rax, r12
mov r10b, byte [rdx + r9]
xor r8d, r8d
mov r11d, r10d
shr r10b, 1
and r11d, 1
shl r11d, cl
or word [rax + r8*2], r11w
inc r8
cmp r8, 8
jne 0x140003352
inc r9
add ecx, 4
cmp r9, 4
jne 0x14000334b
inc ebx
add rdx, 4
cmp ebx, 8
jne 0x140003335
xor eax, eax
lea rdi, [rsp + 0x30]
movzx edx, word [r12 + rax + 0x10]
add rax, 2
sar edx, 3
and dx, 0x1111
mov word [rax + rdi - 2], dx
cmp rax, 0x10
jne 0x14000338b
xor edx, edx
lea rsi, [rsp + 0x20]
test edx, edx
jne 0x140003430
mov rcx, rdi
call fcn.140003a30
xor eax, eax
mov dx, word [rdi + rax]
ror dx, 4
xor dx, word [rax + rsi]
mov word [rdi + rax], dx
add rax, 2
cmp rax, 0x10
jne 0x1400033bd
mov edx, dword [rsp + 0x2c]
mov ax, word [rsp + 0x2e]
mov word [rsp + 0x2e], dx
mov dx, word [rsp + 0x2a]
mov word [rsp + 0x2c], dx
mov edx, dword [rsp + 0x28]
mov word [rsp + 0x2a], dx
mov dx, word [rsp + 0x26]
xor edx, eax
mov word [rsp + 0x28], dx
mov edx, eax
xor edx, dword [rsp + 0x24]
mov word [rsp + 0x26], dx
mov dx, word [rsp + 0x22]
mov word [rsp + 0x24], dx
mov edx, eax
xor edx, dword [rsp + 0x20]
mov word [rsp + 0x22], dx
mov edx, 1
mov word [rsp + 0x20], ax
jmp 0x14000344f
cmp edx, 4
jne 0x140003446
xor edx, edx
mov rcx, rdi
call fcn.140003a30
mov edx, 5
jmp 0x14000344f
inc edx
cmp edx, 8
jne 0x14000344f
xor edx, edx
mov eax, ebx
mov ecx, ebx
xor r8d, r8d
sar eax, 2
and ecx, 3
sub eax, 2
cdqe
shl rax, 4
lea r10, [r12 + rax]
lea r9, [r12 + rax + 0x20]
movzx eax, word [r10 + r8]
sar eax, cl
and ax, 0x1111
xor ax, word [rdi + r8]
mov word [rdi + r8], ax
and eax, 0x1111
shl eax, cl
or word [r9 + r8], ax
add r8, 2
cmp r8, 0x10
jne 0x14000346e
inc ebx
cmp ebx, 0x3c
jne 0x1400033af
lea rsp, [rbp - 0x20]
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret

Function at 0x1400034b0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r8w, word [rdx + rax]
xor word [rcx + rax], r8w
add rax, 2
cmp rax, 0x10
jne 0x1400034b2
ret
Function at 0x14000228c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x70]
sub rsp, 0x170
lea rcx, str._n__..___mimilove_1.0_built_on_Aug_24_2024_18:51:47_n_.__.___Love_edition__3__n___________n________Benjamin_DELPY__gentilkiwi____benjamin_gentilkiwi.com___n__v____https:__blog.gentilkiwi.com_mimikatz______________oe.eo__n______Windows_2000_only____________________________________n_n
call fcn.140001680
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x110
call fcn.140003f70
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140002460
cmp dword [rsp + 0x54], 5
jne 0x140002452
cmp dword [rsp + 0x58], 0
jne 0x140002452
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, str.lsass.exe
lea rax, [rbp + 0xa0]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rax
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rbp + 0xa8], 0
lea rdx, [rbp + 0xa8]
mov ecx, 5
call fcn.140001718
test eax, eax
js 0x140002474
mov rdi, qword [rbp + 0xa8]
mov rbx, rdi
mov rcx, rdi
jmp 0x140002359
cmp dword [rbx], 0
je 0x140002367
mov eax, dword [rbx]
add rbx, rax
mov rcx, rbx
lea rdx, [rsp + 0x20]
call fcn.1400017b0
test eax, eax
jne 0x14000234c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [rsp + 0x30], 0
je 0x140002474
mov r8d, dword [rbp + 0xa0]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140002443
mov edx, 0x10
lea esi, [rdx + 0x30]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140002438
lea edx, [rsi - 0x38]
mov dword [rax], 1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx + 8], rax
test rax, rax
je 0x14000242f
mov rcx, rbx
mov qword [rax], rdi
call fcn.14000252c
mov rcx, rbx
call fcn.140002bd4
mov ecx, dword [rbx]
sub ecx, 1
je 0x140002425
sub ecx, 1
je 0x1400023fc
sub ecx, 1
je 0x140002425
cmp ecx, 3
jne 0x14000242f
jmp 0x140002425
mov rax, qword [rbx + 8]
test rax, rax
je 0x14000242f
mov rsi, qword [rax]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140002417
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsi]
test rcx, rcx
je 0x140002425
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002474
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_wmain___OpenProcess__0x_08x__n
jmp 0x14000246d
lea rcx, str.ERROR_wmain___Only_for_Windows_2000_n
call fcn.140001680
jmp 0x140002474
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_wmain___GetVersionEx__0x_08x__n
mov edx, eax
call fcn.140001680
mov rbx, qword [rsp + 0x190]
xor eax, eax
add rsp, 0x170
pop rdi
pop rsi
pop rbp
ret

Function at 0x140007878
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400075dc
Function at 0x140001a90
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x68
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001091
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140001086
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov r9d, 0x10
mov qword [rsp + 0x44], rax
xor edx, edx
xor eax, eax
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x4c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001650
add rsp, 0x68
ret

Function at 0x1400011a0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ecx, 1
mov ebx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.140001000
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x140001225
cmp dword [rsp + 0x20], 4
jne 0x14000121c
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000121c
mov rdx, qword [rdi + 8]
mov rcx, rdi
call fcn.1400010b0
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140001650
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret

Function at 0x14000203c
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140006087
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006087
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006087
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006087
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006087
cmp dword [rcx + 0x84], 0xe
jbe 0x140006087
cmp dword [rcx + 0xf8], 0
je 0x140006087
mov ecx, ebx
call fcn.140006144
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140005f14
nop
cmp dword [rbp + 0x20], 0
je 0x1400060d5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400060e0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140006018

Function at 0x140006228
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006018
Function at 0x1400092e4
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 0x140009314
xor eax, eax
jmp 0x1400093d7
mov rbp, rbx
cmp word [rax], si
je 0x140009339
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140009320
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000931c
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.140009234
movsxd r14, eax
test eax, eax
jne 0x140009377
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000930d
mov rcx, r14
call fcn.14000a198
mov rdi, rax
test rax, rax
jne 0x140009390
xor ecx, ecx
call fcn.140007960
jmp 0x14000936c
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.140009234
test eax, eax
jne 0x1400093c1
mov rcx, rdi
call fcn.140007960
jmp 0x1400093cb
xor ecx, ecx
call fcn.140007960
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 0x14000c7dc
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.140006fa8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000c866
cmp byte [rbp - 0x21], r15b
je 0x14000c861
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000c89c
call fcn.14000a9b8
test eax, eax
jne 0x14000c888
cmp byte [rbp - 0x21], r15b
je 0x14000c880
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000c89c
cmp byte [rbp - 0x21], r15b
je 0x14000c899
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.1400079b0
test eax, eax
jne 0x14000c93c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140006fa8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000c8db
cmp byte [rbp - 0x21], r15b
je 0x14000c910
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000c910
call fcn.14000a9b8
test eax, eax
jne 0x14000c8fc
cmp byte [rbp - 0x21], r15b
je 0x14000c8f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000c910
cmp byte [rbp - 0x21], r15b
je 0x14000c90d
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.1400079b0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000c93c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000c93f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000c94d
mov rcx, rdi
call fcn.140007960
cmp byte [rbp + 0x3f], r15b
je 0x14000c95c
mov rcx, qword [rbp + 0x27]
call fcn.140007960
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