joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002aa60
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [0x1400f2ac8], 0
mov rdi, rdx
mov rsi, rcx
jne 0x14002aa9d
mov r9d, 0x92e
lea r8, str.C:JenkinsworkspaceBeefBeefySysLibplatformwinPlatform.cpp
mov edx, 1
mov ecx, 0x1000
call fcn.1400387b0
mov qword [0x1400f2ac8], rax
mov rax, qword [0x1400f2aa0]
mov qword [rsp + 0x40], rbx
cmp rax, 0xffffffffffffffff
je 0x14002ab85
test rax, rax
jne 0x14002ab97
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x14002ab7a
lea rdx, str.GetEnabledXStateFeatures
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InitializeContext
mov rcx, rbx
mov qword [0x1400f2aa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetXStateFeaturesMask
mov rcx, rbx
mov qword [0x1400f2aa8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.LocateXStateFeature
mov rcx, rbx
mov qword [0x1400f2ab0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetXStateFeaturesMask
mov rcx, rbx
mov qword [0x1400f2ab8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov qword [0x1400f2ac0], rax
mov rax, qword [0x1400f2aa0]
test rax, rax
je 0x14002ab7a
cmp qword [0x1400f2aa8], 0
je 0x14002ab7a
cmp qword [0x1400f2ab0], 0
je 0x14002ab7a
cmp qword [0x1400f2ab8], 0
je 0x14002ab7a
test rcx, rcx
jne 0x14002ab97
mov qword [0x1400f2aa0], 0xffffffffffffffff
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call rax
mov qword [rsp + 0x28], rax
test al, 4
je 0x14002ab85
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
xor r8d, r8d
mov edx, 0x4010005f
xor ecx, ecx
call qword [0x1400f2aa8]
cmp dword [rsp + 0x50], 8
ja 0x14002ab85
mov rcx, qword [0x1400f2ac8]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x20]
mov edx, 0x4010005f
call qword [0x1400f2aa8]
test eax, eax
je 0x14002ab85
mov rcx, qword [rsp + 0x20]
mov edx, 4
call qword [0x1400f2ac0]
test eax, eax
je 0x14002ac69
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x14002ac69
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [0x1400f2ab0]
test eax, eax
je 0x14002ac69
test byte [rsp + 0x28], 4
je 0x14002ac69
mov rcx, qword [rsp + 0x20]
lea r8, [rsp + 0x58]
mov edx, 1
call qword [0x1400f2ab8]
mov rcx, qword [rsp + 0x20]
xor r8d, r8d
lea edx, [r8 + 2]
call qword [0x1400f2ab8]
mov r8d, dword [rsp + 0x58]
mov rdx, rax
mov rcx, qword [rdi]
call fcn.1400a0710
mov eax, dword [rsp + 0x58]
and rax, 0xfffffffffffffff8
add qword [rdi], rax
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14002ac80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, rdx
mov rdi, rcx
lea r9, [rsp + 0x70]
xor r8d, r8d
mov edx, 0x8100
mov rcx, rax
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x14002acc9
mov rax, qword [rdi]
mov rcx, qword [rax]
test rcx, rcx
je 0x14002adac
mov dword [rcx], 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.1400335d0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14002ec40
nop
mov rdx, rax
mov rcx, qword [rdi + 8]
call fcn.14001e700
nop
mov eax, dword [rsp + 0x34]
shr eax, 0x1f
test al, al
je 0x14002ad0c
mov rcx, qword [rsp + 0x38]
call fcn.14006bcf0
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14002ad1b
call fcn.14006bcf0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rax, qword [rdi + 0x18]
mov r8, qword [rax]
mov rax, qword [rdi + 0x10]
mov r9, qword [rax]
mov rdx, qword [rdi + 8]
test r9, r9
je 0x14002ad9a
movsxd r11, dword [rdx]
movsxd r10, dword [r8]
lea rcx, [r11 + 1]
cmp r10, rcx
jl 0x14002ad91
lea eax, [r11 + 1]
mov dword [r8], eax
lea rcx, [rdx + 8]
test dword [rdx + 4], 0x40000000
je 0x14002ad69
mov rcx, qword [rcx]
mov eax, dword [rdx]
inc eax
movsxd r8, eax
mov rdx, rcx
mov rcx, r9
call fcn.1400a0710
test rbx, rbx
je 0x14002adac
mov dword [rbx], 0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
test r10d, r10d
je 0x14002ad9a
mov byte [r9], 0
mov eax, dword [rdx]
inc eax
mov dword [r8], eax
test rbx, rbx
je 0x14002adac
mov dword [rbx], 2
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x14002bc60
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
cmp qword [0x1400f2af0], 0
jne 0x14002bd22
mov qword [rsp + 0x50], rbx
xor eax, eax
mov ebx, 1
mov qword [0x1400f2b00], 0xffffffffffffffff
mov qword [0x1400f2b08], 0x200000
mov dword [0x1400f2b10], 7
lock cmpxchg dword [0x1400f2ae0], ebx
je 0x14002bcbc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
lock cmpxchg dword [0x1400f2ae0], ebx
jne 0x14002bca8
mov rbx, qword [rsp + 0x50]
xor ecx, ecx
cmp qword [0x1400f2ae8], rcx
jne 0x14002bce9
mov eax, dword [0x1400f2b10]
mov dword [0x1400f2e80], eax
mov qword [0x1400f2ae8], 0x58585858
mov dword [0x1400f2e84], ecx
xchg dword [0x1400f2ae0], ecx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x48]
mov edx, dword [rsp + 0x24]
mov qword [0x1400f2af0], rdx
mov qword [0x1400f2af8], rcx
lea rax, [rcx - 1]
test rcx, rax
jne 0x14002bd29
lea rax, [rdx - 1]
test rdx, rax
jne 0x14002bd29
xor eax, eax
add rsp, 0x58
ret
call fcn.14006596c
int3
Function at 0x14002e2f0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
cmp dword [rcx], 0xfffe
jle 0x14002e36b
mov r9d, 0xfffe
xor r8d, r8d
lea rdx, [rsp + 0x20]
call fcn.1400325f0
nop
mov rcx, rax
call fcn.14002e2f0
nop
mov eax, dword [rsp + 0x24]
shr eax, 0x1f
test al, al
je 0x14002e333
mov rcx, qword [rsp + 0x28]
call fcn.14006bcf0
mov r8d, 0xfffe
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400325b0
nop
mov rcx, rax
call fcn.14002e2f0
nop
mov eax, dword [rsp + 0x24]
shr eax, 0x1f
test al, al
je 0x14002e385
mov rcx, qword [rsp + 0x28]
call fcn.14006bcf0
add rsp, 0x40
pop rbx
ret
add rcx, 8
test dword [rbx + 4], 0x40000000
je 0x14002e37b
mov rcx, qword [rcx]
add rsp, 0x40
pop rbx
jmp fcn.140027ff0
add rsp, 0x40
pop rbx
ret

Function at 0x14002e390
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x58
lea r8, [rsp + 0x68]
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14002de90
nop
cmp dword [rsp + 0x20], 0xfffe
jle 0x14002e432
mov r9d, 0xfffe
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.1400325f0
nop
mov rcx, rax
call fcn.14002e2f0
nop
mov eax, dword [rsp + 0x3c]
shr eax, 0x1f
test al, al
je 0x14002e3fc
mov rcx, qword [rsp + 0x40]
call fcn.14006bcf0
mov r8d, 0xfffe
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.1400325b0
nop
mov rcx, rax
call fcn.14002e2f0
nop
mov eax, dword [rsp + 0x3c]
shr eax, 0x1f
test al, al
je 0x14002e44b
mov rcx, qword [rsp + 0x40]
call fcn.14006bcf0
jmp 0x14002e44b
test dword [rsp + 0x24], 0x40000000
lea rcx, [rsp + 0x28]
cmovne rcx, qword [rsp + 0x28]
call fcn.140027ff0
nop
mov eax, dword [rsp + 0x24]
shr eax, 0x1f
test al, al
je 0x14002e460
mov rcx, qword [rsp + 0x28]
call fcn.14006bcf0
add rsp, 0x58
ret
Function at 0x14002f200
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov r14, rdx
lea rax, [rcx + 8]
test dword [rcx + 4], 0x40000000
je 0x14002f22b
mov rax, qword [rax]
lea rdx, [0x1400d5c54]
mov rcx, rax
call fcn.14006b64c
mov rsi, rax
test rax, rax
je 0x14002f438
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rsi
call fcn.14006bfac
mov rcx, rsi
call fcn.14006c4f0
movsxd rbp, eax
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.14006bfac
xor eax, eax
mov word [rsp + 0x70], ax
mov byte [rsp + 0x72], al
mov r9, rsi
mov r15d, 3
mov r8d, r15d
lea edx, [rax + 1]
lea rcx, [rsp + 0x70]
call fcn.14006b9f0
movzx eax, byte [rsp + 0x70]
cmp al, 0xff
jne 0x14002f394
cmp byte [rsp + 0x71], 0xfe
jne 0x14002f3cb
mov rcx, rbp
call fcn.1400387d0
mov rdi, rax
movzx eax, byte [rsp + 0x72]
mov byte [rdi], al
mov byte [rbp + rdi - 2], 0
lea eax, [rbp - 1]
movsxd rcx, eax
mov byte [rcx + rdi], 0
lea eax, [rbp - 3]
movsxd r8, eax
lea rcx, [rdi + 1]
mov r9, rsi
lea edx, [r15 - 2]
call fcn.14006b9f0
mov rcx, rsi
call fcn.14006b324
lea rcx, [rsp + 0x20]
call fcn.1400335c0
nop
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140033810
mov rcx, rdi
call fcn.1400387d8
lea rcx, [rsp + 0x20]
call fcn.140033860
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.140033830
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14002ec90
nop
movsxd rbx, dword [rsp + 0x30]
mov rbp, rbx
lea rcx, [rbx + 1]
call fcn.1400387d0
mov rsi, rax
test r14, r14
je 0x14002f34b
mov dword [r14], ebx
mov ebx, dword [rsp + 0x34]
bt ebx, 0x1e
lea rdx, [rsp + 0x38]
mov rdi, qword [rsp + 0x38]
cmovb rdx, rdi
mov r8, rbp
mov rcx, rsi
call fcn.1400a0710
nop
shr ebx, 0x1f
test bl, bl
je 0x14002f37d
mov rcx, rdi
call fcn.14006bcf0
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14002f38c
call fcn.14006bcf0
mov rax, rsi
jmp 0x14002f438
cmp al, 0xef
jne 0x14002f3cb
cmp byte [rsp + 0x71], 0xbb
jne 0x14002f3cb
cmp byte [rsp + 0x72], 0xbf
jne 0x14002f3cb
lea rcx, [rbp - 2]
call fcn.1400387d0
mov rdi, rax
lea r8, [rbp - 3]
mov byte [r8 + rax], 0
test r14, r14
je 0x14002f3c6
lea ecx, [rbp - 3]
mov dword [r14], ecx
mov rcx, rdi
jmp 0x14002f420
test r14, r14
je 0x14002f3d3
mov dword [r14], ebp
lea rcx, [rbp + 1]
call fcn.1400387d0
mov rdi, rax
mov byte [rbp + rax], 0
mov ecx, ebp
cmp ebp, r15d
cmovg ecx, r15d
movsxd rdx, ecx
test ecx, ecx
jle 0x14002f411
mov rcx, rax
lea r8, [rsp + 0x70]
sub r8, rax
nop
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x14002f400
cmp ebp, r15d
jle 0x14002f42d
lea eax, [rbp - 3]
movsxd r8, eax
lea rcx, [rdi + 3]
mov r9, rsi
mov edx, 1
call fcn.14006b9f0
mov rcx, rsi
call fcn.14006b324
mov rax, rdi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140035a30
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov r14, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rbp - 0x50], r12d
xor r8d, r8d
lea rdx, [0x1400d5c45]
call fcn.14001e630
mov dword [rbp - 0x50], 1
mov dword [rbp + 0x50], r12d
lea rbx, [r14 + 8]
test dword [r14 + 4], 0x40000000
je 0x140035a80
mov rcx, qword [rbx]
jmp 0x140035a83
mov rcx, rbx
lea rdx, [rbp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov r15d, eax
test eax, eax
je 0x140035c36
mov ecx, r15d
call fcn.14006d070
mov rsi, rax
test rax, rax
je 0x140035c36
mov dword [rbp + 0x48], r12d
mov dword [rbp + 0x58], r12d
mov qword [rbp - 0x48], r12
test dword [r14 + 4], 0x40000000
je 0x140035ac4
mov rbx, qword [rbx]
mov r9, rsi
mov r8d, r15d
mov edx, dword [rbp + 0x50]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoA
lea r9, [rbp + 0x58]
lea r8, [rbp - 0x40]
lea rdx, str.VarFileInfoTranslation
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueA
mov r14, qword [rbp - 0x40]
movzx r9d, word [r14 + 2]
movzx r8d, word [r14]
lea rdx, str.StringFileInfo_04x_04xFileVersion
lea rcx, [rbp - 0x38]
call fcn.14002e280
nop
test dword [rbp - 0x34], 0x40000000
lea rdx, [rbp - 0x30]
cmovne rdx, qword [rbp - 0x30]
lea r9, [rbp + 0x48]
lea r8, [rbp - 0x48]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueA
mov rbx, 0xffffffffffffffff
cmp dword [rbp + 0x48], 0
je 0x140035b78
lea r8d, [rbx + 0xf]
lea rdx, str.File_Version:
mov rcx, rdi
call fcn.140032320
mov rdx, qword [rbp - 0x48]
mov r8, rbx
inc r8
cmp byte [rdx + r8], 0
jne 0x140035b51
mov rcx, rdi
call fcn.140032320
mov r8d, 2
lea rdx, [0x1400d60a4]
mov rcx, rdi
call fcn.140032320
movzx r9d, word [r14 + 2]
movzx r8d, word [r14]
lea rdx, str.StringFileInfo_04x_04xProductVersion
lea rcx, [rbp - 0x20]
call fcn.14002e280
nop
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.14001e700
nop
mov eax, dword [rbp - 0x1c]
shr eax, 0x1f
test al, al
je 0x140035bb2
mov rcx, qword [rbp - 0x18]
call fcn.14006bcf0
test dword [rbp - 0x34], 0x40000000
lea rdx, [rbp - 0x30]
cmovne rdx, qword [rbp - 0x30]
lea r9, [rbp + 0x48]
lea r8, [rbp - 0x48]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueA
cmp dword [rbp + 0x48], 0
je 0x140035c1a
mov r8d, 0x11
lea rdx, str.Product_Version:
mov rcx, rdi
call fcn.140032320
mov rdx, qword [rbp - 0x48]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140035bf1
mov r8, rbx
mov rcx, rdi
call fcn.140032320
mov r8d, 2
lea rdx, [0x1400d60a4]
mov rcx, rdi
call fcn.140032320
mov rcx, rsi
call fcn.14006bcf0
nop
mov eax, dword [rbp - 0x34]
shr eax, 0x1f
test al, al
je 0x140035c36
mov rcx, qword [rbp - 0x30]
call fcn.14006bcf0
mov rax, rdi
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140036cf0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140034050
mov edx, dword [rax + 0x5c]
lea rcx, str.SEH_Filter__CraskReportKind:_d_n
call fcn.14002e390
call fcn.140034050
cmp dword [rax + 0x5c], 5
jne 0x140036d29
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.140034050
cmp dword [rax + 0x5c], 4
jne 0x140036d56
lea rcx, str.Silent_Exiting_n
call fcn.14002e390
mov rax, qword [rdi]
mov ebx, dword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.140034050
lea rbx, [rax + 0x38]
mov qword [rsp + 0x38], rbx
mov rcx, qword [rbx]
call sub.KERNEL32.dll_EnterCriticalSection
inc dword [rbx + 8]
call fcn.140034050
cmp byte [rax + 0x30], 0
jne 0x140036d8b
call fcn.140034050
mov qword [rax + 0x48], rdi
mov rcx, rdi
call fcn.140035c50
call fcn.140034050
cmp dword [rax + 0x5c], 3
jne 0x140036dac
mov rax, qword [rdi]
mov edi, dword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.140034050
xor edi, edi
cmp byte [rax + 0x59], dil
setne dil
dec dword [rbx + 8]
mov rcx, qword [rbx]
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400390f8
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140060a90
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 0x140060aff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140060aff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140060aff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140060aff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140060aff
cmp dword [rcx + 0x84], 0xe
jbe 0x140060aff
cmp dword [rcx + 0xf8], 0
je 0x140060aff
mov ecx, ebx
call fcn.140060944
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.140060cac
nop
cmp dword [rbp + 0x20], 0
jne 0x140060b60
call fcn.140085a18
cmp eax, 1
jne 0x140060b50
xor dl, dl
jmp 0x140060b5a
call fcn.1400859e4
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140060b6b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140060a2c
int3

Function at 0x140060a90
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140060a90
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 0x140060aff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140060aff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140060aff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140060aff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140060aff
cmp dword [rcx + 0x84], 0xe
jbe 0x140060aff
cmp dword [rcx + 0xf8], 0
je 0x140060aff
mov ecx, ebx
call fcn.140060944
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.140060cac
nop
cmp dword [rbp + 0x20], 0
jne 0x140060b60
call fcn.140085a18
cmp eax, 1
jne 0x140060b50
xor dl, dl
jmp 0x140060b5a
call fcn.1400859e4
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140060b6b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140060a2c
int3
Function at 0x140065b84
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1400f1b00]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r10, rax
lea rdx, [rax - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140065c10
lea r8, [rsp + 0x40]
xor edx, edx
mov cl, byte [rbx]
lea rax, [rsp + 0x234]
mov byte [r8], cl
inc r8
cmp r8, rax
je 0x140065be2
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x140065bc1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x233], dl
sub r8d, eax
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x30]
dec r8d
lea rdx, [rsp + 0x40]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140073f70
add rsp, 0x250
pop rbx
ret

Function at 0x140067644
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
mov edi, eax
test eax, eax
jne 0x140067686
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140081bf0
call fcn.140081b00
mov eax, dword [rax]
jmp 0x140067704
cmp rdi, qword [rbx + 0x18]
ja 0x140067692
mov qword [rbx + 0x20], rdi
jmp 0x140067702
lea rsi, [rdi + 1]
cmp byte [rbx + 0x28], bpl
je 0x1400676a9
mov rcx, qword [rbx + 0x10]
call fcn.140081150
mov byte [rbx + 0x28], bpl
lea rcx, [rdi*2 + 2]
call fcn.140081f20
mov r8, rax
mov qword [rbx + 0x10], rax
neg rax
sbb eax, eax
not eax
and eax, 0xc
test r8, r8
setne cl
cmovne eax, ebp
mov byte [rbx + 0x28], cl
mov rcx, r8
neg rcx
sbb rdx, rdx
and rdx, rsi
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x140067704
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x140067670
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140067a5c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400f1b00]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140067aa6
call fcn.140081b78
mov dword [rax], 0xf
call fcn.140081b00
mov dword [rax], 0xd
call fcn.140065eec
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140073f70
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140067ab1
lea eax, [rbx + 1]
jmp 0x140067a93
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 0x140067a91
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140067a93
Function at 0x14006c878
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.1400387f0
sub rsp, rax
mov rax, qword [0x1400f1b00]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140085558
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14006c8c7
mov rax, rbp
jmp 0x14006c9d3
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 + 0xf3e60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140091070
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xf3e60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14006c9cf
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006c9cf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140091070
test rax, rax
js 0x14006c9cf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14006c9cf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14006c9c1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14006c9c1
cmp byte [rcx], 0xd
jne 0x14006c9a7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14006c9b6
cmp byte [rcx + 1], 0xa
jne 0x14006c9b6
inc rcx
jmp 0x14006c9b6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xf2630]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14006c989
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14006c9d3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140073f70
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 0x140070300
Capabilities:
Parse pe header

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

Function at 0x14007d6f8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400ff050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x14007d75d
test rax, rax
jne 0x14007d74b
lea r9, str.GetLocaleInfoEx
lea r8, [0x1400d9558]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.14007e804
test rax, rax
je 0x14007d75d
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.1400a06d0
jmp 0x14007d777
xor edx, edx
mov rcx, rbp
call fcn.14007db5c
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret