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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14011a950
mov ebx, eax
test eax, eax
jne 0x14011b0b4
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14011b117
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14011b10e
test al, 0x10
je 0x14011b10e
bt eax, 0xa
jae 0x14011b107
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14011b128
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14011b103
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14011b103
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14011b10e
and dword [rsp + 0x3c], 0
jmp 0x14011b113
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14011c448
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14011c492
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14011c492
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14011c492
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14011c492
cmp dword [rcx + 0x84], 0xe
jbe 0x14011c492
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14011c494
xor al, al
add rsp, 0x28
ret
Function at 0x140003470
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
cmp byte [rcx + 0x17], 0
js 0x1400034cd
mov rcx, rdi
je 0x14000349c
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rdi + 0x17], 0
js 0x1400034e9
mov word [rdi], 0
mov byte [rdi + 0x17], 0
cmp rdi, rsi
je 0x1400034c0
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rsi + 0x17]
js 0x140003509
test r8b, r8b
jns 0x1400034d9
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
mov rcx, rdi
call fcn.14000b700
cmp byte [rsi + 0x17], 0
js 0x1400034fb
add rsp, 0x28
pop rdi
pop rsi
ret
cmp qword [rdi + 8], 0
je 0x14000349c
mov rcx, qword [rdi]
jmp 0x140003487
mov rax, qword [rsi + 0x10]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
jmp 0x1400034c0
mov rax, qword [rdi]
mov word [rax], 0
mov qword [rdi + 8], 0
jmp 0x14000349c
mov rcx, qword [rsi]
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14000cf20
test r8b, r8b
js 0x140003517
and r8d, 0x7f
mov rdx, rsi
jmp 0x14000351e
mov r8, qword [rsi + 8]
mov rdx, qword [rsi]
mov rcx, rdi
call fcn.14000b610
jmp 0x1400034c0

Function at 0x14000d508
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d552
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d552
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d552
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d552
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d552
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000d554
xor al, al
add rsp, 0x28
ret

Function at 0x14000e0a8
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14000e120
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14000e120
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14000e120
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14000e114
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14000e132
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14000e102
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14000e122

Function at 0x14001c8ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001ca34

Function at 0x140024e50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140024e78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140024e78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002f374
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140028a88
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002f415
cmp ebx, dword [rsp + 0x30]
je 0x14002f40e
test esi, esi
je 0x14002f40e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002f3e9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002f3f6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002f3d3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002f3fa
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002f417
mov eax, 1
jmp 0x14002f417
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002fe1c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002fea3
mov rsi, rbx
cmp word [rax], bp
je 0x14002fe62
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002fe4c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002fe48
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002b674
mov rdi, rax
test rax, rax
je 0x14002fe90
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000fba0
mov rbp, rdi
xor ecx, ecx
call fcn.14002814c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140033bf4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140033c0a
mov al, 1
jmp 0x140033c6a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140033c1b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140033c68
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001f268
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140033c68
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140033c68
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140033c68
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140033c6a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140115c80
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140115c8d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140115c9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140115c85
lea eax, [rcx + 1]
jmp 0x140115cab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140115cbe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140115ca4
sub eax, 3
jb 0x140115cde
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140115d2d
sar eax, 1
movsxd rbp, eax
jb 0x140115d14
jmp 0x140115cec
add ebx, ebx
jne 0x140115cea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140115d14
inc ecx
add ebx, ebx
jne 0x140115cfa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140115d14
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140115d0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140115cfc
add ecx, 2
jmp 0x140115d19
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140115c42
jmp 0x140115c8d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xb3400
mov dl, 0x25
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140115d7d
cmp rsi, rcx
jae 0x140115d85
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140115d64
cmp al, 0x8f
ja 0x140115d64
cmp byte [rsi - 2], 0xf
je 0x140115d6a
sub al, 0xe8
cmp al, 1
ja 0x140115d4e
cmp rsi, rcx
jae 0x140115d85
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140115d54
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140115d85
lodsb al, byte [rsi]
jmp 0x140115d64
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x111000]
mov eax, dword [rdi]
or eax, eax
je 0x140115dee
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1168f4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140115d92
jns 0x140115dc7
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140115dd1
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140115de8
mov qword [rbx], rax
add rbx, 8
jmp 0x140115db2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140115e28
cmp al, 0xef
ja 0x140115e1a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140115dfa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140115e09
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x25f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140115e7c
sub rsp, 0xffffffffffffff80
jmp 0x14002549c
Function at 0x1400199b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400199bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400199cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400199b5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1400199e5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400199d2
sub eax, 3
jb 0x1400199ff
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140019a36
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140019a26
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140019a24
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140019a13
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140019972
jmp 0x1400199bd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1200
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140019a82
cmp rsi, rcx
jae 0x140019a8a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140019a69
cmp al, 0x8f
ja 0x140019a69
cmp byte [rsi - 2], 0xf
je 0x140019a6f
sub al, 0xe8
cmp al, 1
ja 0x140019a53
cmp rsi, rcx
jae 0x140019a8a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140019a59
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140019a8a
lodsb al, byte [rsi]
jmp 0x140019a69
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x17000]
mov eax, dword [rdi]
or eax, eax
je 0x140019ae7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x272ac]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140019a97
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140019ae1
mov qword [rbx], rax
add rbx, 8
jmp 0x140019ab7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140019b21
cmp al, 0xef
ja 0x140019b13
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140019af3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140019b02
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140019b75
sub rsp, 0xffffffffffffff80
jmp 0x140001580
Function at 0x14000117c
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14000a298]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000120a
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140001204
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
and qword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor edx, edx
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x28], 0x80010002
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400068f0
add rsp, 0x68
ret

Function at 0x140001674
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbp, rcx
mov rsi, rdx
mov ecx, 0x2004
call fcn.140006598
xor r14d, r14d
mov rdi, rax
test rax, rax
je 0x14000174e
mov dword [rsp + 0x60], 0x2000
jmp 0x1400016ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140001746
cmp dword [rsp + 0x68], 7
jne 0x140001746
mov ebx, dword [rsp + 0x60]
mov rcx, rdi
call fcn.1400065d4
mov ecx, ebx
mov eax, 2
shr rcx, 1
add rcx, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140006598
mov rdi, rax
test rax, rax
je 0x14000174e
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400016af
mov ecx, dword [rsp + 0x60]
shr ecx, 1
lea eax, [rcx + 1]
mov word [rdi + rcx*2], r14w
mov rcx, rdi
mov word [rdi + rax*2], r14w
call fcn.140001354
test rax, rax
jne 0x140001750
mov rcx, rdi
call fcn.1400065d4
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140004f60
Capabilities:
Check if file exists
Get file attributes

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
sub rsp, 0x260
mov rax, qword [0x14000a298]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rsp + 0x290]
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov ebx, 2
test rdx, rdx
je 0x140004fb2
mov eax, 3
jmp 0x1400050a2
cmp r9d, ebx
jl 0x140004fa8
mov rcx, qword [rax]
cmp word [rcx], r14w
je 0x140004fa8
mov rsi, qword [rax + 8]
cmp word [rsi], r14w
je 0x140004fa8
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
dec eax
cmp eax, 0x102
ja 0x1400050a0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400050a0
lea rcx, str.newdev.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x1400050a0
lea rdx, str.UpdateDriverForPlugAndPlayDevicesW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x140005097
mov ecx, 1
call fcn.140006da0
mov rcx, rax
lea r9, [rsp + 0x40]
mov r8, rsi
mov edx, 0xeeae
call fcn.140001078
lea rax, [rsp + 0x30]
mov r9d, 1
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov rax, rbp
mov rdx, rsi
xor ecx, ecx
call qword [0x1400074f8]
test eax, eax
je 0x140005097
mov ecx, 1
call fcn.140006da0
mov rcx, rax
mov edx, 0xeeb2
call fcn.140001078
cmp dword [rsp + 0x30], r14d
mov ebx, r14d
setne bl
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400068f0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400066fc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14000a870], rbx
je 0x140006748
cmp rax, rbx
jne 0x14000673b
mov ebx, 1
mov esi, ebx
jmp 0x14000674d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140006720
mov ebx, 1
mov eax, dword [0x14000a878]
cmp eax, ebx
jne 0x140006763
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400067c8
mov eax, dword [0x14000a878]
test eax, eax
jne 0x1400067c2
mov dword [0x14000a878], ebx
lea r15, [0x140007540]
lea rdi, [0x140007528]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400067b4
test eax, eax
jne 0x1400067b8
cmp qword [rdi], 0
je 0x1400067a9
mov rax, qword [rdi]
mov rcx, qword [0x1400074f8]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000678a
test eax, eax
je 0x1400067c8
mov eax, 0xff
jmp 0x1400068a4
mov dword [0x14000a2b4], ebx
mov eax, dword [0x14000a878]
cmp eax, ebx
jne 0x1400067ef
lea rdx, [0x140007520]
lea rcx, [0x140007510]
call sub.msvcrt.dll__initterm
mov dword [0x14000a878], 2
test esi, esi
jne 0x1400067fc
xor eax, eax
xchg qword [0x14000a870], rax
cmp qword [0x14000a880], 0
je 0x140006830
lea rcx, [0x14000a880]
call fcn.140006c30
test eax, eax
je 0x140006830
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000a880]
mov r9, qword [0x1400074f8]
call r9
mov r8, qword [0x14000a2c8]
mov rdx, qword [0x14000a2c0]
mov ecx, dword [0x14000a2b8]
call fcn.140001e74
mov dword [0x14000a2b0], eax
cmp dword [0x14000a2d0], 0
jne 0x140006860
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000a2b4], 0
jne 0x140006875
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000a2b0]
jmp 0x1400068a4
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400a4000
add rsp, 0x28
jmp 0x1400066fc

Function at 0x140006b40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006b8c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140006b84
cmp dword [rcx + 0x3c], edx
jl 0x140006b84
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140006b84
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 0x140006b8c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000f0f0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14000f118
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000f13e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000f140
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000f199
test ecx, ecx
jle 0x14000f179
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000f199
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000f199
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x14000f1c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000f1e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000f1f8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000f214
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000f216
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000f252
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000f2ee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000f28d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000f2ce
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000f2ee
cmp rbx, rax
ja 0x14000f2a0
test rbx, rbx
je 0x14000f2ee
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret