joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028710
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, 0x80070057
test eax, eax
je 0x140028852
mov edi, edi
lea r8, str.MicrosoftWindowsStart_MenuPrograms_
mov rcx, rsi
mov rdx, rdi
call fcn.1401327c0
test eax, eax
jne 0x140028852
movzx r12d, byte [rbx + 0x17]
mov r15, r12
test r12b, r12b
jns 0x140028770
mov r15, qword [rbx + 8]
lea r13, [r15 + 4]
movabs rax, 0x7ffffffffffffff0
cmp r13, rax
jae 0x140028865
cmp r13, 0xb
jae 0x1400287e8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x37], r13b
lea r14, [rsp + 0x20]
test r15, r15
je 0x1400287c4
test r12b, r12b
jns 0x1400287b5
mov rbx, qword [rbx]
lea r8, [r15 + r15]
mov rcx, r14
mov rdx, rbx
call fcn.140111410
movabs rax, 0x6b006e006c002e
mov qword [r14 + r15*2], rax
mov word [r14 + r15*2 + 8], 0
cmp byte [rsp + 0x37], 0
jns 0x140028827
mov r8, qword [rsp + 0x20]
jmp 0x14002882c
mov rbp, r13
or rbp, 7
inc rbp
js 0x14002886f
lea rcx, [rbp*2]
call fcn.14010e7c0
mov r14, rax
movabs rax, 0x8000000000000000
or rax, rbp
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], r13
test r12b, r12b
js 0x1400287b2
jmp 0x1400287b5
lea r8, [rsp + 0x20]
mov rcx, rsi
mov rdx, rdi
call fcn.1401327c0
test eax, eax
mov ebp, 0x80070057
cmove ebp, eax
cmp byte [rsp + 0x37], 0
jns 0x140028852
mov rcx, qword [rsp + 0x20]
call fcn.14010e7fc
mov eax, ebp
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x20]
call fcn.1400132f0
call fcn.140012fe0
int3

Function at 0x140033b70
Capabilities:
Block operations on executable memory pages using arbitrary code guard

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
mov dword [rbp - 0x14], 2
lea rdx, [rbp - 0x14]
mov r8d, 4
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetProcessMitigationPolicy]
mov esi, eax
test eax, eax
jne 0x140033c2e
mov ecx, 2
call fcn.1400368a0
test al, al
je 0x140033c2e
lea rdx, str.location_nearby_cpp_sharing_services_windows_process_harden_process_harden.cc
lea rcx, [rbp - 0x10]
mov r8d, 0x61
mov r9d, 2
call fcn.140035820
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, str.ApplyProcessASLRPolicy
mov r8d, 0x16
mov rcx, rax
call fcn.140013430
lea rdx, str.:_Could_not_turn_on_ASLR_policy_for_current_process._Windows_error_code:
mov r8d, 0x48
mov rcx, rax
call fcn.140013430
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
call fcn.14004bd50
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140033c2e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test esi, esi
setne al
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140033c70
Capabilities:
Block operations on executable memory pages using arbitrary code guard

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
mov dword [rbp - 0x14], 1
lea rdx, [rbp - 0x14]
mov r8d, 4
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetProcessMitigationPolicy]
mov esi, eax
test eax, eax
jne 0x140033d2e
mov ecx, 2
call fcn.1400368a0
test al, al
je 0x140033d2e
lea rdx, str.location_nearby_cpp_sharing_services_windows_process_harden_process_harden.cc
lea rcx, [rbp - 0x10]
mov r8d, 0x50
mov r9d, 2
call fcn.140035820
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, str.ApplyProcessDynamicCodePolicy
mov r8d, 0x1d
mov rcx, rax
call fcn.140013430
lea rdx, str.:_Could_not_turn_on_dynamic_code_policy_for_current_process._Windows_error_code:
mov r8d, 0x50
mov rcx, rax
call fcn.140013430
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
call fcn.14004bd50
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140033d2e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test esi, esi
setne al
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400349e0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, r9
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x140034a1f
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [rsi + 0x10], 0
cmp dword [0x1401fe558], 0
jne 0x140034a76
mov r15, qword [0x1401fe550]
test r15, r15
je 0x140034a41
cmp byte [r15 + 0x1f], 0
jns 0x140034a66
mov rcx, qword [r15 + 8]
jmp 0x140034a6a
mov ecx, 0x20
call fcn.14010e7c0
mov r15, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [0x1401fe550], rax
cmp byte [r15 + 0x1f], 0
js 0x140034a3b
lea rcx, [r15 + 8]
xor edx, edx
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov byte [r15], 0
movzx ebp, byte [rsp + 0xe8]
mov r12, qword [rsp + 0xe0]
mov rcx, qword [0x1401fe550]
test rcx, rcx
jne 0x140034ab0
mov ecx, 0x20
call fcn.14010e7c0
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [0x1401fe550], rax
lea r8, [rsi + 0x20]
mov rdx, r14
call fcn.140034670
mov r14, rax
mov rcx, qword [rbx]
mov edx, 2
call qword [sym.imp.USER32.dll_MonitorFromPoint]
mov rcx, rax
call qword [sym.imp.flutter_windows.dll_FlutterDesktopGetDpiForMonitor]
mov eax, eax
xorps xmm6, xmm6
cvtsi2sd xmm6, rax
divsd xmm6, qword [0x1401501e0]
xor r15d, r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [r12 + 4]
mulsd xmm0, xmm6
cvttsd2si ecx, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [r12]
mulsd xmm0, xmm6
cvttsd2si edx, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [rbx + 4]
mulsd xmm0, xmm6
cvttsd2si r8d, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [rbx]
mulsd xmm0, xmm6
cvttsd2si r10d, xmm0
movzx r9d, bpl
shl r9d, 0x1c
or r9d, 0xcf0000
cmp byte [rdi + 0x17], 0
jns 0x140034b4f
mov rdi, qword [rdi]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rax
xorpd xmm0, xmm0
movupd xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r10d
xor ecx, ecx
mov rdx, r14
mov r8, rdi
call qword [sym.imp.USER32.dll_CreateWindowExW]
test rax, rax
je 0x140034c0c
mov rdi, rax
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionThemesPersonalize
lea r8, str.AppsUseLightTheme
mov rcx, 0xffffffff80000001
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140034c00
xor eax, eax
cmp dword [rsp + 0x6c], 0
sete al
mov dword [rsp + 0x64], eax
lea r8, [rsp + 0x64]
mov rcx, rdi
mov edx, 0x14
mov r9d, 4
call qword [sym.imp.dwmapi.dll_DwmSetWindowAttribute]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
mov r15d, eax
mov eax, r15d
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140034c30
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rax, r9
mov rsi, rcx
mov r9, qword [rbp + 0x40]
cmp r8d, 5
jle 0x140034cf3
cmp r8d, 6
je 0x140034d4d
mov rdi, rdx
cmp r8d, 0x2e0
je 0x140034d65
cmp r8d, 0x320
jne 0x140034e03
mov dword [rbp - 0x10], 4
lea rax, [rbp - 0x10]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionThemesPersonalize
lea r8, str.AppsUseLightTheme
mov rcx, 0xffffffff80000001
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140034e38
xor eax, eax
cmp dword [rbp - 0x20], 0
sete al
mov dword [rbp - 0xc], eax
lea r8, [rbp - 0xc]
mov rcx, rdi
mov edx, 0x14
mov r9d, 4
call qword [sym.imp.dwmapi.dll_DwmSetWindowAttribute]
jmp 0x140034e38
cmp r8d, 2
je 0x140034d9c
cmp r8d, 5
jne 0x140034e03
mov rcx, qword [rsi + 0x10]
lea rdx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x140034e38
mov eax, dword [rbp - 0x14]
mov edx, dword [rbp - 0x20]
mov r8d, dword [rbp - 0x1c]
sub eax, r8d
mov r9d, dword [rbp - 0x18]
sub r9d, edx
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 1
call qword [sym.imp.USER32.dll_MoveWindow]
jmp 0x140034e38
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x140034e38
call qword [sym.imp.USER32.dll_SetFocus]
jmp 0x140034e38
mov ecx, dword [r9 + 8]
mov r8d, dword [r9]
mov eax, dword [r9 + 4]
sub ecx, r8d
mov edx, dword [r9 + 0xc]
sub edx, eax
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 0x14
mov rcx, rdi
xor edx, edx
mov r9d, eax
call qword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x140034e38
mov qword [rsi + 0x10], 0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x140034dc4
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [rsi + 0x10], 0
cmp dword [0x1401fe558], 0
jne 0x140034e2a
mov rdi, qword [0x1401fe550]
test rdi, rdi
jne 0x140034df7
mov ecx, 0x20
call fcn.14010e7c0
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax], xmm0
mov qword [0x1401fe550], rax
cmp byte [rdi + 0x1f], 0
jns 0x140034e1b
mov rcx, qword [rdi + 8]
jmp 0x140034e1f
mov rcx, qword [rsi + 0x10]
mov edx, r8d
mov r8, rax
add rsp, 0x60
pop rdi
pop rsi
pop rbp
jmp qword [sym.imp.USER32.dll_DefWindowProcW]
lea rcx, [rdi + 8]
xor edx, edx
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov byte [rdi], 0
cmp byte [rsi + 8], 0
je 0x140034e38
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
invalid
int3
test eax, 0x25c601c7
fidivr dword [rcx - 0x3e97a127]
invalid
mov dh, 0xf3
retf
int1
rol ecx, 1
retf 0xc69d
jle 0x14036550f
add eax, 0xb1eeb976
sub ah, byte [rdx]
hlt
add dl, byte [rcx]
invalid
Function at 0x1400350c0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rbp - 0x14]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
test rax, rax
je 0x140035188
mov rsi, rax
mov ebx, 1
lea rdi, [rbp - 0x30]
mov qword [rbp - 0x10], r14
cmp ebx, dword [rbp - 0x14]
jl 0x14003513e
jmp 0x14003517f
mov rcx, qword [rbp - 0x20]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rax], xmm0
add rax, 0x18
mov qword [r14 + 8], rax
inc ebx
cmp ebx, dword [rbp - 0x14]
jge 0x14003517f
mov eax, ebx
mov rdx, qword [rsi + rax*8]
mov rcx, rdi
call fcn.140035200
mov r14, qword [rbp - 0x10]
mov rax, qword [r14 + 8]
cmp rax, qword [r14 + 0x10]
jb 0x140035120
mov rcx, r14
mov rdx, rdi
call fcn.140016400
cmp byte [rbp - 0x19], 0
mov r14, qword [rbp - 0x10]
jns 0x140035178
mov rcx, qword [rbp - 0x30]
call fcn.14010e7fc
inc ebx
cmp ebx, dword [rbp - 0x14]
jl 0x14003513e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, r14
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140037590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
mov esi, r9d
mov edi, r8d
mov rbx, rdx
mov rdx, rcx
mov qword [rcx + 0x30], 0
mov dword [rcx + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x58], xmm0
movups xmmword [rcx + 0x68], xmm0
mov qword [rcx + 0x78], 0
mov qword [rcx + 0x88], 0
mov byte [rcx + 0x110], 0
lea rax, [0x14015d25c]
mov qword [rcx + 0x118], rax
add rcx, 0x120
lea rax, vtable.std::__u::basic_ostream_char__struct_std::__u::char_traits_char__.0
mov qword [rbp - 0x10], rdx
mov qword [rdx + 0x120], rax
mov qword [rbp - 0x18], rcx
xor edx, edx
call fcn.14004dcb0
mov r12, qword [rbp - 0x10]
mov qword [r12 + 0x1a8], 0
mov dword [r12 + 0x1b0], 0xffffffff
lea rax, [r12 + 0x1b8]
mov qword [r12 + 0x3c50], rax
mov qword [r12 + 0x3c58], 0x3a98
mov rax, qword [r12 + 0x118]
movsxd rax, dword [rax + 4]
or dword [r12 + rax + 0x120], 0x201
test rbx, rbx
je 0x140037698
mov rcx, rbx
call fcn.140131bf0
mov qword [r12], rbx
mov qword [r12 + 8], rax
mov rcx, rbx
call fcn.140131bf0
jmp 0x1400376a2
xorps xmm0, xmm0
movups xmmword [r12], xmm0
xor eax, eax
mov r15, qword [rbp + 0x60]
lea r14, [r12 + 0x30]
xor r8d, r8d
mov rdx, rbx
nop word cs:[rax + rax]
cmp rax, r8
je 0x1400376e9
mov rcx, r8
movzx r9d, byte [rdx + rax - 1]
inc r8
dec rdx
cmp r9d, 0x5c
je 0x1400376e0
cmp r9d, 0x2f
jne 0x1400376c0
lea r9, [rax + 1]
cmp r9, r8
jne 0x1400376ee
mov rcx, rax
jmp 0x1400376f5
lea rbx, [rdx + rax]
inc rbx
mov qword [r12 + 0x10], rbx
mov qword [r12 + 0x18], rcx
mov dword [r12 + 0x20], edi
call fcn.1400385a0
mov byte [r12 + 0x24], al
cmp esi, 4
mov eax, 2
cmovl eax, esi
xor ecx, ecx
test esi, esi
cmovns ecx, eax
mov dword [r12 + 0x28], ecx
mov dword [r12 + 0x2c], 0xffffffff
mov eax, dword [r15 + 8]
mov dword [r14 + 8], eax
mov rax, qword [r15]
mov qword [r14], rax
call fcn.1400b1290
mov dword [r12 + 0x3c], eax
mov rax, r12
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x140057ca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
movzx ebx, byte [rbp + 0x58]
test byte [r9 + 8], 1
jne 0x140057ce9
movzx eax, byte [rbp + 0x50]
movzx edx, bl
mov r10, qword [rcx]
mov dword [rsp + 0x28], edx
mov byte [rsp + 0x20], al
mov rdx, rsi
mov r8, rdi
call qword [r10 + 0x30]
jmp 0x140057e3d
lea rdx, [rbp - 0x28]
mov rcx, r9
call fcn.14004db70
mov r14, qword [rbp - 0x28]
lea rax, [0x140200920]
mov qword [rbp - 0x20], rax
lea rax, [0x140050e80]
mov qword [rbp - 0x18], rax
mov rax, qword [0x140200920]
cmp rax, 0xffffffffffffffff
je 0x140057d43
lea rax, [rbp - 0x20]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x38]
mov qword [rbp - 0x30], rax
lea rcx, [0x140200920]
lea r8, [0x14006f6f0]
lea rdx, [rbp - 0x30]
call fcn.14009e430
movsxd rax, dword [0x140200928]
lea rdx, [rax - 1]
mov rcx, qword [r14 + 0x10]
mov r8, qword [r14 + 0x18]
sub r8, rcx
sar r8, 3
cmp r8, rdx
jbe 0x140057e4b
mov r14, qword [rcx + rax*8 - 8]
test r14, r14
je 0x140057e4b
mov rcx, qword [rbp - 0x28]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x140057d8c
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r14]
xor bl, 1
movzx r8d, bl
lea rbx, [rbp - 0x20]
mov rcx, r14
mov rdx, rbx
call qword [rax + r8*8 + 0x28]
movzx eax, byte [rbp - 9]
mov rdx, rax
test al, al
jns 0x140057db4
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
test rdx, rdx
je 0x140057e2e
test al, al
cmovns rcx, rbx
mov r14, rcx
jmp 0x140057ddb
add rdx, r8
inc r14
cmp r14, rdx
je 0x140057e2e
test rdi, rdi
je 0x140057e11
movzx eax, byte [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x140057e00
lea rdx, [rcx + 1]
mov qword [rdi + 0x30], rdx
mov byte [rcx], al
jmp 0x140057e13
movzx edx, al
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp eax, 0xffffffff
jne 0x140057e13
xor edi, edi
movzx eax, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
mov rdx, rbx
mov r8, rax
test al, al
jns 0x140057dd0
mov r8, qword [rbp - 0x18]
mov rdx, rcx
jmp 0x140057dd0
shr al, 7
mov qword [rsi], rdi
test al, al
je 0x140057e3d
call fcn.14010e7fc
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
call fcn.14004d890
int3
Function at 0x140058360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
movzx ebx, byte [rbp + 0x58]
test byte [r9 + 8], 1
jne 0x1400583aa
movzx eax, word [rbp + 0x50]
movzx edx, bl
mov r10, qword [rcx]
mov dword [rsp + 0x28], edx
mov word [rsp + 0x20], ax
mov rdx, rsi
mov r8, rdi
call qword [r10 + 0x30]
jmp 0x140058501
lea rdx, [rbp - 0x28]
mov rcx, r9
call fcn.14004db70
mov r14, qword [rbp - 0x28]
lea rax, [0x140200930]
mov qword [rbp - 0x20], rax
lea rax, [0x140050e80]
mov qword [rbp - 0x18], rax
mov rax, qword [0x140200930]
cmp rax, 0xffffffffffffffff
je 0x140058404
lea rax, [rbp - 0x20]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x38]
mov qword [rbp - 0x30], rax
lea rcx, [0x140200930]
lea r8, [0x14006f6f0]
lea rdx, [rbp - 0x30]
call fcn.14009e430
movsxd rax, dword [0x140200938]
lea rdx, [rax - 1]
mov rcx, qword [r14 + 0x10]
mov r8, qword [r14 + 0x18]
sub r8, rcx
sar r8, 3
cmp r8, rdx
jbe 0x14005850f
mov r14, qword [rcx + rax*8 - 8]
test r14, r14
je 0x14005850f
mov rcx, qword [rbp - 0x28]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x14005844d
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r14]
xor bl, 1
movzx r8d, bl
lea rbx, [rbp - 0x20]
mov rcx, r14
mov rdx, rbx
call qword [rax + r8*8 + 0x28]
movzx eax, byte [rbp - 9]
test al, al
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov r8, rax
cmovs r8, rdx
test r8, r8
je 0x1400584f2
test al, al
mov r14, rbx
cmovs r14, rcx
jmp 0x1400584b0
xor edi, edi
add r14, 2
test al, al
mov r8, rbx
cmovs r8, rcx
movzx r9d, al
cmovs r9, rdx
lea r8, [r8 + r9*2]
cmp r14, r8
je 0x1400584f2
test rdi, rdi
je 0x140058490
movzx eax, word [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x1400584d0
lea rdx, [rcx + 2]
mov qword [rdi + 0x30], rdx
mov word [rcx], ax
jmp 0x1400584dc
mov r8, qword [rdi]
mov rcx, rdi
mov edx, eax
call qword [r8 + 0x60]
cmp ax, 0xffff
jne 0x1400584e4
xor edi, edi
movzx eax, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
jmp 0x140058492
shr al, 7
mov qword [rsi], rdi
test al, al
je 0x140058501
call fcn.14010e7fc
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
call fcn.14004d890
int3
Function at 0x140072f00
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov ebx, edx
mov ecx, dword [rcx + 8]
call fcn.140126d94
mov rdi, rax
movsxd rdx, ebx
mov rcx, rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140072f4d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140072f4d
mov dword [rsi], 0
call fcn.1400764b0
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140072f7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140073d80
mov edi, eax
call fcn.1401265b4
mov dword [rax], edi
call fcn.1400762f0
mov rdi, rax
call fcn.1401265b4
mov eax, dword [rax]
mov dword [rsi], eax
mov qword [rsi + 8], rdi
mov al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140073740
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov rsi, rcx
lea rax, str.create_directory
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
mov qword [rbp], rcx
mov qword [rbp + 8], 0
test rdx, rdx
je 0x14007378f
mov rdi, rdx
mov dword [rdx], 0
call fcn.1400764b0
mov qword [rdi + 8], rax
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14007379b
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x140073840
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140073d80
mov edi, eax
call fcn.1401265b4
mov dword [rax], edi
call fcn.1401265b4
cmp dword [rax], 0x11
jne 0x140073813
call fcn.1400762f0
mov rdi, rax
call fcn.1401265b4
mov eax, dword [rax]
mov dword [rbp + 0x10], eax
mov qword [rbp + 0x18], rdi
mov dword [rbp + 0x20], 0
call fcn.1400764b0
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x30]
lea r8, [rbp - 0x60]
lea r9, [rbp + 0x20]
mov rdx, rsi
call fcn.140072420
cmp byte [rbp + 0x30], 2
jne 0x140073833
xor eax, eax
jmp 0x140073840
call fcn.1400762f0
mov rsi, rax
call fcn.1401265b4
mov eax, dword [rax]
mov dword [rbp - 0x60], eax
mov qword [rbp - 0x58], rsi
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x60]
jmp 0x14007383b
lea rcx, [rbp - 0x10]
lea rdx, [rbp + 0x10]
call fcn.140072bf0
nop
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140073a50
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x2e0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x258], 0xfffffffffffffffe
mov rsi, rcx
lea rax, str.temp_directory_path
mov qword [rbp + 0x208], rax
mov qword [rbp + 0x210], rdx
xorps xmm0, xmm0
movups xmmword [rbp + 0x218], xmm0
test rdx, rdx
je 0x140073aa6
mov rdi, rdx
mov dword [rdx], 0
call fcn.1400764b0
mov qword [rdi + 8], rax
lea rdx, [rbp - 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140073ad1
cmp eax, 0x105
jb 0x140073b0d
call fcn.1400762f0
mov dword [rbp + 0x1b8], 0x26
jmp 0x140073aeb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140073d80
mov edi, eax
call fcn.1400762f0
mov dword [rbp + 0x1b8], edi
mov qword [rbp + 0x1c0], rax
lea rcx, [rbp + 0x208]
lea r8, [rbp + 0x1b8]
mov rdx, rsi
call fcn.1400722f0
jmp 0x140073c60
dec eax
cmp word [rbp + rax*2 - 0x50], 0x5c
jne 0x140073b1e
mov word [rbp + rax*2 - 0x50], 0
xorps xmm0, xmm0
movaps xmmword [rbp + 0x240], xmm0
mov qword [rbp + 0x250], 0
lea r8, [rbp - 0x52]
nop word [rax + rax]
cmp word [r8 + 2], 0
lea r8, [r8 + 2]
jne 0x140073b40
lea rcx, [rbp + 0x240]
lea rdx, [rbp - 0x50]
call fcn.14001acd0
mov dword [rbp + 0x228], 0
call fcn.1400764b0
mov qword [rbp + 0x230], rax
lea rcx, [rbp + 0x238]
lea rdi, [rbp + 0x240]
lea r8, [rbp + 0x1b8]
lea r9, [rbp + 0x228]
mov rdx, rdi
call fcn.140072420
movzx eax, byte [rbp + 0x238]
cmp eax, 2
je 0x140073bb8
test eax, eax
jne 0x140073be4
cmp byte [rbp + 0x257], 0
jns 0x140073c22
mov rax, qword [rbp + 0x240]
jmp 0x140073c29
mov rax, qword [rbp + 0x250]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rbp + 0x240]
movups xmmword [rsi], xmm0
xorps xmm0, xmm0
movaps xmmword [rbp + 0x240], xmm0
mov qword [rbp + 0x250], 0
jmp 0x140073c4b
cmp byte [rbp + 0x257], 0
jns 0x140073bf4
mov rdi, qword [rbp + 0x240]
mov dword [rbp + 0x1b8], 0x14
mov qword [rsp + 0x20], rdi
lea r9, str.path___ls__is_not_a_directory
lea rcx, [rbp + 0x208]
lea r8, [rbp + 0x1b8]
mov rdx, rsi
call fcn.140073cf0
jmp 0x140073c4b
lea rax, [rbp + 0x240]
mov qword [rsp + 0x20], rax
lea r9, str.cannot_access_path___ls_
lea rcx, [rbp + 0x208]
lea r8, [rbp + 0x228]
mov rdx, rsi
call fcn.140073870
cmp byte [rbp + 0x257], 0
jns 0x140073c60
mov rcx, qword [rbp + 0x240]
call fcn.14010e7fc
mov rax, rsi
add rsp, 0x2e0
pop rdi
pop rsi
pop rbp
ret