joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001739c
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x880
mov rax, qword [0x140137088]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov rax, qword [rsp + 0x890]
movzx eax, byte [rax + 8]
test eax, eax
je 0x1400173d0
jmp 0x140017562
mov rax, qword [rsp + 0x890]
mov byte [rax + 8], 1
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x140017461
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140017435
cmp qword [rsp + 0x20], 0
je 0x140017433
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x140017461
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0x410
jae 0x140017450
jmp 0x140017455
call fcn.1400a9448
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov word [rsp + rcx + 0x40], ax
lea rdx, [0x1400fc6cc]
lea rcx, [rsp + 0x40]
call fcn.1400b3a60
lea rdx, [0x1400fc910]
lea rcx, [rsp + 0x40]
call fcn.1400b3a60
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400174bf
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0x410
jae 0x1400174ae
jmp 0x1400174b3
call fcn.1400a9448
xor eax, eax
mov rcx, qword [rsp + 0x30]
mov word [rsp + rcx + 0x40], ax
lea rax, [rsp + 0x450]
mov rdi, rax
xor eax, eax
mov ecx, 0x412
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
call fcn.1400b0e20
test rax, rax
jbe 0x140017534
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x450]
call fcn.1400b3a18
lea rcx, [rsp + 0x450]
call fcn.1400b0e20
test rax, rax
jbe 0x140017534
lea rdx, [0x1400fc6cc]
lea rcx, [rsp + 0x450]
call fcn.1400b3a60
lea rdx, str.HaoZip.hzv
lea rcx, [rsp + 0x450]
call fcn.1400b3a60
call fcn.1400249a0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x450]
call fcn.1400b0e20
test rax, rax
jbe 0x140017562
lea rdx, [rsp + 0x450]
mov rcx, qword [rsp + 0x38]
call fcn.140024a70
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.1400a8f20
add rsp, 0x880
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x48], 0
jne 0x1400178ce
xor eax, eax
jmp 0x140017931
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x1400178ef
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x1400178f3
xor eax, eax
jmp 0x140017931
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140017670
movzx eax, al
test eax, eax
jne 0x14001791c
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.14001769c
xor eax, eax
jmp 0x140017931
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x1400187cc
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140137088]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], 0x114
mov r8d, 0x110
lea rcx, [rsp + 0x24]
call fcn.1400ab220
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140018822
cmp dword [rsp + 0x24], 5
ja 0x14001881e
jne 0x140018822
cmp dword [rsp + 0x28], 0
jbe 0x140018822
mov al, 1
jmp 0x140018824
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400a8f20
add rsp, 0x158
ret

Function at 0x14001883c
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140137088]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], 0x114
mov r8d, 0x110
lea rcx, [rsp + 0x24]
call fcn.1400ab220
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140018886
cmp dword [rsp + 0x24], 6
setae al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400a8f20
add rsp, 0x158
ret

Function at 0x1400188a0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140137088]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edi, edi
mov rbx, rcx
mov qword [rcx], rdi
cmp qword [0x140137f50], rdi
jne 0x140018926
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x20a
call fcn.1400ab220
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [rsp + 0x30]
mov word [rsp + 0x236], di
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x14001890b
lea rdx, [rsp + 0x30]
lea rcx, [0x140137f40]
call fcn.140002400
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400a8f20
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x1400189d8
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140137088]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r14, rcx
mov eax, dword [0x14013b450]
xor r15d, r15d
test eax, eax
jle 0x140018a35
lea edi, [r15 + 1]
add eax, edi
mov dword [0x14013b450], eax
jmp 0x140018b43
mov dil, r15b
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
lea rcx, [rsp + 0x30]
call fcn.1400253f0
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.140026190
mov bl, al
lea rcx, [rsp + 0x30]
call fcn.140025470
test bl, bl
je 0x140018b30
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140018b30
lea rdx, str.ImpersonateLoggedOnUser
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call rax
test eax, eax
je 0x140018b25
mov edi, 1
add dword [0x14013b450], edi
mov rcx, qword [r14]
test rcx, rcx
je 0x140018ac0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r14], rbx
mov rbx, r15
cmp qword [0x140137f70], r15
jne 0x140018b25
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x40]
call fcn.1400ab220
mov dword [rsp + 0x20], 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov word [rbp + 0x146], r15w
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x140018b0a
lea rdx, [rsp + 0x40]
lea rcx, [0x140137f60]
call fcn.140002400
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140018b35
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x140018b43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400a8f20
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140019c20
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140137088]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], 0x114
mov r8d, 0x110
lea rcx, [rsp + 0x24]
call fcn.1400ab220
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
test eax, eax
je 0x140019c79
cmp dword [rsp + 0x24], 5
jae 0x140019c7b
cmp dword [rsp + 0x24], 4
jne 0x140019c79
cmp dword [rsp + 0x28], 0x5a
jae 0x140019c7b
mov cl, 1
mov al, cl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400a8f20
add rsp, 0x158
ret
Function at 0x14001f070
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov qword [rcx], rdi
mov rsi, rdx
mov word [rcx + 8], di
mov rcx, rdx
call fcn.140002300
test al, al
jne 0x14001f0a5
mov rcx, rsi
call fcn.140002310
mov rdi, rax
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
test rax, rax
je 0x14001f0de
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov rax, rbx
jne 0x14001f0e1
mov byte [rbx + 9], 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001f130
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x140137088]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbp, rdx
mov rsi, rcx
mov rcx, qword [rcx]
xor r14d, r14d
test rcx, rcx
je 0x14001f174
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], r14
mov word [rsi + 8], r14w
mov qword [rsp + 0x48], r14
mov ecx, 0x58
call fcn.1400a8f4c
mov rdi, rax
mov qword [rsp + 0x48], rax
mov qword [rax], r14
mov qword [rax + 8], r14
mov dword [rax + 0x10], 0x18
lea rbx, [rax + 0x28]
mov qword [rax + 0x18], rbx
mov dword [rax + 0x20], r14d
lea rdx, str.Advapi32.dll
lea rcx, [rsp + 0x28]
call fcn.140002330
nop
call fcn.14002d2b0
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.14002d350
mov qword [rdi + 0x50], rax
lea rcx, [rsp + 0x28]
call fcn.140002320
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14002b8d0
mov rbx, qword [rsp + 0x48]
mov qword [rbx], rax
cmp qword [rbx], 0
lea rdi, [rbx + 0x10]
jne 0x14001f1fe
mov rdi, r14
mov rcx, rbp
call fcn.140002300
test al, al
jne 0x14001f214
mov rcx, rbp
call fcn.140002310
jmp 0x14001f217
mov rax, r14
mov r8, rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi], rax
test rax, rax
je 0x14001f23e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14001f23e
mov byte [rsi + 9], 1
cmp qword [rsi], 0
setne sil
mov rdi, qword [rbx]
test rdi, rdi
je 0x14001f265
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001f278
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], r14
mov edx, 0x58
mov rcx, rbx
call fcn.1400a930c
mov qword [rsp + 0x48], r14
movzx eax, sil
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a8f20
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140020860
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140137088]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
call fcn.140002300
test al, al
je 0x1400208a3
xor al, al
jmp 0x140020a65
mov rcx, rsi
call fcn.1400207b0
test al, al
je 0x1400208b6
mov al, 1
jmp 0x140020a65
mov rcx, rsi
call fcn.140002310
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140020905
lea rcx, [rbp - 0x48]
call fcn.140008ad0
nop
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.14002cab0
test al, al
je 0x1400208fc
lea rcx, [rbp - 0x48]
call fcn.140002310
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x48]
call fcn.140002320
mov rcx, rsi
call fcn.1400207b0
test al, al
jne 0x1400208af
mov rcx, rsi
call fcn.1400023f0
mov r14, rax
xor ebx, ebx
test rax, rax
je 0x140020a02
mov rcx, rsi
call fcn.140002370
mov rdi, rax
lea r12d, [rbx + 0x2f]
lea r15d, [rbx + 0x5c]
nop word [rax + rax]
mov rcx, rdi
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140020950
mov rcx, qword [rdi]
cmp r12w, word [rcx + rbx*2]
je 0x14002096e
mov rax, rdi
cmp rdx, 8
jb 0x140020963
mov rax, qword [rdi]
cmp r15w, word [rax + rbx*2]
jne 0x1400209f6
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 0x48]
mov rcx, rsi
call fcn.140011aa8
nop
lea rcx, [rbp - 0x48]
call fcn.140002300
test al, al
jne 0x1400209ed
lea rcx, [rbp - 0x48]
call fcn.140020590
test al, al
jne 0x1400209ed
lea rcx, [rbp - 0x48]
call fcn.140002310
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400209ed
lea rcx, [rbp - 0x28]
call fcn.140008ad0
nop
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x48]
call fcn.14002cab0
test al, al
je 0x1400209e3
lea rcx, [rbp - 0x28]
call fcn.140002310
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x28]
call fcn.140002320
nop
lea rcx, [rbp - 0x48]
call fcn.140002320
inc rbx
cmp rbx, r14
jb 0x140020940
mov rcx, rsi
call fcn.140020590
test al, al
jne 0x140020a5d
mov rcx, rsi
call fcn.140002310
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140020a5d
lea rcx, [rbp - 0x28]
call fcn.140008ad0
nop
lea rdx, [rbp - 0x28]
mov rcx, rsi
call fcn.14002cab0
test al, al
je 0x140020a54
lea rcx, [rbp - 0x28]
call fcn.140002310
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea rcx, [rbp - 0x28]
call fcn.140002320
mov rcx, rsi
call fcn.1400207b0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400a8f20
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140020cf0
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x90
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140137088]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140002310
mov rbx, rax
mov rcx, rsi
call fcn.140002310
mov rcx, rax
mov r8d, 0xb
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140020e38
xor bl, bl
lea rcx, [rsp + 0x68]
call fcn.140008ad0
nop
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.14002cab0
movzx ebx, bl
mov ecx, 1
test al, al
cmovne ebx, ecx
lea rcx, [rsp + 0x48]
call fcn.140008ad0
nop
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14002cab0
test al, al
jne 0x140020d97
test bl, bl
je 0x140020dc4
lea rcx, [rsp + 0x48]
call fcn.140002310
mov rbx, rax
lea rcx, [rsp + 0x68]
call fcn.140002310
mov rcx, rax
mov r8d, 0xb
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140020e23
mov rcx, rdi
call fcn.14002c020
cmp eax, 0xffffffff
je 0x140020e50
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.140008af0
nop
lea rcx, [rsp + 0x28]
call fcn.14002c7c0
test al, al
je 0x140020e45
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14002c0b0
test al, al
je 0x140020e45
mov rdx, rdi
mov rcx, rsi
call fcn.14002c0b0
lea rcx, [rsp + 0x28]
test al, al
je 0x140020e3c
call fcn.14002c2e0
nop
lea rcx, [rsp + 0x28]
call fcn.140002320
nop
lea rcx, [rsp + 0x48]
call fcn.140002320
nop
lea rcx, [rsp + 0x68]
call fcn.140002320
mov al, 1
jmp 0x140020e67
mov rdx, rdi
call fcn.14002c0b0
nop
lea rcx, [rsp + 0x28]
call fcn.140002320
nop
lea rcx, [rsp + 0x48]
call fcn.140002320
nop
lea rcx, [rsp + 0x68]
call fcn.140002320
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400a8f20
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400210b0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x140137088]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
call fcn.140011748
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x412
call fcn.1400ab220
lea rdx, [rsp + 0x20]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1400210fd
xor al, al
jmp 0x14002112a
cmp eax, 0x208
jae 0x1400210f9
xor eax, eax
lea rcx, [rsp + 0x20]
mov word [rsp + 0x430], ax
call fcn.140002620
mov r8, rax
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140002400
mov al, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400a8f20
add rsp, 0x450
pop rbx
ret
Function at 0x140023140
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x140137088]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rdx, qword [rcx + 0x10]
test rdx, rdx
jne 0x14002317f
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a8f20
add rsp, 0x50
pop rbx
ret
mov qword [rsp + 0x38], 0
add rdx, 0x38
lea rcx, [rsp + 0x38]
call fcn.140011c6c
nop
mov rax, qword [rbx + 0x10]
cmp qword [rax + 8], 0
je 0x140023208
mov eax, 1
lock xadd dword [rbx + 8], eax
mov rcx, qword [rbx + 0x10]
add rcx, 0x14
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 4
mov r9, rbx
lea r8, [0x140022d40]
xor edx, edx
xor ecx, ecx
call fcn.1400b4738
mov rcx, qword [rbx + 0x10]
mov qword [rcx + 0x18], rax
mov rax, qword [rbx + 0x10]
cmp qword [rax + 0x18], 0
jne 0x14002322a
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
sub eax, 1
jne 0x1400231ff
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [rbx + 0x10]
call fcn.140022ed0
xor bl, bl
lea rcx, [rsp + 0x38]
call fcn.140011c94
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a8f20
add rsp, 0x50
pop rbx
ret
mov byte [rax + 0x10], 1
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x140023248
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x10]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1400231e7
mov bl, 1
jmp 0x14002320a

Function at 0x140023790
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx]
test rax, rax
je 0x1400237c8
test rdx, rdx
je 0x1400237c8
cmp qword [rax], 0xffffffffffffffff
je 0x1400237c8
xor eax, eax
mov dword [r9], eax
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400237c8
mov al, 1
add rsp, 0x38
ret
xor al, al
add rsp, 0x38
ret

Function at 0x1400237d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
mov edi, r8d
test rcx, rcx
je 0x14002381a
test rdx, rdx
je 0x14002381a
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x14002381a
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002381a
cmp edi, dword [rbx]
jne 0x14002381a
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x140023870
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140137088]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rcx, qword [rcx]
mov rdi, rdx
test rcx, rcx
je 0x1400238ce
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x1400238ce
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400238b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400238ce
mov ecx, dword [rsp + 0x20]
mov rax, rbx
shl rcx, 0x20
mov al, 1
add rcx, rbx
mov qword [rdi], rcx
jmp 0x1400238d0
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400a8f20
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400253f0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140137088]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov ecx, 1
call fcn.1400a8f4c
mov qword [rbx], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
mov byte [rax], 0
call fcn.1400ab220
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x140025457
cmp dword [rsp + 0x24], 6
mov rcx, qword [rbx]
setae dl
mov byte [rcx], dl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400a8f20
add rsp, 0x150
pop rbx
ret
Function at 0x140027b60
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [0x140137088]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
lea rcx, [r11 - 0x48]
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a8f20
add rsp, 0x68
ret

Function at 0x140027bc0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x140137088]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edx, edx
add rcx, 4
mov r8d, 0x118
call fcn.1400ab220
mov rcx, rbx
mov dword [rbx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140027d22
cmp dword [rbx + 4], 6
mov qword [rsp + 0x188], rdi
ja 0x140027c24
jne 0x140027cc5
cmp dword [rbx + 8], 2
jb 0x140027cc5
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x140027cc5
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140027cc5
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140027cc5
movups xmm0, xmmword [0x1400fd6c0]
mov rcx, rax
movups xmm1, xmmword [0x1400fd6d0]
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm1
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140027cc5
lea rcx, [rax + 6]
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140027cc5
cmp word [rdi + 2], ax
jbe 0x140027cc5
movzx edx, word [rdi + 0x32]
movzx eax, word [rdi + 0x30]
movzx ecx, word [rdi + 0x36]
mov dword [rbx + 4], edx
mov dword [rbx + 8], eax
mov dword [rbx + 0xc], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140027d16
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.1400ab220
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call rdi
test eax, eax
jne 0x140027d16
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x188]
mov al, 1
jmp 0x140027d24
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400a8f20
add rsp, 0x170
pop rbx
ret