joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
test rdx, 0xffffffffffff0000
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
jne 0x405aac
cmp dword [rcx + 0xa8], 0
jne 0x405aac
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.00408740
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.00405a28
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x410584
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x4105de
call fcn.00408740
mov r8d, pe_nt_image_headers64
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x4105de
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x410600
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.00410004
test rdi, rdi
mov esi, eax
je 0x4105fe
test rbx, rbx
je 0x4105fe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x41247c
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], 0
jne 0x4124b2
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x412569
call fcn.00408a38
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x4124d1
mov ecx, 0x80004005
call fcn.004011b0
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + 0x118]
mov rdx, rsi
mov rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x50]
mov rcx, rdi
call fcn.0042d1f0
test eax, eax
je 0x41253c
cmp eax, 0xc
je 0x412536
cmp eax, 0x16
je 0x412530
cmp eax, 0x22
je 0x412530
cmp eax, 0x50
je 0x41253c
call fcn.00411be4
int3
call fcn.00411be4
int3
call fcn.00411b9c
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x412567
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.oledlg.dll_OleUIBusyA + 8]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x42ede7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0045ebb0]
jne 0x42a0ca
rol rcx, 0x10
test cx, 0xffff
jne 0x42a0c6
repz ret
ror rcx, 0x10
jmp 0x42ed40
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x00463f60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x00464058]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x42edc5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x00463f60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x42ede7
mov rax, qword [rsp + 0x88]
mov qword [0x00464058], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x00463ff8], rax
mov rax, qword [0x00464058]
mov qword [0x00463ed0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x00463fe0], rax
mov dword [0x00463ec0], 0xc0000409
mov dword [0x00463ec4], 1
mov rax, qword [0x0045ebb0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0045ebb8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x00463f58], eax
mov ecx, 1
call fcn.0043aec0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0044d1d8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x00463f58], 0
jne 0x42ee6e
mov ecx, 1
call fcn.0043aec0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x43aed0
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.0042ef00
xor ebx, ebx
cmp qword [0x00464c40], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x43b001
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x43af33
xor eax, eax
jmp 0x43b0e1
lea rdx, [0x0044da78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x43af2c
mov rcx, rax
call fcn.0042ee90
lea rdx, [0x0044da68]
mov rcx, rbp
mov qword [0x00464c40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0042ee90
lea rdx, [0x0044da50]
mov rcx, rbp
mov qword [0x00464c48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0042ee90
lea rcx, [rsp + 0x30]
mov qword [0x00464c50], rax
call fcn.0042a350
test eax, eax
je 0x43afb7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.0042fce0
cmp dword [rsp + 0x30], 2
jne 0x43b001
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0042ee90
test rax, rax
mov qword [0x00464c60], rax
je 0x43b001
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0042ee90
mov qword [0x00464c58], rax
mov rcx, qword [0x00464c58]
cmp rcx, rsi
je 0x43b093
cmp qword [0x00464c60], rsi
je 0x43b093
call fcn.0042ef60
call rax
test rax, rax
mov rbp, rax
je 0x43b05e
mov rcx, qword [0x00464c60]
call fcn.0042ef60
lea rcx, [rsp + 0x38]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x43b05e
test byte [rsp + 0x48], 1
jne 0x43b093
lea rcx, [rsp + 0x34]
call fcn.0042a3a0
test eax, eax
je 0x43b080
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.0042fce0
cmp dword [rsp + 0x34], 4
jb 0x43b08d
bts edi, 0x15
jmp 0x43b0c7
bts edi, 0x12
jmp 0x43b0c7
mov rcx, qword [0x00464c48]
cmp rcx, rsi
je 0x43b0c7
call fcn.0042ef60
call rax
test rax, rax
mov rbx, rax
je 0x43b0c7
mov rcx, qword [0x00464c50]
cmp rcx, rsi
je 0x43b0c7
call fcn.0042ef60
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x00464c40]
call fcn.0042ef60
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x444780
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x0045ebb0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.0040305c
mov rax, qword [rsp + 0x60]
lea rcx, [0x0044f788]
mov qword [rax], rcx
mov byte [rsp + 0x30], 0x57
mov byte [rsp + 0x31], 0x69
mov byte [rsp + 0x32], 0x6e
mov byte [rsp + 0x33], 0x68
mov byte [rsp + 0x34], 0x74
mov byte [rsp + 0x35], 0x74
mov byte [rsp + 0x36], 0x70
mov byte [rsp + 0x37], 0x2e
mov byte [rsp + 0x38], 0x64
mov byte [rsp + 0x39], 0x6c
mov byte [rsp + 0x3a], 0x6c
mov byte [rsp + 0x3b], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x00464de8], rax
xor r8d, r8d
xor edx, edx
mov ecx, 0x40000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [rsp + 0x20], rax
mov r8d, 0x1000
mov edx, 8
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [0x00464e08], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.0042a0b0
add rsp, 0x58
ret
Function at 0x140001b58
Capabilities:
Parse pe header

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

Function at 0x140001abc
Capabilities:
Parse pe header

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

Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002250]
mov r8d, 2
lea r9, str._J_ms8m
mov qword [rsp + 0x38], rax
lea rax, [0x140002240]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1406b8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406b81df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406b8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406b806f
add dl, dl
jne 0x1406b8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406b80f6
xor eax, eax
add dl, dl
jne 0x1406b80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406b81ad
add dl, dl
jne 0x1406b80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406b80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406b807e
mov eax, 1
add dl, dl
jne 0x1406b8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406b8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406b80fb
sub eax, ebx
mov ebx, 1
jne 0x1406b814c
mov ecx, 1
add dl, dl
jne 0x1406b812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406b813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406b8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406b807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406b8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406b8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406b815d
cmp eax, 0x7d00
jae 0x1406b819b
cmp eax, 0x500
jb 0x1406b8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406b807e
cmp eax, 0x7f
ja 0x1406b819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406b807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406b81d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406b807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001440
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x178
mov rax, qword [0x140027340]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x20], rax
call fcn.140001210
test eax, eax
je 0x1400014ac
lea rdx, str.ExpandEnvironmentStringsA
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
mov r8d, 0x104
lea rdx, [rsp + 0x50]
lea rcx, str._userprofile_DesktopHonours_ProjectMalware_DevMalwares
call qword [rsp + 0x28]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.140001240
lea rdx, [0x1400272ec]
lea rcx, [rsp + 0x30]
call fcn.140009120
lea rdx, str.dynamic_load_shell.exe
lea rcx, [rsp + 0x30]
call fcn.140009080
lea rcx, [rsp + 0x30]
call fcn.140009258
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140001720
add rsp, 0x178
ret

Function at 0x140002100
Capabilities:
Parse pe header

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

Function at 0x14000a0bc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140009eb8
Function at 0x14000d8f0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14000d906
mov al, 1
jmp 0x14000d966
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14000d917
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14000d964
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001248c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000d964
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14000d964
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000d964
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14000d966
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001196c
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 0x14001199c
xor eax, eax
jmp 0x140011a5f
mov rbp, rbx
cmp word [rax], si
je 0x1400119c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400119a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400119a4
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.14001188c
movsxd r14, eax
test eax, eax
jne 0x1400119ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140011995
mov rcx, r14
call fcn.14000db8c
mov rdi, rax
test rax, rax
jne 0x140011a18
xor ecx, ecx
call fcn.14000b054
jmp 0x1400119f4
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.14001188c
test eax, eax
jne 0x140011a49
mov rcx, rdi
call fcn.14000b054
jmp 0x140011a53
xor ecx, ecx
call fcn.14000b054
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 0x1400146dc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140028920]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140014733
cmp word [rdx], r13w
jne 0x140014733
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140014738
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001485d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001487e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140014771
mov rdx, r9
mov word [rbx], cx
jmp 0x140014798
cmp r9, r8
jae 0x1400147a8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140014752
jmp 0x14001485d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140014852
cmp dword [rsp + 0x80], esi
je 0x140014852
lea r8, [0x140028920]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001482a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400147fa
mov word [rbx], r13w
jmp 0x14001485a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140014807
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001485a
cmp word [rsp + 0x70], r13w
jne 0x140014837
cmp rbx, r14
je 0x1400147f4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140014414
cmp word [rsp + 0x70], r13w
je 0x14001485d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140028920]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140014857
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001485d
Function at 0x1400181b8
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.14000ffb4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140018242
cmp byte [rbp - 0x21], r15b
je 0x14001823d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140018278
call fcn.14000b2a4
test eax, eax
jne 0x140018264
cmp byte [rbp - 0x21], r15b
je 0x14001825c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140018278
cmp byte [rbp - 0x21], r15b
je 0x140018275
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.14000fe38
test eax, eax
jne 0x140018318
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000ffb4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400182b7
cmp byte [rbp - 0x21], r15b
je 0x1400182ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400182ec
call fcn.14000b2a4
test eax, eax
jne 0x1400182d8
cmp byte [rbp - 0x21], r15b
je 0x1400182d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400182ec
cmp byte [rbp - 0x21], r15b
je 0x1400182e9
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.14000fe38
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140018318
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001831b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140018329
mov rcx, rdi
call fcn.14000b054
cmp byte [rbp + 0x3f], r15b
je 0x140018338
mov rcx, qword [rbp + 0x27]
call fcn.14000b054
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