joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f218
Capabilities:
Print debug messages

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rax, qword [0x140729900]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov r14, qword [rbp + 0x58]
xor r15d, r15d
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r15
mov word [rbp - 0x30], r15w
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov edx, dword [rdx + 0x10]
call fcn.14000ee64
bt ebx, 0x1b
jb 0x14000f287
test dword [rsi + 0x10], 0x80000
je 0x14000f2e7
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rdi + 0x90]
test rcx, rcx
je 0x14000f2b6
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x14000f2b6
add rcx, 0x30
jmp 0x14000f2c1
mov rcx, qword [rdi + 0xe0]
add rcx, 0x28
cmp qword [rcx + 0x18], 8
jb 0x14000f2cb
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x1405df280]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x14000f300
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x14000f307
mov rcx, qword [rcx]
jmp 0x14000f307
lea rcx, [0x14041bfe0]
call fcn.140288ad0
test rax, rax
jne 0x14000f31a
cmp qword [rdi + 0x360], r15
je 0x14000f336
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r8, qword [rbp - 0x30]
mov r9, r14
mov rdx, rsi
mov rcx, rdi
call fcn.14000e464
test dword [rsi + 0x10], 0x10000000
je 0x14000f34d
lea rcx, [rdi + 0xb8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140009e10
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1402812e0
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x14000f374
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x840
mov rax, qword [0x140729900]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov rsi, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x14000f40c
lea r9, [rsp + 0x20]
mov r8d, 0x800
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x14000f403
test dword [rsp + 0x20], 0xfffffff8
jbe 0x14000f403
mov ecx, ebx
lea rdx, [rsi + 0x110]
mov r8d, 0x104
mov rcx, qword [rsp + rcx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [rsp + 0x20]
inc ebx
shr eax, 3
cmp ebx, eax
jb 0x14000f3dc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.1402812e0
lea r11, [rsp + 0x840]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140011e0c
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140729900]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rcx
mov qword [rbp - 0x31], rcx
xor esi, esi
mov qword [rbp + 0xf], rsi
mov qword [rbp + 0x17], rsi
lea r14d, [rsi + 7]
mov qword [rbp + 0x17], r14
mov qword [rbp + 0xf], rsi
mov word [rbp - 1], si
cmp qword [rcx + 0x10], rsi
jne 0x140011efe
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], rsi
mov qword [rbp - 9], r14
mov qword [rbp - 0x11], rsi
mov word [rbp - 0x21], si
lea rdx, [rbp - 1]
lea rcx, str.ExtMonitor
call fcn.140013520
lea r8, str.Lock
lea rdx, [rbp - 1]
lea rcx, [rbp + 0x1f]
call fcn.140012580
mov rdi, rax
lea rax, [rbp - 0x21]
cmp rax, rdi
je 0x140011ec6
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x21]
call fcn.140009e10
mov rdx, rdi
lea rcx, [rbp - 0x21]
call fcn.1400118f0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x1f]
call fcn.140009e10
lea r8, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae r8, qword [rbp - 0x21]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x10], rax
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x21]
call fcn.140009e10
mov edx, 0x32
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140012005
lea r8, str.MappedFile
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x21]
call fcn.140012580
nop
lea rax, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rax, qword [rbp - 0x21]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], VarBstrFromDisp
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 8], rax
test rax, rax
je 0x140011fec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, esi
cmp eax, 0xb7
setne dil
mov qword [rsp + 0x20], VarBstrFromDisp
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x140011fec
test edi, edi
je 0x140011fd9
mov qword [rbp - 0x29], rax
mov dword [rax + 8], esi
lea rcx, vtable.NGLogging::CExtMonitorSettings.0
mov qword [rax], rcx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov byte [rax + 0x20], sil
mov qword [rax + 0x40], r14
mov qword [rax + 0x38], rsi
mov word [rax + 0x28], si
mov qword [rax + 0x60], r14
mov qword [rax + 0x58], rsi
mov word [rax + 0x48], si
mov dword [rax + 0x68], esi
mov rax, qword [rbx + 0x18]
lea rcx, [rax + 8]
neg rax
sbb rdx, rdx
and rdx, rcx
inc dword [rdx]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x21]
call fcn.140009e10
mov rbx, qword [rbx + 0x18]
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 1]
call fcn.140009e10
mov rax, rbx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1402812e0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14001330c
Capabilities:
Query or enumerate registry value

Disassembly:
test rcx, rcx
je 0x14001335c
mov r11, rsp
push rbx
sub rsp, 0x40
mov rbx, r8
test rbx, rbx
je 0x140013357
lea rax, [r11 + 8]
mov dword [rsp + 0x50], 4
mov qword [r11 - 0x20], rax
lea r9, [r11 + 0x20]
lea rax, [r11 - 0x18]
xor r8d, r8d
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013357
cmp dword [rsp + 0x68], 4
jne 0x140013357
mov eax, dword [rsp + 0x30]
mov dword [rbx], eax
add rsp, 0x40
pop rbx
ret

Function at 0x140013360
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
lea rax, [r11 + 0x20]
mov r14, r8
xor ebx, ebx
mov qword [r11 - 0x30], rax
lea r9, [r11 - 0x28]
mov qword [r11 - 0x38], rbx
xor r8d, r8d
mov dword [rsp + 0x78], ebx
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013419
cmp dword [rsp + 0x30], 1
jne 0x140013419
mov ecx, dword [rsp + 0x78]
lea eax, [rbx + 2]
shr ecx, 1
inc ecx
mul rcx
lea rcx, [rbx - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.1400d7300
mov rdi, rax
test rax, rax
je 0x140013419
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013411
cmp word [rdi], bx
je 0x140013403
mov rcx, rdi
call fcn.140288ad0
mov rbx, rax
mov r8, rbx
mov rdx, rdi
mov rcx, r14
call fcn.140009ed0
mov rcx, rdi
call fcn.1400d72f0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140015694
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x120
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140729900]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rdi, rdx
mov rbx, rcx
mov byte [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x17e
lea r9, str.NGUtils::CPathUtils::CreatePathHierarchy
lea r8, [0x140744be0]
mov rdx, qword [0x140744c58]
lea rcx, [rsp + 0x70]
call fcn.14000a880
nop
cmp qword [rbx + 0x10], 0
jbe 0x1400157b6
mov rcx, rbx
call fcn.1400157f0
test al, al
jne 0x1400157be
cmp qword [rbx + 0x18], 8
jb 0x14001571d
mov rax, qword [rbx]
jmp 0x140015720
mov rax, rbx
mov qword [rsp + 0x20], rax
lea r9, str.wstrPathToCreate__s
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x184
lea rcx, [rsp + 0x70]
call fcn.14000acc0
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140015064
nop
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140015694
mov dword [rsp + 0x78], eax
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x140015773
cmp eax, 0x8004ffff
jne 0x1400157a5
cmp qword [rbx + 0x18], 8
jb 0x14001577d
mov rbx, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400157a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
and eax, 0x80004005
mov dword [rsp + 0x78], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.140009e10
jmp 0x1400157be
mov dword [rsp + 0x78], 0x8004ffff
mov ebx, dword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.14000a9d0
mov eax, ebx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1402812e0
mov rbx, qword [rsp + 0x140]
add rsp, 0x120
pop rdi
ret

Function at 0x1400190fc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rax - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rbx, rdx
mov rsi, rcx
xor edi, edi
mov dword [rax - 0x28], edi
cmp qword [rdx + 0x18], 8
jb 0x140019132
mov rcx, qword [rdx]
jmp 0x140019135
mov rcx, rbx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r14d, eax
mov eax, 2
add r14d, eax
movsxd rcx, r14d
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400d7300
mov rbp, rax
cmp qword [rbx + 0x18], 8
jb 0x140019171
mov rbx, qword [rbx]
mov r8d, r14d
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rdi
mov word [rsi], di
cmp word [rbp], di
je 0x1400191a0
mov rcx, rbp
call fcn.140288ad0
mov rdi, rax
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call fcn.140009ed0
mov dword [rsp + 0x20], 1
mov rcx, rbp
call fcn.1400d72f0
mov rax, rsi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140019760
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, r9
mov esi, ebx
mov edi, ebx
mov r12, r8
mov r13, rdx
mov r14, rcx
add esi, 0x200
test rdi, rdi
je 0x1400197a1
mov rcx, rdi
call fcn.1400d72f0
mov ecx, esi
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400d7300
mov rdi, rax
test rax, rax
je 0x14001982c
mov word [rax], bx
lea rax, [r14 + 8]
cmp qword [rax + 0x18], 8
jb 0x1400197d7
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
lea r8, [0x14041bfe0]
mov r9, rdi
mov dword [rsp + 0x20], esi
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebp, eax
lea eax, [rsi - 1]
cmp ebp, eax
jae 0x14001978e
cmp word [rdi], bx
jne 0x140019809
mov rax, rbx
jmp 0x140019811
mov rcx, rdi
call fcn.140288ad0
mov r8, rax
mov rdx, rdi
mov rcx, r15
call fcn.140009ed0
mov rcx, rdi
call fcn.1400d72f0
test ebp, ebp
setne al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140019850
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140729900]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, r9
mov r14, r8
mov qword [rbp - 0x40], r8
mov r13, rdx
mov r15, rcx
xor ebx, ebx
mov esi, ebx
mov edi, ebx
jmp 0x14001989b
mov r14, qword [rbp - 0x40]
add esi, 0x200
test rdi, rdi
je 0x1400198ae
mov rcx, rdi
call fcn.1400d72f0
mov ecx, esi
call fcn.1400d7300
mov rdi, rax
test rax, rax
je 0x14001999c
mov byte [rax], bl
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp - 0x20], rbx
mov byte [rbp - 0x30], bl
lea rdx, [r15 + 8]
cmp qword [rdx + 0x18], 8
jb 0x1400198ea
mov rcx, qword [rdx]
jmp 0x1400198ed
mov rcx, rdx
mov rax, qword [rdx + 0x10]
lea r8, [rcx + rax*2]
cmp qword [rdx + 0x18], 8
jb 0x1400198ff
mov rdx, qword [rdx]
lea rcx, [rbp - 0x30]
call fcn.14001a024
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rdi
lea r8, [0x1405deecd]
mov rdx, r14
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov r14d, eax
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140019954
inc rdx
mov r8d, 1
mov rcx, qword [rbp - 0x30]
call fcn.140009bb0
mov qword [rbp - 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp - 0x20], rbx
mov byte [rbp - 0x30], bl
lea eax, [rsi - 1]
cmp r14d, eax
jae 0x140019897
cmp byte [rdi], bl
jne 0x140019978
mov rax, rbx
jmp 0x140019980
mov rcx, rdi
call fcn.14028d3c0
mov r8, rax
mov rdx, rdi
mov rcx, r12
call fcn.140010ed0
mov rcx, rdi
call fcn.1400d72f0
test r14d, r14d
setne al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1402812e0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001ad7c
Capabilities:
Enumerate gui resources

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x38]
sub rsp, 0x130
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140729900]
xor rax, rsp
mov qword [rbp + 0x20], rax
movzx esi, dx
mov rdi, rcx
xor ebx, ebx
mov byte [rsp + 0x30], bl
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x66
lea r9, str.FindWindowSpecific
lea r8, [0x140745398]
mov rdx, qword [0x1407453c0]
lea rcx, [rbp - 0x80]
call fcn.14000a880
nop
mov qword [rsp + 0x20], rdi
lea r9, str.CUDCAppMediator::FindWindowSpecific_windowTitle___s
lea edx, [rbx + 0x10]
lea r8d, [rbx + 0x67]
lea rcx, [rbp - 0x80]
call fcn.14000acc0
test rdi, rdi
jne 0x14001ae14
lea ecx, [rbx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001aea8
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x48], bx
cmp word [rdi], bx
jne 0x14001ae3b
mov rax, rbx
jmp 0x14001ae43
mov rcx, rdi
call fcn.140288ad0
mov r8, rax
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140009ed0
nop
movzx eax, si
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x48]
lea rcx, [0x14001a9e0]
call qword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x14001ae8c
cmp qword [rsp + 0x70], rbx
je 0x14001ae8c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x70]
jmp 0x14001ae98
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.140009e10
nop
lea rcx, [rbp - 0x80]
call fcn.14000a9d0
mov rax, rbx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1402812e0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140024f0c
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x2a0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140729900]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rdx
mov qword [rsp + 0x58], rdx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
lea r13d, [r12 + 7]
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x70], r12
mov word [rsp + 0x60], r12w
xor r8d, r8d
lea rdi, [0x14041bfe0]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140009ed0
nop
mov r8d, 0x104
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140024fc7
mov qword [rsi + 0x18], r13
mov qword [rsi + 0x10], r12
mov word [rsi], r12w
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400118f0
jmp 0x14002510c
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test eax, eax
je 0x1400250f3
mov eax, 2
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400d7300
mov r15, rax
mov r9, rax
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400250db
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x48]
lea rdx, [0x1405df1e8]
mov rcx, r15
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400250db
cmp dword [rsp + 0x34], r12d
je 0x1400250db
lea rcx, [rsp + 0x38]
call fcn.140027350
nop
mov rdx, qword [rsp + 0x48]
movzx eax, word [rdx + 0xc]
movzx ecx, word [rdx + 0xe]
movzx r9d, word [rdx + 8]
movzx r8d, word [rdx + 0xa]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._u._u._u._u
lea rcx, [rsp + 0x38]
call fcn.1400269b8
mov rbx, qword [rsp + 0x38]
cmp word [rbx], r12w
jne 0x140025090
mov rax, r12
jmp 0x140025098
mov rcx, rbx
call fcn.140288ad0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140009ed0
nop
mov r14, qword [rsp + 0x38]
or eax, 0xffffffff
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x1400250eb
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009df0]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
jmp 0x1400250eb
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140009ed0
mov rcx, r15
call fcn.1400d72f0
mov qword [rsi + 0x18], r13
mov qword [rsi + 0x10], r12
mov word [rsi], r12w
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400118f0
mov dword [rsp + 0x30], 1
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.140009e10
mov rax, rsi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1402812e0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
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 0x14002cf80
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140729900]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov r14, rdx
mov qword [rsp + 0x50], rdx
xor esi, esi
mov byte [rsp + 0x30], sil
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0x157
lea r9, str.NGUDCApp::JsonReader::ConvertToDOSIfNeeded
lea r8, [0x1407457d8]
mov rdx, qword [0x1407453c0]
lea rcx, [rsp + 0x60]
call fcn.14000a880
nop
cmp qword [r14 + 0x18], 8
jb 0x14002d001
mov rcx, qword [r14]
jmp 0x14002d004
mov rcx, r14
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
or rbp, 0xffffffffffffffff
cmp rax, rbp
je 0x14002d196
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r13d, eax
lea edi, [rax + 1]
mov ebx, edi
lea eax, [rbp + 3]
mul rbx
cmovo rax, rbp
mov rcx, rax
call fcn.1400d7300
mov r15, rax
mov ecx, edi
call fcn.1400d7300
mov rbp, rax
mov r8d, edi
xor edx, edx
mov rcx, r15
call fcn.140287160
mov r8d, edi
xor edx, edx
mov rcx, rbp
call fcn.140287160
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, r15
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], esi
jbe 0x14002d185
mov eax, dword [rsp + 0x40]
mov word [r15 + rax*2], si
mov eax, 0xfeff
cmp word [r15], ax
jne 0x14002d185
lea r8, [r15 + 2]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rbp
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x14002d185
cmp qword [r14 + 0x18], 8
jb 0x14002d104
mov rcx, qword [r14]
jmp 0x14002d107
mov rcx, r14
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 rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002d185
mov dword [rsp + 0x44], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x44]
mov r8d, r13d
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002d179
cmp dword [rsp + 0x44], esi
jbe 0x14002d179
lea r9, str.ReadInstanceData_Sucessfully_Converted.
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x186
lea rcx, [rsp + 0x60]
call fcn.14000acc0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov sil, 1
mov rcx, r15
call fcn.1400d72f0
mov rcx, rbp
call fcn.1400d72f0
nop
lea rcx, [rsp + 0x60]
call fcn.14000a9d0
nop
xor r8d, r8d
mov dl, 1
mov rcx, r14
call fcn.140009e10
mov al, sil
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1402812e0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002dd74
Capabilities:
Get file version info

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push r14
sub rsp, 0x30
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov r14, rdx
mov rbx, rcx
lea rax, vtable.NGUtils::AFileVersionInfo.0
mov qword [rcx], rax
lea rax, vtable.NGUtils::CFileVersionInfo.0
mov qword [rcx], rax
and dword [rcx + 0x10], 0
and qword [rcx + 0x18], 0
and qword [rcx + 0x20], 0
and qword [rcx + 8], 0
test rdx, rdx
je 0x14002de6a
and dword [rsp + 0x60], 0
lea rdx, [r11 + 0x18]
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
mov dword [rsp + 0x68], esi
test eax, eax
je 0x14002de6a
mov ecx, esi
call fcn.1400d7300
mov qword [rbx + 0x18], rax
jmp 0x14002de00
mov r9, qword [rbx + 0x18]
test r9, r9
je 0x14002de6a
mov r8d, esi
mov edx, dword [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14002de6a
and dword [rsp + 0x58], 0
and dword [rsp + 0x68], 0
lea r8, [rbx + 0x20]
lea r9, [rsp + 0x58]
lea rdx, str.VarFileInfoTranslation
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14002de4f
mov eax, dword [rsp + 0x58]
shr eax, 2
mov dword [rbx + 0x10], eax
lea r8, [rbx + 8]
lea r9, [rsp + 0x68]
lea rdx, [0x1405df1e8]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
nop
mov rax, rbx
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret