joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140130e3c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d8]
sub rsp, 0x2d8
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, r9
mov qword [rsp + 0x40], r9
mov r13, r8
mov qword [rsp + 0x50], rdx
mov r12, rcx
mov r14, qword [rbp + 0x248]
xor ecx, ecx
mov bl, cl
mov r15d, dword [rbp + 0x240]
test r15d, r15d
jg 0x140130e9a
xor al, al
jmp 0x140131020
xor r9d, r9d
mov r8, rdx
mov rdx, r12
lea rcx, [rsp + 0x58]
call fcn.1401254e8
nop
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x70]
call fcn.14013b230
lea rcx, [rsp + 0x58]
call fcn.140058574
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140131012
xor ecx, ecx
test byte [rsp + 0x70], 0x10
je 0x140130f16
cmp word [rbp - 0x64], 0x2e
jne 0x140130f16
movzx eax, word [rbp - 0x62]
test ax, ax
je 0x140130fd7
cmp ax, 0x2e
jne 0x140130f16
cmp word [rbp - 0x60], cx
je 0x140130fd7
xor r9d, r9d
lea r8, [rbp - 0x64]
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.1401254e8
nop
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x140130f56
mov qword [rsp + 0x48], rsi
mov rax, qword [rcx]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x30]
call qword [rax + 0x10]
test al, al
je 0x140130ff5
test byte [rsp + 0x70], 0x10
je 0x140130fc8
lea esi, [r15 - 1]
lea rdx, str..git
lea rcx, [rbp - 0x64]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140130fcd
lea rdx, str..svn
lea rcx, [rbp - 0x64]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140130fcd
lea rcx, [rsp + 0x30]
call fcn.140058574
mov rcx, rax
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], esi
mov r9, qword [rsp + 0x40]
mov r8, r13
mov rdx, qword [rsp + 0x50]
call fcn.140130e3c
movzx ebx, bl
test al, al
mov eax, 1
cmovne ebx, eax
cmp byte [r14], 0
jne 0x140130ffd
jmp 0x140130fcd
mov ebx, 1
lea rcx, [rsp + 0x30]
call fcn.140120ddc
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
test eax, eax
je 0x140131007
mov rsi, qword [rsp + 0x40]
jmp 0x140130eeb
mov eax, 1
mov byte [r14], al
lea rcx, [rsp + 0x30]
call fcn.140120ddc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140131014
xor bl, bl
lea rcx, [rsp + 0x58]
call fcn.140120ddc
mov al, bl
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140139b10
add rsp, 0x2d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140131580
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x480
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x60]
call fcn.14013b230
lea rdx, [rsp + 0x60]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x1401315dc
mov rcx, rbx
call fcn.140120d54
jmp 0x140131674
cmp edi, 0x208
jae 0x14013161d
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140120be0
jmp 0x140131674
lea rcx, [rsp + 0x50]
call fcn.140120d54
nop
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140121228
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, edi
ja 0x140131661
lea rcx, [rsp + 0x50]
call fcn.14012148c
test al, al
jne 0x140131661
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140120b90
jmp 0x14013166a
mov rcx, rbx
call fcn.140120d54
nop
lea rcx, [rsp + 0x50]
call fcn.140120ddc
mov rax, rbx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140139b10
mov rbx, qword [rsp + 0x498]
add rsp, 0x480
pop rdi
ret

Function at 0x1401317a0
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rdx
xor ebx, ebx
test rcx, rcx
je 0x14013186b
cmp word [rcx], bx
je 0x14013186b
mov qword [rax - 0x20], rbx
mov qword [rax - 0x28], rbx
mov qword [rax - 0x30], rbx
mov qword [rax - 0x38], rbx
mov qword [rax - 0x40], rbx
mov qword [rax - 0x48], rbx
xor r9d, r9d
lea r8, str.:Zone.Identifier
mov rdx, rcx
lea rcx, [rax - 0x18]
call fcn.140120be0
nop
lea rcx, [rsp + 0x50]
call fcn.140058574
mov rcx, rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14013185d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.140058574
mov r9, rax
lea r8d, [rbx + 3]
lea rdx, str.ZoneId
lea rcx, str.ZoneTransfer
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [rdi], eax
mov bl, 1
lea rcx, [rsp + 0x50]
call fcn.140120ddc
mov al, bl
jmp 0x14013186d
xor al, al
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140131a3c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r14d, r14d
mov rdi, rcx
test rcx, rcx
je 0x140131b17
cmp word [rcx], r14w
je 0x140131b17
lea r15d, [r14 + 0x5c]
mov edx, r15d
movzx esi, r15w
call fcn.14013a9b0
mov edx, r15d
mov rcx, rdi
mov rbp, rax
call fcn.14013bd50
mov rbx, rax
test rax, rax
je 0x140131ad1
cmp rax, rbp
jne 0x140131aa7
add rbx, 2
cmp word [rbx], r14w
je 0x140131ace
test rbx, rbx
je 0x140131ad1
movzx esi, word [rbx]
mov word [rbx], r14w
cmp si, r15w
jne 0x140131abb
cmp word [rbx + 2], r14w
jne 0x140131add
mov rcx, rdi
call fcn.140130c1c
test al, al
je 0x140131add
mov word [rbx], si
mov al, 1
jmp 0x140131b19
mov rbx, r14
mov rcx, rdi
call fcn.140130c1c
test al, al
jne 0x140131aca
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140131b0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov al, r14b
test rbx, rbx
je 0x140131b19
cmp ecx, 5
je 0x140131b12
mov rcx, rdi
call fcn.140131a3c
jmp 0x140131b12
mov al, 1
test rbx, rbx
je 0x140131b19
mov word [rbx], si
jmp 0x140131b19
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140132410
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor r13d, r13d
mov r14d, r9d
mov dword [rbp - 0x10], r13d
mov edi, r8d
mov r15, rdx
mov rax, rcx
mov ebx, r13d
mov r12d, r13d
mov esi, r13d
cmp r9d, 0x4b0
jne 0x14013246f
mov r13, rdx
test r8d, r8d
js 0x140132460
add edi, edi
jmp 0x1401324eb
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
add edi, edi
jmp 0x1401324e7
mov qword [rsp + 0x38], r13
mov r9d, edi
mov qword [rsp + 0x30], r13
mov r8, r15
mov dword [rsp + 0x28], r13d
xor edx, edx
mov ecx, r14d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r13, eax
test eax, eax
jns 0x1401324a5
mov ebx, 0xfffffffe
jmp 0x1401325da
mov rcx, r13
call fcn.140120104
mov r12, rax
test rax, rax
jne 0x1401324bd
lea ebx, [rax - 3]
jmp 0x1401325da
and qword [rsp + 0x38], rbx
mov r9d, edi
and qword [rsp + 0x30], rbx
mov r8, r15
mov dword [rsp + 0x28], r13d
xor edx, edx
mov ecx, r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
mov r13, rbx
mov rax, qword [rbp + 0x40]
test edi, edi
js 0x14013249b
and qword [rsp + 0x30], rbx
mov r15d, 2
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], r15d
mov rcx, rax
lea r8d, [r15 - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1401325d7
cmp byte [rbp + 0x60], bl
je 0x1401325a9
and dword [rbp - 0x18], ebx
mov word [rbp - 0x20], 0xbbef
mov byte [rbp - 0x1e], 0xbf
mov word [rbp + 0x58], 0xfeff
cmp r14d, 0x4b0
je 0x140132583
cmp r14d, 0xfde9
jne 0x1401325a9
and qword [rsp + 0x20], rbx
lea r9, [rbp - 0x18]
lea ebx, [r15 + 1]
mov rcx, rsi
mov r8d, ebx
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14013257c
cmp dword [rbp - 0x18], ebx
je 0x1401325a9
mov ebx, 0xfffffffc
jmp 0x1401325da
and qword [rsp + 0x20], rbx
lea r9, [rbp - 0x18]
mov r8d, r15d
lea rdx, [rbp + 0x58]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14013257c
cmp dword [rbp - 0x18], r15d
jne 0x14013257c
mov ebx, r15d
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x10]
mov r8d, edi
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401325d0
cmp edi, dword [rbp - 0x10]
jne 0x1401325d0
add ebx, dword [rbp - 0x10]
jmp 0x1401325da
mov ebx, 0xfffffffb
jmp 0x1401325da
or ebx, 0xffffffff
mov rdi, qword [rbp + 0x68]
test rdi, rdi
je 0x1401325eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
lea rcx, [rsi - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1401325fe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12, r12
je 0x14013260b
mov rcx, r12
call fcn.14012008c
mov eax, ebx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140132628
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor r15d, r15d
mov r14, r8
movzx esi, r15b
mov rdi, rcx
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x40], r15
test r8, r8
je 0x140132769
cmp word [r8], r15w
je 0x140132769
test rcx, rcx
je 0x140132769
mov ebx, 0xf003f
test rdx, rdx
je 0x1401326b9
cmp word [rdx], r15w
je 0x1401326b9
lea rax, [rsp + 0x50]
mov r9d, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140132769
mov rdi, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov r9d, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140132754
mov ebx, r15d
lea r12d, [rax + 1]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], r15
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], r15
xor edx, edx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140132737
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x60]
xor edx, edx
call fcn.140132628
test al, al
je 0x140132737
add ebx, r12d
cmp ebx, 0xff
jb 0x1401326e0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
cmove esi, r12d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140132764
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, sil
jmp 0x14013276b
xor al, al
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140139b10
add rsp, 0x280
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14013278c
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x198]
sub rsp, 0x298
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x180], rax
and qword [rsp + 0x48], 0
mov r13, r8
and qword [rsp + 0x50], 0
mov r15, rcx
mov qword [rsp + 0x60], r9
or edi, 0xffffffff
mov qword [rsp + 0x58], rdx
mov r12b, 1
mov qword [rsp + 0x68], rcx
call fcn.140123504
xor esi, esi
mov byte [rsp + 0x40], al
mov cl, al
neg al
sbb r14d, r14d
neg r14d
inc r14d
test r12b, r12b
je 0x140132928
mov ebx, 0x20019
test cl, cl
je 0x14013281c
mov eax, esi
neg eax
sbb ebx, ebx
and ebx, 0x100
add ebx, 0x20119
mov rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140132919
test edi, edi
lea rcx, [rsp + 0x70]
mov r8d, 0x208
cmovns eax, edi
xor edx, edx
mov edi, eax
xor r15d, r15d
call fcn.14013b230
xor eax, eax
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x44], 0x103
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140132909
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x70]
inc r15d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401328e6
inc edi
test r13, r13
je 0x1401328db
mov r8, qword [rsp + 0x60]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
call r13
test al, al
je 0x140132906
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x38], 0
mov edx, r15d
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
jmp 0x140132876
xor r12b, r12b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x68]
mov cl, byte [rsp + 0x40]
inc esi
cmp esi, r14d
jl 0x1401327f8
mov eax, edi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140139b10
add rsp, 0x298
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140132b30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov r14, rcx
mov qword [rbp + 0x38], rcx
xor r12d, r12d
mov rcx, r9
mov dword [rbp + 0x30], r12d
mov rbx, r9
mov rsi, r8
mov rdi, rdx
or r15d, 0xffffffff
call fcn.1401211c4
test rdi, rdi
je 0x140132c33
cmp word [rdi], r12w
je 0x140132c33
mov rdx, rdi
test r14, r14
jne 0x140132c03
mov r9, rbx
mov dword [rsp + 0x20], r12d
mov r8, rsi
mov rcx, 0xffffffff80000001
call fcn.140132b30
test eax, eax
jns 0x140132cdb
call fcn.140123504
mov r14b, al
mov r15, 0xffffffff80000002
neg al
mov r9, rbx
mov r8, rsi
mov rdx, rdi
sbb ecx, ecx
and ecx, 0x100
mov dword [rsp + 0x20], ecx
mov rcx, r15
call fcn.140132b30
test eax, eax
jns 0x140132cdb
test r14b, r14b
je 0x140132cdb
mov r9, rbx
mov dword [rsp + 0x20], 0x200
mov r8, rsi
mov rdx, rdi
mov rcx, r15
call fcn.140132b30
jmp 0x140132cdb
mov r9d, dword [rbp + 0x50]
lea rax, [rbp + 0x38]
or r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rbp + 0x38]
test eax, eax
cmovne rcx, r12
mov qword [rbp + 0x38], rcx
jmp 0x140132c37
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140132cd8
lea rax, [rbp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140132cc4
mov edx, dword [rbp + 0x30]
mov rcx, rbx
shr rdx, 1
add rdx, 2
call fcn.140121228
mov rdi, rax
test rax, rax
je 0x140132cc4
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rbx
test eax, eax
jne 0x140132cbf
mov edx, dword [rbp + 0x30]
xor r8d, r8d
shr rdx, 1
call fcn.1401219f8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r15d, eax
jmp 0x140132cc4
call fcn.1401211c4
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140132cd8
cmp rcx, r14
je 0x140132cd8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r15d
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140132cf4
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
or rbx, 0xffffffffffffffff
mov qword [r11 + 8], rcx
xor r15d, r15d
mov rsi, r9
mov r14, r8
mov rbp, rcx
mov edi, ebx
test rdx, rdx
je 0x140132d5c
cmp word [rdx], r15w
je 0x140132d5c
mov r9d, dword [rsp + 0x70]
lea rax, [r11 + 8]
or r9d, 0x20006
mov qword [r11 - 0x28], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
mov edi, eax
cmovne rcx, r15
mov qword [rsp + 0x50], rcx
test rcx, rcx
je 0x140132dbd
test rsi, rsi
je 0x140132d9d
inc rbx
cmp word [rsi + rbx*2], r15w
jne 0x140132d66
cmp rbx, 0x7ffffffe
jae 0x140132dad
lea eax, [rbx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x140132da6
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
mov edi, eax
test rcx, rcx
je 0x140132dbd
cmp rcx, rbp
je 0x140132dbd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x58]
mov eax, edi
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140138124
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
test rdx, rdx
je 0x140138162
mov r9d, edx
lea r8, str.0x_08X
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140120394
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140139b10
add rsp, 0x50
pop rbx
ret

Function at 0x14013817c
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov rdx, rcx
lea rcx, str.ConEmuHWND
call fcn.140138124
test rbx, rbx
je 0x1401381dd
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r9d, dword [rsp + 0x20]
lea r8, [0x140167f50]
mov edx, 0x10
lea rcx, [rsp + 0x28]
call fcn.140120394
lea rdx, [rsp + 0x28]
jmp 0x1401381df
xor edx, edx
lea rcx, str.ConEmuPID
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140139b10
add rsp, 0x50
pop rbx
ret

Function at 0x140138200
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdx, rcx
lea rcx, str.ConEmuDrawHWND
call fcn.140138124
mov rdx, rbx
lea rcx, str.ConEmuBackHWND
add rsp, 0x20
pop rbx
jmp fcn.140138124
Function at 0x140004c10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x140004cd3
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x140004c44
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140004cd6
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x140004c8f
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140004c93
test rax, rax
je 0x140004cd3
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x140004cc4
cmp rdx, rax
jb 0x140004cb0
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140007740
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140007963
xor edx, edx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], dx
jne 0x140007766
test rax, rax
je 0x1400077a4
xor ecx, ecx
nop word [rax + rax]
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x140007963
cmp r8w, 0x2f
je 0x140007963
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x140007780
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.140007070
mov rsi, rax
test rax, rax
je 0x140007895
mov qword [rsp + 0x50], r14
call fcn.140007e80
mov r14, rax
test rax, rax
je 0x140007882
mov rcx, rsi
call fcn.140004ee0
test eax, eax
je 0x14000786b
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x140007817
mov r8, rbx
mov rcx, rsi
call fcn.140053540
test eax, eax
je 0x14000783f
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x140007810
jmp 0x14000784e
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.140008050
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x140007879
mov rcx, rsi
call fcn.140004f30
test eax, eax
je 0x140007879
mov rbp, rsi
xor esi, esi
jmp 0x140007879
mov rdx, rsi
mov rcx, r14
call fcn.140008050
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x14000792f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x140007938
mov rcx, rbx
call fcn.140008a30
mov rdi, rax
test rax, rax
je 0x140007938
mov ecx, 0x37e4
call fcn.140008540
test eax, eax
je 0x1400078cd
call fcn.140007b70
jmp 0x1400078d2
call fcn.140007e80
mov rbx, rax
test rax, rax
je 0x140007926
mov rdx, rdi
mov rcx, rax
call fcn.140008050
mov rbp, rax
test rax, rax
je 0x14000791d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400078ff
test al, 0x50
je 0x14000791d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140007912
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x140007938
xor ecx, ecx
jmp 0x140007945
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000794b
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x140007e80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140007ee2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140007ed7
cmp edi, eax
jb 0x140007ed7
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret