joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e6f4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15d, r9d
mov r12, r8
mov r13d, edx
mov r14, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14002e72c
xor eax, eax
jmp 0x14002e8be
and dword [rbp + 0x10], 0
lea rcx, [rbp + 0x10]
mov ebx, 1
call fcn.14002f70c
mov ecx, eax
mov edi, eax
call fcn.1400011ac
mov rsi, rax
test rax, rax
je 0x14002e8bc
lea rcx, [0x14017c1d8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
call fcn.14002dc3c
test eax, eax
jne 0x14002e772
xor ebx, ebx
jmp 0x14002e8a2
cmp byte [0x14017c497], 0
je 0x14002e785
mov ecx, 0x72766c72
call fcn.14002cdf4
and dword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
mov byte [0x14017c497], bl
call fcn.14002f70c
cmp eax, edi
jne 0x14002e7a7
mov eax, dword [rbp + 0x10]
cmp dword [rsp + 0x40], eax
je 0x14002e7d5
mov rcx, rsi
call fcn.140001000
lea rcx, [rbp + 0x10]
call fcn.14002f70c
mov ecx, eax
mov edi, eax
call fcn.1400011ac
mov rsi, rax
test rax, rax
jne 0x14002e7d5
mov ecx, 0x72766c73
call fcn.14002cdf4
xor ebx, ebx
test r15d, r15d
jne 0x14002e7e2
cmp edi, 0xea60
ja 0x14002e76b
test ebx, ebx
je 0x14002e7f9
mov r8d, dword [rbp + 0x10]
mov r9d, r13d
mov edx, edi
mov rcx, rsi
call fcn.14002f908
mov ebx, eax
mov byte [0x14017c497], 0
test ebx, ebx
je 0x14002e898
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x10]
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002e831
cmp dword [rbp + 0x10], edi
jne 0x14002e831
mov ebx, 1
jmp 0x14002e833
xor ebx, ebx
test r12, r12
je 0x14002e8a2
mov dword [rsp + 0x38], 1
and qword [rsp + 0x30], 0
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0xc0000000
mov rcx, r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call fcn.14008b238
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14002e8a2
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002e8a2
mov ecx, 0x74697970
call fcn.14002cdf4
lea rcx, [0x14017c1d8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rsi, rsi
je 0x14002e8bc
mov rcx, rsi
call fcn.140001000
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14002fd10
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x450
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor ebx, ebx
test dword [0x14017c20c], 0x2000
je 0x14002fd4b
call fcn.14003175c
jmp 0x14002fdf8
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.1400318b0
test eax, eax
je 0x14002fdf8
lea rdx, [rsp + 0x20]
lea rcx, str.msodatalast.dat
mov r8d, 0x104
call fcn.140009f3c
call fcn.14002e348
test al, al
je 0x14002fdf6
call fcn.14002e604
lea rcx, [rsp + 0x230]
mov r8b, 1
mov edx, 0x104
call fcn.14002e3a8
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14002fdf6
xor r9d, r9d
lea r8, [rsp + 0x20]
mov rcx, rax
lea edx, [r9 + 1]
call fcn.14002e6f4
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x14002fdd8
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14002fdf6
lea r8, [rsp + 0x230]
lea rcx, [0x14017c280]
or r9, 0xffffffffffffffff
mov edx, 0x104
call qword [sym.imp.MSVCR100.dll_wcsncpy_s]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400056f0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140030ab4
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x40], rax
xor r13d, r13d
mov rsi, rdx
mov r12, rcx
mov byte [rcx], r13b
lea ebx, [r13 + 1]
mov dword [rsp + 0x40], r13d
mov edi, r13d
mov r14d, r13d
mov byte [rdx], bl
call fcn.1400316a0
mov r15d, eax
mov dword [rsp + 0x44], eax
cmp eax, 3
je 0x140030ce3
lea rcx, [rsp + 0x50]
mov edx, 0x104
call fcn.140030a6c
test eax, eax
je 0x140030ce3
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov r8d, ebx
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call fcn.14008b238
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp r13, 0xffffffffffffffff
jne 0x140030b81
cmp eax, 0x20
jne 0x140030b73
mov ecx, 0x1c8016
call fcn.14002cdf4
jmp 0x140030b78
cmp eax, 5
jne 0x140030b7a
xor ebx, ebx
mov byte [rsi], bl
jmp 0x140030ce3
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [rsi - 0x8c]
cmp eax, 0xf74
ja 0x140030ccd
mov ecx, esi
call fcn.14002d1f4
mov rdi, rax
test rax, rax
je 0x140030ccd
and qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140030ccd
cmp esi, dword [rsp + 0x40]
jne 0x140030ccd
xor r8d, r8d
mov edx, esi
mov rcx, rdi
call fcn.14002e214
test eax, eax
je 0x140030ccd
cmp dword [rdi + 0x78], r14d
jne 0x140030ccd
mov r8d, dword [rdi + 0x7c]
movabs rax, 0xaaaaaaaaaaaaaaab
mul r8
shr rdx, 3
movsxd rax, edx
lea rcx, [rax + rax*2]
shl rcx, 2
cmp r8, rcx
jne 0x140030ccd
lea rsi, [rdi + 0x80]
test edx, edx
jle 0x140030cb5
mov r15d, edx
cmp dword [rsi], 0x10
je 0x140030c7c
cmp dword [rsi], 0x195b
je 0x140030c7c
cmp dword [rsi], 0x19df
jbe 0x140030c86
cmp dword [rsi], 0x19e2
jbe 0x140030c7c
cmp dword [rsi], 0x2102
je 0x140030c7c
cmp dword [rsi], 0x24c7
jbe 0x140030c86
cmp dword [rsi], 0x24cb
jbe 0x140030c7c
cmp dword [rsi], 0x24cd
je 0x140030c7c
cmp dword [rsi], 0x2696
jne 0x140030c86
mov edx, dword [rsi + 4]
mov ecx, dword [rsi]
call fcn.14002d3b8
cmp dword [rsi], 0x195b
je 0x140030c9e
cmp dword [rsi], 0x19e1
je 0x140030c9e
cmp dword [rsi], 0x24cd
jne 0x140030ca1
add r14d, ebx
add rsi, 0xc
sub r15, rbx
jne 0x140030c37
cmp r14d, 3
je 0x140030cc9
mov r15d, dword [rsp + 0x44]
call fcn.14008a114
test eax, eax
je 0x140030cc4
cmp r14d, 2
jge 0x140030cc9
cmp r15d, ebx
jne 0x140030ccd
mov byte [r12], bl
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140030ce3
mov rcx, rdi
call fcn.14002d25c
mov rcx, qword [rbp - 0x40]
xor rcx, rsp
call fcn.1400056f0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140030e28
Capabilities:
Get geographical location

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov ecx, 0x10
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov ecx, 0x17
mov edx, eax
add rsp, 0x20
pop rbp
jmp fcn.14002d3b8
Function at 0x140030e4c
Capabilities:
Get keyboard layout

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
and dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov ecx, 9
call fcn.14002d5b8
test eax, eax
jne 0x140030e81
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, 9
movzx edx, ax
call fcn.14002d3b8
lea rdx, [rsp + 0x30]
mov ecx, 0x2199
call fcn.14002d5b8
test eax, eax
jne 0x140030eaa
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov ecx, 0x2199
mov edx, eax
call fcn.14002d3b8
add rsp, 0x20
pop rbp
ret

Function at 0x140030ed4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rsp + 0x60], rax
call fcn.140031ed4
and dword [rsp + 0x20], 0
xor edx, edx
lea r8d, [rdx + 0x2c]
lea rcx, [rsp + 0x24]
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx edx, word [rsp + 0x20]
mov ecx, 0x11
call fcn.14002d3b8
mov edx, dword [rsp + 0x40]
mov ecx, 0x12
call fcn.14002d3b8
xor ecx, ecx
mov eax, 0x80000000
cpuid
mov dword [rsp + 0x54], ebx
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x5c], edx
cmp eax, 0x80000000
jbe 0x140030f79
xor ecx, ecx
mov eax, 0x80000001
cpuid
mov dword [rsp + 0x58], ecx
mov ecx, 0x2699
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], ebx
bt edx, 0x1d
jae 0x140030f75
mov edx, 9
jmp 0x140030f83
xor edx, edx
jmp 0x140030f83
mov edx, 0xffff
mov ecx, 0x2699
call fcn.14002d3b8
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400056f0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret

Function at 0x140031004
Capabilities:
Identify system language via api

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ecx, 0x1b
mov edx, eax
call fcn.14002d3b8
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov ecx, 0x1c
mov edx, eax
call fcn.14002d3b8
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x1d
movzx edx, ax
add rsp, 0x20
pop rbp
jmp fcn.14002d3b8

Function at 0x1400310cc
Capabilities:
Get common file path
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x260
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea rcx, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140031144
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x140031144
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
mov ecx, 7
shr rdx, 0x14
shr rbx, 0x14
call fcn.14002d3b8
mov edx, ebx
mov ecx, 8
call fcn.14002d3b8
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400056f0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rbp
ret
Function at 0x14003135c
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x100
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rcx, qword [0x140131ab8]
xor r14d, r14d
lea r8, [rsp + 0x68]
lea edx, [r14 + 1]
xor r9d, r9d
mov esi, r14d
mov edi, r14d
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x68], r14
call fcn.14000ca5c
test eax, eax
jne 0x140031450
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call fcn.14008f214
test eax, eax
jne 0x140031450
mov eax, dword [rsp + 0x60]
cmp eax, 1
jb 0x140031450
lea esi, [r14 + 1]
mov ebx, r14d
test eax, eax
je 0x140031450
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x70]
mov r9d, 0x40
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140031450
lea rdx, str.v2.0
lea rcx, [rsp + 0x70]
mov r8d, esi
mov word [rsp + 0x78], r14w
call fcn.140019a6c
test eax, eax
jne 0x14003144e
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x14003140a
jmp 0x140031450
mov edi, esi
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140031465
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], r14
mov edx, esi
mov ecx, 0x10f3
call fcn.14002d3f4
mov edx, edi
mov ecx, 0x18dd
call fcn.14002d3f4
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400056f0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400314a8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x180
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x10], rax
and dword [rsp + 0x30], 0
and dword [rsp + 0x50], 0
lea rcx, [rsp + 0x54]
xor edx, edx
mov r8d, 0x118
call sub.MSVCR100.dll_memset
lea r11, [rsp + 0x40]
lea rdx, str.SYSTEMCurrentControlSetControlWindows
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14003155d
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
lea rdx, str.CSDBuildNumber
xor r8d, r8d
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140031550
mov edx, dword [rsp + 0x34]
mov ecx, 0x22df
call fcn.14002d3b8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140031567
mov ecx, 0x1c800b
call fcn.14002cdf4
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400315e9
mov edx, dword [rsp + 0x5c]
mov ecx, 0x1a
call fcn.14002d3b8
movzx edx, word [rbp - 0x1c]
movzx eax, word [rbp - 0x1a]
shl edx, 0x10
mov ecx, 0x43
or edx, eax
call fcn.14002d3b8
movzx edx, word [rbp - 0x18]
mov ecx, 0x3a5
call fcn.14002d3b8
mov edx, dword [rsp + 0x54]
mov ecx, 0x22e1
call fcn.14002d3b8
mov edx, dword [rsp + 0x58]
mov ecx, 0x22e2
call fcn.14002d3b8
movzx edx, word [rbp - 0x1c]
mov ecx, 0x22e4
call fcn.14002d3b8
movzx edx, word [rbp - 0x1a]
mov ecx, 0x22e5
call fcn.14002d3b8
movzx r9d, word [rbp - 0x1a]
movzx r8d, word [rbp - 0x1c]
mov edx, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x54]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x1af7
test eax, eax
je 0x14003161f
mov edx, dword [rsp + 0x30]
call fcn.14002d3b8
jmp 0x140031631
or edx, 0xffffffff
call fcn.14002d3b8
mov ecx, 0x1c800c
call fcn.14002cdf4
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400056f0
add rsp, 0x180
pop rbp
ret

Function at 0x140031648
Capabilities:
Get memory capacity

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xc
add rdx, 0x80000
shr rdx, 0x14
call fcn.14002d3b8
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400056f0
add rsp, 0x70
pop rbp
ret
Function at 0x1400318b0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
push r14
push r15
sub rsp, 0x20
mov r14d, edx
mov rsi, rcx
call fcn.14008d0d4
xor ebx, ebx
test eax, eax
je 0x1400318f3
mov rdx, rsi
mov ecx, r14d
call fcn.14000b878
test eax, eax
setne bl
mov eax, ebx
jmp 0x1400319a8
mov r8d, 1
mov edx, r14d
mov rcx, rsi
call fcn.140031d5c
mov edi, eax
test eax, eax
je 0x1400319a6
or r15, 0xffffffffffffffff
test rsi, rsi
je 0x140031925
mov rax, r15
inc rax
cmp word [rsi + rax*2], bx
jne 0x14003191a
jmp 0x140031928
mov rax, rbx
cdqe
cmp word [rsi + rax*2 - 2], 0x5c
je 0x140031951
lea r8, [0x1400c7f9c]
mov rdx, r14
mov r9, r15
mov rcx, rsi
call qword [sym.imp.MSVCR100.dll_wcsncat_s]
mov edi, ebx
cmp eax, 0x50
setne dil
test edi, edi
je 0x1400319a6
lea r8, str.15.0_
mov rdx, r14
mov r9, r15
mov rcx, rsi
call qword [sym.imp.MSVCR100.dll_wcsncat_s]
mov edi, ebx
cmp eax, 0x50
setne dil
test edi, edi
je 0x1400319a6
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400319a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, ebx
cmp eax, 0xb7
sete dil
test edi, edi
jne 0x1400319a6
mov ecx, 0x1cb247
call fcn.14002cdf4
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x140031bb0
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
mov rbp, rsp
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov rdi, r8
mov r14, rdx
mov esi, ecx
mov dword [rax + 0x10], r15d
test rdx, rdx
jne 0x140031bee
mov ecx, 0x1cb21e
call fcn.14002cdf4
jmp 0x140031d40
test r8, r8
jne 0x140031bfa
mov ecx, 0x1cb21f
jmp 0x140031be4
cmp ecx, 2
je 0x140031c10
cmp ecx, 8
je 0x140031c10
cmp ecx, 3
je 0x140031c10
mov ecx, 0x1cb220
jmp 0x140031be4
cmp qword [rdx], r15
je 0x140031c1f
mov ecx, 0x1cb221
call fcn.14002cdf4
cmp dword [rdi], r15d
je 0x140031c2e
mov ecx, 0x1cb222
call fcn.14002cdf4
mov r8, rdi
xor edx, edx
mov ecx, esi
mov dword [rdi], r15d
call sub.Secur32.dll_GetUserNameExW
movzx ebx, al
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x140031d1e
cmp eax, 0xea
jne 0x140031d1e
mov ecx, dword [rdi]
lea eax, [rbx + 2]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400011ac
mov rdx, rax
mov qword [r14], rax
test rax, rax
jne 0x140031c89
mov ecx, 0x1cb240
jmp 0x140031d23
mov eax, dword [rdi]
lea r8, [rsp + 0x48]
mov ecx, esi
mov dword [rsp + 0x48], eax
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x140031ca6
mov ecx, 0x1cb241
jmp 0x140031d23
mov eax, dword [rdi]
dec eax
cmp dword [rsp + 0x48], eax
je 0x140031cba
mov ecx, 0x1cb242
call fcn.14002cdf4
cmp esi, 2
jne 0x140031cd4
mov edx, dword [rdi]
mov rcx, qword [r14]
call fcn.140031b04
test eax, eax
jne 0x140031d40
mov ecx, 0x1cb243
jmp 0x140031d23
cmp esi, 8
jne 0x140031d0f
mov rcx, qword [r14]
test rcx, rcx
jne 0x140031ce8
mov ecx, 0x1cb21c
jmp 0x140031cfd
mov edx, 0x40
call qword [sym.imp.MSVCR100.dll_wcschr]
test rax, rax
jne 0x140031d09
mov ecx, 0x1cb21d
call fcn.14002cdf4
mov ecx, 0x1cb244
jmp 0x140031d23
mov word [rax], r15w
jmp 0x140031d40
cmp esi, 3
je 0x140031d40
mov ecx, 0x1cb245
jmp 0x140031be4
mov ecx, 0x1cb223
call fcn.14002cdf4
mov rcx, qword [r14]
test rcx, rcx
je 0x140031d38
call fcn.140001000
mov qword [r14], r15
cmp dword [rdi], r15d
je 0x140031d40
mov dword [rdi], r15d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x140031d5c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x20], rax
xor ebx, ebx
mov esi, r8d
mov r14d, edx
mov rdi, rcx
mov rdx, rcx
lea r9d, [rbx + 1]
lea r8d, [rbx + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140031e04
lea rcx, str.MicrosoftOffice_
mov r8d, r14d
mov rdx, rdi
call fcn.140009f3c
mov ebx, 1
test esi, esi
je 0x140031e04
mov rcx, rdi
call fcn.14008cda0
test eax, eax
jne 0x140031e04
mov ebx, 0x104
lea rcx, [rsp + 0x20]
or r9, 0xffffffffffffffff
mov edx, ebx
mov r8, rdi
call qword [sym.imp.MSVCR100.dll_wcsncpy_s]
lea rdx, [rsp + 0x20]
lea rcx, str.dummyfile
mov r8d, ebx
call fcn.14000b700
lea rcx, [rsp + 0x20]
call fcn.14008cdc8
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.1400056f0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140032004
Capabilities:
Check mutex on windows

Disassembly:
push rbp
mov rbp, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x478
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x50], rax
mov r13, qword [rbp + 0x30]
mov rax, qword [rbp + 0x38]
mov r15d, dword [rbp + 0x40]
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], r9d
mov qword [rsp + 0x48], r8
mov rbx, rcx
test rcx, rcx
jne 0x140032057
xor eax, eax
jmp 0x140032188
and qword [rcx], 0
mov r8, rdx
lea rcx, [rsp + 0x60]
mov edi, 1
mov r9d, r15d
mov edx, 0x400
mov dword [rsp + 0x20], edi
call fcn.14008dc4c
xor r14d, r14d
and dword [rsp + 0x30], r14d
mov esi, r15d
mov r12, rax
shr esi, 0x1a
not esi
and esi, edi
test r12, r12
je 0x1400320ac
mov edx, r15d
mov r8, r12
mov ecx, 0x120001
shr edx, 0x17
and edx, edi
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov qword [rbx], rax
cmp qword [rbx], r14
jne 0x140032124
test esi, esi
je 0x140032124
lea rdx, [rsp + 0x38]
mov r8d, edi
mov ecx, r15d
xor r13d, r13d
call fcn.14008da48
test eax, eax
je 0x140032114
mov rcx, qword [rsp + 0x38]
mov edx, r15d
mov r8, r12
shr edx, 0x19
and edx, edi
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x38]
mov r8d, edi
mov ecx, r15d
mov r13d, eax
call fcn.14008dba0
cmp r13d, 5
jne 0x140032114
cmp dword [rsp + 0x30], r14d
jne 0x140032114
mov dword [rsp + 0x30], edi
jmp 0x14003208e
cmp qword [rbx], r14
je 0x140032124
cmp r13d, 0xb7
setne r14b
cmp qword [rbx], 0
je 0x140032130
cmp qword [rbx], 0xffffffffffffffff
jne 0x140032147
test esi, esi
je 0x14003213e
mov ecx, 0x6b633230
call fcn.14002cdf4
and qword [rbx], 0
xor r14d, r14d
xor edi, edi
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140032178
movsxd rcx, dword [rsp + 0x40]
test ecx, ecx
jle 0x140032178
test r12, r12
mov rdx, rcx
lea r8, [0x1400eade3]
cmovne r8, r12
or r9, 0xffffffffffffffff
mov rcx, rax
call qword [sym.imp.MSVCR100.dll_strncpy_s]
mov r13, qword [rsp + 0x50]
test r13, r13
je 0x140032186
mov dword [r13], r14d
mov eax, edi
mov rcx, qword [rbp - 0x50]
xor rcx, rsp
call fcn.1400056f0
add rsp, 0x478
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140045664
Capabilities:
Hash data using fnv

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
cmp qword [rdx + 0x18], 8
jb 0x140045678
mov rcx, qword [rdx]
jmp 0x14004567b
mov rcx, rdx
mov rax, qword [rdx + 0x10]
mov r8d, 0x811c9dc5
lea rdx, [rcx + rax*2]
jmp 0x14004569c
movzx eax, word [rcx]
imul r8, r8, 0x1000193
xor r8, rax
add rcx, 2
cmp rcx, rdx
jne 0x14004568b
btr r8d, 0x1f
mov edx, 0x1f31d
mov ecx, r8d
call qword [sym.imp.MSVCR100.dll_ldiv]
mov qword [rsp + 0x38], rax
mov ecx, dword [rsp + 0x38]
shr rax, 0x20
imul eax, eax, 0x41a7
imul ecx, ecx, 0xb14
sub eax, ecx
jns 0x1400456d6
add eax, 0x7fffffff
cdqe
add rsp, 0x20
pop rbp
ret
Function at 0x140048fa8
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rsi, rdx
cmp qword [rcx + 0x38], 0
je 0x140049079
add rcx, 0x28
cmp qword [rcx + 0x18], 8
jb 0x140048fdc
mov rcx, qword [rcx]
mov dword [rsp + 0x38], 1
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call fcn.14008b238
mov rbx, rax
mov qword [rbp + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x14004901a
jmp 0x140049079
lea rdx, [rbp + 0x20]
mov rcx, rax
call fcn.14008b28c
test eax, eax
jne 0x14004902c
jmp 0x140049070
mov rdi, qword [rbp + 0x20]
and dword [rsp + 0x70], 0
mov edx, edi
mov rcx, rsi
call fcn.140034fa0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, edi
mov rdx, qword [rsi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140049070
cmp edi, dword [rsp + 0x70]
jne 0x140049070
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14004907b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x14004a204
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
cmp qword [rcx + 0x10], 0
mov rdi, r8
mov rsi, rdx
je 0x14004a2b8
test rdx, rdx
je 0x14004a2b8
test r8, r8
je 0x14004a2b8
cmp qword [rcx + 0x18], 8
jb 0x14004a244
mov rcx, qword [rcx]
mov dword [rsp + 0x38], 1
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call fcn.14008b238
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004a2b8
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14004a2af
mov ecx, dword [rsp + 0x50]
cmp rcx, rdi
jne 0x14004a2af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14004a2ba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret