joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140030a04
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x250
mov rax, qword [0x14009b978]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov rcx, qword [0x14009b020]
lea rbp, [0x14009b020]
cmp rcx, rbp
je 0x140030a5f
test byte [rcx + 0x1c], 4
je 0x140030a5f
cmp byte [rcx + 0x19], 5
jb 0x140030a5f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c310]
mov edx, 0x3c
call fcn.1400042fc
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
cmp qword [rbx + 0x258], 0
jne 0x140030bb3
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [0x14008c2b8]
call fcn.14003037c
test eax, eax
jne 0x140030ae1
mov rax, qword [0x14009b020]
cmp rax, rbp
je 0x140030ada
test byte [rax + 0x1c], 4
je 0x140030ada
cmp byte [rax + 0x19], 2
jb 0x140030ada
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea r8, [0x14008c310]
mov edx, 0x3d
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
xor eax, eax
jmp 0x140030bb8
lea rcx, [rsp + 0x30]
call fcn.14006b71c
mov qword [rbx + 0x258], rax
test rax, rax
jne 0x140030bb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b020]
cmp rcx, rbp
je 0x140030b39
test byte [rcx + 0x1c], 4
je 0x140030b39
cmp byte [rcx + 0x19], 2
jb 0x140030b39
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c310]
mov edx, 0x3e
mov r9d, eax
call fcn.1400046fc
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140030ba0
mov rax, qword [0x14009b020]
cmp rax, rbp
je 0x140030ba0
test byte [rax + 0x1c], 4
je 0x140030ba0
cmp byte [rax + 0x19], 2
jb 0x140030ba0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea r8, [0x14008c310]
mov r9d, dword [rbx + 0x20]
mov edx, 0x3f
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.140037428
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140030ada
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400018f0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140038db4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r13
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and dword [rbp + 0x38], 0
mov r14d, r8d
and qword [rbp - 8], 0
mov r15, rdx
mov rdi, rcx
mov dword [rbp - 0xc], 1
mov rcx, qword [0x14009b020]
lea r13, [0x14009b020]
cmp rcx, r13
je 0x140038e1c
test byte [rcx + 0x1c], 4
je 0x140038e1c
cmp byte [rcx + 0x19], 5
jb 0x140038e1c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008cd68]
mov edx, 0x14a
call fcn.1400042fc
lea r9, [rbp + 0x38]
mov edx, r14d
lea r8, [rbp - 8]
mov rcx, r15
call fcn.1400397f8
mov ebx, eax
test eax, eax
je 0x140038e76
mov rcx, qword [0x14009b020]
cmp rcx, r13
je 0x140038fef
test byte [rcx + 0x1c], 4
je 0x140038fef
cmp byte [rcx + 0x19], 2
jb 0x140038fef
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008cd68]
mov edx, 0x14b
mov r9d, eax
call fcn.1400046fc
jmp 0x140038fef
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x10]
mov r8d, 4
lea rdx, [rbp - 0xc]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140038ed9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r13
je 0x140038fef
test byte [rcx + 0x1c], 4
je 0x140038fef
cmp byte [rcx + 0x19], 2
jb 0x140038fef
mov edx, 0x14c
jmp 0x140038fdc
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x10]
mov r8d, 4
lea rdx, [rbp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140038f3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r13
je 0x140038fef
test byte [rcx + 0x1c], 4
je 0x140038fef
cmp byte [rcx + 0x19], 2
jb 0x140038fef
mov edx, 0x14d
jmp 0x140038fdc
mov r8d, dword [rbp + 0x38]
lea r9, [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rcx, rdi
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140038f8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r13
je 0x140038fef
test byte [rcx + 0x1c], 4
je 0x140038fef
cmp byte [rcx + 0x19], 2
jb 0x140038fef
mov edx, 0x14e
jmp 0x140038fdc
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x10]
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140038fef
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r13
je 0x140038fef
test byte [rcx + 0x1c], 4
je 0x140038fef
cmp byte [rcx + 0x19], 2
jb 0x140038fef
mov edx, 0x14f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008cd68]
mov r9d, eax
call fcn.140023570
cmp qword [rbp - 8], 0
je 0x140038fff
mov rcx, qword [rbp - 8]
call fcn.140069d30
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov r13, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x14003b2d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov dword [rsp + 0x60], ebx
mov rsi, rcx
mov rcx, qword [0x14009b020]
lea r14, [0x14009b020]
cmp rcx, r14
je 0x14003b31d
test byte [rcx + 0x1c], 4
je 0x14003b31d
cmp byte [rcx + 0x19], 5
jb 0x14003b31d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008cd68]
mov edx, 0x136
call fcn.1400042fc
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbx
mov r8d, 4
lea rdx, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14003b385
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x14003b3ba
test byte [rcx + 0x1c], 4
je 0x14003b3ba
cmp byte [rcx + 0x19], 2
jb 0x14003b3ba
mov edx, 0x137
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008cd68]
call fcn.140023570
jmp 0x14003b3ba
cmp dword [rsp + 0x60], 4
je 0x14003b3b4
mov r9d, 0x26
mov ebx, r9d
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x14003b3ba
test byte [rcx + 0x1c], 4
je 0x14003b3ba
cmp byte [rcx + 0x19], 2
jb 0x14003b3ba
mov edx, 0x138
jmp 0x14003b373
mov eax, dword [rsp + 0x68]
mov dword [rdi], eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14003ced0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
xor ebx, ebx
mov r14, rdx
xor edi, edi
mov rbp, rcx
mov rcx, qword [0x14009b020]
lea r12, [0x14009b020]
lea r13, [0x14008cd68]
cmp rcx, r12
je 0x14003cf27
test byte [rcx + 0x1c], 4
je 0x14003cf27
cmp byte [rcx + 0x19], 5
jb 0x14003cf27
mov rcx, qword [rcx + 0x10]
mov edx, 0x155
mov r8, r13
call fcn.1400042fc
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14003cf7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14003d072
test byte [rcx + 0x1c], 4
je 0x14003d072
cmp byte [rcx + 0x19], 2
jb 0x14003d072
mov edx, 0x156
jmp 0x14003d063
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov esi, eax
cmp eax, 0x678
jae 0x14003cfcf
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14003cfc5
test byte [rcx + 0x1c], 4
je 0x14003cfc5
cmp byte [rcx + 0x19], 3
jb 0x14003cfc5
mov rcx, qword [rcx + 0x10]
mov edx, 0x157
mov r9d, esi
mov r8, r13
call fcn.1400046fc
mov ebx, 0x570
jmp 0x14003d0f1
mov rcx, rsi
call fcn.140069c6c
mov rdi, rax
test rax, rax
jne 0x14003d015
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14003d00b
test byte [rcx + 0x1c], 4
je 0x14003d00b
cmp byte [rcx + 0x19], 2
jb 0x14003d00b
mov rcx, qword [rcx + 0x10]
mov edx, 0x158
mov r9d, esi
mov r8, r13
call fcn.140023570
mov ebx, 8
jmp 0x14003d0f1
and qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14003d07d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14003d072
test byte [rcx + 0x1c], 4
je 0x14003d072
cmp byte [rcx + 0x19], 2
jb 0x14003d072
mov edx, 0x159
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.140023570
test ebx, ebx
je 0x14003d0f1
test rdi, rdi
je 0x14003d0f1
jmp 0x14003d0e4
mov edx, dword [rsp + 0x70]
cmp esi, edx
je 0x14003d0a9
mov ebx, 0x26
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14003d0e4
test byte [rcx + 0x1c], 4
je 0x14003d0e4
cmp byte [rcx + 0x19], 2
jb 0x14003d0e4
mov edx, 0x15a
jmp 0x14003d0d5
mov rcx, rdi
call fcn.140041050
test eax, eax
jne 0x14003d0ee
lea ebx, [rax + 0xd]
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14003d0e4
test byte [rcx + 0x1c], 4
je 0x14003d0e4
cmp byte [rcx + 0x19], 2
jb 0x14003d0e4
mov edx, 0x15b
mov rcx, qword [rcx + 0x10]
mov r9d, ebx
mov r8, r13
call fcn.140023570
mov rcx, rdi
call fcn.140069d30
jmp 0x14003d0f1
mov qword [r14], rdi
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140040ffc
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x140041039
test byte [rcx + 0x1c], 4
je 0x140041039
cmp byte [rcx + 0x19], 5
jb 0x140041039
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008cd68]
mov edx, 0x129
call fcn.1400042fc
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140039024
Function at 0x140047d30
Capabilities:
Compare security identifiers

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, 0x20
mov esi, dword [rcx + 0x24]
mov r14, r9
mov edi, r8d
mov ebx, edx
cmp esi, 2
jne 0x140047d60
mov rcx, qword [rcx + 0x248]
mov rbp, qword [rcx + 0x198]
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x140047d9b
test byte [rcx + 0x1c], 4
je 0x140047d9b
cmp byte [rcx + 0x19], 5
jb 0x140047d9b
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008cfe0]
mov edx, 0x10
call fcn.1400042fc
cmp esi, 2
jne 0x140047dc7
neg ebx
sbb eax, eax
and eax, 0xfffffff8
add eax, 0x10
test edi, eax
je 0x140047db3
lea eax, [rsi - 1]
jmp 0x140047dd0
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
jmp 0x140047dd0
mov edx, ebx
mov ecx, edi
call fcn.140051dc0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14004bd0c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x30
mov rcx, qword [0x14009b020]
lea rbp, [0x14009b020]
lea r14, [0x14008d138]
cmp rcx, rbp
je 0x14004bd50
test byte [rcx + 0x1c], 4
je 0x14004bd50
cmp byte [rcx + 0x19], 5
jb 0x14004bd50
mov rcx, qword [rcx + 0x10]
mov edx, 0x34
mov r8, r14
call fcn.1400042fc
lea rax, [rsp + 0x58]
xor ebx, ebx
mov qword [rsp + 0x28], rax
lea r8, [0x140004060]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14004bdd0
mov rax, qword [0x14009b020]
cmp rax, rbp
je 0x14004bee4
test byte [rax + 0x1c], 4
je 0x14004bee4
cmp byte [rax + 0x19], 2
jb 0x14004bee4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea edx, [rbx + 0x35]
mov r9d, eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
jmp 0x14004bee4
mov r8d, 0x4e20
mov ecx, 3
call fcn.140026128
mov edx, 0x2710
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x14004be67
cmp eax, 0x102
jne 0x14004be30
mov rcx, qword [0x14009b020]
cmp rcx, rbp
je 0x14004be28
test byte [rcx + 0x1c], 4
je 0x14004be28
cmp byte [rcx + 0x19], 5
jb 0x14004be28
mov rcx, qword [rcx + 0x10]
mov edx, 0x37
mov r8, r14
call fcn.1400042fc
mov r8d, 0x7530
jmp 0x14004bdd6
mov rax, qword [0x14009b020]
cmp rax, rbp
je 0x14004bed5
test byte [rax + 0x1c], 4
je 0x14004bed5
cmp byte [rax + 0x19], 2
jb 0x14004bed5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x38
jmp 0x14004bea8
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop dword [rax + rax]
test eax, eax
jne 0x14004bec0
mov rax, qword [0x14009b020]
cmp rax, rbp
je 0x14004bed5
test byte [rax + 0x1c], 4
je 0x14004bed5
cmp byte [rax + 0x19], 2
jb 0x14004bed5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x36
mov rcx, qword [0x14009b020]
mov r9d, eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
jmp 0x14004bed5
mov ecx, dword [rsp + 0x50]
test ecx, ecx
sete bl
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x14004d180
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, ebx
mov rcx, qword [0x14009b020]
lea rsi, [0x14009b020]
cmp rcx, rsi
je 0x14004d1c7
test byte [rcx + 0x1c], 4
je 0x14004d1c7
cmp byte [rcx + 0x19], 5
jb 0x14004d1c7
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008d2c0]
mov edx, 0x8f
call fcn.1400042fc
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14004fad0]
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov qword [0x14009f510], rax
test rax, rax
jne 0x14004d24b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b020]
cmp rcx, rsi
je 0x14004d239
test byte [rcx + 0x1c], 4
je 0x14004d239
cmp byte [rcx + 0x19], 2
jb 0x14004d239
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008d2c0]
mov edx, 0x90
mov r9d, eax
call fcn.1400046fc
test edi, edi
je 0x14004d24d
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test edi, edi
mov rsi, qword [rsp + 0x50]
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140051f34
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rbx, r9
mov rsi, r8
xor edi, edi
mov rcx, qword [0x14009b020]
lea r14, [0x14009b020]
cmp rcx, r14
je 0x140051f83
test byte [rcx + 0x1c], 4
je 0x140051f83
cmp byte [rcx + 0x19], 5
jb 0x140051f83
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x30]
lea r8, [0x14008d340]
call fcn.1400042fc
lea rcx, [0x14009f3b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rax, qword [rsp + 0x68]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov r8, rsi
and dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140051fed
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b020]
cmp rcx, r14
je 0x140052039
test byte [rcx + 0x1c], 4
je 0x140052039
cmp byte [rcx + 0x19], 2
jb 0x140052039
lea edx, [rbx + 0x31]
jmp 0x140052026
call fcn.140052fd8
test eax, eax
jne 0x140052039
mov rax, qword [0x14009b020]
cmp rax, r14
je 0x140052039
test byte [rax + 0x1c], 4
je 0x140052039
cmp byte [rax + 0x19], 2
jb 0x140052039
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
mov edx, 0x32
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008d340]
mov r9d, eax
call fcn.1400046fc
lea rcx, [0x14009f3b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
test rbx, rbx
jne 0x14005205f
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x140053bbc
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and dword [rax - 0x20], 0
mov edx, 0x80000000
and dword [rax + 0x10], 0
mov r8d, 1
mov dword [rax - 0x28], 3
call fcn.14006b8bc
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140053bf4
xor eax, eax
jmp 0x140053c26
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov ebx, eax
mov rcx, rdi
or eax, 0xffffffff
cmp dword [rsp + 0x58], 0
cmovne ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140064cb0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x40
mov r14, rdx
mov rsi, rcx
lea r15, [0x14009b020]
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140064cff
test byte [rcx + 0x1c], 4
je 0x140064cff
cmp byte [rcx + 0x19], 5
jb 0x140064cff
mov edx, 0xf
lea r8, [0x14008de50]
mov rcx, qword [rcx + 0x10]
call fcn.1400042fc
xor ebx, ebx
mov r8d, dword [rsi + 0x28]
lea rdx, [0x14008dd60]
mov rcx, r14
call fcn.14006ed5c
test eax, eax
jne 0x140064d67
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140064ed0
test byte [rcx + 0x1c], 4
je 0x140064ed0
cmp byte [rcx + 0x19], 2
jb 0x140064ed0
mov edx, 0x10
mov r9d, eax
lea r8, [0x14008de50]
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
jmp 0x140064ed0
mov r8d, dword [rsi + 0x2c]
lea rdx, str.AreaCode
mov rcx, r14
call fcn.14006ed5c
test eax, eax
jne 0x140064db7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140064ed0
test byte [rcx + 0x1c], 4
je 0x140064ed0
cmp byte [rcx + 0x19], 2
jb 0x140064ed0
mov edx, 0x11
jmp 0x140064d4f
mov r8d, ebx
cmp dword [rsi + 0x24], ebx
setne r8b
lea rdx, str.UseGroup
mov rcx, r14
call fcn.14006ed5c
test eax, eax
jne 0x140064e10
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140064ed0
test byte [rcx + 0x1c], 4
je 0x140064ed0
cmp byte [rcx + 0x19], 2
jb 0x140064ed0
mov edx, 0x12
jmp 0x140064d4f
cmp dword [rsi + 0x24], ebx
jne 0x140064e64
mov r8d, dword [rsi + 0x20]
lea rdx, str.DeviceID
mov rcx, r14
call fcn.14006ed5c
test eax, eax
jne 0x140064ed0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140064ed0
test byte [rcx + 0x1c], 4
je 0x140064ed0
cmp byte [rcx + 0x19], 2
jb 0x140064ed0
mov edx, 0x13
jmp 0x140064d4f
cmp qword [rsi + 0x18], 8
jb 0x140064e6e
mov rsi, qword [rsi]
mov r9, rsi
lea r8, str.GroupName
mov edx, 1
mov rcx, r14
call fcn.14006dd20
test eax, eax
jne 0x140064eca
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r15
je 0x140064ec8
test byte [rcx + 0x1c], 4
je 0x140064ec8
cmp byte [rcx + 0x19], 2
jb 0x140064ec8
mov edx, 0x14
mov r9d, eax
lea r8, [0x14008de50]
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
nop
jmp 0x140064ed0
jmp 0x140064ed0
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x14006a6bc
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov dword [rsp + 0x68], ebx
mov r14, rcx
mov rcx, qword [0x14009b020]
lea r12, [0x14009b020]
lea r13, [0x14008e358]
cmp rcx, r12
je 0x14006a70c
test byte [rcx + 0x1c], 2
je 0x14006a70c
cmp byte [rcx + 0x19], 5
jb 0x14006a70c
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
mov r8, r13
call fcn.1400042fc
test rdi, rdi
je 0x14006a8bb
cmp dword [rdi], 0x14
jne 0x14006a8bb
lea rdx, [rsp + 0x68]
mov dword [rdi + 4], ebx
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x14006a77c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14006a775
test byte [rcx + 0x1c], 2
je 0x14006a775
cmp byte [rcx + 0x19], 2
jb 0x14006a775
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov r9d, eax
mov r8, r13
call fcn.1400046fc
mov eax, ebx
jmp 0x14006a8c0
mov rcx, rsi
call fcn.140069c6c
mov rbp, rax
test rax, rax
jne 0x14006a7c0
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14006a7b6
test byte [rcx + 0x1c], 2
je 0x14006a7b6
cmp byte [rcx + 0x19], 2
jb 0x14006a7b6
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0xc]
mov r9d, esi
mov r8, r13
call fcn.1400046fc
mov eax, 8
jmp 0x14006a8c0
mov edx, dword [rsp + 0x68]
mov r9, rbp
mov r8d, esi
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x14006a828
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14006a8ae
test byte [rcx + 0x1c], 2
je 0x14006a8ae
cmp byte [rcx + 0x19], 2
jb 0x14006a8ae
mov edx, 0xd
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.1400046fc
jmp 0x14006a8ae
lea r9, [rsp + 0x70]
mov rcx, rbp
lea r8, [rsp + 0x78]
lea rdx, [0x14008e278]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14006a879
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
cmp rcx, r12
je 0x14006a8ae
test byte [rcx + 0x1c], 2
je 0x14006a8ae
cmp byte [rcx + 0x19], 2
jb 0x14006a8ae
mov edx, 0xe
jmp 0x14006a814
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + 0x1c]
and eax, 1
mov dword [rdi + 0x10], eax
movzx eax, word [rcx + 0x12]
mov word [rdi + 8], ax
movzx eax, word [rcx + 0x10]
mov word [rdi + 0xa], ax
movzx eax, word [rcx + 0x16]
mov word [rdi + 0xc], ax
movzx eax, word [rcx + 0x14]
mov word [rdi + 0xe], ax
mov dword [rdi + 4], 1
mov rcx, rbp
call fcn.140069d30
jmp 0x14006a775
mov eax, 0x57
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret