joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140030cad
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140030ce0
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140030ce5
call fcn.140047020
mov ecx, dword [0x1400c12dc]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov byte [rcx + 0x70], 1
mov qword [rcx + 0x78], rax
mov qword [rcx + 0x80], rdx
add rsp, 0x38
ret

Function at 0x140030d12
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rbx, r8
sub rbx, rdx
mov rcx, rbx
xor edx, edx
call fcn.14001eedb
lea rcx, [rbp - 0x20]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
and qword [rcx + 0x10], 0
mov rdx, rbx
call fcn.140011779
mov rax, qword [rbp - 0x10]
cmp rdi, r14
je 0x140030d89
mov rcx, qword [rbp - 0x18]
xor edx, edx
mov r8b, byte [rdi + rdx]
mov r9d, r8d
sar r9b, 7
xor r8b, r9b
sub r8b, r9b
mov byte [rcx + rax], r8b
inc rax
inc rdx
cmp rbx, rdx
jne 0x140030d69
mov qword [rbp - 0x10], rax
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rsi], xmm0
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x140033200
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400b34b0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x28], eax
Function at 0x140034df0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r14d, r14d
cmp r8, 0x201
jae 0x140034e90
jmp 0x140034e7f
jae 0x140034f4f
cmp r8, 0x201
jae 0x140034e90
mov r15d, 0x200
lea r12, [rbp - 0x58]
mov r13, r8
jmp 0x140034ee8
sub r8, r14
sub rbx, r14
cmp rbx, r8
jae 0x140034ebf
lea rcx, [rbp + 0x3c8]
mov rdx, r14
call fcn.1400541a0
mov rdi, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rbp + 0x3d8], r14
mov rbx, rdi
mov r15, r14
mov r12, qword [rbp + 0x3e8]
mov r13, r14
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r13d
mov rdx, r12
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x140034f10
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140034fae
mov r8d, esi
cmp r13, r8
jne 0x140034e70
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140034fdb
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jb 0x140034e7f
jmp 0x140034e90
cmp r15, r8
jb 0x140034ff5
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.140035680
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rax, qword [rbp + 0x3e0]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
test rdi, rdi
je 0x140034f99
mov edx, 2
mov rcx, qword [rbp + 0x3e8]
call fcn.140010c70
nop
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x3e0]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
test rdi, rdi
jne 0x140034f88
jmp 0x140034f99
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140052fe0
jmp 0x14003500a
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140052f60
ud2

Function at 0x140037ac0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
Function at 0x140039240
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rdx, str.HOMEUSERPROFILElibrary_std_src_syspalwindowspath.rs
lea rcx, [rbp - 0x58]
mov r8d, 4
call fcn.140037ac0
movabs rdi, 0x8000000000000000
cmp qword [rbp - 0x58], rdi
jne 0x1400392aa
lea rdx, [0x1400b3734]
lea rcx, [rbp + 0x3f0]
mov r8d, 0xb
call fcn.140037ac0
jmp 0x1400392c0
movups xmm0, xmmword [rbp - 0x58]
movups xmm1, xmmword [rbp - 0x48]
movaps xmmword [rbp + 0x400], xmm1
movaps xmmword [rbp + 0x3f0], xmm0
mov rax, qword [rbp + 0x3f0]
cmp rax, rdi
jne 0x14003947a
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov qword [rbp + 0x3e8], 0
lea r8, [rbp + 0x3e8]
mov rcx, rax
mov edx, 0x20008
call qword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
je 0x140039498
mov qword [rbp + 0x3a8], rsi
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov qword [rbp + 0x3d0], 0
mov qword [rbp + 0x3d8], 2
mov qword [rbp + 0x3e0], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor ebx, ebx
mov r14d, 0xffffffff
xor esi, esi
xor r13d, r13d
cmp r8, 0x201
jae 0x140039380
jmp 0x14003936f
jae 0x1400394a0
cmp r8, 0x201
jae 0x140039380
mov r15d, 0x200
lea rdi, [rbp - 0x58]
mov r12, r8
jmp 0x1400393d3
sub r8, r13
sub rsi, r13
cmp rsi, r8
jae 0x1400393af
lea rcx, [rbp + 0x3d0]
mov rdx, r13
call fcn.1400541a0
mov rbx, qword [rbp + 0x3d0]
mov rax, qword [rbp + 0x3d8]
mov qword [rbp + 0x418], rax
cmp rbx, r14
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rbp + 0x3e0], r13
mov rsi, rbx
mov r15, r13
mov rdi, qword [rbp + 0x418]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov dword [rbp + 0x3f0], r12d
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
lea r8, [rbp + 0x3f0]
call qword [sym.imp.userenv.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x140039410
mov ecx, dword [rbp + 0x3f0]
dec ecx
test ecx, ecx
jne 0x140039440
jmp 0x140039430
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140039430
mov ecx, dword [rbp + 0x3f0]
test ecx, ecx
jne 0x140039440
nop word cs:[rax + rax]
call qword [sym.imp.kernel32.dll_GetLastError]
xor ecx, ecx
test eax, eax
jne 0x1400394e0
mov r8d, ecx
cmp r12, r8
jne 0x140039360
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140039574
add r12, r12
cmp r12, r14
cmovae r12, r14
mov r8, r12
cmp r8, 0x201
jb 0x14003936f
jmp 0x140039380
mov rcx, qword [rbp + 0x408]
mov qword [rsi + 0x18], rcx
movups xmm0, xmmword [rbp + 0x3f8]
movups xmmword [rsi + 8], xmm0
mov qword [rsi], rax
jmp case.0x14002fc87.616
mov qword [rsi], rdi
jmp case.0x14002fc87.616
cmp r15, r8
jb 0x14003958e
lea rcx, [rbp + 0x3f0]
mov rdx, rdi
call fcn.140035680
movups xmm0, xmmword [rbp + 0x3f0]
movups xmm1, xmmword [rbp + 0x400]
movaps xmmword [rbp + 0x3c0], xmm1
movaps xmmword [rbp + 0x3b0], xmm0
movabs rdi, 0x8000000000000000
jmp 0x140039506
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.internal_error:_entered_unreachable_code
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
Function at 0x140039fd0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400b34b0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
and al, 0x38
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor eax, eax
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14003a03c
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
jo case.0x1400387a3.199
add dword [rax], eax
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne case.0x140039e53.166
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp case.0x140039e53.174
cmp eax, 0x103
je 0x14003a08d
test eax, eax
js 0x14003a068
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
mov dword [rsi], 0
jmp case.0x140039e53.174
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
add dword [rax], eax
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1400b3510]
invalid
invalid
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
and al, 0x80
add byte [rax], al
add byte [rcx], al
add byte [rax], al
invalid
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140032640
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140031c40
mov ecx, 7
invalid
add byte [rax], al
add byte [rax], al
int 0x29
ud2
Function at 0x1400458c0
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
add dword [rax], eax
add byte [rax - 0x73], cl
lodsb al, byte [rsi]
and al, 0x80
add byte [rax], al
add byte [rdi], cl
sub dword [rbp + 0xb0], esi
Function at 0x140047020
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x140047063
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140038690]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.8:_v_
lea rcx, [rbp - 0x60]
call fcn.140052e20
ud2

Function at 0x1400528b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400528fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400528fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400528fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400528fa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400528fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400528fc
xor al, al
add rsp, 0x28
ret
Function at 0x600010a0
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
push rdi
push r12
push r14
sub rsp, 0x38
mov rax, qword [0x6001b008]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r10, qword [rcx]
movabs rax, 0xffffffff00000000
xor ebp, ebp
mov r12, rcx
movzx edi, word [r10 + 0x14]
mov r14, qword [r10 + 0x30]
add rdi, 0x28
and r14, rax
cmp bp, word [r10 + 6]
jae 0x6000124d
mov qword [rsp + 0x78], r13
add rdi, r10
mov qword [rsp + 0x68], rbx
lea r13, [0x600187b0]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x30], r15
nop word [rax + rax]
mov eax, dword [rdi + 0x14]
mov ecx, eax
mov r9d, dword [rdi]
mov r8d, eax
shr ecx, 0x1d
mov r11d, eax
shr r8d, 0x1e
and ecx, 1
and r8d, 1
shr r11d, 0x1f
bt eax, 0x19
jae 0x60001190
mov ebx, dword [rdi - 8]
mov esi, r9d
mov rcx, qword [0x60180c20]
or rbx, r14
test rcx, rcx
jne 0x60001171
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax]
mov rax, qword [r8]
mov rcx, qword [rax + 0x30]
mov qword [0x60180c20], rcx
lea rdx, str.VirtualFree
call fcn.60001910
mov r8d, 0x4000
mov rdx, rsi
mov rcx, rbx
call rax
jmp 0x60001222
lea r8, [r8 + rcx*2]
mov ecx, eax
lea rdx, [r11 + r8*2]
mov r15d, dword [r13 + rdx*4]
bts r15d, 9
and ecx, 0x4000000
cmove r15d, dword [r13 + rdx*4]
test r9d, r9d
jne 0x600011cc
test al, 0x40
je 0x600011bf
mov r9d, dword [r10 + 0x20]
jmp 0x600011c7
test al, al
jns 0x60001222
mov r9d, dword [r10 + 0x24]
test r9d, r9d
je 0x60001222
mov esi, dword [rdi - 8]
mov rcx, qword [0x60180c20]
or rsi, r14
test rcx, rcx
jne 0x60001204
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax]
mov rax, qword [rdx]
mov rcx, qword [rax + 0x30]
mov qword [0x60180c20], rcx
lea rdx, str.VirtualProtect
mov ebx, r9d
call fcn.60001910
lea r9, [rsp + 0x20]
mov r8d, r15d
mov edx, ebx
mov rcx, rsi
call rax
mov r10, qword [r12]
inc ebp
add rdi, 0x28
movzx eax, word [r10 + 6]
cmp ebp, eax
jl 0x60001110
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.60001aa0
add rsp, 0x38
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x60001270
Capabilities:
Access peb ldr_data

Disassembly:
push r14
push r15
sub rsp, 0x28
mov rax, qword [rcx]
mov r15, rcx
mov r14, qword [rcx + 8]
cmp dword [rax + 0x94], 0
jbe 0x6000143d
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov esi, dword [rax + 0x90]
mov qword [rsp + 0x58], rdi
add rsi, r14
mov qword [rsp + 0x20], r12
mov r12, 0xffffffffffffffff
nop dword [rax + rax]
mov rcx, qword [0x60180c20]
test rcx, rcx
jne 0x600012f2
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rax, qword [rax + 0x10]
mov rcx, qword [rax]
mov rax, qword [rcx]
mov rcx, qword [rax + 0x30]
mov qword [0x60180c20], rcx
lea rdx, str.IsBadReadPtr
call fcn.60001910
mov edx, 0x14
mov rcx, rsi
call rax
test eax, eax
jne 0x60001436
mov eax, dword [rsi + 0xc]
test eax, eax
je 0x60001436
lea rbx, [r14 + rax]
mov rax, qword [0x60180c10]
test rax, rax
jne 0x60001370
mov rcx, qword [0x60180c20]
test rcx, rcx
jne 0x6000135d
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax]
mov rax, qword [rdx]
mov rcx, qword [rax + 0x30]
mov qword [0x60180c20], rcx
lea rdx, str.LoadLibraryA
call fcn.60001910
mov qword [0x60180c10], rax
mov rcx, rbx
call rax
mov rbp, rax
test rax, rax
je 0x60001412
movsxd rcx, dword [r15 + 0x20]
mov eax, 8
inc rcx
mul rcx
mov rcx, qword [r15 + 0x10]
cmovo rax, r12
mov rdx, rax
call fcn.60005750
mov qword [r15 + 0x10], rax
mov rcx, rax
test rax, rax
je 0x60001412
movsxd rax, dword [r15 + 0x20]
mov qword [rcx + rax*8], rbp
inc dword [r15 + 0x20]
mov ecx, dword [rsi]
test ecx, ecx
je 0x600013c3
mov eax, dword [rsi + 0x10]
jmp 0x600013c8
mov ecx, dword [rsi + 0x10]
mov eax, ecx
mov edi, eax
mov ebx, ecx
add rdi, r14
add rbx, r14
mov rax, qword [rbx]
test rax, rax
je 0x60001409
jns 0x600013e1
movzx edx, ax
jmp 0x600013e8
lea rdx, [r14 + 2]
add rdx, rax
mov rcx, rbp
call fcn.60001910
mov qword [rdi], rax
test rax, rax
je 0x60001412
mov rax, qword [rbx + 8]
add rbx, 8
add rdi, 8
test rax, rax
jne 0x600013da
add rsi, 0x14
jmp 0x600012c0
xor eax, eax
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r12, qword [rsp + 0x20]
add rsp, 0x28
pop r15
pop r14
ret
mov eax, 1
jmp 0x60001414
mov eax, 1
add rsp, 0x28
pop r15
pop r14
ret
Function at 0x60001910
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push r12
sub rsp, 0x70
mov r12, qword [0x60180c18]
mov rax, rdx
test r12, r12
jne 0x60001a7c
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r14
mov r14, qword [0x60180c20]
mov qword [rsp + 0x38], r15
test r14, r14
jne 0x60001979
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rax, qword [rax + 0x10]
mov rcx, qword [rax]
mov rax, qword [rcx]
mov r14, qword [rax + 0x30]
mov qword [0x60180c20], r14
movsxd rax, dword [r14 + 0x3c]
xor r12d, r12d
mov ebp, r12d
mov ecx, dword [rax + r14 + 0x88]
add rcx, r14
mov eax, dword [rcx + 0x14]
mov r13d, dword [rcx + 0x1c]
mov edx, dword [rcx + 0x20]
add r13, r14
mov r15d, dword [rcx + 0x18]
add rdx, r14
mov ecx, dword [rcx + 0x24]
add rcx, r14
mov dword [rsp + 0x90], eax
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
test eax, eax
je 0x60001a51
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rdi
mov eax, dword [r13]
mov dword [rsp + 0x98], eax
test eax, eax
je 0x60001a26
mov edi, r12d
test r15d, r15d
je 0x60001a26
mov rsi, rdx
mov rbx, rcx
nop dword [rax]
movzx eax, word [rbx]
cmp eax, ebp
jne 0x60001a0d
movsxd rcx, dword [rsi]
lea rdx, [0x600187d0]
add rcx, r14
call fcn.6000fe10
test eax, eax
je 0x60001a37
inc edi
add rbx, 2
add rsi, 4
cmp edi, r15d
jb 0x600019f0
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
inc ebp
add r13, 4
cmp ebp, dword [rsp + 0x90]
jb 0x600019d0
jmp 0x60001a42
movsxd r12, dword [rsp + 0x98]
add r12, r14
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x60]
mov qword [0x60180c18], r12
mov rdx, rax
mov rax, r12
add rsp, 0x70
pop r12
jmp rax

Function at 0x60006474
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x60006264
Function at 0x6000955c
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 0x6000958c
xor eax, eax
jmp 0x6000964f
mov rbp, rbx
cmp word [rax], si
je 0x600095b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x60009598
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x60009594
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.600094ac
movsxd r14, eax
test eax, eax
jne 0x600095ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x60009585
mov rcx, r14
call fcn.6000a410
mov rdi, rax
test rax, rax
jne 0x60009608
xor ecx, ecx
call fcn.60007b3c
jmp 0x600095e4
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.600094ac
test eax, eax
jne 0x60009639
mov rcx, rdi
call fcn.60007b3c
jmp 0x60009643
xor ecx, ecx
call fcn.60007b3c
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 0x6000cb1c
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.600085b0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x6000cba6
cmp byte [rbp - 0x21], r15b
je 0x6000cba1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x6000cbdc
call fcn.6000ac30
test eax, eax
jne 0x6000cbc8
cmp byte [rbp - 0x21], r15b
je 0x6000cbc0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x6000cbdc
cmp byte [rbp - 0x21], r15b
je 0x6000cbd9
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.60007b8c
test eax, eax
jne 0x6000cc7c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.600085b0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x6000cc1b
cmp byte [rbp - 0x21], r15b
je 0x6000cc50
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x6000cc50
call fcn.6000ac30
test eax, eax
jne 0x6000cc3c
cmp byte [rbp - 0x21], r15b
je 0x6000cc35
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x6000cc50
cmp byte [rbp - 0x21], r15b
je 0x6000cc4d
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.60007b8c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x6000cc7c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x6000cc7f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x6000cc8d
mov rcx, rdi
call fcn.60007b3c
cmp byte [rbp + 0x3f], r15b
je 0x6000cc9c
mov rcx, qword [rbp + 0x27]
call fcn.60007b3c
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 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14006e4e0]
mov dword [rax], 1
mov rax, qword [0x14006e4f0]
mov dword [rax], 1
mov rax, qword [0x14006e500]
mov dword [rax], 1
mov rax, qword [0x14006e490]
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 0x140049f80
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.1400519c0
sub rsp, rax
xor eax, eax
xor edx, edx
lea rbx, [rsp + 0x20]
lea rsi, [rsp + 0x70]
mov word [rsp + 0x70], ax
mov rcx, rbx
mov word [rsp + 0x20], dx
call fcn.140049ec0
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140049fd6
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret