joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400233a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140023358
test byte [rbx + 0x40], 0xc
jne 0x14002330f
mov eax, dword [0x1401416f8]
test eax, eax
jne 0x140023320
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140021260
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140023343
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140023343
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002336c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140021550
call fcn.140022090
test rax, rax
mov rbx, rax
jne 0x1400232ff
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14002338a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140021550
call fcn.140023200
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140023410
call fcn.1400244f0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140023448
call fcn.140021fe0
mov ecx, dword [0x140027798]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400234a0
test esi, esi
je 0x140023426
call fcn.1400232e0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140023480
mov edx, edi
call fcn.1400245a0
call fcn.1400232e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140023490
call fcn.1400232e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400232e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140021fe0
mov ecx, dword [0x140027798]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x1400233e5
call fcn.140022090
mov rbx, rax
jmp 0x1400233e5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400233fe
call fcn.140022090
jmp 0x140023426
call fcn.140022090
mov rbx, rax
jmp 0x1400233e1

Function at 0x1400234b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140023520
test esi, esi
je 0x140023500
call fcn.1400232e0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140023530
mov edx, esi
call fcn.1400245a0
call fcn.1400232e0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400232e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400232e0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140022090
mov rbx, rax
jmp 0x1400234d1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400234ea
Function at 0x140011433
Capabilities:
Terminate process

Disassembly:
jmp 0x14001c1d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011537
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001cd00
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001cd20
xor al, al
jmp 0x14001cda1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001cd33
xor al, al
jmp 0x14001cda1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001cd5d
xor al, al
jmp 0x14001cda1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001cd71
xor al, al
jmp 0x14001cda1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001cd83
xor al, al
jmp 0x14001cda1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001cd9f
xor al, al
jmp 0x14001cda1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400035e0
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rbp + 0x27], rax
movsxd rbx, r8d
mov r14, rdx
mov rdi, rcx
mov qword [rbp - 0x41], rcx
xor esi, esi
mov dword [rbp - 0x49], esi
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
test rdx, rdx
je 0x14000373f
test r8d, r8d
jle 0x14000373f
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], rsi
mov qword [rbp - 1], rsi
lea r15, [0x140000000]
lea rax, [r15 + 0x15b210]
mov qword [rbp - 0x39], rax
lea edx, [rsi + 0x10]
lea rcx, [rbp - 0x31]
call fcn.14000a340
nop
lea rax, [r15 + 0x15b3e0]
mov qword [rbp - 0x39], rax
lea edx, [rsi + 8]
lea rcx, [rbp - 0x19]
call fcn.14000a340
mov rax, qword [rbp - 9]
mov dword [rax], 0x6a09e667
mov dword [rax + 4], 0xbb67ae85
mov dword [rax + 8], 0x3c6ef372
mov dword [rax + 0xc], 0xa54ff53a
mov dword [rax + 0x10], 0x510e527f
mov dword [rax + 0x14], 0x9b05688c
mov dword [rax + 0x18], 0x1f83d9ab
mov dword [rax + 0x1c], 0x5be0cd19
lea rax, [r15 + 0x15b4c8]
mov qword [rbp - 0x39], rax
mov r8, rbx
mov rdx, r14
lea rcx, [rbp - 0x39]
call fcn.14000a820
mov rax, qword [rbp - 0x39]
mov rbx, qword [rax + 0x60]
lea rcx, [rbp - 0x39]
call qword [rax + 0x28]
mov r8d, eax
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call rbx
nop
mov rbx, qword [rbp - 9]
mov r8, qword [rbp - 0x11]
lea r8, [r8*4]
xor edx, edx
mov rcx, rbx
call fcn.1400fb5b0
mov rcx, rbx
call fcn.1400f89d0
mov rbx, qword [rbp - 0x21]
mov r8, qword [rbp - 0x29]
lea r8, [r8*4]
xor edx, edx
mov rcx, rbx
call fcn.1400fb5b0
mov rcx, rbx
call fcn.1400f89d0
nop
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rbp - 0x49], 2
mov r14d, gethostname
nop
movzx ebx, byte [rbp + rsi + 7]
movzx eax, bl
shr al, 4
mov ecx, 0x30
cmp al, 0xa
cmovae ecx, r14d
add cl, al
mov rdx, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
cmp rdx, r8
jae 0x1400037a3
lea rax, [rdx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp r8, 0x10
jb 0x140003799
mov rax, qword [rdi]
mov byte [rax + rdx], cl
mov byte [rax + rdx + 1], 0
jmp 0x1400037af
movzx r9d, cl
mov rcx, rdi
call fcn.14000b9d0
and bl, 0xf
mov eax, 0x30
cmp bl, 0xa
cmovae eax, r14d
add al, bl
mov rdx, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
cmp rdx, r8
jae 0x1400037eb
lea rcx, [rdx + 1]
mov qword [rdi + 0x10], rcx
mov rcx, rdi
cmp r8, 0x10
jb 0x1400037e1
mov rcx, qword [rdi]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x1400037f7
movzx r9d, al
mov rcx, rdi
call fcn.14000b9d0
inc rsi
cmp rsi, 0x20
jl 0x140003760
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400f89b0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004320
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rbx, rcx
xor r12d, r12d
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov byte [rcx + 0x10], r12b
lea rsi, [rcx + 0x18]
mov qword [rsi], r12
lea r14, [rcx + 0x20]
mov qword [r14], r12
lea edx, [r12 + 2]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140004378
cmp eax, 0x80010106
jne 0x1400044e8
jmp 0x14000437c
mov byte [rbx + 0x10], 1
mov qword [rsp + 0x20], rsi
lea r9, [0x14014a1a8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14014a198]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400044d8
mov r15, qword [rsi]
mov rax, qword [r15]
mov rbp, qword [rax + 0x18]
mov ecx, 0x18
call fcn.1400f89d8
mov rdi, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x1400043ef
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r12
mov dword [rdi + 0x10], 1
lea rcx, str.ROOTCIMV2
call fcn.1400f8680
mov qword [rdi], rax
jmp 0x1400043f2
mov rdi, r12
mov qword [rsp + 0x88], rdi
test rdi, rdi
je 0x140004504
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, r15
call rbp
mov ebp, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x14000446b
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000444c
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000445e
call fcn.1400f89d0
mov qword [rdi + 8], r12
mov edx, 0x18
mov rcx, rdi
call fcn.1400f89d0
test ebp, ebp
jns 0x140004483
mov rcx, qword [rsi]
test rcx, rcx
je 0x140004481
mov qword [rsi], r12
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
jmp 0x1400044d8
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [r14]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x1400044e8
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400044c6
mov qword [rsi], r12
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [r14]
test rcx, rcx
je 0x1400044d8
mov qword [r14], r12
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
cmp byte [rbx + 0x10], 0
je 0x1400044e8
call qword [sym.imp.ole32.dll_CoUninitialize]
mov byte [rbx + 0x10], 0
mov rax, rbx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x8007000e
call fcn.1400f8670
int3
Function at 0x14000e400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, r8
mov rax, rdx
mov rdi, rcx
mov byte [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14000dee0
mov rbp, rax
xor eax, eax
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], ax
mov qword [rsp + 0x28], rax
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], ax
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.14000e160
lea rcx, [rsp + 0x48]
call fcn.14000e320
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.14000e320
mov rcx, qword [rdi]
mov qword [rdi + 8], rcx
mov r8, rbx
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14000e586
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
je 0x14000e586
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000e586
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14000e586
mov esi, ebx
mov rbx, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, rbx
sub rcx, rdx
cmp rsi, rcx
jae 0x14000e507
lea rbx, [rdx + rsi]
jmp 0x14000e539
jbe 0x14000e53d
mov rax, qword [rdi + 0x10]
sub rax, rdx
cmp rsi, rax
jbe 0x14000e526
mov rdx, rsi
mov rcx, rdi
call fcn.1400111e0
mov rbx, qword [rdi + 8]
jmp 0x14000e53d
mov r8, rsi
sub r8, rcx
mov rcx, rbx
add rbx, r8
xor edx, edx
call fcn.1400fb5b0
mov qword [rdi + 8], rbx
mov rcx, qword [rdi]
sub rbx, rcx
test rsi, rsi
je 0x14000e586
test rcx, rcx
jne 0x14000e55a
call fcn.140102dac
mov dword [rax], socket
jmp 0x14000e581
cmp rbx, rsi
jb 0x14000e56c
mov r8, rsi
mov rdx, r14
call fcn.1400faf00
jmp 0x14000e586
mov r8, rbx
xor edx, edx
call fcn.1400fb5b0
call fcn.140102dac
mov dword [rax], 0x22
call fcn.14010345c
mov rbx, qword [rdi + 8]
sub rbx, qword [rdi]
cmp byte [rsp + 0x20], 0
je 0x14000e59e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [rsp + 0x28]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x48]
call fcn.140008fe0
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400f89b0
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001cc90
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
test cl, cl
jne 0x14001cdcb
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.1400fb5b0
lea rdx, [rbp - 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ebx, ebx
mov qword [rsp + 0x40], rbx
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], bx
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x14001cd03
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.140009050
nop
mov qword [rsp + 0x20], rbx
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], bx
mov qword [rbp - 0x80], rbx
movdqa xmm0, xmmword [0x140166ac0]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
mov r8d, 6
lea rdx, str.adppid
lea rcx, [rbp - 0x80]
call fcn.140009250
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.14001b5c0
nop
lea rcx, [rbp - 0x80]
call fcn.1400091f0
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140024c30
cmp qword [rax + 0x18], 8
jb 0x14001cd97
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
lea rcx, [rsp + 0x60]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x20]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x40]
call fcn.140008fe0
movzx eax, bl
jmp 0x14001cdce
movzx eax, cl
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400f89b0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rbp
ret
Function at 0x14001da40
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov edi, 4
test ecx, ecx
cmovns edi, ecx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp eax, 1
jne 0x14001da8f
mov eax, 6
jmp 0x14001dc47
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.1400fb5b0
lea rdx, [rbp - 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor esi, esi
mov qword [rbp - 0x80], rsi
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], si
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x14001dad1
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.140009050
nop
mov qword [rsp + 0x60], rsi
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], si
mov qword [rsp + 0x40], rsi
movdqa xmm0, xmmword [0x140166ac0]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov r8d, 8
lea rdx, str.adpdebug
lea rcx, [rsp + 0x40]
call fcn.140009250
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14001b5c0
nop
lea rcx, [rsp + 0x40]
call fcn.1400091f0
nop
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.140024c30
cmp qword [rax + 0x18], 8
jb 0x14001db69
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x60]
call fcn.140008fe0
mov eax, 5
cmp ebx, 1
cmove edi, eax
mov qword [rsp + 0x40], rsi
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], si
mov qword [rsp + 0x60], rsi
movdqa xmm0, xmmword [0x140166ac0]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov esi, 6
mov r8d, esi
lea rdx, str.adpdev
lea rcx, [rsp + 0x60]
call fcn.140009250
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14001b5c0
nop
lea rcx, [rsp + 0x60]
call fcn.1400091f0
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.140024c30
cmp qword [rax + 0x18], 8
jb 0x14001dc16
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x40]
call fcn.140008fe0
cmp ebx, 1
cmove edi, esi
lea rcx, [rbp - 0x80]
call fcn.140008fe0
mov eax, edi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400f89b0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140022280
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx ebx, dl
mov rdi, rcx
mov dword [rsp + 0x20], 0
cmp qword [rcx + 0x18], 8
jb 0x1400222b1
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002239f
test al, 0x10
je 0x14002239f
test bl, bl
je 0x14002238d
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 1
lea rax, [0x140022110]
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x50], 0
xor edx, edx
xor ecx, ecx
call fcn.140023bd0
mov rbx, rax
xor edx, edx
xor ecx, ecx
call fcn.140023bd0
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140023cb0
mov byte [rsp + 0x50], 1
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.140026a20
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140022359
cmp byte [rsp + 0x50], 0
je 0x140022350
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002237e
cmp byte [rsp + 0x50], 0
je 0x140022375
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.14001ca60
mov rcx, rdi
call fcn.140025c90
test al, al
mov eax, dword [rsp + 0x20]
je 0x1400223ef
jmp 0x1400223ed
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400223ac
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400223e4
mov edx, 0x80
mov rcx, rdi
call fcn.140025da0
mov edx, dword [0x140189cc0]
mov rcx, rdi
call fcn.140025da0
cmp qword [rdi + 0x18], 8
jb 0x1400223db
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
mov eax, dword [rsp + 0x20]
jne 0x1400223ef
inc eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f89b0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140022cb0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x8a0
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rdx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov rdx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140022cef
mov rdx, qword [rcx]
mov qword [rdi], rbp
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], bp
jne 0x140022d10
mov rcx, rdi
call fcn.140009050
mov dword [rsp + 0x20], 1
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140022d37
mov rcx, qword [rsi]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
cmp eax, 1
jne 0x140022deb
mov word [rsp + 0x70], bp
lea rdx, [rsp + 0x70]
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov qword [rsp + 0x28], rbp
movdqa xmm0, xmmword [0x140166ab0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], bp
lea rax, [rsp + 0x70]
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140022d80
mov r8, rbx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.140009050
mov dword [rsp + 0x20], 3
mov r8, rsi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140024c30
nop
cmp rdi, rax
je 0x140022dd6
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140022dca
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140009050
nop
lea rcx, [rsp + 0x50]
call fcn.140008fe0
nop
lea rcx, [rsp + 0x28]
call fcn.140008fe0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140025a60
nop
cmp rdi, rax
je 0x140022e18
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140022e0c
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140009050
nop
lea rcx, [rsp + 0x50]
call fcn.140008fe0
mov rax, rdi
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.1400f89b0
mov rbx, qword [rsp + 0x8d0]
add rsp, 0x8a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140023120
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140189090]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r9
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rdx
xor esi, esi
mov dword [rsp + 0x30], esi
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
mov dword [rsp + 0x30], 1
cmp qword [rcx + 0x18], 8
jb 0x140023176
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140023185
test al, 0x10
jne 0x140023195
test rbp, rbp
jns 0x140023195
mov rcx, rbx
call fcn.140026280
mov rbp, rax
lea rdx, [0x14015c070]
mov rcx, rbx
call fcn.1400266e0
mov r14, rax
test rax, rax
je 0x14002326a
mov qword [rsp + 0x40], rsi
xor r9d, r9d
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test rbp, rbp
jle 0x140023261
mov r15, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, r15
sub rcx, rdx
cmp rbp, rcx
jae 0x1400231ea
lea rax, [rdx + rbp]
jmp 0x14002321c
jbe 0x140023220
mov rax, qword [rdi + 0x10]
sub rax, rdx
cmp rbp, rax
jbe 0x140023205
mov rdx, rbp
mov rcx, rdi
call fcn.1400111e0
jmp 0x140023220
mov rbx, rbp
sub rbx, rcx
mov r8, rbx
xor edx, edx
mov rcx, r15
call fcn.1400fb5b0
lea rax, [rbx + r15]
mov qword [rdi + 8], rax
mov rdx, qword [rdi]
test rdx, rdx
je 0x14002324a
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002324a
mov esi, dword [rsp + 0x40]
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
sub rcx, rax
cmp rsi, rcx
jae 0x140023261
lea rcx, [rax + rsi]
mov qword [rdi + 8], rcx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400f89b0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret