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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x268]
sub rsp, 0x360
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x250], rax
xor edi, edi
lea rax, [rsp + 0x50]
mov rbx, rcx
mov qword [rsp + 0x50], rdi
mov rsi, 0xffffffff80000002
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferences
lea r9d, [rdi + 3]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140033eb8
mov r8, qword [rbx + 0x20]
lea rdx, str.DefaultSubscriptionService
mov rcx, qword [rsp + 0x50]
call fcn.140032f1c
cmp qword [rbx + 0x30], rdi
jne 0x140033de7
mov r8, qword [rbx + 0x20]
test r8, r8
je 0x140033ea7
cmp word [r8], di
je 0x140033ea7
mov rcx, qword [rsp + 0x50]
lea rdx, str.OEMServiceOverride11
call fcn.140032f1c
jmp 0x140033ea7
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x58], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.OEMServiceOverride11
mov dword [rsp + 0x5c], 0xc8
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140033ea7
cmp dword [rsp + 0x58], 1
jne 0x140033ea7
lea r9, [rsp + 0x70]
mov edx, 0x208
lea r8, str.SoftwareMicrosoftMediaPlayerServices_s
lea rcx, [rbp + 0x40]
call fcn.140010c94
test eax, eax
js 0x140033ea7
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rdx, [rbp + 0x40]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140033ea7
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerServices
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 2
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140033f1e
mov r8, qword [rbx + 0x40]
lea rdx, str.ServiceExtra
mov rcx, qword [rsp + 0x50]
call fcn.140032f1c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400349d4
Capabilities:
Query service status

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, r8
mov r14, rdx
mov r8, rdx
mov edi, 1
lea rdx, str.Querying_service__S._r_n
mov r15, r9
lea ecx, [rdi + 3]
call fcn.140019b1c
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
nop dword [rax + rax]
xor r12d, r12d
mov rbp, rax
test rax, rax
jne 0x140034a3b
mov edi, r12d
jmp 0x140034b74
mov r8d, 0xf01ff
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140034a63
mov edi, r12d
jmp 0x140034b51
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
je 0x140034a5b
mov eax, dword [rsp + 0x2c]
mov edx, 2
mov dword [rbx], eax
lea ecx, [rdx + 0x3e]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140034b51
lea r9, [rsp + 0x20]
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
nop dword [rax + rax]
test eax, eax
jne 0x140034b3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x140034b3d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov edx, dword [rsp + 0x20]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140034b51
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x24]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
nop dword [rax + rax]
test eax, eax
jne 0x140034b21
mov edi, r12d
jmp 0x140034b42
mov eax, dword [rbx + 4]
mov rcx, rbx
mov dword [r15], eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
test rax, rax
cmove rbx, r12
test rbx, rbx
je 0x140034b51
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
test rsi, rsi
je 0x140034b74
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
test edi, edi
lea rax, str.failed
lea r9, str.succeeded
mov r8, r14
cmove r9, rax
lea rdx, str.Querying_service__S__S._r_n
mov ecx, 4
call fcn.140019b1c
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400017f0
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140035824
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
and dword [rbp + 0x10], 0
lea rax, [rbp + 0x28]
and qword [rbp + 0x28], 0
lea rdx, str.SoftwareMicrosoftMediaPlayerSetup
mov r9d, 0x101
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400358c2
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
lea rax, [rbp + 0x10]
mov dword [rbp + 0x18], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Migrated_NSS_Version
mov dword [rbp + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400358ae
cmp dword [rbp + 0x18], 4
je 0x1400358b2
and dword [rbp + 0x10], 0
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, dword [rbp + 0x10]
add rsp, 0x30
pop rbp
ret
Function at 0x1400374d0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov ebx, 1
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.14001b20c
xor edi, edi
test eax, eax
je 0x1400375b2
lea r8, str.WMPNSCFG.exe
mov qword [rsp + 0x30], rdi
mov edx, 0x208
lea rcx, [rsp + 0x40]
call fcn.140010b58
lea rax, [rsp + 0x30]
mov r9d, 0x20106
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400375b2
mov ebx, edi
lea rax, [rsp + 0x40]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], di
jne 0x140037567
lea edx, [rdx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], edx
lea rax, [rsp + 0x40]
lea rdx, str.WMPNSCFG
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400017f0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x1400375dc
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub rsp, 0x258
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.14001b20c
test eax, eax
je 0x14003765b
lea r8, str.WMPNSCFG.exe
mov edx, 0x208
lea rcx, [rsp + 0x30]
call fcn.140010b58
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14003765b
test al, 0x10
jne 0x14003765b
and dword [rsp + 0x28], 0
lea r8, [rsp + 0x30]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400017f0
add rsp, 0x258
ret
Function at 0x14003767c
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x590], rax
xor r14d, r14d
mov rdi, rdx
mov qword [rsp + 0x50], r14
mov rsi, rcx
test rcx, rcx
je 0x140037850
test rdx, rdx
je 0x140037850
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
nop dword [rax + rax]
test eax, eax
je 0x140037831
mov rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x48], 0x104
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x60]
lea rax, [rbp + 0x170]
mov dword [rsp + 0x44], 0x104
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov ebx, r14d
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
nop dword [rax + rax]
test eax, eax
je 0x140037788
mov r15d, 0x208
cmp r14w, word [rsp + 0x60]
jne 0x140037764
mov ecx, dword [rsp + 0x40]
lea eax, [rcx - 6]
cmp eax, 3
jbe 0x1400377b5
cmp ecx, 3
je 0x1400377b5
mov r8, rsi
lea rcx, [rsp + 0x60]
mov edx, r15d
call fcn.140010c20
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x104
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
nop dword [rax + rax]
test eax, eax
jne 0x1400377bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400377a3
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140037836
mov ebx, 0x80004005
jmp 0x140037836
mov ebx, 0x80070523
jmp 0x140037836
cmp r14w, word [rbp + 0x170]
je 0x14003781f
or r9d, 0xffffffff
lea rax, [rbp + 0x380]
mov dword [rsp + 0x28], r9d
lea r8, [rbp + 0x170]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 2]
lea ecx, [rdx + 0x7e]
call qword [sym.imp.KERNEL32.dll_CompareStringW]
nop dword [rax + rax]
cmp eax, 2
je 0x14003781f
lea rax, [rsp + 0x60]
mov rdx, r15
lea r9, [rbp + 0x170]
mov qword [rsp + 0x20], rax
lea r8, [0x140048e70]
mov rcx, rdi
call fcn.140010c94
jmp 0x140037836
lea r8, [rsp + 0x60]
mov rdx, r15
mov rcx, rdi
call fcn.140010c20
jmp 0x140037836
mov ebx, 0x80070057
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003784c
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov eax, ebx
jmp 0x140037855
mov eax, 0x80070057
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.1400017f0
mov rbx, qword [rsp + 0x6e0]
add rsp, 0x6a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003aa84
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], r12
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x10], rdx
push rbp
push r13
push r14
mov rbp, rsp
sub rsp, 0x70
xor r12d, r12d
lea rax, [rbp - 0x20]
mov qword [r11 - 0x48], r12
lea r9, [rbp + 0x28]
mov qword [r11 - 0x50], r12
mov r14, r8
mov qword [r11 - 0x58], r12
lea r8, [rbp - 8]
mov qword [r11 - 0x60], rax
mov ebx, r12d
lea rax, [rbp - 0x18]
mov qword [rbp - 8], r12
mov qword [r11 - 0x68], rax
mov qword [rbp + 0x28], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x20], r12
call fcn.140039158
mov rcx, qword [rbp - 8]
lea r13d, [r12 + 1]
mov qword [rbp - 0x10], r12
test rcx, rcx
je 0x14003ab9d
cmp qword [rbp + 0x28], r12
je 0x14003ab9d
mov rdx, qword [rbp + 0x28]
lea rax, [rbp - 0x10]
lea r9d, [r12 + 3]
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14003ab9d
mov rdx, qword [rbp - 0x18]
lea rax, [rbp + 0x40]
mov rcx, qword [rbp - 0x10]
lea r9, [rbp + 0x38]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov dword [rbp + 0x38], r13d
mov dword [rbp + 0x40], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14003ab6a
cmp dword [rbp + 0x38], r13d
cmove ebx, r13d
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
je 0x14003ab9d
mov rcx, r14
call fcn.14001aa34
test eax, eax
je 0x14003ab9d
or rax, 0xffffffffffffffff
inc rax
cmp word [r14 + rax*2], r12w
jne 0x14003ab8e
test rax, rax
jne 0x14003abb7
cmp qword [rbp - 0x20], r12
je 0x14003abb7
mov r8, qword [rbp - 0x20]
mov edx, 0x104
mov rcx, r14
call fcn.140010dd0
mov ebx, r13d
cmp qword [rbp + 0x28], r12
je 0x14003abc6
mov rcx, qword [rbp + 0x28]
call fcn.140001454
cmp qword [rbp - 0x18], r12
je 0x14003abd5
mov rcx, qword [rbp - 0x18]
call fcn.140001454
cmp qword [rbp - 0x20], r12
je 0x14003abe4
mov rcx, qword [rbp - 0x20]
call fcn.140001454
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov r12, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop rbp
ret
Function at 0x14003c4e8
Capabilities:
Delete directory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x50
mov ebp, 1
cmp rdx, 0xffffffffffffffff
je 0x14003c65a
test r8, r8
mov dword [rsp + 0x28], ebp
lea rax, str.DEFAULTINSTALL
cmove r8, rax
lea rdx, [r11 + 0x10]
mov r9, r8
lea rax, str.DELDIRS
lea r8, [r11 - 0x38]
mov qword [r11 - 0x48], rax
xor ecx, ecx
call fcn.14003c7c0
test eax, eax
je 0x14003c65a
mov ecx, 0x26d7
xor ebp, ebp
call fcn.140019024
lea rcx, [rsp + 0x30]
call fcn.14003ca58
mov rdi, rax
test rax, rax
je 0x14003c65a
mov rcx, rax
jmp 0x14003c630
mov r8, rbx
lea rdx, str._Parsing_DelDirs_section:_S._r_n
mov ecx, 4
call fcn.140019b1c
mov rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
call fcn.14001f858
test eax, eax
je 0x14003c62e
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
mov esi, 1
call fcn.14001f904
mov ecx, eax
mov r14d, eax
call fcn.140019314
cmp r14d, esi
jb 0x14003c62e
mov ecx, esi
inc esi
call fcn.140019120
lea rcx, [rsp + 0x30]
call fcn.14003ca58
mov rbx, rax
test rax, rax
je 0x14003c60f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
mov rcx, rbx
call fcn.14001aa34
mov r8, rbx
lea rdx, str._Attempted_to_delete:__S._r_n
mov ecx, 4
call fcn.140019b1c
mov rcx, rbx
call fcn.140001454
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
nop dword [rax + rax]
test eax, eax
je 0x14003c62e
cmp esi, r14d
jbe 0x14003c5c1
xor ecx, ecx
xor r8d, r8d
lea rdx, [0x14004ca38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_wcstok]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14003c56f
mov rcx, rdi
call fcn.140001454
lea r11, [rsp + 0x50]
mov eax, ebp
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140040d1c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x38
xor ebx, ebx
lea rax, [rbp + 0x30]
xor r8d, r8d
mov qword [rbp + 0x30], rbx
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferences
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
lea r9d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140040dc0
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
lea rax, [rbp + 0x20]
mov dword [rbp + 0x20], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ForceOnline
mov dword [rbp + 0x28], 4
mov dword [rbp + 0x18], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140040db0
cmp dword [rbp + 0x18], 4
jne 0x140040db0
cmp dword [rbp + 0x20], 1
sete bl
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x38
pop rbx
pop rbp
ret
Function at 0x140040dfc
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xor esi, esi
xor ebp, ebp
mov r14, rdx
mov rbx, rcx
test rcx, rcx
je 0x140040f89
test rdx, rdx
je 0x140040f89
lea r8d, [rsi + 7]
lea rdx, str.file:__
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140040e49
add rbx, 0xe
and qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x8000080
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140040ead
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140040e99
lea edi, [rbp + 0x58]
jmp 0x140040e9f
jle 0x140040fb3
movzx edi, di
or edi, 0x80070000
jmp 0x140040fb3
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140040ef0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140040edc
lea edi, [rax + 0x57]
jmp 0x140040ee2
jle 0x140040f8e
movzx edi, di
or edi, 0x80070000
jmp 0x140040f8e
mov rdx, rdi
mov ecx, 0x42
mov rbx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140040ec5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
nop dword [rax + rax]
test rax, rax
je 0x140040ec5
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x140040ec5
mov r8, r14
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x140040f8e
mov rcx, qword [r14]
mov rax, qword [rcx]
movabs r10, 0x83a99e0f10de4270
mov rax, qword [rax + 0x30]
mov rdx, rbx
call qword [0x140048188]
mov edi, eax
jmp 0x140040f8e
mov edi, 0x80004003
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rsi, rsi
je 0x140040fb3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop dword [rax + rax]
xor esi, esi
test edi, edi
jns 0x140040fcb
test rsi, rsi
je 0x140040fcb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop dword [rax + rax]
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400415cc
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0xf40]
mov eax, 0x1040
call fcn.140045d00
sub rsp, rax
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0xf30], rax
mov rsi, rcx
mov r15d, 0xfd0
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x20], r15d
call fcn.140043534
lea rcx, [rsp + 0x48]
call fcn.140043534
mov edx, 0x64
lea rcx, [rsp + 0x48]
call fcn.140043e38
xor r13d, r13d
mov ebx, eax
test eax, eax
js 0x14004164a
mov rcx, qword [rsp + 0x48]
call fcn.140041864
mov ebx, eax
lea r8, [rsp + 0x20]
xor ecx, ecx
lea rdx, [rsp + 0x60]
call qword [sym.imp.urlmon.dll_ObtainUserAgentString]
nop dword [rax + rax]
test eax, eax
js 0x1400417d1
mov eax, dword [rsp + 0x20]
dec rax
cmp rax, r15
jae 0x140041855
lea rdx, [rsp + 0x60]
mov byte [rsp + rax + 0x60], r13b
lea rcx, [rsp + 0x28]
call fcn.140043eb4
mov edi, eax
test eax, eax
js 0x140041739
test ebx, ebx
js 0x140041739
mov edx, 0x29
lea rcx, [rsp + 0x28]
call fcn.140043bdc
movsxd r15, eax
test eax, eax
js 0x140041733
lea rcx, [rsp + 0x38]
mov edi, 0x8007000e
call fcn.140043534
mov rax, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
or r8d, 0xffffffff
lea r12, [rax + r15*2]
mov rdx, r12
call fcn.14004401c
mov r15, qword [rsp + 0x38]
test r15, r15
je 0x140041729
lea rdx, [0x140052c4c]
mov word [r12], r13w
lea rcx, [rsp + 0x28]
call fcn.140043724
mov edi, eax
test eax, eax
js 0x140041729
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140043724
mov edi, eax
test eax, eax
js 0x140041729
mov rdx, r15
lea rcx, [rsp + 0x28]
call fcn.140043724
mov edi, eax
lea rcx, [rsp + 0x38]
call fcn.140043af4
mov r15d, 0xfd0
or ebx, edi
not ebx
test ebx, ebx
jns 0x14004176a
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140041760
call qword [sym.imp.KERNEL32.dll_lstrlenW]
nop dword [rax + rax]
cmp eax, r15d
jae 0x1400417f2
lea rcx, [rsp + 0x28]
jmp 0x1400417fe
lea rcx, [rsp + 0x38]
call fcn.140043534
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140043eb4
mov ebx, eax
test eax, eax
js 0x1400417c5
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400417ab
call qword [sym.imp.KERNEL32.dll_lstrlenW]
nop dword [rax + rax]
cmp eax, r15d
jb 0x1400417ab
mov ebx, 0xc00d107f
jmp 0x1400417c5
mov r8d, r15d
lea rcx, [rsp + 0x38]
mov rdx, rsi
call fcn.140043a40
mov ebx, eax
mov word [rsi + 0x1f9e], r13w
lea rcx, [rsp + 0x38]
call fcn.140043af4
jmp 0x140041813
test ebx, ebx
js 0x140041813
cmp qword [rsp + 0x48], r13
je 0x1400417f9
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
nop dword [rax + rax]
cmp eax, r15d
jb 0x1400417f9
mov ebx, 0xc00d107f
jmp 0x140041813
lea rcx, [rsp + 0x48]
mov r8d, r15d
mov rdx, rsi
call fcn.140043a40
mov ebx, eax
mov word [rsi + 0x1f9e], r13w
lea rcx, [rsp + 0x48]
call fcn.140043af4
lea rcx, [rsp + 0x28]
call fcn.140043af4
mov eax, ebx
mov rcx, qword [rbp + 0xf30]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0x1040]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
call fcn.140001938
int3