joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013d70
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1400bcdd0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140174028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400bef60
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013e32
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140013e36
lea rdi, [rsp + 0x840]
mov rcx, rdi
call fcn.1400bb2e0
mov rcx, rsi
mov rdx, rdi
mov r8, rax
call fcn.140013e90
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400bce30
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140013e13
cmp eax, 2
jne 0x140013e81
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400bef60
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x140013e88
lea rdi, [rsp + 0x40]
jmp 0x140013dfb
mov edi, 0x3f4
jmp 0x140013e13
mov edi, 0xea
jmp 0x140013e13

Function at 0x140017b70
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x140017c65
cmp qword [rsi], 0
jne 0x140017c65
cmp dword [rsi + 0x14], 0
jne 0x140017c65
cmp qword [rsi + 8], 0
jne 0x140017c65
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x140017be4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140017c4c
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140017bdc
mov qword [rsi], r14
call fcn.140080200
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x140017c1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140017c34
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140017c16
mov qword [rsi + 8], r14
call fcn.140080200
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140080200
mov rcx, qword [rsi + 8]
call fcn.1400b1d20
mov qword [rsi + 8], 0
jmp 0x140017c03
call fcn.140080200
mov rcx, qword [rsi]
call fcn.1400b1d20
mov qword [rsi], 0
jmp 0x140017bca
mov rcx, rsi
call fcn.140123b10
mov rax, qword [rsi]
jmp 0x140017baa
Function at 0x140018660
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rax, qword [0x140174028]
xor rax, rsp
mov qword [rsp + 0x48], rax
test rcx, rcx
je 0x140018739
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x40]
mov qword [rbx], 0
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r15
mov r14, rax
call r15
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 2
mov rcx, rax
mov rdx, rdi
mov r8, r14
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
setne bl
je 0x14001873d
mov r14, qword [rsp + 0x40]
cmp qword [rsi], r14
je 0x140018708
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140018723
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140018700
mov qword [rsi], r14
call fcn.140080200
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400bce30
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140080200
mov rcx, qword [rsi]
call fcn.1400b1d20
mov qword [rsi], 0
jmp 0x1400186ee
mov bl, 1
jmp 0x140018708
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140018700
Function at 0x14001bd80
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov rbx, qword [rdx]
mov qword [rdx], rax
lea r14, [rbx + 1]
cmp r14, 2
jb 0x14001bda6
call fcn.140080200
cmp qword [rsi], rbx
je 0x14001bdd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14001bde2
cmp r14, 2
jb 0x14001bdcd
mov qword [rsi], rbx
call fcn.140080200
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140080200
mov rcx, qword [rsi]
call fcn.1400b1d20
mov qword [rsi], 0
jmp 0x14001bdbf

Function at 0x14001cba0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov rax, qword [0x140174028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx]
inc rax
cmp rax, 1
ja 0x14001cd3a
mov rbx, r9
mov edi, r8d
mov ebp, edx
mov rsi, rcx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov r14, rax
cmp qword [rsi], rax
je 0x14001cc27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14001cd17
mov rax, r14
inc rax
cmp rax, 2
jb 0x14001cc1b
mov qword [rsi], r14
call fcn.140080200
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
lea rax, [r14 + 1]
cmp rax, 1
jbe 0x14001cd54
xor r15d, r15d
lea rcx, [rsp + 0x30]
mov r8d, 0x90
xor edx, edx
call fcn.1400bef60
test ebp, ebp
jne 0x14001ccf6
mov eax, 0xff
mov r15d, 0x408
mov dword [rsp + 0x58], 1
mov ecx, r15d
mov dword [rsp + 0x2c], eax
mov r15d, eax
test rbx, rbx
je 0x14001cc82
or ecx, 0x100
mov qword [rsp + 0xa0], rbx
or ecx, 0x2000
mov dword [rsp + 0x40], ecx
lea r8, [rsp + 0x30]
mov rcx, r14
mov edx, 9
mov r9d, 0x90
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x14001cd30
not edi
and r15d, edi
lea r8, [rsp + 0x2c]
mov dword [r8], r15d
mov rcx, qword [rsi]
mov edx, 4
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
xor esi, esi
test eax, eax
je 0x14001cd30
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400bce30
mov eax, esi
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp ebp, 1
jne 0x14001cd0b
mov eax, 0xd8
mov r15d, 8
jmp 0x14001cc5d
cmp ebp, 3
jne 0x14001cd41
xor ecx, ecx
jmp 0x14001cc6f
call fcn.140080200
mov rcx, qword [rsi]
call fcn.1400b1d20
mov qword [rsi], 0
jmp 0x14001cc07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14001ccd4
mov esi, 0x4df
jmp 0x14001ccd4
mov eax, 0xc8
cmp ebp, 2
je 0x14001cc65
jmp 0x14001cc8c
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400bce30
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x14001e190
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rcx
mov rax, qword [0x140174028]
xor rax, rsp
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14001e276
movaps xmm0, xmmword [0x14015bb90]
lea rcx, [rsp + 0x30]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx + 0x30], xmm0
movaps xmmword [rcx + 0x20], xmm0
mov dword [rcx + 0x40], 0xaaaaaaaa
mov word [rcx], 0x401
mov dword [rcx + 2], 0
mov word [rcx + 6], 0
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [rcx + 8], xmm0
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14001e274
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
test eax, eax
je 0x14001e26d
mov ebx, eax
mov rcx, rbx
call fcn.1400babfc
mov rdi, rax
lea r14, [rax + rbx]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov r8, rbx
call fcn.1400be8b0
mov qword [rsi], rdi
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r14
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400bce30
mov rax, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
xor r14d, r14d
xor edi, edi
jmp 0x14001e242
ud2
int3

Function at 0x14001f4a0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov eax, r8d
mov rsi, rdx
mov rdx, qword [0x140174028]
xor rdx, rsp
mov qword [rsp + 0x38], rdx
mov rcx, qword [rcx]
movabs rdx, 0xaaaaaaaaaaaaaaaa
lea r8, [rsp + 0x30]
mov qword [r8], rdx
or r9d, 8
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], 2
mov edx, r9d
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14001f56e
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14001f56e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14001f56a
call fcn.140080200
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov qword [rsi + 8], 0
test rbx, rbx
je 0x14001f552
cmp rbx, 0xffffffffffffffff
je 0x14001f573
call fcn.140080200
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsi + 8], rbx
call fcn.140080200
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400bce30
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
xor ebx, ebx
jmp 0x14001f516
mov byte [rsi], 0
jmp 0x14001f552
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14001f54a
Function at 0x140027b10
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, qword [rdx]
mov qword [rdx], 0
lea r14, [rbx + 1]
cmp r14, 2
jb 0x140027b35
call fcn.140080200
cmp qword [rsi], rbx
je 0x140027b64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140027b71
cmp r14, 2
jb 0x140027b5c
mov qword [rsi], rbx
call fcn.140080200
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140080200
mov rcx, qword [rsi]
call fcn.1400b1d20
mov qword [rsi], 0
jmp 0x140027b4e
Function at 0x14002bc70
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp dword [rcx + 0x10], 0
mov rcx, qword [rcx]
je 0x14002be23
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
movabs rbx, 0xfffffffc00000000
mov rdi, qword [rsi + 0x30]
mov qword [rsi + 0x30], 0
test rdi, rdi
je 0x14002bd12
mov rcx, qword [rdi + 0x20]
mov rdx, rdi
call fcn.14002c0d0
test al, al
je 0x14002bce2
lea rcx, [rdi + 8]
call fcn.14002be50
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002bce2
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rdi + 0x20]
mov rax, rcx
and rax, rbx
cmp rax, qword [0x140183548]
je 0x14002bdfa
mov qword [rdi + 0x20], 0
lea rcx, [rdi + 8]
call fcn.14002be50
mov rcx, rdi
call fcn.1400bab7c
mov rdx, qword [rsi + 0x48]
mov qword [rsi + 0x48], 0
test rdx, rdx
je 0x14002bd32
lea rcx, fcn.140080350
xor r8d, r8d
call fcn.140089ea0
mov rcx, qword [rsi + 0x38]
and rbx, rcx
cmp rbx, qword [0x140183548]
je 0x14002be04
mov rdi, qword [rsi + 0x30]
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
test rdi, rdi
jne 0x14002be0e
mov rax, qword [rsi + 0x28]
inc rax
cmp rax, 2
jb 0x14002bd98
call fcn.140080200
mov rdi, qword [rsi + 0x28]
cmp qword [0x140186c28], 0
je 0x14002bdb9
mov rcx, qword [0x140186c28]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rdi
call qword [case.0x14010edb0.0]
mov qword [rsi + 0x28], 0
lea rcx, [rsi + 0x20]
call fcn.14001efe0
lea rcx, [rsi + 0x18]
call fcn.14001efe0
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14001bfc0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401647f5]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002be46
lea rcx, [sym.opera.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14002bdf4
call qword [case.0x14010edb0.0]
mov rcx, rax
xor edx, edx
call fcn.140021210
jmp 0x14002bd7a
xor ecx, ecx
mov dl, 1
jmp 0x14002bded
call fcn.14007d5f0
jmp 0x14002bcf9
call fcn.14007d5f0
jmp 0x14002bd46
mov rcx, rdi
call fcn.140038aa0
mov rcx, rdi
call fcn.1400bab7c
jmp 0x14002bd5a
test rcx, rcx
jne 0x14002bc87
cmp dword [rsi + 0x14], 0
je 0x14002be39
xor ecx, ecx
jmp 0x14002bc87
cmp qword [rsi + 8], 0
je 0x14002bca0
jmp 0x14002be32
xor ecx, ecx
jmp 0x14002bdeb
Function at 0x14002c360
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x14002c482
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x14002c4b8
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x14002c4c0
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
test edi, edi
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x14002c4c4
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x14002c4ca
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x14002c3bc
xor eax, eax
jmp 0x14002c451
mov dl, byte [r8 + 0x19]
jmp 0x14002c4b1
cmp byte [r8 + 0x1a], 0
je 0x14002c4b5
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x14002c4b5
cmp ecx, 0x666f736f
jne 0x14002c4b5
cmp edx, 0x76482074
jne 0x14002c4b5
mov byte [r8 + 0x19], 1
jmp 0x14002c4b5
Function at 0x14002dc80
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140174028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400bef60
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14002dd28
cmp word [rsp + 0x70], 0
je 0x14002dd28
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400bb2e0
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.1400b2990
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400bce30
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
jmp 0x14002dcf7
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
call fcn.14002dd80
test al, al
jne 0x14002dd15
lea rax, [0x1401605de]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.1400b2990
cmp byte [rsp + 0x57], 0
jns 0x14002dcf7
mov rcx, qword [rsp + 0x40]
call fcn.1400bab7c
jmp 0x14002dcf7

Function at 0x14002dd80
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x298
mov rsi, rcx
mov rax, qword [0x140174028]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rbx, [rsp + 0x80]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400bef60
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14002de80
lea r14, [rsp + 0x28]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400bb2e0
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov rdx, r14
call fcn.1400b2990
movaps xmm0, xmmword [0x14015bb90]
lea r14, [rsp + 0x50]
movaps xmmword [r14], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r14 + 0x10], rax
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rbx]
cmovns rax, rbx
lea rdx, [rsp + 0x70]
mov qword [rdx], rax
cmovs rcx, qword [rbx + 8]
mov qword [rdx + 8], rcx
mov rcx, r14
call fcn.1400b2990
mov rcx, r14
call fcn.140028440
cmp byte [rsi + 0x17], 0
js 0x14002dea8
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
mov byte [rsp + 0x67], 0
mov word [rsp + 0x50], 0
cmp byte [rsp + 0x4f], 0
jns 0x14002de80
mov rcx, qword [rsp + 0x38]
call fcn.1400bab7c
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400bce30
mov eax, ebx
add rsp, 0x298
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsi]
call fcn.1400bab7c
jmp 0x14002de52
Function at 0x140032ac0
Capabilities:
Check if file exists
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rsi, rdx
mov rax, qword [rcx + 8]
mov r14d, 8
inc rax
cmp rax, 1
ja 0x140032c41
mov rdi, rcx
cmp qword [rcx + 0x18], 0
jne 0x140032c41
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov r14, rax
cmp qword [rdi + 8], rax
je 0x140032b4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi + 8]
inc rax
cmp rax, 2
jae 0x140032c62
mov rax, r14
inc rax
cmp rax, 2
jb 0x140032b42
mov qword [rdi + 8], r14
call fcn.140080200
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140032d1c
movabs r12, 0xfffffffc00000000
mov ecx, 0x20
call fcn.1400babfc
mov r15, rax
mov qword [rax], rax
mov qword [rax + 8], rax
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
mov ecx, 0x18
call fcn.1400babfc
mov rbx, rax
mov rax, qword [rsi]
mov qword [rsi], 0
mov qword [rbx], r14
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], r15
mov rcx, qword [rdi + 0x18]
mov rax, rcx
and rax, r12
cmp rax, qword [0x140183548]
je 0x140032c95
mov rax, r15
and rax, r12
cmp rax, qword [0x140183548]
je 0x140032c9f
mov qword [rdi + 0x18], r15
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140075380]
xor r14d, r14d
xor ecx, ecx
xor edx, edx
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r15, rax
cmp qword [rdi + 0x10], rax
je 0x140032c38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rdi + 0x10]
inc rax
cmp rax, 2
jae 0x140032c7d
mov rax, r15
inc rax
cmp rax, 2
jb 0x140032c2c
mov qword [rdi + 0x10], r15
call fcn.140080200
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r15, qword [rdi + 0x10]
inc r15
cmp r15, 1
jbe 0x140032cc0
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
jne 0x140032cac
mov eax, r14d
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140080200
mov rcx, qword [rdi + 8]
call fcn.1400b1d20
mov qword [rdi + 8], 0
jmp 0x140032b2d
call fcn.140080200
mov rcx, qword [rdi + 0x10]
call fcn.1400b1d20
mov qword [rdi + 0x10], 0
jmp 0x140032c17
call fcn.140086ed0
jmp 0x140032bba
mov rcx, r15
call fcn.14007cc60
jmp 0x140032bcd
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov edx, 1
call qword [case.0x14010edb0.0]
jmp 0x140032c50
mov rcx, qword [rdi + 0x18]
and r12, rcx
cmp r12, qword [0x140183548]
jne 0x140032cd5
call fcn.140086ed0
mov qword [rdi + 0x18], 0
test rbx, rbx
je 0x140032d1c
mov rdi, qword [rbx + 0x10]
mov qword [rbx + 0x10], 0
test rdi, rdi
je 0x140032d03
mov rcx, rdi
call fcn.1400794b0
mov rcx, rdi
call fcn.1400bab7c
mov rcx, qword [rbx + 8]
mov qword [rbx + 8], 0
test rcx, rcx
jne 0x140032d27
mov rcx, rbx
call fcn.1400bab7c
mov r14d, 0x3b
jmp 0x140032c41
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov edx, 1
call qword [case.0x14010edb0.0]
jmp 0x140032d14
Function at 0x140033d10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov r15b, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x140033d72
mov dl, byte [rbp + 0x60]
movzx r8d, r15b
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], r8d
mov byte [rsp + 0x20], dl
mov rdx, rsi
mov r8, rdi
call qword [case.0x14010edb0.0]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rsi], rdi
jmp 0x140033d5d
mov rax, qword [r9 + 0x30]
lea rbx, [rbp - 0x20]
mov qword [rbx], rax
mov qword [rbp - 8], rax
lock inc dword [rax + 8]
lea rdx, [0x140185800]
mov rcx, rbx
call fcn.1400afc00
mov r14, rax
mov eax, 0xffffffff
mov rcx, qword [rbp - 8]
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x140033dba
mov rcx, qword [rbp - 8]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14010edb0.0]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbp - 0x10], rax
movaps xmm0, xmmword [0x14015bb90]
movaps xmmword [rbp - 0x20], xmm0
mov rax, qword [r14]
xor r15b, 1
movzx ecx, r15b
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, rbx
call qword [case.0x14010edb0.0]
mov al, byte [rbp - 9]
test al, al
mov rcx, qword [rbp - 0x20]
mov r14, rbx
cmovs r14, rcx
jmp 0x140033e25
movzx edx, al
mov rax, qword [rdi]
mov rax, qword [rax + 0x60]
mov rcx, rdi
call qword [case.0x14010edb0.0]
cmp eax, 0xffffffff
jne 0x140033e1b
xor edi, edi
inc r14
mov al, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
mov rdx, rbx
test al, al
cmovs rdx, rcx
js 0x140033e5d
movzx eax, al
add rdx, rax
cmp r14, rdx
je 0x140033d6d
test rdi, rdi
je 0x140033e19
mov al, byte [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x140033e01
lea rdx, [rcx + 1]
mov qword [rdi + 0x30], rdx
mov byte [rcx], al
jmp 0x140033e1b
add rdx, qword [rbp - 0x18]
cmp r14, rdx
jne 0x140033e3f
mov qword [rsi], rdi
call fcn.1400bab7c
jmp 0x140033d5d

Function at 0x1400357a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140174028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x14015bb90]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x209
call fcn.140093320
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400987b0
cmp byte [rdi + 0x17], 0
jns 0x140035820
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14007d9b0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400bce30
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret