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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x140030865
cmp qword [rsi], 0
jne 0x140030865
cmp dword [rsi + 0x14], 0
jne 0x140030865
cmp qword [rsi + 8], 0
jne 0x140030865
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x1400307e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003084c
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400307dc
mov qword [rsi], r14
call fcn.14004d110
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14003081e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140030834
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140030816
mov qword [rsi + 8], r14
call fcn.14004d110
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14004d110
mov rcx, qword [rsi + 8]
call fcn.1400476b0
mov qword [rsi + 8], 0
jmp 0x140030803
call fcn.14004d110
mov rcx, qword [rsi]
call fcn.1400476b0
mov qword [rsi], 0
jmp 0x1400307ca
mov rcx, rsi
call fcn.140044280
lea rcx, [rsi + 8]
call fcn.140044280
mov qword [rsi + 0x10], 0
mov rax, qword [rsi]
jmp 0x1400307aa
Function at 0x140034bd0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x1400f7040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1400d7a90]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x140034d4c
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140109030]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.14008267c
mov rcx, rbx
call fcn.140082228
sub r14, rax
lea rdx, [0x1400d9d6e]
mov rcx, rbx
mov r8, r14
call fcn.14008267c
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.140098ea0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140034cac
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400826c4
test eax, eax
je 0x140034d70
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140034ce7
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400826c4
test eax, eax
je 0x140034d70
xor eax, eax
mov byte [0x140108c29], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1400e5266]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140034d77
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x1400ebc80]
test eax, eax
je 0x140034d77
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140109230], al
mov byte [0x140108c28], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140067af0
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x140034ce9
xor eax, eax
jmp 0x140034d3f
Function at 0x140035070
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x1400f7040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x1400350a4
mov rax, qword [rsi + 8]
test rax, rax
je 0x14003519b
bt ebx, 8
jae 0x1400350c0
mov eax, ebx
and eax, 0x200
jne 0x14003519b
cmp edi, 2
lea rax, [0x140108c30]
lea rcx, [0x140108e30]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14003519b
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x14003519b
bt ebx, 8
jb 0x14003519b
shr ebx, 9
and ebx, 1
or bl, byte [0x140109230]
je 0x14003519b
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movsx r13, byte [rsi + 0x17]
test r13, r13
jns 0x1400351ba
mov r14, qword [rsi]
mov r13, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov rbp, r13
sub rbp, r15
jb 0x140035184
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.14007d0a0
test eax, eax
je 0x1400351bf
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140035164
cmp dword [rsp + 0x2c], 0
jne 0x14003523a
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140067af0
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x140035147
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x1400351cd
test ecx, ecx
jne 0x140035184
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x1400351f9
cmp dword [rsp + 0x2c], 2
jne 0x14003520a
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rax
jmp 0x14003520a
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x140035223
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x140035210
jmp 0x140035226
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x14003518b
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x140035246
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.1400b1d50
jmp 0x14003519b
Function at 0x140035ee0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x140035f57
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1400f9660], rax
jne 0x140035f5a
mov rsi, rcx
call fcn.1400390a0
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.14002fe80
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14005b930
mov ecx, dword [0x14010923c]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x140105748]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x148], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x1400397b0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.140067a90
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x1400f7040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400d7a90]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.1400498a0
test rsi, rsi
je 0x140039888
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.140098ea0
cmp byte [rsp + 0x47], 0
jns 0x14003982b
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x14003985a
cmp eax, 0x7fff
jae 0x1400398ad
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.140027440
cmp byte [rsp + 0x47], 0
jns 0x14003986b
mov rcx, qword [rsp + 0x30]
call fcn.1400666f4
mov rcx, qword [rsp + 0x10048]
xor rcx, rsp
call fcn.140067af0
mov eax, ebx
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
ret
cmp byte [rsp + 0x47], 0
js 0x140039896
lea rcx, [rsp + 0x30]
jmp 0x14003989b
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
jmp 0x14003985a
int3

Function at 0x14003a9f0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14010ecf0], 0
jne 0x14003aa2d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14003aa20
mov dword [rdi], eax
mov dword [0x14010ecf8], eax
mov qword [0x14010ecf0], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140051ae0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140051b7a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140051b64
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140051b41
mov qword [rsi], rdi
call fcn.14004d110
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x140051b7e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14004d110
mov rcx, qword [rsi]
call fcn.1400476b0
mov qword [rsi], 0
jmp 0x140051b2f
mov byte [rsi + 8], 0
int3
Function at 0x1400647e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
mov rcx, qword [rdx + 8]
test rcx, rcx
js 0x14006481c
je 0x14006481b
mov rdx, qword [rdx]
xor r8d, r8d
lea r9, [0x1400e7c40]
nop word [rax + rax]
movzx r10d, al
movzx r11d, byte [rdx + r8]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc r8
cmp rcx, r8
jne 0x140064800
ret
int3

Function at 0x140067034
Capabilities:
Parse pe header

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

Function at 0x1400672fc
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 0x140067374
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140067374
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 0x140067374
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140067368
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140067386
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140067356
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 0x140067376

Function at 0x140075408
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14007543f
call fcn.1400785e0
mov dword [rax], 0x16
call fcn.140088874
xor eax, eax
jmp 0x1400754cd
mov rdx, r9
mov rcx, r8
call fcn.1400754f0
mov rbx, rax
test rax, rax
je 0x1400754ca
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140075560]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400754b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140078620
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14007549e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400754ad
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140050ab0
jmp 0x1400754ca
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400754c7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14007577c
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14007577c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400757eb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400757eb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400757eb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400757eb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400757eb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400757eb
cmp dword [rcx + 0xf8], 0
je 0x1400757eb
mov ecx, ebx
call fcn.1400756b4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140075910
nop
cmp dword [rbp + 0x20], 0
je 0x140075839
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140075748
int3
Function at 0x140075a60
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14008a1c4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14008a1c4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140075bb0
cmp rax, 0xffffffffffffffff
je 0x140075bb0
xor edi, edi
test rbp, rbp
jle 0x140075b5b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140050b50
mov rbx, rax
test rax, rax
jne 0x140075ae8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140075b51
mov edx, 0x8000
mov ecx, r14d
call fcn.14007a488
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14007d6d8
cmp eax, 0xffffffff
je 0x140075b31
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140075af8
mov edx, r15d
mov ecx, r14d
call fcn.14007a488
jmp 0x140075b51
cmp byte [rsi + 0x38], dil
je 0x140075b48
cmp dword [rsi + 0x34], 5
jne 0x140075b48
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140075b51
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140050ab0
jmp 0x140075bc4
jns 0x140075bc4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14008a1c4
cmp rax, 0xffffffffffffffff
jne 0x140075b7c
cmp byte [rsi + 0x30], dil
je 0x140075bc4
mov edi, dword [rsi + 0x2c]
jmp 0x140075bc4
mov ecx, r14d
call fcn.140078a2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140075bc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140075bc4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140075bbd
mov eax, dword [rsi + 0x2c]
jmp 0x140075bc2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14008a1c4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14007a06c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1401065d0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14007a0c3
cmp word [rdx], r13w
jne 0x14007a0c3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14007a0c8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14007a1ed
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14007a20e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14007a101
mov rdx, r9
mov word [rbx], cx
jmp 0x14007a128
cmp r9, r8
jae 0x14007a138
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14007a0e2
jmp 0x14007a1ed
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007a1e2
cmp dword [rsp + 0x80], esi
je 0x14007a1e2
lea r8, [0x1401065d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14007a1ba
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14007a18a
mov word [rbx], r13w
jmp 0x14007a1ea
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14007a197
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14007a1ea
cmp word [rsp + 0x70], r13w
jne 0x14007a1c7
cmp rbx, r14
je 0x14007a184
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14008a1c4
cmp word [rsp + 0x70], r13w
je 0x14007a1ed
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1401065d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14007a1e7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14007a1ed
Function at 0x14007fb10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140067a90
sub rsp, rax
mov rax, qword [0x1400f7040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400789d8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14007fb5f
mov rax, rbp
jmp 0x14007fc67
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1065d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14008a268
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1065d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14007fc63
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007fc63
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14008a268
test rax, rax
js 0x14007fc63
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14007fc63
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14007fc55
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14007fc55
cmp byte [rcx], 0xd
jne 0x14007fc3b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14007fc4a
cmp byte [rcx + 1], 0xa
jne 0x14007fc4a
inc rcx
jmp 0x14007fc4a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xf7370]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14007fc1d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14007fc67
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140067af0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400828b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400828d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400828d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14008cd78
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.1400864d4
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 0x14008ce19
cmp ebx, dword [rsp + 0x30]
je 0x14008ce12
test esi, esi
je 0x14008ce12
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14008cded
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14008cdfa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14008cdd7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14008cdfe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14008ce1b
mov eax, 1
jmp 0x14008ce1b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008db80
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 0x14008dc07
mov rsi, rbx
cmp word [rax], bp
je 0x14008dbc6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14008dbb0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14008dbac
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002dbc0
mov rdi, rax
test rax, rax
je 0x14008dbf4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140098800
mov rbp, rdi
xor ecx, ecx
call fcn.140050ab0
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 0x1400901a8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400f7040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400901f2
call fcn.140078600
mov dword [rax], 0xf
call fcn.1400785e0
mov dword [rax], 0xd
call fcn.140088874
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140067af0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400901fd
lea eax, [rbx + 1]
jmp 0x1400901df
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400901dd
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400901df

Function at 0x1400907c8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400907de
mov al, 1
jmp 0x14009083e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400907ef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14009083c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140078a2c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14009083c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14009083c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14009083c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14009083e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140099c70
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1400f7040]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov dword [rax], r8d
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140067af0
mov eax, esi
add rsp, 0x40
pop rsi
ret
xor r8d, r8d
test edx, edx
cmovg r8d, edx
lea rdx, str.PWALauncherResult
jmp 0x140023cc0