joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021f30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x14004a300]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
mov ebp, 0x210
mov r8d, ebp
lea rcx, [rsp + 0x20]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, ebp
lea rcx, [rsp + 0x230]
xor edx, edx
call sub.msvcrt.dll_memset
mov esi, 0x104
lea rdx, [rsp + 0x20]
mov r8d, esi
lea rcx, str._SystemRoot_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, esi
lea rcx, [rsp + 0x20]
xor edi, edi
cmp word [rcx], di
je 0x140021fb4
add rcx, 2
sub rax, 1
jne 0x140021fa5
test rax, rax
je 0x140021fc1
mov rcx, rsi
sub rcx, rax
jmp 0x140021fc4
mov rcx, rdi
neg rax
sbb r9, r9
and r9, rcx
cmp r9, 1
jb 0x14002202e
mov eax, 0x5c
cmp word [rsp + r9*2 + 0x1e], ax
je 0x140022000
cmp r9, rsi
jae 0x14002202e
mov word [rsp + r9*2 + 0x20], ax
lea rax, [r9*2 + 2]
cmp rax, rbp
jae 0x140022059
mov word [rsp + rax + 0x20], di
inc r9
mov r8, rbx
lea rcx, [rsp + 0x230]
mov rdx, rsi
call fcn.1400013cc
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14002202e
mov al, 1
jmp 0x140022030
xor al, al
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14002c700
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14002cb28
int3
Function at 0x1400220f8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rbp
mov rbp, rdx
movups xmm0, xmmword [rcx]
movdqu xmmword [rax - 0x28], xmm0
xor edx, edx
lea rcx, [rax - 0x28]
call fcn.1400224a0
mov rdi, rax
lea rax, [0x14003f0a8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdi
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor r14d, r14d
cmp eax, 0xffffffff
jne 0x140022175
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov r8d, eax
lea rdx, str.GetFileSize_failed_with_error__d._n
call fcn.14001aa8c
mov edx, esi
shr edx, 1
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rbx, rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x80]
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400221cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov r8d, eax
lea rdx, str.ReadFile_failed_with_error__d._n
call fcn.14001aa8c
mov rax, rsi
shr rax, 1
mov word [rbx + rax*2], r14w
mov rdx, rbp
mov rcx, rbx
call sub.VSSAPI.DLL_CreateVssExamineWriterMetadataInternal
mov esi, eax
test eax, eax
je 0x140022226
mov ecx, eax
call fcn.14001ab20
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
lea rax, str.CreateVssExamineWriterMetadata_bstrXML__ppMetadataSaved_
mov qword [rsp + 0x20], rax
mov r9d, 0x95b
lea r8, str.base_stor_vss_tests_betest_saverest.cpp
lea rdx, str._nError_in__S__d_:__n_t__Call__S_not_succeeded.__n_t__Error_code__0x_08lx._Error_description___s_n
mov ecx, 1
call fcn.14001a9f8
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
cmp rdi, 0xffffffffffffffff
je 0x14002223f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140022610
Capabilities:
Query service status
Start service

Disassembly:
cmp byte [0x14004b35a], 0
je 0x140022629
mov rdx, qword [rcx + 0x50]
lea rcx, str.______Run_adamutil.exe_manually__and_then_restart_the__s_service
jmp sub.msvcrt.dll_wprintf
mov rcx, qword [rcx + 0x50]
jmp fcn.140028524
Function at 0x1400229e8
Capabilities:
Create directory

Disassembly:
test rcx, rcx
je 0x140022b16
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov rbx, rcx
or rax, 0xffffffffffffffff
mov rcx, rax
inc rcx
cmp word [rbx + rcx*2], r15w
jne 0x140022a16
test rcx, rcx
je 0x140022afe
inc rax
cmp word [rbx + rax*2], r15w
jne 0x140022a29
mov rcx, rbx
lea rsi, [rax*2 + 2]
mov ebp, r15d
call fcn.140021e84
mov r14d, eax
test eax, eax
je 0x140022afe
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140022a73
lea rdx, str.Out_of_memory_
mov ecx, 0x8007000e
call fcn.14001aa8c
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_memcpy
lea rbx, [rdi + r14*2]
movzx eax, word [rbx]
test ax, ax
je 0x140022af5
mov esi, 0x5c
movzx ecx, ax
cmp cx, si
je 0x140022aae
add rbx, 2
movzx ecx, word [rbx]
movzx eax, cx
test cx, cx
jne 0x140022a95
cmp ax, si
jne 0x140022ab7
mov word [rbx], r15w
mov ebp, 1
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140022ad3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140022af5
test ebp, ebp
je 0x140022ae1
mov word [rbx], si
mov ebp, r15d
mov eax, esi
jmp 0x140022ae4
movzx eax, word [rbx]
cmp ax, si
jne 0x140022af0
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x140022a92
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140022b20
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14004a300]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r15, r9
mov r13, r8
mov r12, rdx
mov r14, rcx
mov rcx, rdx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x20], rax
lea rdx, str..
or rax, 0xffffffffffffffff
xor edi, edi
inc rax
cmp word [rdx + rax*2], di
jne 0x140022b75
mov r8d, eax
lea rcx, [rsp + 0x20]
call fcn.14000a054
lea rdx, [rsp + 0x40]
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
jne 0x140022bda
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov al, 1
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14002c700
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
test byte [rsp + 0x40], 0x10
je 0x140022d76
movzx eax, word [rsp + 0x6e]
cmp word [rsp + 0x6c], 0x2e
jne 0x140022c14
test ax, ax
je 0x140022d76
cmp word [rsp + 0x6c], 0x2e
jne 0x140022c14
cmp ax, 0x2e
jne 0x140022c14
cmp word [rsp + 0x70], di
je 0x140022d76
lea rdx, [0x14003bc08]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140022d76
lea rdx, str.DifferencedFilesBackup
lea rcx, [rsp + 0x6c]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140022d76
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rdx, [0x14003f0d0]
lea rcx, [rsp + 0x20]
call fcn.14000a054
lea rcx, [rsp + 0x6c]
or rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [rcx + rax*2], di
jne 0x140022c82
mov r8d, eax
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.14000a054
mov rcx, r13
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x28], rax
mov r8d, 1
lea rdx, [0x14003f0d0]
lea rcx, [rsp + 0x28]
call fcn.14000a054
lea rcx, [rsp + 0x6c]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], di
jne 0x140022cca
mov r8d, eax
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x28]
call fcn.14000a054
mov rdi, qword [rsp + 0x28]
mov rcx, rdi
call fcn.1400229e8
mov r9, r15
mov r8, rdi
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
mov rcx, r14
call fcn.140027f8c
test al, al
jne 0x140022d31
cmp byte [0x14004b35b], al
sete sil
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov al, sil
jmp 0x140022bb7
mov r9, r15
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.140022b20
test al, al
jne 0x140022d6b
cmp byte [0x14004b35b], al
sete sil
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov al, sil
jmp 0x140022bb7
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edi, edi
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140022bda
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
jmp 0x140022bac
Function at 0x140027f8c
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14004a300]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, r9
mov r12, r8
mov r15, rdx
mov rsi, rcx
mov rcx, rdx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x20], rax
lea rcx, [0x14003f0d0]
or rdi, 0xffffffffffffffff
mov rax, rdi
xor r13d, r13d
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140027fe5
mov r8d, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14000a054
test rbx, rbx
jne 0x140028009
mov eax, r13d
jmp 0x140028016
mov rax, rdi
inc rax
cmp word [rbx + rax*2], r13w
jne 0x14002800c
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14000a054
lea rdx, [rsp + 0x40]
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
mov qword [rsp + 0x30], rax
cmp rax, rdi
jne 0x140028074
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov al, 1
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14002c700
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
test byte [rsp + 0x40], 0x10
jne 0x1400281a0
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, r15
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rdx, [0x14003f0d0]
lea rcx, [rsp + 0x20]
call fcn.14000a054
lea rcx, [rsp + 0x6c]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r13w
jne 0x1400280c3
mov r8d, eax
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.14000a054
mov r9, qword [rsi + 0x88]
mov r8d, dword [rsi + 0x80]
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x28]
call fcn.1400287cc
test al, al
jne 0x14002812d
mov eax, dword [rsi + 0x98]
cmp eax, 4
je 0x14002812d
cmp dword [rsi + 0x58], 4
je 0x140028116
cmp eax, 2
jne 0x14002812d
mov r9, qword [rsi + 0x78]
mov r8d, dword [rsi + 0x70]
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x28]
call fcn.1400287cc
lea rcx, [rsp + 0x6c]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140028135
mov r8d, eax
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x28]
call fcn.14000a054
mov rdi, qword [rsp + 0x28]
mov r8, rdi
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
mov rcx, rsi
call fcn.140027c50
test al, al
jne 0x140028193
cmp byte [0x14004b35b], r13b
sete sil
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov al, sil
jmp 0x140028051
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
or rdi, 0xffffffffffffffff
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140028074
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
jmp 0x140028046
Function at 0x140028524
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14004a300]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
mov esi, 0x80070000
test rax, rax
jne 0x14002857e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
lea rdx, str.OpenSCManager
or ecx, esi
test eax, eax
cmovle ecx, eax
call fcn.14001aa8c
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x1400285b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
lea rdx, str.OpenService
or ecx, esi
test eax, eax
cmovle ecx, eax
call fcn.14001aa8c
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400285ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
lea rdx, str.StartService
or ecx, esi
test eax, eax
cmovle ecx, eax
call fcn.14001aa8c
jmp 0x1400285ee
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14002861c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
lea rdx, [0x14003c210]
or ecx, esi
test eax, eax
cmovle ecx, eax
call fcn.14001aa8c
cmp dword [rsp + 0x24], 2
je 0x1400285e4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002c700
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140028658
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14004a300]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
mov esi, 0x80070000
test rax, rax
jne 0x1400286b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
lea rdx, str.OpenSCManager
or ecx, esi
test eax, eax
cmovle ecx, eax
call fcn.14001aa8c
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x1400286f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
lea rdx, str.OpenService
or ecx, esi
test eax, eax
cmovle ecx, eax
call fcn.14001aa8c
jmp 0x1400286f4
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140028722
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
lea rdx, [0x14003c210]
or ecx, esi
test eax, eax
cmovle ecx, eax
call fcn.14001aa8c
cmp dword [rsp + 0x24], 1
je 0x1400287a7
cmp dword [rsp + 0x24], 3
je 0x1400286ea
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14002878e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x14003c238]
jmp 0x14002877f
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14002878e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x14003c210]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
call fcn.14001aa8c
cmp dword [rsp + 0x24], 3
je 0x140028756
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002c700
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14002c1d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14004c2c8], rbx
je 0x14002c21c
cmp rax, rbx
jne 0x14002c20f
mov ebx, 1
mov esi, ebx
jmp 0x14002c221
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002c1f4
mov ebx, 1
mov eax, dword [0x14004c2d0]
cmp eax, ebx
jne 0x14002c237
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14002c29c
mov eax, dword [0x14004c2d0]
test eax, eax
jne 0x14002c296
mov dword [0x14004c2d0], ebx
lea r15, [0x14002f640]
lea rdi, [0x14002f628]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x14002c288
test eax, eax
jne 0x14002c28c
cmp qword [rdi], 0
je 0x14002c27d
mov rax, qword [rdi]
mov rcx, qword [0x14002f5e0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14002c25e
test eax, eax
je 0x14002c29c
mov eax, 0xff
jmp 0x14002c378
mov dword [0x14004b368], ebx
mov eax, dword [0x14004c2d0]
cmp eax, ebx
jne 0x14002c2c3
lea rdx, [0x14002f620]
lea rcx, [0x14002f5e8]
call sub.msvcrt.dll__initterm
mov dword [0x14004c2d0], 2
test esi, esi
jne 0x14002c2d0
xor eax, eax
xchg qword [0x14004c2c8], rax
cmp qword [0x14004c2e8], 0
je 0x14002c304
lea rcx, [0x14004c2e8]
call fcn.14002cdb0
test eax, eax
je 0x14002c304
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14004c2e8]
mov r9, qword [0x14002f5e0]
call r9
mov r8, qword [0x14004b380]
mov rdx, qword [0x14004b378]
mov ecx, dword [0x14004b370]
call fcn.140009c48
mov dword [0x14004b364], eax
cmp dword [0x14004b388], 0
jne 0x14002c334
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14004b368], 0
jne 0x14002c349
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14004b364]
jmp 0x14002c378
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1401c4000
add rsp, 0x28
jmp 0x14002c1d0

Function at 0x14002c7b8
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002c7c4
push rbx
sub rsp, 0x540
mov rax, qword [0x14004a300]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14002c841
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14002c861
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14002c700
add rsp, 0x540
pop rbx
ret
Function at 0x14002c7c4
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002c7c4
push rbx
sub rsp, 0x540
mov rax, qword [0x14004a300]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14002c841
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14002c861
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14002c700
add rsp, 0x540
pop rbx
ret

Function at 0x14002ccac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002ccf8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ccf0
cmp dword [rcx + 0x3c], edx
jl 0x14002ccf0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14002ccf0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14002ccf8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400095b0
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x490], rbx
mov rax, qword [0x140084010]
xor rax, rbp
mov qword [rbp + 0x440], rax
mov rdi, rdx
mov dword [rbp], 0x438
mov edx, dword [rcx + 0x10]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
xor r14d, r14d
movabs r15, 0xffffffffffffff0
lea rcx, [rbp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140009620
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x14000969a
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14000964b
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140067130
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x14000969a
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], r14
xor edx, edx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
lea r8, [rbp + 0x30]
mov r9d, 0xffffffff
mov byte [rbx], r14b
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, r14
jmp 0x14000969d
mov rbx, r14
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x1400096aa
mov rdx, qword [rdi]
sub rdx, rbx
nop dword [rax]
movzx ecx, byte [rbx]
movzx eax, byte [rbx + rdx]
sub ecx, eax
jne 0x1400096c2
inc rbx
test eax, eax
jne 0x1400096b0
test ecx, ecx
mov rcx, rsi
je 0x140009722
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140009611
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14000971e
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140009719
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140009799
mov rcx, r8
call fcn.140066524
xor eax, eax
jmp 0x140009765
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
mov rbx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x140009762
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14000975d
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140009799
mov rcx, r8
call fcn.140066524
mov rax, rbx
mov byte [rdi], r14b
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r14
mov rcx, qword [rbp + 0x440]
xor rcx, rbp
call fcn.140065f10
mov rbx, qword [rbp + 0x490]
lea rsp, [rbp + 0x450]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3