joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800054c0
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0xe8
mov rax, qword [0x180045020]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rax, rdx
mov rsi, r8
mov r14, rcx
lea rdx, [rsp + 0x60]
mov rcx, rax
mov r8d, 0x32
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x1800056ae
lea r8, [rsp + 0x60]
mov qword [rsp + 0xe0], rdi
lea rdx, str.SELECT__FROM_Win32_NetworkAdapterConfiguration_WHERE_SettingID____ls_
lea rcx, [rsp + 0x58]
call fcn.180004a30
mov rax, qword [r14]
lea rdx, [0x180017df8]
mov rbx, qword [0x1800193f0]
lea rcx, [rsp + 0x48]
xor ebp, ebp
mov qword [rsp + 0x50], rbp
mov rdi, qword [rax + 0xa0]
mov rax, qword [rsp + 0x58]
test rax, rax
lea r8, [rbp - 1]
cmovne rbx, rax
call fcn.180008fc0
mov rdx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov r10, qword [0x1800193f0]
lea r9d, [rbp + 0x30]
test rdx, rdx
mov qword [rsp + 0x28], rax
mov r8, rbx
mov qword [rsp + 0x20], rbp
cmovne r10, rdx
mov rcx, r14
mov rdx, r10
mov rax, rdi
call qword [case.0x1800127d5.0]
lea rcx, [rsp + 0x48]
mov ebx, eax
call fcn.180008d40
mov rdi, qword [rsp + 0xe0]
test ebx, ebx
js 0x180005694
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180005677
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x40], ebp
lea r9, [rsp + 0x48]
mov rax, qword [rcx]
lea r8d, [rbp + 1]
mov qword [rsp + 0x20], rdx
lea edx, [rbp - 1]
mov rax, qword [rax + 0x20]
call qword [case.0x1800127d5.0]
mov r9d, dword [rsp + 0x40]
lea rcx, str.netIfWinFindAdapterClassById:_IEnumWbemClassObject::Next____hr0x_x_pclsObj_p_uReturn_u_42_u_n
mov r8, qword [rsp + 0x48]
mov edx, eax
mov ebx, eax
mov dword [rsp + 0x20], 0x2a
call fcn.180004ad0
test ebx, ebx
js 0x180005659
cmp dword [rsp + 0x40], ebp
je 0x180005654
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x180005654
mov rcx, qword [rsp + 0x50]
mov qword [rsi], rax
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1800127d5.0]
mov rdx, qword [rsi]
lea rcx, str.netIfWinFindAdapterClassById:_S_OK_and__p_n
call fcn.180004ad0
lea rcx, [rsp + 0x58]
call fcn.180008d40
xor eax, eax
jmp 0x1800056f5
mov ebx, 0x80004005
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1800127d5.0]
lea rcx, [rsp + 0x58]
call fcn.180008d40
jmp 0x1800056e2
lea rcx, str.ExecQuery_returned_no_enumerator_n
call fcn.180004ad0
lea rcx, [rsp + 0x58]
mov ebx, 0x80004005
call fcn.180008d40
jmp 0x1800056e2
mov edx, ebx
lea rcx, str.ExecQuery_failed__0x_x__n
call fcn.180004ad0
lea rcx, [rsp + 0x58]
call fcn.180008d40
jmp 0x1800056e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1800056bc
mov ecx, eax
jmp 0x1800056c5
movzx ecx, ax
or ecx, 0x80070000
test ecx, ecx
mov ebx, 0x80004005
mov edx, eax
cmovns ecx, ebx
mov ebx, ecx
mov r8d, ecx
lea rcx, str.StringFromGUID2_failed_winEr_u__hr0x_x_n
call fcn.180004ad0
mov r8, qword [rsi]
lea rcx, str.netIfWinFindAdapterClassById:_0x_x_and__p_n
mov edx, ebx
call fcn.180004ad0
mov eax, ebx
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.180001140
add rsp, 0xe8
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x180006dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
sub rsp, 0x48
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
jne 0x180006dee
mov eax, 0x80070057
add rsp, 0x48
pop rsi
pop rbx
ret
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.NetLuidIndex
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x70], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x180006ec6
mov dword [rsp + 0x78], eax
lea r9, [rsp + 0x70]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x28], rax
lea rdx, str.IfType
lea rax, [rsp + 0x78]
mov dword [rsp + 0x70], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x180006ec6
xor edx, edx
lea r8d, [rax + 8]
mov rcx, rbx
call sym.VBoxInstallHelper.dll_nocrt_memset
movzx eax, word [rsp + 0x78]
mov rdi, qword [rsp + 0x40]
mov word [rbx + 6], ax
movabs rax, 0xffff000000ffffff
and qword [rbx], rax
mov eax, dword [rsp + 0x30]
and eax, 0xffffff
shl rax, 0x18
or qword [rbx], rax
xor eax, eax
add rsp, 0x48
pop rsi
pop rbx
ret
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
call sym.VBoxInstallHelper.dll_nocrt_memset
test edi, edi
jle 0x180006ee1
movzx edi, di
or edi, 0x80070000
mov eax, edi
mov rdi, qword [rsp + 0x40]
add rsp, 0x48
pop rsi
pop rbx
ret
Function at 0x1800081e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x40
mov edx, 1
mov rbx, rcx
call fcn.180007290
test eax, eax
js 0x180008334
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov r9d, 3
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlNetwork
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800082ee
mov rcx, qword [rsp + 0x30]
lea rdx, str.MaxNumFilters
mov dword [rsp + 0x60], eax
xor r9d, r9d
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800082e1
cmp dword [rsp + 0x68], 4
jne 0x1800082e1
cmp dword [rsp + 0x60], 8
jne 0x1800082e1
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
lea rdx, str.MaxNumFilters
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x60], MsiDatabaseExportA
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1800082d3
lea rcx, str.Adjusted_the_installed_filter_limit_to_14..._n
call fcn.180004ad0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1800082fc
mov edx, eax
lea rcx, str.Failed_to_set_MaxNumFilters__error_code__d_n
call fcn.180004ad0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1800082fc
mov edx, eax
lea rcx, str.Failed_to_open_network_key__error_code__d_n
call fcn.180004ad0
lea rcx, str.NetLwf_will_be_installed_..._n
call fcn.180004ad0
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], 0
lea r8, [0x180014510]
mov dword [rsp + 0x20], 1
lea rdx, str.oracle_VBoxNetLwf
mov rcx, rbx
call fcn.180006ef0
add rsp, 0x40
pop rbx
ret
Function at 0x18000a500
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x4b0
mov rax, qword [0x180045020]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rsi, rdx
mov rdi, rcx
mov edx, 0xf6
lea rcx, [rsp + 0x290]
mov ebp, r8d
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov ebx, eax
lea r9d, [rbx - 1]
cmp r9d, 0xf4
ja 0x18000a6ed
mov edx, 0x104
lea rcx, [rsp + 0x290]
sub rdx, rbx
lea rcx, [rcx + rbx*2]
lea r8, str.infoem.inf
call fcn.18000af90
xor ebx, ebx
mov qword [rsp + 0x20], rdi
lea rcx, str.VBoxDrvCfgInfUninstallAllF:_Calling_vboxDrvCfgEnumFiles_wszInfDirPath__vboxDrvCfgInfEnumerationCallback__Context_
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x30], ebp
call fcn.18000a240
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x250
call sym.VBoxInstallHelper.dll_nocrt_memset
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000a699
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x6c]
call fcn.1800098c0
test al, al
je 0x18000a65e
nop dword [rax]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x250
call sym.VBoxInstallHelper.dll_nocrt_memset
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x18000a619
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x6c]
call fcn.1800098c0
test al, al
jne 0x18000a5e0
jmp 0x18000a65e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x18000a65e
mov edx, eax
lea rcx, str.vboxDrvCfgEnumFiles:_FindNextFile_fail_dwErr_u_n
call fcn.18000a240
mov rax, qword [0x1800451b0]
test rax, rax
je 0x18000a64d
mov rcx, qword [0x1800451b8]
call qword [case.0x1800127d5.0]
test edi, edi
jg 0x18000a655
mov ebx, edi
jmp 0x18000a65e
movzx ebx, di
or ebx, 0x80070000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, qword [0x1800451b0]
test ebx, ebx
je 0x18000a6e7
test rax, rax
je 0x18000a684
mov rcx, qword [0x1800451b8]
call qword [case.0x1800127d5.0]
mov edx, ebx
lea rcx, str.VBoxDrvCfgInfUninstallAllF:_vboxDrvCfgEnumFiles_failed__hrc0x_x_n
call fcn.18000a240
mov eax, ebx
jmp 0x18000a722
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x18000a667
mov edx, eax
lea rcx, str.vboxDrvCfgEnumFiles:_FindFirstFile_fail_dwErr_u_n
call fcn.18000a240
mov rax, qword [0x1800451b0]
test rax, rax
je 0x18000a6d4
mov rcx, qword [0x1800451b8]
call qword [case.0x1800127d5.0]
mov rax, qword [0x1800451b0]
test edi, edi
jg 0x18000a6dc
mov ebx, edi
jmp 0x18000a66e
movzx ebx, di
or ebx, 0x80070000
jmp 0x18000a66e
mov eax, dword [rsp + 0x34]
jmp 0x18000a722
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, ebx
lea rcx, str.VBoxDrvCfgInfUninstallAllF:_GetSystemWindowsDirectory_failed__cwcWindows_u_lasterr_u_n
mov r8d, eax
call fcn.18000a240
mov rax, qword [0x1800451b0]
test rax, rax
je 0x18000a71d
mov rcx, qword [0x1800451b8]
call qword [case.0x1800127d5.0]
mov eax, 0x80004005
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.180001140
mov rbx, qword [rsp + 0x4e8]
add rsp, 0x4b0
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000e430
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x180046bb8]
mov rdi, rdx
mov ebx, ecx
test rax, rax
je 0x18000e461
mov ecx, SafeArrayCopy
call qword [case.0x1800127d5.0]
test eax, eax
je 0x18000e461
mov ecx, ebx
int 0x29
mov rax, qword [0x180046ba0]
test rax, rax
je 0x18000e478
call qword [case.0x1800127d5.0]
test eax, eax
je 0x18000e478
int3
mov rax, qword [0x180046ba8]
test rax, rax
je 0x18000e523
cmp qword [0x180046bb0], 0
je 0x18000e523
xor ecx, ecx
call qword [case.0x1800127d5.0]
mov rax, qword [rdi + 0xf8]
lea rcx, [rsp + 0x20]
xorps xmm0, xmm0
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0xc0000409
mov qword [rsp + 0x20], rax
mov rax, qword [0x180046bb0]
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x50], rbx
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x28], rdi
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0xb8], xmm0
call qword [case.0x1800127d5.0]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x18000e523
Function at 0x180011fb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x180045020]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rcx
mov esi, r8d
mov ecx, 0xfffffff4
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor ebp, ebp
lea r9, [rsp + 0x40]
mov rcx, rax
mov qword [rsp + 0x20], rbp
mov r8d, edi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9d, [rbp + 0xa]
mov dword [rsp + 0x30], 0x2010
mov dword [rsp + 0x28], ebp
lea rcx, [rsp + 0x50]
mov r8d, esi
mov dword [rsp + 0x20], ebp
lea edx, [r9 + 0x76]
call fcn.180012e30
mov ecx, 0xfffffff4
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov rcx, rax
lea rdx, [rsp + 0x50]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov rcx, rax
lea r8d, [rbp + 2]
lea rdx, [0x180021d7c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.180001140
mov rbx, qword [rsp + 0x118]
add rsp, 0xe0
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800120a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800120f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0xe0
mov rax, qword [0x180045020]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov dword [rsp + 0x30], 0x4080
mov r8, rcx
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
lea edx, [r9 + 0x70]
call fcn.180012f00
mov ecx, 0xfffffff4
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, [rsp + 0x50]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.180001140
add rsp, 0xe0
pop rbx
ret
Function at 0x180012180
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xe0
mov rax, qword [0x180045020]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rdi, rcx
cmp rcx, 0x1000
jb 0x1800121df
movabs rax, 0xffff800000000000
test rax, rcx
jne 0x1800121df
xor ebx, ebx
cmp byte [rcx], bl
je 0x1800121c9
inc rbx
cmp byte [rcx + rbx], 0
jne 0x1800121c0
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r8d, ebx
mov rdx, rdi
jmp 0x180012282
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, str._pszString
mov r8d, reloc.WS2_32.dll_inet_addr
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov dword [rsp + 0x30], 0x4080
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x50]
mov r8, rdi
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
lea edx, [r9 + 0x70]
call fcn.180012f00
mov ecx, 0xfffffff4
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, [rsp + 0x50]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r8d, 1
lea rdx, [0x18001a158]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.180001140
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rdi
ret

Function at 0x1800122c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x180045020]
xor rax, rsp
mov qword [rsp + 0x100], rax
xor ebp, ebp
mov dword [rsp + 0x30], 0x2000
mov esi, ecx
mov dword [rsp + 0x28], ebp
mov r8d, ecx
mov dword [rsp + 0x20], ebp
mov edi, 0xa8
lea rcx, [rsp + 0x50]
lea r9d, [rbp + 0xa]
mov edx, edi
call fcn.180012e30
mov dword [rsp + 0x30], 0x2008
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], ebp
lea r9d, [rbp + 0x10]
mov r8d, esi
mov dword [rsp + 0x20], ebp
lea rbx, [rax + 2]
mov word [rsp + rax + 0x50], 0x2820
sub rdi, rbx
add rcx, rbx
mov rdx, rdi
call fcn.180012e30
add rax, rbx
mov ecx, 0xfffffff4
mov byte [rsp + rax + 0x50], 0x29
lea ebx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov rcx, rax
lea rdx, [rsp + 0x50]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.180001140
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800123b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0xe0
mov rax, qword [0x180045020]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov dword [rsp + 0x30], 0x2008
mov r8d, ecx
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x20], 0
lea edx, [r9 + 0x70]
call fcn.180012e30
mov ecx, 0xfffffff4
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, [rsp + 0x50]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.180001140
add rsp, 0xe0
pop rbx
ret
Function at 0x140001da0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140001dc8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140001dee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001df0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001e49
test ecx, ecx
jle 0x140001e29
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140001e49
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001e49
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140001e70
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140001e92
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140001ea8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140001ec4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001ec6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001f02
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140001f9e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001f3d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140001f7e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140001f9e
cmp rbx, rax
ja 0x140001f50
test rbx, rbx
je 0x140001f9e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140002400
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000242d
xor eax, eax
jmp 0x140002599
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002467
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002467
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002599
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000258c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400024aa
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 0x1400024d5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002591
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002544
sub eax, 1
je 0x140002544
cmp eax, 2
jne 0x14000258c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002591
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002572
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000258c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002591
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003270
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400027a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002873
cmp byte [rcx + 0x71], 0
je 0x140002873
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000286f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002834
sub eax, 1
je 0x140002838
cmp eax, 2
jne 0x14000286f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003270
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002866
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000286f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000281c
xor al, al
jmp 0x14000281c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003270
add rsp, 0x60
pop rbx
ret

Function at 0x140003bf0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003c3a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003c3a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003c3a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003c3a
cmp dword [rcx + 0x84], 0xe
jbe 0x140003c3a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003c3c
xor al, al
add rsp, 0x28
ret