joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov edi, edx
mov rsi, rcx
mov qword [rcx], 0
call fcn.140014150
lea rcx, [0x140076ad0]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x1400740b8]
mov r15d, 0xf00dbaad
cmp rax, r15
je 0x14001297b
mov rbx, qword [0x1400740b8]
jmp 0x140012982
mov rbx, qword [0x1400740c0]
lea rcx, [0x140076ad0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x50], rbx
mov rdx, rdi
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140012a0b
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
test rbp, rbp
je 0x140012a0b
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov ecx, r14d
call fcn.14001b6a4
mov rdi, rax
mov r8d, r14d
mov rdx, rbx
mov rcx, rax
call fcn.14001ba10
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadMenuIndirectW]
mov qword [rsi], rax
mov rcx, rdi
call fcn.14001d13c
nop
lea rcx, [0x140076ad0]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movzx eax, word [0x140076ad8]
test ax, ax
je 0x140012a4a
mov edx, 0xffff
add ax, dx
mov word [0x140076ad8], ax
mov rcx, qword [0x1400740b8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp word [0x140076ad8], 0
jne 0x140012a51
mov qword [0x1400740b8], r15
lea rcx, [0x140076ad0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, rsi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140018bb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
xor r9d, r9d
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x140018d10
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x140018e30
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov r9d, dword [0x140076d34]
xor eax, eax
xor bl, bl
mov rdi, rdx
mov rsi, rcx
mov dword [rsp + 0x58], edx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x50], eax
test r9d, r9d
jne 0x140018ea0
mov dword [0x140076d34], 0x20019
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x140018e99
cmp dword [rsp + 0x50], 0
je 0x140018e99
mov r9d, dword [0x140076d34]
bts r9d, 8
mov dword [0x140076d34], r9d
jmp 0x140018ea0
mov r9d, dword [0x140076d34]
test rsi, rsi
je 0x140018f75
test rdi, rdi
je 0x140018f75
lea rax, [rsp + 0x60]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallNVIDIA_nView_Desktop_Manager
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018f12
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
lea rdx, str.InstallLocation
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x60]
test eax, eax
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x140018f75
mov r9d, dword [0x140076d34]
lea rax, [rsp + 0x60]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallB2FE1952_0186_46C3_BAEC_A80AA35AC5B8_Display.NView
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018f75
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
lea rdx, str.InstallLocation
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x60]
test eax, eax
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140019320
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x140074150]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor ebx, ebx
mov rdi, rcx
mov dword [rcx], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
lea edx, [rbx + 8]
mov rcx, rax
mov qword [rsp + 0x38], rbx
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140019383
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140019496
mov ebx, eax
jmp 0x140019441
xor edx, edx
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x50]
lea ecx, [rdx + 0x1a]
mov dword [rsp + 0x34], 0x44
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x14001936e
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
xor ecx, ecx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x14001936e
cmp dword [rsp + 0x30], ebx
jne 0x14001943b
mov rcx, qword [rsp + 0x38]
mov r9d, 8
lea rax, [rsp + 0x34]
lea r8, [rsp + 0x40]
lea edx, [r9 + 0xb]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140019418
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add eax, 0xfffffae0
test eax, 0xfffffffd
je 0x140019441
test ecx, ecx
jg 0x14001940d
mov ebx, ecx
jmp 0x140019441
movzx ebx, cx
or ebx, 0x80070000
jmp 0x140019441
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x14001936e
cmp dword [rsp + 0x30], ebx
je 0x140019441
mov dword [rdi], 1
test rsi, rsi
je 0x14001944f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001945f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001946f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14001ccd0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140019441
Function at 0x1400194b0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140074150]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor ebx, ebx
mov rsi, rcx
mov rbp, r8
mov dword [rsp + 0x50], edx
lea rcx, [rsp + 0x62]
mov r8d, 0x206
xor edx, edx
mov edi, ebx
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x60], bx
call fcn.14001cd00
lea edx, [rbx + 4]
mov r8, rbp
mov rcx, rsi
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x1400195da
nop word [rax + rax]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
je 0x14001955b
cmp eax, 0xea
jne 0x1400195a9
lea rax, [rsp + 0x48]
lea rdx, [rsp + 0x60]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400195a9
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov r8, rbp
call fcn.1400194b0
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x1400195d4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x208
inc edi
mov dword [rsp + 0x40], 0x104
call fcn.14001cd00
cmp ebx, 0xea
jne 0x1400195de
xor ebx, ebx
jmp 0x140019520
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1400195e3
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001ccd0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140019ad0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140074150]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x60]
mov ecx, 0x104
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rbx, [rdi + 0x4010]
cmp word [rbx], 0
jne 0x140019b2d
mov r8d, 0x104
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], esi
lea r9, str._snw__s__d.log
lea rcx, [rsp + 0x60]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.14001dc60
lea r8, [0x14005f078]
lea rdx, [rsp + 0x60]
lea rcx, [rdi + 0x4218]
call fcn.14001e1f8
mov ebx, eax
test eax, eax
jne 0x140019bd3
call fcn.140019920
lea r9, str.Logger.cpp
lea r8, str.Logger::openLogFile
mov rcx, rax
lea rax, str.23:58:21
lea edx, [rbx + 3]
mov qword [rsp + 0x40], rax
lea rax, str.Dec_14_2016
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, str.logging_to_file__s__logger_build__s__s_
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x160
call fcn.14001a060
mov al, 1
jmp 0x140019c92
xor eax, eax
mov r9d, 0x400
mov r8d, ebx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov qword [rdi + 0x4218], rax
lea rax, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
call fcn.140019920
mov rcx, rax
mov rax, qword [rsp + 0x50]
lea r9, str.Logger.cpp
mov qword [rsp + 0x38], rax
lea rax, str.API_function_failed_with__d:__s
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea r8, str.Logger::openLogFile
mov edx, 1
mov dword [rsp + 0x20], 0x166
call fcn.14001a060
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.140019920
lea r9, str.Logger.cpp
mov rcx, rax
lea rax, [rsp + 0x60]
lea r8, str.Logger::openLogFile
mov qword [rsp + 0x30], rax
lea rax, str.failed_to_open_log_file__s_
mov edx, 2
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x167
call fcn.14001a060
xor al, al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001ccd0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14001a570
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
xor r14d, r14d
mov rsi, r8
lea ebp, [r14 + 1]
movzx ebx, r14w
dec edx
je 0x14001a5b0
dec edx
je 0x14001a5a9
dec edx
jne 0x14001a5b3
lea ebx, [rbp + 3]
jmp 0x14001a5b3
mov ebx, 2
jmp 0x14001a5b3
movzx ebx, bp
lea rdx, str.nview
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x14001a5fe
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], r14d
xor r8d, r8d
mov r9d, ebp
movzx edx, bx
mov rcx, rax
mov word [rsp + 0x28], bp
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x1400463ec
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x68]
sub rsp, 0x160
mov rax, qword [0x140074150]
xor rax, rsp
mov qword [rbp + 0x50], rax
lea rax, [rsp + 0x38]
mov rdi, rcx
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400464f3
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400464e4
cmp dword [rsp + 0x30], 2
mov byte [rbp + 0x43], bl
lea rcx, [rsp + 0x40]
jne 0x1400464ae
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x1400464e4
mov edx, ebx
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x1400464d0
mov al, byte [rcx + rdi]
test al, al
je 0x1400464d0
mov byte [rdi], al
inc rdi
dec rsi
jne 0x1400464b3
test rsi, rsi
jne 0x1400464dd
dec rdi
mov edx, 0x8007007a
test edx, edx
mov byte [rdi], bl
setns bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400464f5
xor eax, eax
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14001ccd0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140046e20
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x140046ee3
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or rdx, 0xffffffffffffffff
mov ebp, eax
inc rdx
cmp word [rbx + rdx*2], si
jne 0x140046e54
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140046ee6
mov edx, ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x140046e9f
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140046ea3
test rax, rax
je 0x140046ee3
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
or rax, 0xffffffffffffffff
mov edx, edi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140046ed4
cmp rdx, rax
jb 0x140046ec0
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400472d0
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
sub rsp, 0x40
mov rax, qword [0x140074150]
xor rax, rsp
mov qword [rsp + 0x38], rax
movdqa xmm0, xmmword [str.__p]
xor r12d, r12d
mov rsi, rcx
mov ebx, r12d
mov r14d, r12d
mov ebp, r12d
cmp dword [0x140078100], ebx
movdqu xmmword [rsp + 0x20], xmm0
jne 0x14004738d
lea edx, [r12 + 2]
mov r8b, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [r12 + 1]
mov r8b, 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [r12 + 0x20]
mov r8b, 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [r12 + 0x23]
lea rcx, [0x140078100]
mov r8, rax
mov dword [0x140078100], 0x11c
mov dword [0x140078104], 6
mov dword [0x140078108], 1
mov word [0x140078214], r12w
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, r12d
test eax, eax
sete cl
mov dword [0x140075a28], ecx
jmp 0x140047393
mov ecx, dword [0x140075a28]
test ecx, ecx
je 0x1400473a1
mov eax, 1
jmp 0x140047522
test rsi, rsi
je 0x14004750e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x78], rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test eax, eax
je 0x140047509
mov edx, edi
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x140047509
xor r9d, r9d
mov r8, rax
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp edi, eax
jbe 0x140047509
mov rsi, r12
or rdi, 0xffffffffffffffff
nop word [rax + rax]
mov ecx, dword [rsp + rsi*4 + 0x20]
lea rdx, [0x14005d214]
call fcn.140046cd0
mov rbx, rax
test rax, rax
je 0x140047509
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], r12w
jne 0x140047430
mov rdx, rax
mov rcx, r14
call fcn.14003dc94
mov ebp, r12d
test eax, eax
sete bpl
test ebp, ebp
jne 0x140047509
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
inc rsi
mov rbx, r12
cmp rsi, 4
jl 0x140047410
movups xmm0, xmmword [str.WinSxS_]
movzx eax, word [0x140068638]
lea rcx, str._SystemRoot_
xor r8d, r8d
xor edx, edx
mov word [rsp + 0x30], ax
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x140047509
lea rdx, [rsi + 0x12]
lea ecx, [rbp + 0x40]
mov qword [rsp + 0x80], r15
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140047501
lea rcx, str._SystemRoot_
mov r8d, esi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, eax
jne 0x140047501
lea r8, [rsp + 0x20]
lea rdx, [rsi + 0x12]
mov rcx, rbx
call fcn.1400013ca
inc rdi
cmp word [rbx + rdi*2], r12w
jne 0x1400474e0
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.14003dc94
mov ebp, r12d
test eax, eax
sete bpl
mov r15, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001ccd0
add rsp, 0x40
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x140011032
Capabilities:
Execute command

Disassembly:
jmp 0x140012970
push rbp
push rdi
sub rsp, 0x3e8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x92
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x3b8], rax
lea rcx, [0x1400250f4]
call fcn.14001147e
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
lea rax, [rbp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x1b9
rep stosb byte [rdi], al
mov dword [rbp + 0x48], 1
mov dword [rbp + 0x4c], 1
xor eax, eax
cmp eax, 1
je 0x140012a00
lea rcx, [0x14001bf44]
call qword [sym.imp.ucrtbased.dll_system]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x10]
call fcn.140011451
jmp 0x140012a00
lea rcx, [rbp - 0x20]
lea rdx, [0x14001bc40]
call fcn.140011406
mov rcx, qword [rbp + 0x3b8]
xor rcx, rbp
call fcn.14001124e
lea rsp, [rbp + 0x3c8]
pop rdi
pop rbp
ret
Function at 0x1400112a8
Capabilities:
Terminate process

Disassembly:
jmp 0x140014ae0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001134d
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015e30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015e50
xor al, al
jmp 0x140015ed1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015e63
xor al, al
jmp 0x140015ed1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140015e8d
xor al, al
jmp 0x140015ed1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015ea1
xor al, al
jmp 0x140015ed1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015eb3
xor al, al
jmp 0x140015ed1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015ecf
xor al, al
jmp 0x140015ed1
mov al, 1
add rsp, 0x38
ret

Function at 0x140011361
Capabilities:
Execute command

Disassembly:
jmp 0x140013010
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x1400250f4]
call fcn.14001147e
lea rcx, [0x14001bf44]
call qword [sym.imp.ucrtbased.dll_system]
lea rdx, [0x140011041]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [0x14001bfd8]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001109b
lea rdx, [0x140011041]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x258
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbp + 0xe0]
call fcn.140011497
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x140011497
Capabilities:
Read file on windows

Disassembly:
jmp 0x1400125c0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x8a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3e8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x398], rax
lea rcx, [0x1400250f4]
call fcn.14001147e
mov qword [rbp + 8], 0
lea r8, [0x14001c040]
lea rdx, str..._PlayerInfo_MapInfo.txt
lea rcx, [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fopen_s]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x14001269b
lea rax, [rbp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x1b9
rep stosb byte [rdi], al
mov rax, qword [rbp + 0x3c0]
mov r9, qword [rbp + 8]
mov r8d, 0x1b9
mov edx, 1
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_fread]
lea rdx, [0x14001c068]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001109b
lea rdx, [0x140011041]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
jmp 0x1400126be
lea rdx, [0x14001c080]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001109b
lea rdx, [0x140011041]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, [rbp - 0x20]
lea rdx, [0x14001bd10]
call fcn.140011406
mov rcx, qword [rbp + 0x398]
xor rcx, rbp
call fcn.14001124e
lea rsp, [rbp + 0x3a8]
pop rdi
pop rbp
ret