joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003adc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x2d0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov edi, edx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x44], 0
xor edx, edx
mov r8d, 0x208
lea rcx, [r11 - 0x228]
call fcn.1400b52d0
mov qword [rsp + 0x38], 0
mov r9d, 0x20019
test edi, edi
jns 0x14003ae31
mov r9d, 0x20119
btr edi, 0x1f
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003ae9b
mov dword [rsp + 0x40], 0x208
lea rax, str.CommonFilesDir
lea rdx, str.ProgramFilesDir
cmp edi, 1
cmove rdx, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdi, [0x140102478]
mov qword [rsp + 0x60], rdi
lea rsi, [0x1401025f8]
mov qword [rsp + 0xa0], rsi
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x60]
call fcn.140003cb0
nop
lea rdx, [0x140102600]
lea rcx, [rsp + 0x60]
call fcn.14000a190
mov qword [rbx], rdi
mov qword [rbx + 0x40], rsi
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.140006eb0
nop
mov dword [rsp + 0x44], 1
lea rcx, [rsp + 0x60]
call fcn.1400048d0
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003af2e
cmp qword [sym.imp.ADVAPI32.dll_RegCloseKey], 0
je 0x14003af2e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], 0
mov rax, rbx
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1400b31f0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14003c2f0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x2c0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov edi, edx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x34], 0
xor edx, edx
mov r8d, 0x208
lea rcx, [r11 - 0x228]
call fcn.1400b52d0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x14003c3c0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x14003c3c0
lea rdi, [0x140102478]
mov qword [rbx], rdi
lea rsi, [0x1401025f8]
mov qword [rbx + 0x40], rsi
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [0x1400fc414]
mov rcx, rbx
call fcn.140003cb0
nop
mov dword [rsp + 0x34], 1
jmp 0x14003c42f
lea rdi, [0x140102478]
mov qword [rsp + 0x50], rdi
lea rsi, [0x1401025f8]
mov qword [rsp + 0x90], rsi
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x50]
call fcn.140003cb0
nop
lea rdx, [0x140102600]
lea rcx, [rsp + 0x50]
call fcn.14000a190
mov qword [rbx], rdi
mov qword [rbx + 0x40], rsi
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.140006eb0
nop
mov dword [rsp + 0x34], 1
lea rcx, [rsp + 0x50]
call fcn.1400048d0
mov rax, rbx
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1400b31f0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14003e060
Capabilities:
Identify system language via api

Disassembly:
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xf0], rbx
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rdi, r8
lea rax, [0x140102478]
mov qword [rsp + 0x30], rax
lea rax, [0x1401025f8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rbx
mov word [rsp + 0x38], bx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rsp + rcx + 0x70]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov r9d, 0x656
mov r8d, 0x8004071a
lea rdx, str.0x_08x:_x_n
lea rcx, [rsp + 0x30]
call fcn.14000f520
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx r8d, ax
lea rcx, [rsp + 0x80]
call fcn.14003cf10
nop
lea rdx, [rax + 8]
cmp qword [rdx + 0x18], 8
jb 0x14003e136
mov rdx, qword [rdx]
cmp word [rdx], 0
je 0x14003e14a
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x14003e140
mov r8, rbx
lea rcx, [rsp + 0x38]
call fcn.14000a020
nop
lea rcx, [rsp + 0x80]
call fcn.140004280
lea r8, [rdi + 8]
cmp qword [r8 + 0x18], 8
jb 0x14003e173
mov r8, qword [r8]
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
xor ecx, ecx
lea r9d, [rcx + 0x10]
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rcx, [rsp + 0x30]
call fcn.1400048d0
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400b31f0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret

Function at 0x14003e480
Capabilities:
Delete file

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xb0
mov qword [r11 - 0x78], 0xfffffffffffffffe
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rax, [0x140102478]
mov qword [r11 - 0x68], rax
lea rax, [0x1401025f8]
mov qword [r11 - 0x28], rax
xor r8d, r8d
mov rdx, rcx
lea rcx, [r11 - 0x68]
call fcn.140006eb0
nop
movzx eax, word [str._MSI5166._IS]
neg ax
sbb r8, r8
and r8d, 0xc
lea rdx, str._MSI5166._IS
lea rcx, [rsp + 0x58]
call fcn.14000a020
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14003e552
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
jmp 0x14003e554
xor bl, bl
lea rcx, [rsp + 0x50]
call fcn.1400048d0
movzx eax, bl
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b31f0
add rsp, 0xb0
pop rbx
ret
Function at 0x140046e60
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140046ed4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140046ef6
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140046ef6
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x140046ef6
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140046f3e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140046e60
cmp byte [0x14017bcd0], 0
jne 0x140046f89
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140046f79
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14017bcc8], rax
mov byte [0x14017bcd0], 1
jmp 0x140046f90
mov rax, qword [0x14017bcc8]
mov byte [0x14017bcd0], 1
jmp 0x140046f90
mov rax, qword [0x14017bcc8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140046faf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
Function at 0x140046f10
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140046ed4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140046ef6
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140046ef6
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x140046ef6
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140046f3e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140046e60
cmp byte [0x14017bcd0], 0
jne 0x140046f89
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140046f79
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14017bcc8], rax
mov byte [0x14017bcd0], 1
jmp 0x140046f90
mov rax, qword [0x14017bcc8]
mov byte [0x14017bcd0], 1
jmp 0x140046f90
mov rax, qword [0x14017bcc8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140046faf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
Function at 0x140046fc0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x2c0], rbx
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x70], rcx
xor ecx, ecx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x58], rcx
mov edi, dword [rax + 8]
or edi, 0x2001f
mov rax, qword [rax]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140047049
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8, rsi
mov rdx, rax
call fcn.1400147e0
jmp 0x140047062
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, edi
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140047169
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140047087
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
and edi, 0x300
mov dword [rsp + 0x50], edi
test ebx, ebx
jne 0x140047169
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14004713f
nop dword [rax]
nop word [rax + rax]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.140046fc0
mov ebx, eax
test eax, eax
jne 0x14004716b
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400470f0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140047154
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x70]
call fcn.140046f10
mov ebx, eax
jmp 0x14004716b
xor edi, edi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140047180
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov eax, ebx
mov dword [rsp + 0x50], edi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400b31f0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x140047470
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov r14d, r9d
mov rsi, r8
mov r15, rdx
mov r13, rcx
xor edi, edi
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov ebp, dword [r8 + 0xb8]
test ebp, ebp
je 0x14004760f
lea r8d, [rdi + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
xor ecx, ecx
test rax, rax
cmovne ecx, dword [rsp + 0x58]
mov dword [rsp + 0xe0], ecx
mov rdx, rsi
lea rcx, str..debug
call fcn.1400473e0
test rax, rax
je 0x140047506
cmp dword [rax + 0xc], ebp
jne 0x140047506
mov ebp, dword [rax + 0x14]
mov esi, dword [rsi + 0xbc]
mov r12d, esi
jmp 0x14004757c
mov rdx, rsi
lea rcx, [0x14010aa5c]
call fcn.1400473e0
mov r8, rax
test rax, rax
jne 0x140047538
mov rdx, rsi
lea rcx, str..text
call fcn.1400473e0
mov r8, rax
test rax, rax
je 0x14004760f
mov r12d, dword [rsi + 0xbc]
movabs rax, 0x2492492492492493
mul r12
mov esi, r12d
sub rsi, rdx
shr rsi, 1
add rsi, rdx
shr rsi, 4
test esi, esi
je 0x14004760f
mov edx, dword [r8 + 0xc]
mov ecx, dword [r8 + 0x10]
add ecx, edx
cmp ebp, ecx
ja 0x14004760f
sub ebp, edx
add ebp, dword [r8 + 0x14]
mov eax, ebp
mov edx, eax
add rdx, r15
mov rcx, rdx
sub rcx, r15
mov eax, dword [rsp + 0xe0]
cmp rcx, rax
jbe 0x1400475e7
test r13, r13
je 0x1400475e7
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, ebp
div dword [rsp + 0x98]
mov r15d, ebp
sub r15d, edx
lea ecx, [rdx + r12]
mov qword [rsp + 0x20], rcx
mov r9d, r15d
xor r8d, r8d
lea edx, [r8 + 4]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x14004760f
mov rbx, rax
mov qword [rsp + 0x30], rax
sub ebp, r15d
mov edx, ebp
add rdx, rax
test esi, esi
je 0x140047611
add rdx, 0x10
mov r9d, esi
mov r8d, dword [rdx]
mov ecx, dword [rdx + 8]
add ecx, r8d
cmp ecx, r14d
jbe 0x140047603
add edi, r8d
add rdx, 0x1c
sub r9, 1
jne 0x1400475f2
jmp 0x140047611
xor edi, edi
test rbx, rbx
je 0x140047632
cmp qword [sym.imp.KERNEL32.dll_UnmapViewOfFile], 0
je 0x140047632
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x30], 0
mov eax, edi
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140047660
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movzx eax, word [r8 + 0x14]
xor r10d, r10d
movzx esi, word [r8 + 6]
add rax, 0x18
mov ebx, dword [r8 + 0x54]
add rax, r8
movzx r14d, r9b
mov rdi, r8
lea ebp, [r10 + 1]
mov r15, rcx
mov r11d, r10d
cmp esi, 2
jb 0x1400476d2
mov r8d, esi
shr r8, 1
lea ebp, [r8*2 + 1]
nop dword [rax]
nop dword [rax + rax]
add r10d, dword [rax + 0x10]
add r11d, dword [rax + 0x38]
add rax, 0x50
sub r8, 1
jne 0x1400476c0
cmp ebp, esi
ja 0x1400476d9
add ebx, dword [rax + 0x10]
lea ecx, [r11 + r10]
mov r8, rdi
add ebx, ecx
mov rcx, r15
mov r9d, ebx
call fcn.140047470
add ebx, eax
test r14b, r14b
jne 0x1400476fa
add ebx, dword [rdi + 0xac]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140048210
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x30
cmp dword [rcx + 0x60], 0
mov r15, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
jne 0x140048241
xor eax, eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rsi
ret
cmp qword [r8 + 0x20], 8
mov qword [rsp + 0x50], rbx
lea rbx, [r8 + 8]
jb 0x140048256
mov rcx, qword [rbx]
jmp 0x140048259
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140048284
test al, 0x10
jne 0x140048284
test al, 1
je 0x140048284
cmp qword [rbx + 0x18], 8
jb 0x140048276
mov rbx, qword [rbx]
and eax, 0xfffffffe
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [rsi + 0x60], 0
je 0x1400482fe
mov rdx, r14
mov qword [rsp + 0x58], rdi
lea rcx, [rsi + 0x80]
call fcn.140046550
mov rbx, rax
cmp rax, qword [rsi + 0x80]
je 0x1400482cf
lea rcx, [rax + 0x20]
xor eax, eax
test rcx, rcx
lea rdx, [rcx + 8]
lea rcx, [r14 + 8]
cmove rdx, rax
test r14, r14
cmove rcx, rax
call fcn.1400077f0
test eax, eax
jns 0x1400482d6
mov rbx, qword [rsi + 0x80]
mov rdi, qword [rsp + 0x58]
cmp rbx, qword [rsi + 0x80]
je 0x1400482fe
mov rdx, qword [rbx + 0x70]
mov r9, rbp
mov rcx, rsi
mov qword [rsp + 0x20], r15
mov r8d, dword [rdx + 0x68]
call fcn.140048320
jmp 0x140048300
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rsi
ret
Function at 0x140048550
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd8
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x58], r8
mov rdi, rcx
mov r14, qword [rsp + 0x140]
mov ebx, dword [r8 + 0x58]
mov dword [rsp + 0x48], ebx
xor esi, esi
mov r13d, dword [r8 + 0x50]
mov r12d, r13d
shr r12d, 2
and r12b, 1
and r13d, 6
lea rcx, [rdx + 8]
cmp qword [rcx + 0x18], 8
jb 0x1400485bf
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1400485fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x6c], eax
xor eax, eax
jmp 0x1400486fd
mov edi, 0x400
cmp ebx, edi
cmovb edi, ebx
mov ecx, edi
call fcn.1400b321c
mov rbp, rax
mov dword [rsp + 0x44], 1
mov qword [rsp + 0x20], rsi
mov rdx, rax
lea r9, [rsp + 0x40]
mov r8d, edi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400486e7
test r12b, r12b
je 0x14004867c
test r13d, r13d
je 0x14004867c
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
call fcn.1400493b0
nop
mov rcx, rax
call fcn.1400083f0
xor r9d, r9d
mov r8, rax
mov edx, dword [rsp + 0x40]
mov rcx, rbp
call fcn.140008130
nop
lea rcx, [rsp + 0x70]
call fcn.1400048d0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x40]
mov rdx, rbp
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
add esi, eax
test r14, r14
je 0x1400486bd
mov rax, qword [r14]
mov r8d, dword [rsp + 0x48]
mov edx, esi
mov rcx, r14
call qword [rax]
test al, al
jne 0x1400486df
mov eax, dword [rsp + 0x40]
sub ebx, eax
je 0x1400486e7
test eax, eax
je 0x1400486e7
cmp ebx, 0x400
cmovb edi, ebx
mov qword [rsp + 0x20], 0
mov rdx, rbp
jmp 0x140048622
mov dword [rsp + 0x44], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400b31f0
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140048730
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r15
sub rsp, 0x38
mov ebx, edx
mov rbp, r9
mov r15, r8
mov r12, rcx
test r9, r9
jne 0x140048762
lea ecx, [r9 + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x38
pop r15
pop r12
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rdi
mov r8, rbx
xor edx, edx
mov qword [rsp + 0x70], r13
call fcn.1400b52d0
mov rcx, qword [rbp + 0x18]
xor edi, edi
mov r9, r15
mov qword [rsp + 0x20], rdi
mov r8d, ebx
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r13d, eax
test eax, eax
je 0x140048835
mov rcx, qword [rbp + 0x10]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x30], r14
mov edx, dword [rcx + 0x50]
test dl, 6
je 0x140048821
shr edx, 2
test dl, 1
je 0x140048821
call fcn.140048ff0
mov r14, rax
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], dil
jne 0x1400487c5
mov r8d, dword [r15]
test r8d, r8d
je 0x14004882b
nop word [rax + rax]
mov ecx, dword [rbp + 0x20]
xor edx, edx
add ecx, edi
mov ebx, 0x400
and ecx, 0x3ff
sub ebx, ecx
mov eax, ecx
div esi
lea eax, [rbx + rdi]
cmp eax, r8d
jbe 0x140048805
mov ebx, r8d
sub ebx, edi
mov r9d, edx
mov ecx, edi
add rcx, r12
mov r8, r14
mov edx, ebx
call fcn.140008130
mov r8d, dword [r15]
add edi, ebx
cmp edi, r8d
jb 0x1400487e0
mov eax, dword [r15]
test eax, eax
je 0x14004882b
add dword [rbp + 0x20], eax
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x30]
mov edx, dword [rbp + 0x20]
mov rax, qword [rbp + 0x10]
mov rcx, qword [rbp + 8]
mov rdi, qword [rsp + 0x68]
mov r8d, dword [rax + 0x58]
cmp edx, r8d
cmova edx, r8d
test rcx, rcx
je 0x14004885a
mov rax, qword [rcx]
call qword [rax]
mov eax, r13d
mov r13, qword [rsp + 0x70]
add rsp, 0x38
pop r15
pop r12
pop rbp
pop rbx
ret
Function at 0x1400620e0
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
lea rdx, [rcx + 0x70]
mov rdi, rcx
call fcn.1400622d0
test al, al
je 0x140062144
mov r8d, dword [rdi + 0x70]
lea rax, str.LanguageSupport.cpp
lea rdx, str.Using_command_line_language__d
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], 0x34
call fcn.14000b8a0
mov eax, dword [rdi + 0x70]
mov rcx, rdi
mov dword [rdi + 0x6c], eax
call fcn.140062bb0
mov byte [rdi + 0x74], 0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.1400622d0
test al, al
je 0x140062196
mov ebx, dword [rsp + 0x48]
lea rax, str.LanguageSupport.cpp
mov r8d, ebx
mov qword [rsp + 0x20], rax
lea rdx, str.Using_installed_language__d
mov dword [rsp + 0x28], 0x43
lea rcx, [rsp + 0x20]
call fcn.14000b8a0
mov rcx, rdi
mov dword [rdi + 0x6c], ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140062bb0
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
lea rdx, [rdi + 0x6c]
mov rcx, rdi
mov dword [rdi + 0x6c], eax
call fcn.1400622d0
test al, al
je 0x1400621ed
mov r8d, dword [rdi + 0x6c]
lea rax, str.LanguageSupport.cpp
lea rdx, str.Using_user_default_language__d
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], 0x4c
call fcn.14000b8a0
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140062bb0
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
lea rdx, [rdi + 0x6c]
mov rcx, rdi
mov dword [rdi + 0x6c], eax
call fcn.1400622d0
test al, al
je 0x140062244
mov r8d, dword [rdi + 0x6c]
lea rax, str.LanguageSupport.cpp
lea rdx, str.Using_system_default_language__d
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], 0x54
call fcn.14000b8a0
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140062bb0
call fcn.1400a5a6c
movzx eax, ax
lea rdx, [rdi + 0x6c]
mov rcx, rdi
mov dword [rdi + 0x6c], eax
call fcn.1400622d0
test al, al
lea rcx, [rsp + 0x20]
lea rax, str.LanguageSupport.cpp
mov qword [rsp + 0x20], rax
je 0x14006229a
mov r8d, dword [rdi + 0x6c]
lea rdx, str.Using_system_default_UI_language__d
mov dword [rsp + 0x28], 0x5c
call fcn.14000b8a0
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140062bb0
mov r8d, dword [rdi + 0x68]
lea rdx, str.Using_default_language__d
mov dword [rsp + 0x28], 0x61
call fcn.14000b8a0
mov eax, dword [rdi + 0x68]
mov rcx, rdi
mov dword [rdi + 0x6c], eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140062bb0