joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002a2c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
movdqa xmm0, xmmword [0x180031060]
movdqa xmm1, xmmword [0x180031070]
mov rbx, qword [0x180039a70]
movdqa xmmword [rbp + 7], xmm0
movdqa xmm0, xmmword [0x180031090]
movdqa xmmword [rbp + 0x17], xmm1
movdqa xmm1, xmmword [0x180031080]
movdqa xmmword [rbp + 0x27], xmm0
movdqa xmm0, xmmword [0x1800310b0]
movdqa xmmword [rbp + 0x37], xmm1
movdqa xmm1, xmmword [0x180031050]
movdqa xmmword [rbp - 0x49], xmm0
movdqa xmm0, xmmword [0x1800310a0]
movdqa xmmword [rbp - 0x39], xmm1
movdqa xmm1, xmmword [0x180031040]
movdqa xmmword [rbp - 0x29], xmm0
movdqa xmmword [rbp - 0x19], xmm1
mov dword [rbp + 0x47], 0xce
mov dword [rbp + 0x4b], 0xde
mov dword [rbp + 0x4f], 0xdf
mov dword [rbp - 9], 0x53
mov dword [rbp - 5], 0xca
mov dword [rbp - 1], 0xe6
call fcn.180005330
mov edx, 0xc9
mov r8d, 2
mov rcx, rbx
call rax
mov edi, dword [rax + 4]
mov esi, dword [rax]
mov ecx, edi
add rsi, rbx
mov ebx, edi
call fcn.180009120
xor ecx, ecx
mov r8, rax
test edi, edi
je 0x180002b1a
mov byte [rax], cl
inc rax
sub rbx, 1
jne 0x180002b0f
lea r9, [rsi + 0x67]
test r9, r9
je 0x180002b3b
mov rdx, r8
test edi, edi
je 0x180002b3b
sub r9, r8
mov al, byte [r9 + rdx]
mov byte [rdx], al
inc rdx
sub edi, 1
jne 0x180002b2d
mov r11d, ecx
mov r9, rcx
mov r10, r8
movabs rbx, 0xd79435e50d79435f
mov edi, 0x49200
mov rax, rbx
inc r11d
mul r9
shr rdx, 4
imul rax, rdx, 0x13
sub r9, rax
mov al, byte [rbp + r9*4 - 0x49]
xor byte [r10], al
inc r10
movsxd r9, r11d
cmp r9, rdi
jb 0x180002b53
mov r9, rcx
mov r10, r8
mov rax, rbx
inc ecx
mul r9
shr rdx, 4
imul rax, rdx, 0x13
sub r9, rax
mov al, byte [rbp + r9*4 + 7]
xor byte [r10], al
inc r10
movsxd r9, ecx
cmp r9, rdi
jb 0x180002b80
lea r11, [rsp + 0xc0]
mov rax, r8
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x18000314c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
movsxd rax, dword [rcx + 0x3c]
xor r12d, r12d
mov r14, rdx
mov r8d, dword [rax + rcx + 0x88]
test r8d, r8d
jne 0x180003183
xor eax, eax
jmp 0x180003221
lea rax, [rcx + r8]
mov rsi, r12
mov ebx, dword [rax + 0x20]
mov edx, dword [rax + 0x1c]
add rbx, rcx
mov r8d, dword [rax + 0x24]
add rdx, rcx
mov r15d, dword [rax + 0x18]
add r8, rcx
test r15, r15
je 0x18000320e
mov edi, dword [rbx]
mov r9, r12
add rdi, rcx
cmp byte [r14], r12b
je 0x1800031bc
inc r9
cmp byte [r9 + r14], r12b
jne 0x1800031b3
test rdi, rdi
je 0x1800031fe
mov r10d, r12d
test r9, r9
je 0x1800031f9
mov rbp, r14
mov r11, rdi
sub rbp, rdi
mov al, byte [r11 + rbp]
cmp byte [r11], al
jb 0x1800031f5
ja 0x1800031ed
inc r11
mov rax, r11
sub rax, rdi
cmp rax, r9
jb 0x1800031d2
jmp 0x1800031f9
mov r10d, 1
jmp 0x1800031f9
or r10d, 0xffffffff
test r10d, r10d
je 0x18000320e
inc rsi
add rbx, 4
add r8, 2
cmp rsi, r15
jb 0x1800031a6
cmp r12w, word [r8]
jae 0x18000321c
movzx eax, word [r8]
lea rdx, [rdx + rax*4]
mov eax, dword [rdx]
add rax, rcx
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
Function at 0x180005330
Capabilities:
Access peb ldr_data
Resolve function by hash
Resolve function by parsing pe exports

Disassembly:
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x20]
jmp 0x18000537d
mov r9, qword [rdx + 0x50]
xor r8d, r8d
movzx r10d, word [rdx + 0x48]
movzx ecx, byte [r9]
ror r8d, 0xd
mov eax, r8d
add rax, rcx
cmp cl, 0x61
lea r8, [rax - 0x20]
cmovb r8, rax
inc r9
sub r10, 1
jne 0x18000534f
cmp r8d, 0x6a4abc5b
je 0x180005385
mov rdx, qword [rdx]
test rdx, rdx
jne 0x180005343
xor eax, eax
ret
mov r8, qword [rdx + 0x20]
movsxd rax, dword [r8 + 0x3c]
mov r9d, dword [rax + r8 + 0x88]
mov edx, dword [r9 + r8 + 0x20]
mov ecx, dword [r9 + r8 + 0x24]
add rdx, r8
add rcx, r8
mov r11d, dword [rdx]
add r11, r8
xor r10d, r10d
mov al, byte [r11]
inc r11
ror r10d, 0xd
movsx eax, al
add r10d, eax
mov al, byte [r11]
test al, al
jne 0x1800053b1
cmp r10d, 0x3bd09a55
je 0x1800053d8
add rdx, 4
add rcx, 2
jmp 0x1800053a5
movzx edx, word [rcx]
mov ecx, dword [r9 + r8 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
add rax, r8
ret

Function at 0x1800055f0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x180005682
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x18000565c
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000567b
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000567b
mov rdx, qword [rdi]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
jmp 0x18000566b
cmp dword [rdi + 8], 0
je 0x18000567b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 1
jmp 0x18000566b
cmp byte [0x180039af8], 0
jne 0x1800056cd
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800056b9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x180039af0], rax
jmp 0x1800056c0
mov r10, qword [0x180039af0]
mov eax, 1
mov byte [0x180039af8], al
jmp 0x1800056d4
mov r10, qword [0x180039af0]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x180005665
mov r8d, dword [rbx + 8]
xor r9d, r9d
call r10
jmp 0x18000566b
Function at 0x1800056ec
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov edi, dword [rcx + 8]
lea rax, [rbp + 0x1a0]
xor r15d, r15d
mov qword [rsp + 0x20], rax
mov rsi, rcx
mov qword [rsp + 0x40], r15
mov rcx, qword [rcx]
or edi, 0x2001f
mov r9d, edi
mov dword [rsp + 0x48], r15d
xor r8d, r8d
mov qword [rsp + 0x50], r15
mov r14, rdx
mov qword [rbp + 0x1a0], r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x180005808
mov rcx, qword [rsp + 0x40]
mov ebx, r15d
test rcx, rcx
je 0x180005769
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rbp + 0x1a0]
and edi, 0x300
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x48], edi
test ebx, ebx
jne 0x180005808
mov edi, 0x100
jmp 0x1800057a8
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1800056ec
mov ebx, eax
test eax, eax
jne 0x180005808
mov rcx, qword [rsp + 0x40]
lea rax, [rbp + 0x1a8]
mov dword [rbp + 0x190], edi
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x190]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x18000578e
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800057f6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov rdx, r14
mov dword [rsp + 0x48], r15d
mov rcx, rsi
call fcn.1800055f0
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180005818
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180005c64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x460
mov r14, r9
mov r15, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x50], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x488], rax
test rax, rax
jne 0x180005ce3
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x488], rax
test rax, rax
jne 0x180005ce3
call fcn.180005430
mov ebx, eax
jmp 0x180005df7
mov r8, r14
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x180005d04
call fcn.180005430
jmp 0x180005de6
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180005cfa
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x480], eax
inc eax
cmp eax, ebx
jae 0x180005d42
mov ebx, 0x8007000e
jmp 0x180005de8
mov ecx, eax
test eax, eax
je 0x180005d74
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180005e29
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x180005d74
lea rcx, [rsp + 0x50]
call fcn.180008d8c
jmp 0x180005d7e
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
jmp 0x180005d96
cmp qword [rsp + 0x50], rdi
je 0x180005d38
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x180005cfa
mov ecx, eax
mov rax, qword [rsp + 0x50]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4a0]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.1800069bc
mov ebx, eax
test rsi, rsi
je 0x180005df7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x180005e0e
lea rcx, [rsp + 0x50]
call fcn.180008c14
nop
mov eax, ebx
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov ecx, 0x80070216
call fcn.18000540c
int3
Function at 0x180007d5c
Capabilities:
Write file on windows

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 rbx, r8
mov r14, rdx
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x180007d8c
call fcn.180008544
jmp 0x180007e04
mov rsi, rbx
mov rax, qword [rcx + 0x40]
mov r9, qword [rax]
test r9, r9
je 0x180007da3
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180007da5
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180007dfe
test ecx, ecx
jle 0x180007ddf
cmp rbx, rbp
cmovl rbp, rbx
mov r8, rbp
mov rcx, r9
call fcn.18000b850
nop
sub rbx, rbp
mov rax, qword [rdi + 0x58]
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
add r14, rbp
test rbx, rbx
jle 0x180007dfe
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180007dfe
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.18000ff0c
sub rbx, rax
sub rsi, rbx
mov rax, rsi
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 0x180007e20
Capabilities:
Read file on windows

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
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180007e4d
xor eax, eax
jmp 0x180007f3e
cmp qword [rcx + 0x68], 0
je 0x180007e5e
call fcn.1800085f4
jmp 0x180007f3e
mov rbp, rdi
mov rax, qword [rcx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180007e75
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180007e77
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180007ead
mov rbx, rdi
cmp rax, rdi
cmovb rbx, rax
mov r8, rbx
mov rcx, r14
call fcn.18000b850
nop
add r14, rbx
mov rbp, rdi
sub rbp, rbx
mov rax, qword [rsi + 0x50]
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
mov rbx, rbp
cmp qword [rsi + 0x80], 0
je 0x180007f38
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180007ee7
mov rdx, qword [rsi + 0x90]
mov rcx, qword [rsi + 0x88]
mov qword [r8], rcx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
jmp 0x180007f14
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.180010220
add r14, rax
sub rbp, rax
mov rbx, rbp
cmp rax, r15
jne 0x180007f57
cmp rbp, r15
ja 0x180007eef
test rbx, rbx
je 0x180007f38
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.180010220
sub rbx, rax
sub rdi, rbx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
sub rdi, rbp
jmp 0x180007f3b
Function at 0x1800082ec
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x180008314
xor eax, eax
jmp 0x180008436
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x18000834e
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x18000834e
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, esi
mov byte [rdx], sil
jmp 0x180008436
cmp qword [rbx + 0x80], 0
je 0x180008434
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180008389
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1800083ac
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.18000f378
cmp eax, edi
cmovne edi, esi
jmp 0x180008434
lea r8, [rbp + 0x30]
mov byte [rbp - 0x30], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x2f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x38]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x30]
call qword [rax + 0x38]
test eax, eax
je 0x1800083fa
sub eax, 1
je 0x1800083fa
cmp eax, 2
jne 0x180008434
movsx ecx, byte [rbp - 0x30]
jmp 0x180008396
mov r14, qword [rbp + 0x30]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x180008424
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.18000ff0c
cmp r14, rax
jne 0x180008434
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x38], rax
mov eax, esi
jne 0x180008436
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x18000898c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1800089e8
cmp byte [rcx + 0x71], 0
je 0x1800089e8
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180008a2f
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x1800089f5
sub eax, 1
je 0x1800089f9
cmp eax, 2
jne 0x180008a2f
mov byte [rbx + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x180008a26
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call fcn.18000ff0c
cmp rdi, rax
jne 0x180008a2f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800089ea
xor al, al
jmp 0x1800089ea
Function at 0x180017948
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
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1800177e8
call fcn.18000f170
mov dword [rax], 0x16
call fcn.18000ee4c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800177d0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1800177d0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x18001781a
lock or dword [rax + 0x14], 0x10
jmp 0x1800177d0
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x180017837
mov rcx, qword [rbp + 0x10]
call fcn.180017b3c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180015b78
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.180019208
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x18001788e
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1800177d0
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1800178fa
mov rcx, qword [rbp + 0x10]
call fcn.180015b78
cmp eax, 0xffffffff
je 0x1800178e1
mov rcx, qword [rbp + 0x10]
call fcn.180015b78
cmp eax, 0xfffffffe
je 0x1800178e1
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180015b78
movsxd rdi, eax
lea rsi, [0x180038dd0]
mov rcx, rbx
sar rdi, 6
call fcn.180015b78
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1800178e8
lea rax, [0x1800373c0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800178fa
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x180017930
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x18001792c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x18001792c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1800177d3
jmp 0x1800177a0
Function at 0x180019c1c
Capabilities:
Get geographical location

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 edi, r9d
mov rsi, r8
mov ebp, edx
lea r9, str.GetLocaleInfoEx
mov r14, rcx
lea r8, [0x180029060]
lea rdx, str.GetLocaleInfoEx
mov ecx, 0xc
call fcn.180019864
mov rbx, rax
test rax, rax
je 0x180019c7f
mov rcx, rax
call qword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_8]
mov r9d, edi
mov r8, rsi
mov edx, ebp
mov rcx, r14
call rbx
jmp 0x180019c99
xor edx, edx
mov rcx, r14
call fcn.180019f84
mov ecx, eax
mov r9d, edi
mov r8, rsi
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
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 0x14000c038
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x4f98]
mov eax, 0x5080
call fcn.140026310
sub rsp, rax
mov rax, qword [0x1400517e8]
xor rax, rsp
mov qword [rbp + 0x4f70], rax
mov rbx, rcx
mov r15d, 0x800
mov r8d, r15d
lea rdx, [rbp + 0x2f70]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
lea edi, [r15 - 2]
cmp eax, edi
ja 0x14000c233
mov r8d, r15d
lea rdx, [rbp + 0x3f70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
dec eax
cmp eax, edi
ja 0x14000c233
lea rcx, [rbp + 0x2f70]
call fcn.14000fc38
mov rsi, rax
lea rcx, [rbp + 0x3f70]
call fcn.14000fc38
mov rdi, rax
xor r14d, r14d
cmp word [rax], r14w
je 0x14000c233
mov rdx, rax
mov rcx, rsi
call fcn.1400167ec
test eax, eax
je 0x14000c233
mov rcx, rbx
call fcn.14000fc38
mov rcx, rax
mov rdx, rdi
call fcn.1400167ec
test eax, eax
jne 0x14000c233
movzx eax, r14w
mov word [rbp + 0xf70], ax
mov edi, r14d
test ax, ax
jne 0x14000c18b
mov r8, r15
mov rdx, rbx
lea rcx, [rbp + 0xf70]
call fcn.1400149a8
lea rcx, [rbp + 0xf70]
call fcn.14000fc38
mov rcx, rax
mov r9d, edi
lea r8, str.rtmp_d
mov rdx, r15
call fcn.14000529c
lea rcx, [rbp + 0xf70]
call fcn.14000d18c
test al, al
je 0x14000c170
mov eax, r14d
mov word [rbp + 0xf70], ax
jmp 0x14000c177
movzx eax, word [rbp + 0xf70]
add edi, 0x7b
cmp edi, 0x2710
jl 0x14000c11c
test ax, ax
je 0x14000c233
mov r8, r15
mov rdx, rbx
lea rcx, [rbp + 0x1f70]
call fcn.1400149a8
mov r8, r15
mov rdx, rsi
lea rcx, [rbp + 0x1f70]
call fcn.14000fcc4
lea rdx, [rbp + 0xf70]
lea rcx, [rbp + 0x1f70]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000c233
lea rcx, [rsp + 0x20]
call fcn.14000c264
nop
mov dil, r14b
mov rcx, rbx
call fcn.14000d18c
test al, al
jne 0x14000c1f7
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14000c388
mov dil, al
lea rdx, [rbp + 0x1f70]
lea rcx, [rbp + 0xf70]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test dil, dil
je 0x14000c225
lea rcx, [rsp + 0x20]
call fcn.14000c320
lea rcx, [rsp + 0x20]
call fcn.14000c4b4
nop
lea rcx, [rsp + 0x20]
call fcn.14000c2ac
mov al, 1
jmp 0x14000c235
xor al, al
mov rcx, qword [rbp + 0x4f70]
xor rcx, rsp
call fcn.140025ea0
lea r11, [rsp + 0x5080]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14000c4b4
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x14000c4eb
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x14000c4d7
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140040510]
cmp byte [rbx + 0x21], 0
je 0x14000c4eb
lea rcx, [rbx + 0x3a]
add rsp, 0x20
pop rbx
jmp fcn.14000d108
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14000c4f4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jne 0x14000c526
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000c5a3
mov rcx, rbx
call fcn.14000c65c
test al, al
je 0x14000c569
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x14000c569
mov rdx, rbp
mov rcx, rbx
call fcn.14000c4f4
jmp 0x14000c5a7
cmp dword [rbx + 0x14], 1
jne 0x14000c57e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000c57e
xor eax, eax
jmp 0x14000c5a7
cmp dword [rbx + 0x14], 0
jne 0x14000c59e
mov edi, 0x8000
cmp rsi, rdi
jbe 0x14000c59e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000c59e
mov r8d, edi
jmp 0x14000c55c
or eax, 0xffffffff
jmp 0x14000c5a7
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14000c858
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.14000c894
test al, al
je 0x14000c88c
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rax, qword [rbx]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [0x140040510]
add rsp, 0x20
pop rbx
ret

Function at 0x14000cd70
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sete al
add rsp, 0x28
ret