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

Disassembly:
mov qword [rsp + 8], rbx
xor r10d, r10d
mov r11, rdx
mov rbx, rcx
test r9, r9
je 0x1400fe6fb
sub rbx, rdx
sub r8, rdx
mov ecx, dword [rbx + r11]
mov edx, dword [r11]
lea eax, [rdx + rcx]
add r10d, eax
mov eax, edx
or edx, ecx
mov dword [r8 + r11], r10d
xor eax, ecx
lea r11, [r11 + 4]
and r10d, eax
xor r10d, edx
shr r10d, 0x1f
dec r9
jne 0x1400fe6d1
mov rbx, qword [rsp + 8]
mov eax, r10d
ret

Function at 0x1400fe710
Capabilities:
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
mov rbp, qword [rsp + 0x30]
xor eax, eax
mov rdi, r9
mov rsi, r8
mov r11, rdx
mov r14, rcx
mov ebx, eax
test rbp, rbp
je 0x1400fe795
sub r14, rdx
sub rsi, rdx
sub rdi, rdx
mov r8d, dword [r14 + r11]
mov edx, dword [r11]
mov r9d, dword [rsi + r11]
lea r10d, [rdx + r8]
add r10d, eax
mov eax, r10d
mov ecx, r10d
sub eax, r9d
xor ecx, edx
sub eax, ebx
mov ebx, eax
mov dword [rdi + r11], eax
mov eax, r10d
xor eax, r8d
xor ebx, r10d
lea r11, [r11 + 4]
or eax, ecx
mov ecx, r10d
xor ecx, r9d
xor eax, r10d
or ebx, ecx
shr eax, 0x1f
xor ebx, r10d
shr ebx, 0x1f
dec rbp
jne 0x1400fe748
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
sub eax, ebx
mov rbx, qword [rsp + 0x10]
pop r14
ret

Function at 0x1400fe9b4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r11d, r11d
mov r10, rdx
mov rbx, rcx
test r9, r9
je 0x1400fe9f6
sub rbx, rdx
sub r8, rdx
mov ecx, dword [rbx + r10]
mov eax, dword [r10]
mov edx, ecx
sub edx, eax
xor eax, ecx
sub edx, r11d
mov dword [r8 + r10], edx
xor edx, ecx
lea r10, [r10 + 4]
or edx, eax
xor edx, ecx
shr edx, 0x1f
mov r11d, edx
dec r9
jne 0x1400fe9cd
mov rbx, qword [rsp + 8]
mov eax, r11d
ret
Function at 0x140102730
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rbp + 0x2f], rax
lea r15, [0x14014cdd0]
mov r14d, r8d
mov rsi, rdx
test r15, r15
je 0x140102847
cmp dword [0x14014cdd0], 0x1423
jne 0x140102847
mov ebx, dword [0x14014cdd4]
mov edi, dword [0x14014cde0]
lea rcx, [rbp - 0x59]
call fcn.1400fb3c8
cmp dword [0x14014cde4], 1
lea r8, [rbp - 0x59]
mov edx, r14d
mov rcx, rsi
jne 0x1401027d7
call fcn.1400fb404
test byte [0x14014cdd8], 1
je 0x1401027c4
lea r8, [rbp - 0x59]
lea rcx, [0x14014cdf0]
mov edx, ebx
call fcn.1400fb404
lea rdx, [rbp + 3]
lea rcx, [rbp - 0x59]
call fcn.1400fb6fc
lea r8, [rbp + 3]
jmp 0x140102808
call fcn.1400fb404
test byte [0x14014cdd8], 1
je 0x1401027f7
lea r8, [rbp - 0x59]
lea rcx, [0x14014cdf0]
mov edx, ebx
call fcn.1400fb404
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x59]
call fcn.1400fb6fc
lea r8, [rbp + 0x17]
mov r9d, edi
mov r10d, reloc.Cabinet.dll_FDICreate
mov cl, byte [r8]
cmp r9d, ebx
sbb eax, eax
inc r8
and eax, r9d
mov r9d, eax
xor byte [rax + r15 + 0x20], cl
inc r9d
dec r10
jne 0x140102811
mov eax, dword [0x14014cddc]
xor edx, edx
add eax, edi
div ebx
lea eax, [r10 + 1]
mov dword [0x14014cde0], edx
jmp 0x140102849
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140001000
mov rbx, qword [rsp + 0xe0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140105ce0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0xb0
xor r15d, r15d
mov dword [rsp + 0x20], r15d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov r14d, r15d
xor eax, eax
lock cmpxchg qword [0x14014d218], rbx
je 0x140105d49
cmp rax, rbx
jne 0x140105d3c
mov edi, 1
mov r14d, edi
jmp 0x140105d4e
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140105d20
mov edi, 1
mov eax, dword [0x14014d220]
cmp eax, edi
jne 0x140105d66
mov esi, 0x1f
mov ecx, esi
call sub.msvcrt.dll__amsg_exit
jmp 0x140105dd7
mov eax, dword [0x14014d220]
test eax, eax
jne 0x140105dcc
mov dword [0x14014d220], edi
lea r12, [0x1401060d8]
lea rbx, [0x1401060c0]
mov qword [rsp + 0x30], rbx
mov eax, r15d
mov dword [rsp + 0x24], eax
cmp rbx, r12
jae 0x140105dbe
test eax, eax
jne 0x140105dc2
mov rsi, qword [rbx]
test rsi, rsi
je 0x140105db3
mov rcx, rsi
mov rax, qword [fcn.140015690]
call rax
call rsi
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x140105d90
test eax, eax
je 0x140105dd2
mov eax, 0xff
jmp 0x140105f31
mov dword [0x14014ace8], edi
mov esi, 0x1f
mov eax, dword [0x14014d220]
cmp eax, edi
jne 0x140105dfe
lea rdx, [0x1401060b8]
lea rcx, [0x140105f50]
call sub.msvcrt.dll__initterm
mov dword [0x14014d220], 2
test r14d, r14d
jne 0x140105e0d
mov rax, r15
xchg qword [0x14014d218], rax
cmp qword [0x14014d238], r15
je 0x140105e44
lea rcx, [0x14014d238]
call fcn.140106960
test eax, eax
je 0x140105e44
mov rbx, qword [0x14014d238]
mov rcx, rbx
mov rax, qword [fcn.140015690]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140105e5d
mov eax, 0xff
jmp 0x140105f31
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x140105ee2
cmp word [rcx], r15w
je 0x140105e76
test edx, edx
jne 0x140105ee2
movzx eax, word [rcx]
sub ax, di
cmp ax, si
ja 0x140105e8c
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140105e76
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000ffb0
mov dword [0x14014ace4], eax
cmp dword [0x14014ad08], r15d
jne 0x140105ecb
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14014ace8], r15d
jne 0x140105ee0
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14014ace4]
jmp 0x140105f31
cmp word [rcx], 0x22
jne 0x140105ef6
mov eax, r15d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140105e66
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
sub rsp, 0x28
call 0x1401fc000
add rsp, 0x28
jmp 0x140105ce0
Function at 0x140106278
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140148058]
and qword [rbp + 0x18], 0
movabs rbx, 0x2b992ddfa232
cmp rax, rbx
jne 0x140106333
lea rcx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
shl rax, 0x18
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbp + 0x10]
mov eax, eax
xor rax, qword [rbp + 0x10]
xor rax, rcx
lea rcx, [rbp + 0x20]
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rbp + 0x20]
shl rax, 0x20
movabs rcx, 0xffffffffffff
xor rax, qword [rbp + 0x20]
xor rax, qword [rbp + 0x10]
and rax, rcx
movabs rcx, 0x2b992ddfa233
cmp rax, rbx
cmove rax, rcx
mov qword [0x140148058], rax
mov rbx, qword [rsp + 0x48]
not rax
mov qword [0x140148060], rax
add rsp, 0x20
pop rbp
ret

Function at 0x140106428
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140106870
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401068bc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401068b4
cmp dword [rcx + 0x3c], edx
jl 0x1401068b4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1401068b4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1401068bc
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140106a08
Capabilities:
Print debug messages

Disassembly:
jmp 0x140106a10
push rbx
sub rsp, 0x540
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140106a8c
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140106aac
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, [0x140106ad8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140001000
add rsp, 0x540
pop rbx
ret
Function at 0x140106a10
Capabilities:
Print debug messages

Disassembly:
jmp 0x140106a10
push rbx
sub rsp, 0x540
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140106a8c
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140106aac
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, [0x140106ad8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140001000
add rsp, 0x540
pop rbx
ret
Function at 0x14010a234
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1b8]
sub rsp, 0x2b8
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rbx, r8
mov rdi, rcx
mov r14d, edx
lea rcx, [rbp - 0x6e]
xor r15d, r15d
xor edx, edx
mov r8d, 0x206
mov esi, r9d
mov qword [rsp + 0x60], rbx
mov word [rbp - 0x70], r15w
call sub.msvcrt.dll_memset
xor eax, eax
lea r8, [0x14010a460]
lea rcx, [rbp - 0x70]
mov r9, rdi
mov edx, 0x104
mov word [rsp + 0x68], r15w
mov qword [rsp + 0x6a], rax
mov qword [rsp + 0x72], rax
mov qword [rsp + 0x7a], rax
mov dword [rbp - 0x7e], eax
mov word [rbp - 0x7a], ax
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
call fcn.1400780b0
mov edi, eax
test eax, eax
jns 0x14010a2f9
mov rcx, qword [0x140148ea8]
lea rdx, [0x140148ea8]
cmp rcx, rdx
je 0x14010a428
test byte [rcx + 0x1c], 1
je 0x14010a428
lea edx, [r15 + 0x22]
mov r9d, eax
jmp 0x14010a418
lea r8, [0x140005dd0]
lea rcx, [rsp + 0x68]
mov r9d, r14d
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.1400780b0
mov edi, eax
test eax, eax
jns 0x14010a340
mov rcx, qword [0x140148ea8]
lea rdx, [0x140148ea8]
cmp rcx, rdx
je 0x14010a428
test byte [rcx + 0x1c], 1
je 0x14010a428
mov edx, 0x23
jmp 0x14010a2f1
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x58]
neg esi
sbb rcx, rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
neg rcx
lea rdx, [rbp - 0x70]
xor r9d, r9d
xor r8d, r8d
add rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14010a3e9
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14010a3e9
mov eax, dword [rsp + 0x64]
lea rdx, [rsp + 0x68]
mov r9d, reloc.WSOCK32.dll_inet_ntoa
mov dword [rsp + 0x54], eax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14010a3e4
mov rcx, qword [0x140148ea8]
lea rdx, [0x140148ea8]
cmp rcx, rdx
je 0x14010a428
test byte [rcx + 0x1c], 1
je 0x14010a428
mov edx, 0x25
jmp 0x14010a407
mov edi, r15d
jmp 0x14010a428
mov rcx, qword [0x140148ea8]
lea rdx, [0x140148ea8]
cmp rcx, rdx
je 0x14010a428
test byte [rcx + 0x1c], 1
je 0x14010a428
mov edx, 0x24
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001318]
call fcn.14000fd64
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14010a438
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140001000
add rsp, 0x2b8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14010a660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
call sub.KERNEL32.dll_SetEvent
test eax, eax
jne 0x14010a6b7
mov rax, qword [0x140148ea8]
lea rcx, [0x140148ea8]
cmp rax, rcx
je 0x14010a6b7
test byte [rax + 0x1c], 1
je 0x14010a6b7
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x140148ea8]
lea r8, [0x140001328]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, WSAGetLastError
call fcn.14000fd64
lea rdi, [rbx + 0x88]
mov rcx, rdi
call fcn.14010efbc
mov rcx, qword [rbx]
test rcx, rcx
je 0x14010a6d8
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
and qword [rbx], 0
mov rcx, rdi
call fcn.1401103e0
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14010bb74
Function at 0x14010ccb4
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ebx, 0x80070057
test rcx, rcx
jne 0x14010ccf9
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010cde9
test byte [rcx + 0x1c], 1
je 0x14010cde9
lea edx, [rdi + 0xc]
jmp 0x14010cd24
test rdx, rdx
jne 0x14010cd39
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010cde9
test byte [rcx + 0x1c], 1
je 0x14010cde9
mov edx, reloc.Cabinet.dll_FCIFlushCabinet
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001318]
call fcn.14000fcb0
jmp 0x14010cde9
lea r8, [0x140001cb8]
mov edx, 0x104
call fcn.140044c28
mov ebx, eax
test eax, eax
jns 0x14010cd74
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010cde9
test byte [rcx + 0x1c], 1
je 0x14010cde9
mov edx, reloc.Cabinet.dll_FCIDestroy
jmp 0x14010cda8
mov r8, rsi
mov edx, 0x104
mov rcx, rdi
call fcn.140044c28
mov ebx, eax
test eax, eax
jns 0x14010cdbd
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010cde9
test byte [rcx + 0x1c], 1
je 0x14010cde9
mov edx, reloc.OLEAUT32.dll_SafeArrayDestroy
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001318]
mov r9d, ebx
call fcn.14000fd64
jmp 0x14010cde9
xor edx, edx
mov rcx, rdi
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
jne 0x14010cde7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x14010cde7
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14010cde9
xor ebx, ebx
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14010cdfc
Capabilities:
Receive http response

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x830
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov ebx, edx
mov rdi, rcx
mov byte [rsp + 0x20], 0
call fcn.14010de50
mov edx, ebx
mov rcx, rdi
call fcn.14010f570
mov ebx, eax
test eax, eax
jns 0x14010ce9e
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010cf1a
test byte [rcx + 0x1c], 1
je 0x14010cf1a
mov edx, 0x42
jmp 0x14010cf07
mov rcx, rdi
call fcn.140111f50
mov ebx, eax
test eax, eax
js 0x14010cf61
mov r8d, dword [rdi + 0x378]
test r8d, r8d
je 0x14010cf5d
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14010b090
mov ebx, eax
test eax, eax
js 0x14010cf3d
mov rcx, rdi
call fcn.14010cf84
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov r8d, 0x800
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov rcx, rdi
mov ebx, eax
call fcn.14010ef8c
test ebx, ebx
jne 0x14010ce65
call sub.KERNEL32.dll_GetLastError
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010cf1a
test byte [rcx + 0x1c], 1
je 0x14010cf1a
mov edx, 0x43
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001328]
mov r9d, ebx
call fcn.14000fd64
mov eax, ebx
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.140001000
mov rbx, qword [rsp + 0x850]
add rsp, 0x830
pop rdi
ret
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010cf1a
test byte [rcx + 0x1c], 1
je 0x14010cf1a
mov edx, 0x45
jmp 0x14010cf07
xor ebx, ebx
jmp 0x14010cf1a
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14010cf1a
test byte [rcx + 0x1c], 1
je 0x14010cf1a
mov edx, 0x44
jmp 0x14010cf07
Function at 0x14010e7b4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rcx
test edx, edx
mov edi, r8d
lea rcx, [rsp + 0x20]
mov edx, 0x40
je 0x14010e7ee
call sub.KERNEL32.dll_GetSystemWow64DirectoryW
jmp 0x14010e7f3
call sub.KERNEL32.dll_GetSystemDirectoryW
dec eax
cmp eax, 0x3f
ja 0x14010e820
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14010bed8
test eax, eax
js 0x14010e83f
test edi, edi
jne 0x14010e83f
lea rdx, [0x140001cb8]
mov rcx, rbx
call fcn.14010ae18
jmp 0x14010e83f
call sub.KERNEL32.dll_GetLastError
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140001000
mov rbx, qword [rsp + 0xc8]
add rsp, 0xb0
pop rdi
ret
Function at 0x140110a20
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
cmp r8d, 0x1e
jbe 0x140110a86
mov ebx, reloc.OLEAUT32.dll_LoadRegTypeLib
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140110b22
test byte [rcx + 0x1c], 1
je 0x140110b22
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001368]
mov edx, 0x1d
mov r9, rdi
call fcn.14000fcd0
jmp 0x140110b22
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
jne 0x140110b26
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x140110b26
mov edx, 0x5c
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov rbp, rax
xor eax, eax
test rbp, rbp
jne 0x140110ac2
mov ebx, 0x80070003
jmp 0x140110b22
lea r8d, [rbx + 1]
mov rdx, rsi
mov rcx, rdi
mov word [rbp], ax
call fcn.140110a20
mov ebx, eax
mov eax, 0x5c
mov word [rbp], ax
xor ebp, ebp
test ebx, ebx
js 0x140110b22
mov rdx, rsi
mov rcx, rdi
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
jne 0x140110b20
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x140110b20
call sub.KERNEL32.dll_GetLastError
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
jmp 0x140110b22
mov ebx, ebp
mov eax, ebx
jmp 0x140110b28
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140110b40
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
sub rsp, 0x38
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140110c91
test rdx, rdx
je 0x140110c91
xor r8d, r8d
xor edx, edx
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
mov r14d, eax
mov dword [rsp + 0x70], r14d
and qword [rsp + 0x78], 0
mov eax, 2
mul r14
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140105a40
mov rbx, rax
mov qword [rsp + 0x78], rax
jmp 0x140110bc5
test rbx, rbx
jne 0x140110c03
lea rax, [0x140148ea8]
mov rcx, qword [0x140148ea8]
cmp rcx, rax
je 0x140110bf9
test byte [rcx + 0x1c], 1
je 0x140110bf9
lea edx, [rbx + 0xb]
mov r9d, r14d
lea r8, [0x140001368]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
mov edi, 0x8007000e
jmp 0x140110c8d
mov r8d, r14d
mov rdx, rbx
mov rcx, rdi
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
test eax, eax
jne 0x140110c71
lea rax, [0x140148ea8]
mov rcx, qword [0x140148ea8]
cmp rcx, rax
je 0x140110c52
test byte [rcx + 0x1c], 1
je 0x140110c52
call sub.KERNEL32.dll_GetLastError
mov r9d, eax
mov edx, SafeArrayGetDim
lea r8, [0x140001368]
mov rcx, qword [0x140148ea8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
jmp 0x140110c80
mov rdx, rbx
mov rcx, rsi
call fcn.14010b228
xor ebx, ebx
xor edi, edi
test rbx, rbx
je 0x140110c8d
mov rcx, rbx
call fcn.140105ac0
mov eax, edi
jmp 0x140110cc4
lea rax, [0x140148ea8]
mov rcx, qword [0x140148ea8]
cmp rcx, rax
je 0x140110cbf
test byte [rcx + 0x1c], 1
je 0x140110cbf
mov edx, 0xa
lea r8, [0x140001368]
mov rcx, qword [rcx + 0x10]
call fcn.14000fcb0
mov eax, 0x80070057
add rsp, 0x38
pop r14
pop rdi
pop rsi
pop rbx
ret