joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e1e0
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push r14
push r15
sub rsp, 0x38
movsxd r14, edx
xor r15d, r15d
mov dword [rcx + 0x18], r15d
mov rbp, rcx
mov qword [0x14006f098], rcx
mov eax, DispGetParam
mul r14
mov dword [rcx + 0xc], r15d
lea rdx, [0x14006f610]
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140027608
mov qword [rsp + 0x60], rax
mov r9, rax
test rax, rax
je 0x14001e253
mov rcx, r14
test r14d, r14d
je 0x14001e256
add rax, 8
nop
mov dword [rax + 8], r15d
mov qword [rax], r15
lea rax, [rax + 0x18]
sub rcx, 1
jne 0x14001e240
jmp 0x14001e256
mov r9, r15
mov qword [rbp + 0x10], r9
test r9, r9
je 0x14001e3ae
lea r8, [r14 + r14*2]
mov qword [rsp + 0x70], rsi
shl r8, 3
xor edx, edx
mov rcx, r9
mov qword [rsp + 0x30], rdi
call fcn.14002a240
mov dword [rbp + 0xc], r14d
mov ebx, r15d
test r14d, r14d
jle 0x14001e362
mov rdi, r15
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x68], r15d
call fcn.14002b5d0
mov esi, dword [rsp + 0x68]
test eax, eax
cmovne esi, eax
xor ecx, ecx
call fcn.14002b60c
test eax, eax
je 0x14001e2e7
cmp eax, 0xc
je 0x14001e3d6
cmp eax, 0x16
je 0x14001e3cb
cmp eax, 0x22
je 0x14001e3cb
cmp eax, 0x50
jne 0x14001e3c0
movsxd rax, ebx
lea r8, [0x140024260]
xor edx, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbp + 0x10]
lea r9, [rax + rcx*8]
xor ecx, ecx
mov qword [rsp + 0x28], r9
mov dword [rsp + 0x20], r15d
call fcn.14002e6ac
mov rdx, qword [rbp + 0x10]
mov qword [rdx + rdi + 8], rax
mov rax, qword [rbp + 0x10]
cmp qword [rax + rdi + 8], r15
je 0x14001e396
mov ecx, esi
call fcn.14002b60c
test eax, eax
je 0x14001e353
cmp eax, 0xc
je 0x14001e3f7
cmp eax, 0x16
je 0x14001e3ec
cmp eax, 0x22
je 0x14001e3ec
cmp eax, 0x50
jne 0x14001e3e1
inc ebx
add rdi, 0x18
cmp ebx, r14d
jl 0x14001e2a0
cmp byte [0x14006f0e4], r15b
jne 0x14001e37e
lea rcx, str.ATL_CREATE_OBJECT
call qword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x14006f0e0], eax
mov rsi, qword [rsp + 0x70]
mov rax, rbp
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop rbp
pop rbx
ret
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x68], r15d
call fcn.14002b5d0
mov byte [0x14006f0e4], 1
jmp 0x14001e37e
mov ecx, 0x80004005
mov byte [0x14006f0e4], 1
call fcn.140012de0
int3
mov ecx, 0x80004005
call fcn.140012de0
int3
mov ecx, 0x80070057
call fcn.140012de0
int3
mov ecx, 0x8007000e
call fcn.140012de0
int3
mov ecx, 0x80004005
call fcn.140012de0
int3
mov ecx, 0x80070057
call fcn.140012de0
int3
mov ecx, 0x8007000e
call fcn.140012de0
int3
Function at 0x140020650
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0xa90
mov rax, qword [0x14006d0e0]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.140020940
test eax, eax
je 0x140020681
mov eax, 1
jmp 0x140020788
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14002087e
cmp eax, 0x104
je 0x14002087e
lea ecx, [rax + 1]
mov r8d, 0x22
mov word [rsp + 0x70], r8w
mov word [rsp + rcx*2 + 0x70], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x1400208c7
mov qword [rsp + 0xaa8], rbx
xor edx, edx
mov qword [rsp + 0xab0], rsi
mov r8d, 0xf003f
xor esi, esi
mov word [rsp + rcx + 0x70], si
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x1400207a1
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.14001eae0
test eax, eax
jne 0x14002075f
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14002e4f0
test eax, eax
je 0x14002075f
cmp eax, 0xc
je 0x14002089b
cmp eax, 0x16
je 0x140020890
cmp eax, 0x22
je 0x140020890
cmp eax, 0x50
jne 0x140020885
lea r8, [rdi + 0x68]
xor r9d, r9d
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rbx, qword [rsp + 0xaa8]
mov rsi, qword [rsp + 0xab0]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.1400271a0
add rsp, 0xa90
pop rdi
ret
mov qword [rsp + 0x60], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rsi
add rdi, 0x68
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov r8, rdi
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov dword [rsp + 0x30], 1
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x140020862
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.14001eae0
test eax, eax
jne 0x140020857
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14002e4f0
test eax, eax
je 0x140020857
cmp eax, 0xc
je 0x1400208bc
cmp eax, 0x16
je 0x1400208b1
cmp eax, 0x22
je 0x1400208b1
cmp eax, 0x50
jne 0x1400208a6
xor r9d, r9d
mov r8, rdi
jmp 0x140020766
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x140020778
xor eax, eax
jmp 0x140020788
mov ecx, 0x80004005
call fcn.140012de0
int3
mov ecx, 0x80070057
call fcn.140012de0
int3
mov ecx, 0x8007000e
call fcn.140012de0
int3
mov ecx, 0x80004005
call fcn.140012de0
int3
mov ecx, 0x80070057
call fcn.140012de0
int3
mov ecx, 0x8007000e
call fcn.140012de0
int3
call fcn.140027454
int3
Function at 0x140022690
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea rdx, str.LaunchPermission
mov rcx, rdi
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x140022713
mov dword [rsp + 0x28], esi
lea r9d, [rax + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.LaunchPermission
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140022713
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140023250
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x140023278
add rsp, 0x30
pop rbx
ret
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x28], rax
lea r8, [0x1400209c0]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x1400232b9
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], rdi
mov rax, rdi
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
Function at 0x140023ae0
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x58
call fcn.140023680
test eax, eax
jne 0x140023af7
mov eax, 0x80004005
add rsp, 0x58
ret
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x68]
xor ebx, ebx
mov qword [rsp + 0x50], rdi
mov r9d, 0x20006
mov qword [rsp + 0x68], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AppID
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140023bf6
mov rdi, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], rbx
mov r9d, 0x20006
lea rbx, str.11AC3232_E7D7_49CD_ABFE_501700100B3A
mov qword [rsp + 0x78], rsi
mov rdx, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140023bc9
mov rsi, qword [rsp + 0x70]
lea rdx, str.LocalService
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [0x14006f0b0]
lea rax, str.APPID
xor r8d, r8d
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x30]
movdqu xmmword [rsp + 0x40], xmm0
lea edx, [r8 + 0x65]
call fcn.140015af0
mov ebx, eax
test rsi, rsi
je 0x140023bd2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140023bd2
mov ecx, eax
call fcn.140012bd0
mov ebx, eax
mov rsi, qword [rsp + 0x78]
test rdi, rdi
je 0x140023bff
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
mov ecx, eax
call fcn.140012bd0
mov ebx, eax
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x140037ed4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140037d3a
call fcn.14002b5b0
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.14002b350
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140037d1c
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140037d1c
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x140037d6c
lock or dword [rax + 0x14], 0x10
jmp 0x140037d1c
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140037d89
mov rcx, qword [rbp + 0x20]
call fcn.1400382c0
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x140037d9e
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x140037da4
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140037770
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140041b24
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x140037df7
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x140037d1c
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140037e63
mov rcx, qword [rbp + 0x20]
call fcn.140037770
cmp eax, 0xffffffff
je 0x140037e4a
mov rcx, qword [rbp + 0x20]
call fcn.140037770
cmp eax, 0xfffffffe
je 0x140037e4a
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140037770
movsxd rdi, eax
lea r15, [0x140070620]
mov rcx, rbx
sar rdi, 6
call fcn.140037770
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x140037e51
lea rax, [0x14006d490]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140037e63
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x140037e99
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140037e95
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140037e95
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x140037eb7
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x140037ec2
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x140037d21
jmp 0x140037ce8
Function at 0x180003c90
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r15
sub rsp, 0x20
xor edi, edi
mov r8d, edx
mov rbp, rcx
mov ebx, edi
test edx, edx
je 0x180003e15
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea r9d, [rdx + rdx*2]
cmp r8d, r9d
je 0x180003cd5
mov ebx, r9d
sub ebx, r8d
add ebx, 3
lea esi, [rbx + r8]
mov eax, 0x55555556
imul esi
mov r15d, edx
shr r15d, 0x1f
add r15d, edx
add r15d, ebx
add r15d, r8d
lea eax, [r15 + 1]
movsxd rcx, eax
call fcn.18001846c
mov r11, rax
test rax, rax
je 0x180003e15
test esi, esi
jle 0x180003e08
mov qword [rsp + 0x40], r14
lea r10, [rbp + 1]
lea r14d, [rsi - 3]
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0
lea r9, [rax + 2]
nop dword [rax + rax]
movzx eax, byte [r10 - 1]
mov ecx, eax
shr rcx, 2
movzx ecx, byte [rcx + rbp]
mov byte [r9 - 2], cl
cmp edi, r14d
jne 0x180003da2
test ebx, ebx
je 0x180003da2
cmp ebx, 1
jne 0x180003d85
movzx edx, byte [r10]
and al, 3
shl al, 4
movzx ecx, al
mov eax, edx
shr rax, 4
and dl, 0xf
add rcx, rax
mov byte [r9 + 1], 0x3d
shl dl, 2
movzx eax, byte [rcx + rbp]
mov byte [r9 - 1], al
movzx eax, dl
movzx eax, byte [rax + rbp]
mov byte [r9], al
jmp 0x180003df0
cmp ebx, 2
jne 0x180003df0
and al, 3
mov word [r9], 0x3d3d
shl al, 4
movzx ecx, al
movzx eax, byte [rcx + rbp]
mov byte [r9 - 1], al
jmp 0x180003df0
movzx r8d, byte [r10]
and al, 3
movzx edx, byte [r10 + 1]
shl al, 4
movzx ecx, al
mov eax, r8d
shr rax, 4
and r8b, 0xf
add rcx, rax
shl r8b, 2
movzx eax, byte [rcx + rbp]
mov ecx, edx
mov byte [r9 - 1], al
movzx eax, r8b
shr rcx, 6
add rcx, rax
movzx eax, byte [rcx + rbp]
mov byte [r9], al
movsx rax, dl
and eax, 0x3f
movzx eax, byte [rax + rbp]
mov byte [r9 + 1], al
add r9, 4
add r10, 3
add edi, 3
cmp edi, esi
jl 0x180003d30
mov r14, qword [rsp + 0x40]
movsxd rax, r15d
mov byte [rax + r11], 0
mov rax, r11
jmp 0x180003e17
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x180003f70
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r15
sub rsp, 0x70
mov rax, qword [0x180043080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, rdx
mov qword [rsp + 0x28], rcx
mov rbx, rcx
lea rdx, [0x18003c7a4]
mov rcx, rax
xor r15d, r15d
call fcn.180016800
mov rbp, rax
test rax, rax
jne 0x180003fd2
xorps xmm0, xmm0
lea rdx, [0x18003c633]
movups xmmword [rbx], xmm0
xor r8d, r8d
mov qword [rbx + 0x10], r15
mov rcx, rbx
mov qword [rbx + 0x18], r15
call fcn.180003e70
jmp 0x18000411c
xor edx, edx
mov qword [rsp + 0x68], rdi
mov rcx, rbp
lea r8d, [rdx + 2]
call fcn.1800170c0
mov rcx, rbp
call fcn.1800164a4
movsxd rdi, eax
mov rcx, rbp
test eax, eax
jg 0x180004021
call fcn.180016d20
xorps xmm0, xmm0
lea rdx, [0x18003c633]
movups xmmword [rbx], xmm0
xor r8d, r8d
mov qword [rbx + 0x10], r15
mov rcx, rbx
mov qword [rbx + 0x18], r15
call fcn.180003e70
jmp 0x180004117
mov qword [rsp + 0xa0], rsi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x60], r14
call fcn.1800170c0
mov ecx, edi
mov rsi, 0xffffffffffffffff
add ecx, 1
cmovb rcx, rsi
call fcn.18001846c
mov r14, rax
test rax, rax
jne 0x180004082
mov rcx, rbp
call fcn.180016d20
xorps xmm0, xmm0
lea rdx, [0x18003c633]
movups xmmword [rbx], xmm0
xor r8d, r8d
mov qword [rbx + 0x10], r15
mov rcx, rbx
mov qword [rbx + 0x18], r15
call fcn.180003e70
jmp 0x18000410a
lea eax, [rdi + 1]
xor edx, edx
movsxd r8, eax
mov rcx, r14
call fcn.180011e50
mov r8, rdi
mov r9, rbp
mov edx, 1
mov rcx, r14
call fcn.180017f88
mov rcx, rbp
mov rdi, rax
call fcn.180016d20
mov edx, edi
mov rcx, r14
call fcn.180003c90
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x30], xmm0
mov rdi, rax
movdqu xmmword [rsp + 0x40], xmm1
nop
inc rsi
cmp byte [rax + rsi], r15b
jne 0x1800040d0
mov r8, rsi
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.180003e70
mov rcx, r14
call fcn.180017b64
mov rcx, rdi
call fcn.180017b64
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov rsi, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18000f7c0
add rsp, 0x70
pop r15
pop rbp
pop rbx
ret
Function at 0x1800095d0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1800095f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x18000966c
mov rdi, r14
mov rcx, rbx
call fcn.18000b170
test rax, rax
jle 0x180009644
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1800117a0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18000965c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180009664
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180009606
sub r14, rdi
jmp 0x18000974f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180009683
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180009685
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800096b7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1800117a0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18000974c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800096f2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x18000972d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.180017f88
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18000974c
cmp rbp, rax
ja 0x180009700
test rbp, rbp
je 0x18000974c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.180017f88
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x18000def8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18000df7c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18002f4c0]
cmp byte [rcx + rax], 0
je 0x18000df7c
dec r8
sub rdx, 1
jne 0x18000df62
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1800161bc
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.1800102e0
sub rsp, rax
mov rax, qword [0x180043080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18001d87c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18001620b
mov rax, rbp
jmp 0x180016313
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x45720]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18001db0c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x45720]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18001630f
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 0x18001630f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18001db0c
test rax, rax
js 0x18001630f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18001630f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180016301
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180016301
cmp byte [rcx], 0xd
jne 0x1800162e7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800162f6
cmp byte [rcx + 1], 0xa
jne 0x1800162f6
inc rcx
jmp 0x1800162f6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x43420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800162c9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180016313
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18000f7c0
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 0x18001fb54
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, [0x180045720]
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 0x18001fbab
cmp word [rdx], r13w
jne 0x18001fbab
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18001fbb0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18001fcd5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18001fcf6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18001fbe9
mov rdx, r9
mov word [rbx], cx
jmp 0x18001fc10
cmp r9, r8
jae 0x18001fc20
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 0x18001fbca
jmp 0x18001fcd5
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 0x18001fcca
cmp dword [rsp + 0x80], esi
je 0x18001fcca
lea r8, [0x180045720]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18001fca2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18001fc72
mov word [rbx], r13w
jmp 0x18001fcd2
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 0x18001fc7f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18001fcd2
cmp word [rsp + 0x70], r13w
jne 0x18001fcaf
cmp rbx, r14
je 0x18001fc6c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18001db14
cmp word [rsp + 0x70], r13w
je 0x18001fcd5
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, [0x180045720]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18001fccf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18001fcd5
Function at 0x1800208b8
Capabilities:
Get file size

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