joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017ee4
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
test rbx, rbx
je 0x140017f5f
cmp qword [rbx], 0
mov rsi, qword [rcx]
je 0x140017f4d
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017f58
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140017f58
mov rdx, qword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rdx
xor r8d, r8d
mov rcx, rsi
mov rdx, rdi
call rax
jmp 0x140017f68
cmp dword [rbx + 8], 0
je 0x140017f58
mov rcx, rsi
jmp 0x140017f62
mov eax, 1
jmp 0x140017f68
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400181a8
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140197e90]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rax
mov r9d, dword [rcx + 8]
or r9d, 0x2001f
mov r8, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x48]
call fcn.140018038
jmp 0x14001821c
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400181a8
test eax, eax
mov ebx, eax
jne 0x140018286
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 0x100
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14001820d
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140018275
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rdx, rsi
mov rcx, rdi
call fcn.140017ee4
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001829c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
and dword [rsp + 0x50], 0
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400b9010
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001b288
Capabilities:
Encode data using base64
Encode data using xor

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, 0x20
mov r14, r9
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
call fcn.14001b148
xor ebx, ebx
test al, al
jne 0x14001b2fa
mov r11d, dword [0x14019fd80]
mov r10d, ebx
mov edx, r10d
mov r8d, 8
mov ecx, edx
mov eax, edx
and ecx, 1
sar eax, 1
dec ecx
not ecx
and ecx, r11d
mov edx, ecx
xor edx, eax
dec r8
jne 0x14001b2cb
inc r10d
add r11d, edx
cmp r10d, 0x100
jl 0x14001b2c2
mov dword [0x14019fd80], r11d
xorps xmm0, xmm0
cvtsi2sd xmm0, rdi
test rdi, rdi
jns 0x14001b30f
addsd xmm0, qword [0x140134fc0]
divsd xmm0, qword [0x140134f88]
call fcn.1400d91a0
movsd xmm1, qword [0x140134fb8]
xor eax, eax
mulsd xmm0, qword [0x140134f90]
comisd xmm0, xmm1
jb 0x14001b34b
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14001b34b
movabs rcx, 0x8000000000000000
mov rax, rcx
cvttsd2si r8, xmm0
add r8, rax
test rsi, rsi
je 0x14001b461
test rbp, rbp
je 0x14001b461
cmp r8, r14
ja 0x14001b461
mov rdx, rbx
lea r11, [0x140000000]
test rdi, rdi
je 0x14001b41b
mov r9, rbp
cmp rbx, rdi
jae 0x14001b392
movzx eax, byte [rdx + rsi]
inc rdx
jmp 0x14001b394
mov eax, ebx
cmp rdx, rdi
jae 0x14001b3a3
movzx r10d, byte [rdx + rsi]
inc rdx
jmp 0x14001b3a6
mov r10d, ebx
cmp rdx, rdi
jae 0x14001b3b4
movzx ecx, byte [rdx + rsi]
inc rdx
jmp 0x14001b3b6
mov ecx, ebx
shl eax, 8
add eax, r10d
shl eax, 8
add eax, ecx
mov ecx, eax
shr rax, 0x12
and eax, 0x3f
mov al, byte [rax + r11 + 0x19ad60]
mov byte [r9], al
mov eax, ecx
add r9, 4
shr rax, 0xc
and eax, 0x3f
mov al, byte [rax + r11 + 0x19ad60]
mov byte [r9 - 3], al
mov eax, ecx
and ecx, 0x3f
shr rax, 6
and eax, 0x3f
mov al, byte [rax + r11 + 0x19ad60]
mov byte [r9 - 2], al
mov al, byte [rcx + r11 + 0x19ad60]
mov byte [r9 - 1], al
cmp rdx, rdi
jb 0x14001b389
movabs rax, 0xaaaaaaaaaaaaaaab
mul rdi
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rdi, rax
cmp dword [r11 + rdi*4 + 0x130e90], ebx
jle 0x14001b455
lea rcx, [rbp - 1]
add rcx, r8
mov byte [rcx], 0x3d
inc ebx
dec rcx
cmp ebx, dword [r11 + rdi*4 + 0x130e90]
jl 0x14001b443
mov rcx, qword [rsp + 0x50]
mov al, 1
mov qword [rcx], r8
jmp 0x14001b463
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14001e0a8
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140197e90]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rsi, rcx
mov qword [rsp + 0x38], rcx
and dword [rsp + 0x24], 0
mov r8d, dword [0x14019fd80]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
mov r13d, 1
cmp ecx, 0x15
jne 0x14001e166
xor r9d, r9d
mov edx, r9d
mov r10d, 8
mov ecx, edx
and ecx, r13d
sub ecx, r13d
not ecx
and ecx, r8d
mov eax, edx
sar eax, 1
mov edx, ecx
xor edx, eax
sub r10, r13
jne 0x14001e136
add r8d, edx
add r9d, r13d
cmp r9d, 0x100
jl 0x14001e12d
mov dword [0x14019fd80], r8d
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140028ca8
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001e194
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [0x1401979a8]
mov rax, qword [0x1401979a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
mov eax, dword [0x14019fd80]
mov ecx, eax
imul ecx, eax
imul ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xe
sub ecx, edx
cmp ecx, 3
jne 0x14001e1f8
mov r8d, r13d
mov eax, r13d
mov edx, 0xbe
lea ecx, [rax + r8]
lea r8d, [rax]
mov eax, ecx
sub edx, r13d
jns 0x14001e1e4
mov dword [0x14019fd80], ecx
mov r8d, dword [rsp + 0x20]
lea rdx, str.il_d
lea rcx, [rsp + 0x28]
call fcn.14000f8ac
mov r11d, dword [0x14019fd80]
mov ecx, r11d
imul ecx, r11d
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 0xd
jne 0x14001e296
xor r8d, r8d
lea r9, [rsp + 0x50]
mov bl, r11b
sub bl, r8b
mov r10d, r13d
mov edi, 0x10
xor r14d, r14d
mov eax, r11d
cdq
idiv r10d
mov r12d, edx
mov r15d, r13d
mov eax, r11d
cdq
idiv r15d
mov ecx, eax
mov al, bl
imul cl
mov cl, al
mov al, r12b
imul cl
mov byte [r9 + r14], al
add r15d, r13d
add r14, r13
cmp r14, 9
jl 0x14001e25d
add r10d, r13d
add r9, 9
sub rdi, r13
jne 0x14001e24d
add r8d, r13d
cmp r8d, 2
jl 0x14001e23f
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.14000291c
mov dword [rsp + 0x24], r13d
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001e2c2
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, rsi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400b9010
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14002053c
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdx
mov ebx, dword [0x14019fd80]
lea r8d, [rbx + 1]
imul r8d, ebx
mov eax, 0x38e38e39
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
sub r8d, eax
cmp r8d, 1
jne 0x1400205af
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov ebx, dword [0x14019fd80]
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400be450
mov ecx, ebx
imul ecx, ebx
imul ecx, ebx
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 5
jne 0x1400205ec
inc ebx
mov dword [0x14019fd80], ebx
mov dword [rsp + 0x50], 0x70
lea rax, str.open
mov qword [rsp + 0x60], rax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x14002061c
xor edx, edx
mov rcx, rsi
call fcn.140001f54
mov rax, qword [rsi]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x80], 5
mov dword [rsp + 0x54], 0x440
mov rax, qword [rdi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x140020653
xor edx, edx
mov rcx, rdi
call fcn.140001f54
mov rax, qword [rdi]
mov qword [rsp + 0x70], rax
call fcn.14001fdf0
test al, al
jne 0x14002066c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileType]
mov rax, qword [0x1401a1678]
test rax, rax
jne 0x1400206ed
mov ecx, dword [0x14019fd80]
imul ecx, ecx
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 2
jne 0x1400206b2
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
lea rcx, str.Shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400206dd
lea rdx, str.ShellExecuteExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401a1678], rax
jmp 0x1400206e4
mov rax, qword [0x1401a1678]
test rax, rax
jne 0x1400206ed
xor bl, bl
jmp 0x1400206fa
lea rcx, [rsp + 0x50]
call rax
cmp eax, 1
sete bl
mov rdx, qword [rsi]
sub rdx, 0x18
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14002071b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x140020739
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, bl
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140020de4
Capabilities:
Get disk size

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, 0x40
mov rax, qword [rcx]
xor r12d, r12d
mov rdi, rdx
mov r14, rcx
cmp dword [rax - 0x10], r12d
jne 0x140020e66
mov rax, qword [rdx]
lea rdx, [rax - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], r12d
je 0x140020e5f
cmp dword [rdx + 0x10], r12d
jge 0x140020e3f
cmp dword [rax - 0xc], r12d
jl 0x140020f4e
mov dword [rax - 0x10], r12d
mov rax, qword [rdi]
mov byte [rax], r12b
jmp 0x140020e5f
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140020e4f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
mov al, 1
jmp 0x140020f2f
mov sil, r12b
call fcn.14001fe90
test al, al
jne 0x140020e87
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov r8, qword [r14]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r15, eax
test eax, eax
jne 0x140020ec3
mov rdx, qword [r14]
mov rcx, rdi
call fcn.1400171ec
jmp 0x140020f2c
mov rcx, r15
call fcn.1400b8688
mov r8, r15
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.1400be450
mov r8, qword [r14]
mov qword [rsp + 0x38], r12
mov r9d, dword [r8 - 0x10]
mov qword [rsp + 0x30], r12
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
test eax, eax
jne 0x140020f14
mov rdx, qword [r14]
call fcn.1400171ec
jmp 0x140020f1f
mov rdx, rbp
call fcn.140021090
mov sil, 1
test rbp, rbp
je 0x140020f2c
mov rcx, rbp
call fcn.1400ba0bc
mov al, sil
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
mov ecx, 0x80070057
call fcn.140001874
int3
Function at 0x1400215d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140197e90]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
mov qword [rbp - 0x29], rcx
xor r15d, r15d
mov dword [rbp - 0x39], r15d
mov ecx, dword [0x14019fd80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x2aaaaaab
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub r8d, eax
cmp r8d, 5
jne 0x14002166e
lea eax, [r15 + 0x17]
lea r8d, [r15 + 0x48]
test r8d, r8d
je 0x140021665
mov ecx, r8d
cdq
idiv r8d
mov r8d, edx
mov eax, ecx
test ecx, ecx
jne 0x140021650
add eax, r8d
mov dword [0x14019fd80], eax
mov dword [rbp - 0x19], 0x5f005f
mov dword [rbp - 0x15], 0x520043
mov dword [rbp - 0x11], 0x40005f
mov dword [rbp - 0xd], 0x410046
mov dword [rbp - 9], 0x4c0049
mov dword [rbp - 5], 0x440045
mov dword [rbp - 1], 0x44005f
mov dword [rbp + 3], 0x57004f
mov dword [rbp + 7], 0x4c004e
mov dword [rbp + 0xb], 0x41004f
mov dword [rbp + 0xf], 0x5f0044
mov dword [rbp + 0x13], 0x450052
mov dword [rbp + 0x17], 0x440041
mov dword [rbp + 0x1b], 0x5f0040
mov dword [rbp + 0x1f], 0x520043
mov dword [rbp + 0x23], 0x5f005f
mov word [rbp + 0x27], r15w
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.140001cb0
nop
mov dword [rbp - 0x39], 1
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400b9010
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140021eac
Capabilities:
Get disk size

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14019fe98]
xor ebx, ebx
test rax, rax
jne 0x140021f9e
mov eax, dword [0x14019fd80]
imul eax, eax
and eax, 0x80000003
jge 0x140021ee4
dec eax
or eax, 0xfffffffc
inc eax
cmp eax, 2
jne 0x140021efe
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea rcx, [0x14019ae20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x14019fe98], rbx
jne 0x140021f3a
mov ecx, 0xb8
call fcn.1400b97c8
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140021f33
mov rcx, rax
call fcn.1400331b0
mov rbx, rax
mov qword [0x14019fe98], rbx
mov eax, dword [0x14019fd80]
mov r8d, eax
imul r8d, eax
imul r8d, eax
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub r8d, edx
cmp r8d, 0xa
jne 0x140021f8a
lea ecx, [r8 - 6]
call fcn.1400b97c8
mov rbx, rax
call fcn.1400b99c8
mov dword [rbx], eax
mov dword [0x14019fd80], eax
mov rcx, rbx
call fcn.1400b8ff4
lea rcx, [0x14019ae20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x14019fe98]
add rsp, 0x40
pop rbx
ret
Function at 0x14002237c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov r14, rcx
mov qword [rax - 0x28], rcx
xor ebp, ebp
mov dword [rax - 0x38], ebp
lea rcx, [0x1401979a8]
mov rax, qword [0x1401979a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r14], rax
mov dword [rsp + 0x20], 1
mov edi, ebp
xor r8d, r8d
xor edx, edx
lea rcx, str.ProgramW6432
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140022430
lea ebx, [rax + 1]
mov edx, ebx
lea eax, [rbp + 2]
mul rdx
lea rsi, [rbp - 1]
cmovo rax, rsi
mov rcx, rax
call fcn.1400b8688
mov rdi, rax
mov r8d, ebx
mov rdx, rax
lea rcx, str.ProgramW6432
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140022430
test rdi, rdi
jne 0x140022419
mov esi, ebp
jmp 0x140022422
inc rsi
cmp word [rdi + rsi*2], bp
jne 0x140022419
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call fcn.140001e74
mov ecx, dword [0x14019fd80]
imul ecx, ecx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xe
sub ecx, edx
cmp ecx, 3
jne 0x14002246b
mov edx, 0x87
lea r8d, [rdx + 1]
lea rcx, str._d__d_n
call fcn.1400b991c
test rdi, rdi
je 0x140022478
mov rcx, rdi
call fcn.1400ba0bc
mov rax, r14
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x140022534
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x50
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rdi, rdx
and qword [rax - 0x28], 0
mov dword [rax - 0x30], 0x80
mov dword [rax - 0x38], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400225a5
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, eax
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14002259e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x140022632
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and dword [rsp + 0x60], 0
mov rax, qword [rdi]
mov ebx, dword [rax - 0x10]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x1400225da
xor edx, edx
mov rcx, rdi
call fcn.140001f54
lea r8d, [rbx + rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
sete bl
mov rdx, qword [rdi]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140022630
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, bl
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140022644
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
and dword [rax - 0x20], 0
mov rdi, rdx
mov edx, 0x80000000
xor r9d, r9d
xor r8d, r8d
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400226c7
mov ecx, dword [0x14019fd80]
mov eax, 0x30c30c31
imul ecx, ecx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
cmp ecx, 0xc
jne 0x1400226c3
lea eax, [rbx + 2]
mov r8d, 0xfb
mov r9d, eax
mov ecx, eax
sub r8d, eax
lea edx, [rcx + r9]
lea r9d, [rcx]
mov ecx, edx
jns 0x1400226af
mov dword [0x14019fd80], edx
xor eax, eax
jmp 0x1400226eb
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140022c98
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r9d, dword [0x14019fd80]
mov r14, rdx
xor esi, esi
mov r8d, r9d
mov eax, 0x6bca1af3
or r15, 0xffffffffffffffff
mov rbx, rcx
mov edi, 0x51eb851f
lea ebp, [rsi + 4]
imul r8d, r9d
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub r8d, edx
cmp r8d, 2
jne 0x140022d2c
mov eax, edi
imul r9d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebp
imul edx, edx, 0x64
sub r9d, edx
add r9d, 0x63
movsxd rcx, r9d
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1400b8688
mov rcx, rax
call fcn.1400ba0bc
mov r9d, dword [0x14019fd80]
lea ecx, [r9 + 1]
mov eax, 0x30c30c31
imul ecx, r9d
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
cmp ecx, 3
jne 0x140022d85
mov eax, edi
imul r9d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov rax, rbp
imul edx, edx, 0x64
sub r9d, edx
add r9d, 0x63
movsxd rcx, r9d
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1400b8688
mov rcx, rax
call fcn.1400ba0bc
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
lea r8d, [r9 + 2]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, r15
je 0x140022e5a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [0x14019fd80]
mov dword [rsp + 0x60], esi
mov r8d, eax
imul r8d, eax
imul r8d, eax
mov eax, 0x92492493
imul r8d
add edx, r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xe
sub r8d, edx
cmp r8d, 9
jne 0x140022e1e
mov rcx, rbp
call fcn.1400b97c8
mov rbx, rax
call fcn.1400b99c8
mov rcx, rbx
mov dword [rbx], eax
mov dword [0x14019fd80], eax
call fcn.1400b8ff4
mov rdx, qword [r14]
lea r9, [rsp + 0x60]
mov rcx, rdi
mov r8d, dword [rdx - 0x10]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140022e51
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov sil, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov al, sil
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret