joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012323c
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 - 0x1b8]
sub rsp, 0x2b8
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r12, r9
mov r15d, r8d
mov r14, rdx
mov rsi, rcx
mov r9d, 1
mov r8b, r9b
call fcn.14012341c
xor r13d, r13d
test al, al
je 0x1401232b1
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call fcn.1401186ec
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.140114ec0
mov al, 1
jmp 0x1401233f7
test r15d, r15d
jg 0x1401232bd
xor al, al
jmp 0x1401233f7
lfence
xor r8d, r8d
lea rdx, [0x14018809c]
mov rcx, rsi
call fcn.1401186ec
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140114b38
nop
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x50]
call fcn.14012d4b0
lea rcx, [rsp + 0x20]
call fcn.140054ee8
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
lea rcx, [rax - 1]
mov bl, r13b
cmp rcx, 0xfffffffffffffffd
ja 0x1401233eb
test byte [rsp + 0x50], 0x10
je 0x1401233cb
cmp word [rsp + 0x7c], 0x2e
jne 0x140123353
movzx eax, word [rsp + 0x7e]
test ax, ax
je 0x1401233cb
cmp ax, 0x2e
jne 0x140123353
cmp word [rbp - 0x80], r13w
je 0x1401233cb
xor r8d, r8d
lea rdx, [rsp + 0x7c]
mov rcx, rsi
call fcn.1401186ec
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140114ec0
lea ebx, [r15 - 1]
lea rdx, str..git
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1401233a7
lea rdx, str..svn
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1401233aa
mov ebx, r13d
lea rcx, [rsp + 0x20]
call fcn.140054ee8
mov rcx, rax
mov r9, r12
mov r8d, ebx
mov rdx, r14
call fcn.14012323c
mov bl, al
test al, al
jne 0x1401233e1
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140123325
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rsp + 0x20]
call fcn.140114ca4
mov al, bl
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14012bda0
add rsp, 0x2b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14012379c
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 0x140123867
cmp word [rcx], bx
je 0x140123867
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.140114ba8
nop
lea rcx, [rsp + 0x50]
call fcn.140054ee8
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 0x140123859
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.140054ee8
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.140114ca4
mov al, bl
jmp 0x140123869
xor al, al
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x140123a38
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 0x140123b13
cmp word [rcx], r14w
je 0x140123b13
lea r15d, [r14 + 0x5c]
mov edx, r15d
movzx esi, r15w
call fcn.14012cc40
mov edx, r15d
mov rcx, rdi
mov rbp, rax
call fcn.14012dd3c
mov rbx, rax
test rax, rax
je 0x140123acd
cmp rax, rbp
jne 0x140123aa3
add rbx, 2
cmp word [rbx], r14w
je 0x140123aca
test rbx, rbx
je 0x140123acd
movzx esi, word [rbx]
mov word [rbx], r14w
cmp si, r15w
jne 0x140123ab7
cmp word [rbx + 2], r14w
jne 0x140123ad9
mov rcx, rdi
call fcn.140123044
test al, al
je 0x140123ad9
mov word [rbx], si
mov al, 1
jmp 0x140123b15
mov rbx, r14
mov rcx, rdi
call fcn.140123044
test al, al
jne 0x140123ac6
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140123b07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov al, r14b
test rbx, rbx
je 0x140123b15
cmp ecx, 5
je 0x140123b0e
mov rcx, rdi
call fcn.140123a38
jmp 0x140123b0e
mov al, 1
test rbx, rbx
je 0x140123b15
mov word [rbx], si
jmp 0x140123b15
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 0x14012426c
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 - 0x18], r13d
mov edi, r8d
mov r15, rdx
mov rax, rcx
mov ebx, r13d
mov r12d, r13d
mov esi, r13d
cmp r9d, 0x4b0
jne 0x1401242cb
mov r13, rdx
test r8d, r8d
js 0x1401242bc
add edi, edi
jmp 0x14012434d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
add edi, edi
jmp 0x140124349
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 0x140124301
mov ebx, 0xfffffffe
jmp 0x14012443f
lfence
mov rcx, r13
call fcn.140113e8c
mov r12, rax
test rax, rax
jne 0x14012431c
lea ebx, [rax - 3]
jmp 0x14012443f
lfence
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 0x1401242f7
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 0x14012443c
cmp byte [rbp + 0x60], bl
je 0x14012440b
and dword [rbp - 0x1c], ebx
mov word [rbp - 0x20], 0xbbef
mov byte [rbp - 0x1e], 0xbf
mov word [rbp + 0x58], 0xfeff
cmp r14d, 0x4b0
je 0x1401243e5
cmp r14d, 0xfde9
jne 0x14012440b
and qword [rsp + 0x20], rbx
lea r9, [rbp - 0x1c]
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 0x1401243de
cmp dword [rbp - 0x1c], ebx
je 0x14012440b
mov ebx, 0xfffffffc
jmp 0x14012443f
and qword [rsp + 0x20], rbx
lea r9, [rbp - 0x1c]
mov r8d, r15d
lea rdx, [rbp + 0x58]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401243de
cmp dword [rbp - 0x1c], r15d
jne 0x1401243de
mov ebx, r15d
lfence
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x18]
mov r8d, edi
mov rdx, r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140124435
cmp edi, dword [rbp - 0x18]
jne 0x140124435
add ebx, dword [rbp - 0x18]
jmp 0x14012443f
mov ebx, 0xfffffffb
jmp 0x14012443f
or ebx, 0xffffffff
mov rdi, qword [rbp + 0x68]
test rdi, rdi
je 0x140124450
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
lea rcx, [rsi - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140124463
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12, r12
je 0x140124470
mov rcx, r12
call fcn.140113e18
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 0x14012448c
Capabilities:
Delete registry key
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 [0x1401f5698]
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 0x1401245cd
cmp word [r8], r15w
je 0x1401245cd
test rcx, rcx
je 0x1401245cd
mov ebx, 0xf003f
test rdx, rdx
je 0x14012451d
cmp word [rdx], r15w
je 0x14012451d
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 0x1401245cd
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 0x1401245b8
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 0x14012459b
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x60]
xor edx, edx
call fcn.14012448c
test al, al
je 0x14012459b
add ebx, r12d
cmp ebx, 0xff
jb 0x140124544
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 0x1401245c8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, sil
jmp 0x1401245cf
xor al, al
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14012bda0
add rsp, 0x280
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1401245f0
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 [0x1401f5698]
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.140116890
xor esi, esi
mov byte [rsp + 0x40], al
mov cl, al
neg al
sbb r14d, r14d
neg r14d
inc r14d
test r12b, r12b
je 0x14012478c
mov ebx, 0x20019
test cl, cl
je 0x140124680
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 0x14012477d
test edi, edi
lea rcx, [rsp + 0x70]
mov r8d, 0x208
cmovns eax, edi
xor edx, edx
mov edi, eax
xor r15d, r15d
call fcn.14012d4b0
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 0x14012476d
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 0x14012474a
inc edi
test r13, r13
je 0x14012473f
mov r8, qword [rsp + 0x60]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
call r13
test al, al
je 0x14012476a
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 0x1401246da
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 0x14012465c
mov eax, edi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14012bda0
add rsp, 0x298
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1401247b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov r14, rdx
mov r15, rcx
or ebx, 0xffffffff
xor edi, edi
mov qword [rbp - 0x20], rdi
mov r12b, 1
call fcn.140116890
mov r13b, al
neg al
sbb esi, esi
neg esi
inc esi
test r12b, r12b
je 0x14012492f
mov r9d, 0x20019
test r13b, r13b
je 0x140124825
mov eax, edi
neg eax
sbb r9d, r9d
and r9d, 0x100
add r9d, 0x20119
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14012491f
lea rcx, [rbp - 0x18]
call fcn.140114c40
nop
mov edx, 0x4000
lea rcx, [rbp - 0x18]
call fcn.140114fb4
mov r14, rax
xor ecx, ecx
mov r15d, ecx
mov dword [rbp - 0x24], ecx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
lea rax, [rbp - 0x24]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor edx, edx
mov dword [rbp - 0x28], 0x3fff
lea r9, [rbp - 0x28]
mov r8, r14
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor edx, edx
test eax, eax
mov ebx, eax
jne 0x1401248fd
inc r15d
inc ebx
mov eax, 0x3fff
mov ecx, eax
cmp dword [rbp - 0x28], eax
cmovb ecx, dword [rbp - 0x28]
mov word [r14 + rcx*2], dx
mov rax, qword [rbp + 0x58]
test rax, rax
je 0x1401248da
mov r9, qword [rbp + 0x60]
mov r8d, dword [rbp - 0x24]
mov rdx, r14
mov rcx, qword [rbp - 0x20]
call rax
xor edx, edx
test al, al
je 0x1401248fa
mov dword [rbp - 0x24], edx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
lea rax, [rbp - 0x24]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov edx, r15d
jmp 0x140124882
mov r12b, dl
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp byte [rbp + 0x68], cl
lea rcx, [rbp - 0x18]
jne 0x14012492a
call fcn.140114ca4
mov r14, qword [rbp + 0x50]
mov r15, qword [rbp + 0x48]
inc edi
cmp edi, esi
jge 0x14012492f
jmp 0x1401247fc
call fcn.140114ca4
mov eax, ebx
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140124944
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov rsi, rcx
mov qword [rbp + 0x48], rcx
xor r13d, r13d
mov rcx, r9
mov dword [rbp + 0x40], r13d
mov rdi, r9
mov r14, r8
mov rbx, rdx
or r15d, 0xffffffff
call fcn.140114fa4
test rbx, rbx
je 0x140124a4e
cmp word [rbx], r13w
je 0x140124a4e
test rsi, rsi
jne 0x140124a1b
mov r9, rdi
mov dword [rsp + 0x20], r13d
mov r8, r14
mov rdx, rbx
mov rcx, 0xffffffff80000001
call fcn.140124944
test eax, eax
jns 0x140124a11
lfence
call fcn.140116890
mov r12b, al
mov r9, rdi
neg al
mov r8, r14
mov rdx, rbx
sbb ecx, ecx
and ecx, 0x100
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000002
call fcn.140124944
test eax, eax
jns 0x140124a11
test r12b, r12b
je 0x140124a1b
lfence
mov r9, rdi
mov dword [rsp + 0x20], 0x200
mov r8, r14
mov rdx, rbx
mov rcx, 0xffffffff80000002
call fcn.140124944
test eax, eax
jle 0x140124a1b
lfence
jmp 0x140124af1
mov r9d, dword [rbp + 0x60]
lea rax, [rbp + 0x48]
or r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rbp + 0x48]
test eax, eax
cmovne rcx, r13
mov qword [rbp + 0x48], rcx
jmp 0x140124a52
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140124aee
lea rax, [rbp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140124ada
mov edx, dword [rbp + 0x40]
mov rcx, rdi
shr edx, 1
add edx, 2
call fcn.140114fb4
mov rbx, rax
test rax, rax
je 0x140124ada
mov eax, dword [rbp + 0x40]
xor r9d, r9d
shr rax, 1
xor r8d, r8d
mov rdx, r14
mov word [rbx + rax*2], r13w
lea rax, [rbp + 0x40]
mov rcx, qword [rbp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140124ad2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r15d, eax
jmp 0x140124ada
mov rcx, rdi
call fcn.140114fa4
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140124aee
cmp rcx, rsi
je 0x140124aee
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r15d
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140124b0c
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
or ebx, 0xffffffff
mov qword [r11 + 8], rcx
xor r14d, r14d
mov rsi, r9
mov rbp, r8
mov rdi, rcx
test rdx, rdx
je 0x140124b6c
cmp word [rdx], r14w
je 0x140124b6c
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 ebx, eax
cmovne rcx, r14
mov qword [rsp + 0x50], rcx
test rcx, rcx
je 0x140124bc8
test rsi, rsi
je 0x140124ba8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
mov rdx, rbp
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x140124bb1
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
test rcx, rcx
je 0x140124bc8
cmp rcx, rdi
je 0x140124bc8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14012a08c
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
test rdx, rdx
je 0x14012a0ca
mov r9d, edx
lea r8, str.0x_08X
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1401140d0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14012bda0
add rsp, 0x50
pop rbx
ret

Function at 0x14012a0e4
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov rdx, rcx
lea rcx, str.ConEmuHWND
call fcn.14012a08c
test rbx, rbx
je 0x14012a145
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, [0x140175bf0]
mov edx, 0x10
lea rcx, [rsp + 0x28]
call fcn.1401140d0
lea rdx, [rsp + 0x28]
jmp 0x14012a147
xor edx, edx
lea rcx, str.ConEmuPID
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012bda0
add rsp, 0x50
pop rbx
ret

Function at 0x14012a168
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdx, rcx
lea rcx, str.ConEmuDrawHWND
call fcn.14012a08c
mov rdx, rbx
lea rcx, str.ConEmuBackHWND
add rsp, 0x20
pop rbx
jmp fcn.14012a08c
Function at 0x140002a6c
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x140002ac6
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rdi, [0x1401e6ca0]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x140002ab0
cmp rdx, 2
jb 0x140002ab0
cmp byte [r10], r11b
jne 0x140002ab0
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x140002a8e
jmp 0x140002b07
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x140002b07
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rdi, [0x1401e6ca0]
cmp dl, r11b
jne 0x140002aeb
cmp byte [r10], r11b
jne 0x140002aeb
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x140002ad9
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x140002c38
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x140002c58
and qword [r8], 0
lea rdx, [0x1401e66fc]
call fcn.140002b18
mov rbx, rax
test rax, rax
je 0x140002d3f
mov rcx, rax
call fcn.1401376c0
mov ebp, eax
cmp eax, 0xffffffff
je 0x140002d37
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.140139710
test eax, eax
jne 0x140002d37
mov rcx, rbx
call fcn.1401376c0
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140002d37
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call fcn.140139710
test eax, eax
jne 0x140002d37
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x140002d37
mov rax, qword [0x14037c600]
test rax, rax
je 0x140002cd9
inc dword [rax + 0x3b0]
mov rcx, rbp
call fcn.140156530
mov rdi, rax
test rax, rax
je 0x140002d37
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call fcn.14014d260
mov rcx, rbx
cmp rax, rbp
je 0x140002d25
call fcn.140138f00
mov rax, qword [0x14037c600]
test rax, rax
je 0x140002d1b
dec dword [rax + 0x3b0]
mov rcx, rdi
call fcn.14014c880
jmp 0x140002d3f
call fcn.140138f00
test rsi, rsi
je 0x140002d32
mov qword [rsi], rbp
mov rax, rdi
jmp 0x140002d41
mov rcx, rbx
call fcn.140138f00
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140004b64
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x28
movsxd rdx, dword [rcx + 0x108]
mov r9d, 4
mov rax, qword [rcx + 0x110]
mov r8d, dword [rax + rdx*4 - 4]
lea rdx, [rsp + 0x38]
not r8d
movzx eax, byte [rdx]
inc rdx
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x1401e6ca0]
xor r8d, dword [rax + rcx*4]
sub r9, 1
jne 0x140004b8d
not r8d
mov ecx, r8d
call fcn.140004cc4
mov eax, r8d
add rsp, 0x28
ret
Function at 0x14000e9e8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140327010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [0x14037c600]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], ecx
mov r9d, 4
mov rdi, qword [rax + 0x1b90]
add rdi, 0x108
movsxd r8, dword [rdi]
mov rax, qword [rdi + 8]
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, byte [rdx]
inc rdx
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x1401e6ca0]
xor ebx, dword [rax + rcx*4]
sub r9, 1
jne 0x14000ea33
mov ecx, dword [rdi + 4]
not ebx
cmp r8d, ecx
jne 0x14000ea85
inc r8d
test ecx, ecx
je 0x14000ea6e
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x14000ea73
mov eax, 8
cmp eax, r8d
mov rcx, rdi
cmovg r8d, eax
mov edx, r8d
call fcn.14001cd68
movsxd rcx, dword [rdi]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*4], ebx
inc dword [rdi]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140060670
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret