joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800bea98
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x1800beaf9
test byte [rbx + 6], 0xf
jne 0x1800beaec
xor edi, edi
cmp word [rbx + 4], di
jne 0x1800beaec
cmp word [rbx + 2], di
jne 0x1800beaec
cmp word [rbx], di
jne 0x1800beaec
lea esi, [rdi + 1]
jmp 0x1800beaf1
mov esi, 2
movzx eax, si
jmp 0x1800becf1
xor edi, edi
test cx, cx
jne 0x1800beb14
mov rcx, rbx
call fcn.1800cad34
movzx ecx, ax
cmp di, ax
jl 0x1800becee
movsx edx, cx
test esi, esi
jle 0x1800beb44
sub ebp, edx
cmp ebp, esi
jg 0x1800beb44
movsd xmm0, qword [0x1800fc870]
cmp word [rbx + 6], di
jge 0x1800beb36
xorps xmm0, xmmword [0x1800d5f00]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x1800becf1
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x1800beb71
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x1800becf1
movzx r15d, r11w
lea ebp, [rsi - 1]
and r11w, 0xf
mov r13d, 0x8000
mov r12d, 0x10
and r15w, r13w
or r11w, r12w
add ebp, edx
cmp ebp, 0xffffffcb
jl 0x1800bece3
test ebp, ebp
jns 0x1800bece3
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x1800bec06
movzx edx, word [rbx + 4]
mov eax, 0xfff0
movzx r8d, word [rbx + 2]
sub ax, bp
shr ax, 4
add ax, si
movzx ecx, ax
movzx eax, cx
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], r8w
movzx r8d, dx
movzx edx, r11w
mov r11d, edi
sub rcx, rsi
jne 0x1800bebd8
mov word [rbx + 4], dx
mov word [rbx + 2], r8w
neg bp
je 0x1800bec85
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x1800bec9b
jne 0x1800becba
test byte [rbx], sil
je 0x1800becba
add word [rbx], si
jne 0x1800becba
add word [rbx + 2], si
jne 0x1800becba
add word [rbx + 4], si
jne 0x1800becba
add r11w, si
mov word [rbx + 6], r11w
jmp 0x1800beb69
cmp r11w, r15w
jne 0x1800beb69
cmp word [rbx + 4], di
jne 0x1800beb69
cmp word [rbx + 2], di
jne 0x1800beb69
movzx eax, word [rbx]
neg ax
sbb ax, ax
jmp 0x1800becf1
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800c5048
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1800c5d1c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800c5d1c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800c5198
cmp rax, 0xffffffffffffffff
je 0x1800c5198
xor edi, edi
test rbp, rbp
jle 0x1800c5143
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800c335c
mov rbx, rax
test rax, rax
jne 0x1800c50d0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800c5139
mov edx, 0x8000
mov ecx, r14d
call fcn.1800c4ecc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800c4b94
cmp eax, 0xffffffff
je 0x1800c5119
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800c50e0
mov edx, r15d
mov ecx, r14d
call fcn.1800c4ecc
jmp 0x1800c5139
cmp byte [rsi + 0x38], dil
je 0x1800c5130
cmp dword [rsi + 0x34], 5
jne 0x1800c5130
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800c5139
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800bf124
jmp 0x1800c51ac
jns 0x1800c51ac
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800c5d1c
cmp rax, 0xffffffffffffffff
jne 0x1800c5164
cmp byte [rsi + 0x30], dil
je 0x1800c51ac
mov edi, dword [rsi + 0x2c]
jmp 0x1800c51ac
mov ecx, r14d
call fcn.1800b7ca0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800c51ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800c51ac
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800c51a5
mov eax, dword [rsi + 0x2c]
jmp 0x1800c51aa
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800c5d1c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1800c51dc
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, [0x18111f000]
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 0x1800c5233
cmp word [rdx], r13w
jne 0x1800c5233
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800c5238
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800c535d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800c537e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800c5271
mov rdx, r9
mov word [rbx], cx
jmp 0x1800c5298
cmp r9, r8
jae 0x1800c52a8
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 0x1800c5252
jmp 0x1800c535d
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 0x1800c5352
cmp dword [rsp + 0x80], esi
je 0x1800c5352
lea r8, [0x18111f000]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800c532a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800c52fa
mov word [rbx], r13w
jmp 0x1800c535a
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 0x1800c5307
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800c535a
cmp word [rsp + 0x70], r13w
jne 0x1800c5337
cmp rbx, r14
je 0x1800c52f4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800c5d1c
cmp word [rsp + 0x70], r13w
je 0x1800c535d
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, [0x18111f000]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800c5357
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800c535d
Function at 0x1800c963c
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 0x1800c966c
xor eax, eax
jmp 0x1800c972f
mov rbp, rbx
cmp word [rax], si
je 0x1800c9691
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800c9678
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800c9674
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.1800c0ff8
movsxd r14, eax
test eax, eax
jne 0x1800c96cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800c9665
mov rcx, r14
call fcn.1800bf160
mov rdi, rax
test rax, rax
jne 0x1800c96e8
xor ecx, ecx
call fcn.1800bf124
jmp 0x1800c96c4
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.1800c0ff8
test eax, eax
jne 0x1800c9719
mov rcx, rdi
call fcn.1800bf124
jmp 0x1800c9723
xor ecx, ecx
call fcn.1800bf124
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 0x1800c974c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1800c97d3
mov rsi, rbx
cmp word [rax], bp
je 0x1800c9792
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800c977c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800c9778
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800bf160
mov rdi, rax
test rax, rax
je 0x1800c97c0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800a5250
mov rbp, rdi
xor ecx, ecx
call fcn.1800bf124
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800cc6d8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800cc6ee
mov al, 1
jmp 0x1800cc74e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800cc6ff
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800cc74c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800b7ca0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800cc74c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800cc74c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800cc74c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800cc74e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800ce8b8
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.1800adc80
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1800ce942
cmp byte [rbp - 0x21], r15b
je 0x1800ce93d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1800ce978
call fcn.1800c3640
test eax, eax
jne 0x1800ce964
cmp byte [rbp - 0x21], r15b
je 0x1800ce95c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1800ce978
cmp byte [rbp - 0x21], r15b
je 0x1800ce975
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.1800ad9e8
test eax, eax
jne 0x1800cea18
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1800adc80
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1800ce9b7
cmp byte [rbp - 0x21], r15b
je 0x1800ce9ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1800ce9ec
call fcn.1800c3640
test eax, eax
jne 0x1800ce9d8
cmp byte [rbp - 0x21], r15b
je 0x1800ce9d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1800ce9ec
cmp byte [rbp - 0x21], r15b
je 0x1800ce9e9
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.1800ad9e8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1800cea18
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1800cea1b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1800cea29
mov rcx, rdi
call fcn.1800bf124
cmp byte [rbp + 0x3f], r15b
je 0x1800cea38
mov rcx, qword [rbp + 0x27]
call fcn.1800bf124
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 0x1400130d8
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x14010a078]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r15, rdx
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x30]
xor r14d, r14d
call fcn.140017400
lea r8, [0x1400ee488]
lea rcx, [rsp + 0x30]
call fcn.140017484
mov edi, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x140013182
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400132bd
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400ee438]
mov edx, 0xc8
call fcn.1400065a0
mov esi, eax
jmp 0x1400132a1
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.140006644
mov esi, eax
test eax, eax
jns 0x1400131c9
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.140006568
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400132ee
jmp 0x1400132a1
lea r8, [0x1400ee490]
lea rcx, [rsp + 0x30]
call fcn.140017484
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x140013221
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400ee438]
mov edx, 0xd4
call fcn.1400065a0
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140013300
jmp 0x1400132a1
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140006644
mov esi, eax
test eax, eax
jns 0x14001326c
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd6
call fcn.140006568
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140013312
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140013324
jmp 0x1400132a1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140013336
movsxd rax, dword [rsp + 0x20]
mov rcx, rbx
movsxd r14, dword [rsp + 0x24]
shl rax, 0x1f
or r14, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140013348
xor esi, esi
test esi, esi
jns 0x1400132bd
mov rcx, qword [rbp + 0x168]
mov r9d, esi
mov edx, 0x61
call fcn.140006568
mov eax, esi
jmp 0x1400132c2
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400e27e0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.1400065b8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.1400065b8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.1400065b8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.1400065b8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.1400065b8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.1400065b8
int3
Function at 0x14001616c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14010a078]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor eax, eax
mov rdi, rcx
mov rcx, qword [rcx]
mov r9d, 0x2001f
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov rsi, rdx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14001626f
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400161e8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x14001626f
jmp 0x140016212
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14001616c
mov ebx, eax
test eax, eax
jne 0x14001626f
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400161f8
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140016262
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.1400162c8
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001627f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400e27e0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x14010a078]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r14, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140016f44
call fcn.140015730
mov ebx, eax
jmp 0x14001706e
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
test rax, rax
jne 0x140016f68
call fcn.140015730
jmp 0x140017062
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140016f5e
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x140016fba
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140016fb0
lea rcx, [rsp + 0x70]
call fcn.1400156e0
nop
mov eax, 0x8007000e
jmp 0x140017087
mov ecx, eax
test eax, eax
je 0x140016ff1
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400170ab
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140016ff1
lea rcx, [rsp + 0x70]
call fcn.140015704
mov rax, qword [rsp + 0x70]
jmp 0x140016ffb
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140017012
test rax, rax
jne 0x14001701e
mov ebx, 0x8007000e
jmp 0x140017064
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140016f5e
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140016d14
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140017085
lea rcx, [rsp + 0x70]
call fcn.1400156e0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400e27e0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80070057
call fcn.1400160a0
int3
Function at 0x140018e80
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor edx, edx
mov rcx, qword [rcx + 0x1f0]
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x1400739fa.0]
mov rcx, qword [rbx + 0x208]
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x1400739fa.0]
mov rcx, rbx
call fcn.140027278
cmp dword [rbx + 0x1424], 0
jne 0x140018f11
mov edx, 1
mov rcx, rbx
mov r8d, edx
call fcn.14001aa4c
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov rcx, qword [rbx + 0x13b8]
lea rdx, str.EnableBalloon
mov r9d, 4
mov dword [rbx + 0x1424], 1
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [0x140111ed4], 0
je 0x140018f31
mov edx, 0xe9c
lea rcx, [0x14010a498]
mov r8d, 1
call fcn.1400373cc
add rsp, 0x30
pop rbx
ret
Function at 0x14001aa4c
Capabilities:
Inspect load icon resource

Disassembly:
cmp edx, 2
ja 0x14001abdc
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x310]
sub rsp, 0x410
mov rax, qword [0x14010a078]
xor rax, rsp
mov qword [rbp + 0x300], rax
and qword [rsp + 0x20], 0
mov edi, edx
mov rsi, rcx
mov edx, 0xc9
lea rcx, [rsp + 0x20]
mov r14d, r8d
call fcn.140021a70
and qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
mov edx, 0xca
call fcn.140021a70
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x3d0
call sub.msvcrt.dll_memset
mov rax, qword [rsi + 8]
test r14d, r14d
mov qword [rsp + 0x38], rax
mov edx, 0x12d
mov eax, 7
mov dword [rsp + 0x30], 0x3d0
lea ecx, [rax + 0x10]
cmovne eax, ecx
mov rcx, qword [0x140111af0]
mov dword [rsp + 0x44], eax
call qword [sym.imp.USER32.dll_LoadIconW]
mov r8, qword [rsp + 0x20]
lea rcx, [rsp + 0x58]
mov edx, 0x40
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x3039
call qword [sym.imp.msvcrt.dll_wcscpy_s]
test r14d, r14d
je 0x14001ab53
mov r8, qword [rsp + 0x20]
lea rcx, [rbp + 0x264]
mov edx, 0x40
mov dword [rbp + 0x2e4], 1
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov r8, qword [rsp + 0x28]
lea rcx, [rbp + 0x60]
mov edx, 0x100
call qword [sym.imp.msvcrt.dll_wcscpy_s]
lea rdx, [rsp + 0x30]
mov dword [rbp + 0x260], 3
mov ecx, edi
mov dword [rsp + 0x48], 0x401
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test edi, edi
je 0x14001ab8c
cmp edi, 2
jne 0x14001aba4
mov rcx, qword [rsi + 8]
mov edx, 0x2711
call qword [sym.imp.USER32.dll_KillTimer]
jmp 0x14001aba4
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov edx, 0x2711
mov r8d, 0xea60
call qword [sym.imp.USER32.dll_SetTimer]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.1400e27e0
mov rsi, qword [rsp + 0x440]
add rsp, 0x410
pop r14
pop rdi
pop rbp
ret

Function at 0x140022364
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
lea rax, [r11 + 0x18]
and dword [rsp + 0x40], 0
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov rbx, rdx
lea rax, [r11 + 8]
mov dword [rsp + 0x50], 4
xor r8d, r8d
mov qword [r11 - 0x18], rax
lea rdx, str.Handedness
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400223c2
cmp dword [rsp + 0x58], 4
jne 0x1400223c2
test eax, eax
jne 0x1400223c2
mov ecx, dword [rsp + 0x40]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x1400223c2
mov dword [rbx], ecx
jmp 0x1400223c8
mov dword [rbx], 2
mov al, 1
add rsp, 0x30
pop rbx
ret

Function at 0x1400223d0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], edx
xor ebx, ebx
xor r8d, r8d
lea rdx, str.Handedness
lea r9d, [rbx + 4]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ecx, bl
lea edx, [rbx + 1]
test eax, eax
cmove ecx, edx
mov al, cl
add rsp, 0x30
pop rbx
ret