joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800017f0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
xor ebx, ebx
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x60], ebx
test ecx, ecx
je 0x180001819
mov dword [0x1800a4260], 1
mov dword [rsp + 0x60], 1
jmp 0x180001827
mov dword [0x1800a4260], 2
mov dword [rsp + 0x60], ebx
lea rax, [rsp + 0x68]
lea rdx, str.SoftwareAE_Protection
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x18000185a
cmp eax, 0x491
jne 0x180001894
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x68]
lea rdx, str.SoftwareAE_Protection
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1800018d5
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800018d5
lea rax, [rsp + 0x60]
lea rdx, str.LogStatus
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x50
pop rbx
ret

Function at 0x1800018e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov eax, dword [0x1800a4260]
mov qword [rsp + 0x58], 0
cmp eax, 3
jne 0x18000198f
lea rax, [rsp + 0x58]
lea rdx, str.SoftwareAE_Protection
mov r9d, 0x101
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [0x1800a4260], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000198f
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x50]
lea rdx, str.LogStatus
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x40], 0
jbe 0x180001984
mov dword [0x1800a4260], 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1800a4260]
add rsp, 0x38
ret
Function at 0x1800019d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov ecx, 0x1000a
lea esi, [rax + 0x1e]
mov qword [rsp + 0x68], rbp
call fcn.180053ad4
mov ecx, 0x2000a
mov rdi, rax
call fcn.180053ad4
mov rbx, rax
test rdi, rdi
je 0x180001ae8
test rax, rax
je 0x180001ae8
mov r9, qword [r14]
mov rcx, qword [0x1800a7160]
lea r8, str.ExceptionAddress:__p___ExceptionCode:__X___NumberParameters:__d___ModuleBaseAddress:__p
mov qword [rsp + 0x30], rcx
mov ecx, dword [r9 + 0x18]
mov edx, 0xffff
mov dword [rsp + 0x28], ecx
mov ecx, dword [r9]
mov r9, qword [r9 + 0x10]
mov dword [rsp + 0x20], ecx
mov rcx, rax
call fcn.180053a4c
test eax, eax
jle 0x180001ad1
lea rdx, [rbp - 2]
mov rcx, rbx
mov word [rbx + 0x1fffe], bp
call fcn.180053398
lea rcx, [rsp + 0x68]
mov r9, rbx
lea r8, [rax + 1]
mov rdx, rdi
mov qword [rsp + 0x20], 0xffffffffffffffff
call fcn.180054798
test eax, eax
je 0x180001aaa
lea rcx, str.wcstombs_s_error_in_log_file:__s____d_n
mov r8d, esi
mov rdx, rbx
call fcn.180053f50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, 0x49
lea r9, str.MbaeException
lea rcx, str.....mbae_commonMbaeLog.cpp
lea r8d, [rdx - 0x48]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
call fcn.180001b40
jmp 0x180001b01
lea rcx, str.Error__d_in_swprintf_s_n
mov edx, esi
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x180001afb
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rdi, rdi
je 0x180001b0e
mov rcx, rdi
call fcn.180053a94
test rbx, rbx
je 0x180001b1b
mov rcx, rbx
call fcn.180053a94
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov eax, 1
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x180002c70
Capabilities:
Create directory
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1800a2de8]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea r8, [0x1800a6d20]
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.180054b48
mov edi, 0x5c
lea rcx, [rsp + 0x36]
mov edx, edi
call fcn.18005399c
mov rbx, rax
test rax, rax
je 0x180002d0b
xor esi, esi
nop word [rax + rax]
lea rcx, [rsp + 0x30]
xor edx, edx
mov word [rbx], si
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180002cf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180002d79
lea rcx, [rbx + 2]
mov edx, edi
mov word [rbx], di
call fcn.18005399c
mov rbx, rax
test rax, rax
jne 0x180002cd0
lea rcx, [0x1800a6d20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180002e35
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180002e35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x1000a
lea edi, [rax + 0x1e]
call fcn.180053ad4
mov rbx, rax
test rax, rax
je 0x180002d9c
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180002e0d
mov edx, 0x3c4
jmp 0x180002dd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x1000a
lea edi, [rax + 0x1e]
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180002dba
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [rsi + 0x1e]
jmp 0x180002e37
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180002e0d
mov edx, 0x3bf
lea r9, str.MbaeCreateDirectory
lea rcx, str.....mbae_commonMbaeLog.cpp
mov r8d, 1
mov dword [rsp + 0x28], edi
mov byte [rbx + 0xffff], 0
mov qword [rsp + 0x20], rbx
call fcn.180001b40
mov rcx, rbx
call fcn.180053a94
lea eax, [rsi + 0x1e]
jmp 0x180002e37
lea rcx, str.Error__d_in_swprintf_s_n
mov edx, edi
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call fcn.180053a94
lea eax, [rsi + 0x1e]
jmp 0x180002e37
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180052be0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180002e60
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1800a2de8]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [rsp + 0x30]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x180002f64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x1000a
lea edi, [rax + 0x1e]
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180002ee3
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [rsi + 0x1e]
jmp 0x1800030aa
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180002f39
mov edx, 0x3d1
lea r9, str.MbaeSetBinaryPath
lea rcx, str.....mbae_commonMbaeLog.cpp
mov r8d, 1
mov dword [rsp + 0x28], edi
mov byte [rbx + 0xffff], 0
mov qword [rsp + 0x20], rbx
call fcn.180001b40
mov rcx, rbx
call fcn.180053a94
lea eax, [rsi + 0x1e]
jmp 0x1800030aa
lea rcx, str.Error__d_in_swprintf_s_n
mov edx, edi
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call fcn.180053a94
lea eax, [rsi + 0x1e]
jmp 0x1800030aa
lea r8, [0x1800a7170]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x180002fcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x1000a
lea edi, [rax + 0x1e]
call fcn.180053ad4
mov rbx, rax
test rax, rax
je 0x180002ec2
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180002f39
mov edx, 0x3d5
jmp 0x180002f00
lea rcx, [0x1800a7170]
mov edx, 0x5c
call fcn.1800540e8
test rax, rax
jne 0x1800030a2
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x18000301c
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [rbx + 3]
jmp 0x1800030aa
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180003075
lea r9, str.MbaeSetBinaryPath
lea rcx, str.....mbae_commonMbaeLog.cpp
mov edx, 0x3d9
mov r8d, 1
mov dword [rsp + 0x28], 3
mov byte [rbx + 0xffff], 0
mov qword [rsp + 0x20], rbx
call fcn.180001b40
mov rcx, rbx
call fcn.180053a94
mov eax, 3
jmp 0x1800030aa
lea rcx, str.Error__d_in_swprintf_s_n
mov edx, 3
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call fcn.180053a94
mov eax, 3
jmp 0x1800030aa
xor ecx, ecx
mov word [rax + 2], cx
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180052be0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1800030d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
lea r8, [rsp + 0x50]
mov edx, 0x64
xor ecx, ecx
mov qword [rsp + 0x50], 0
call qword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
mov edi, eax
test eax, eax
je 0x1800031dc
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x180003147
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x1800031a7
lea r9, str.GetWindowsVersion
lea rcx, str.....mbae_commonMbaeLog.cpp
mov edx, 0x496
mov r8d, 1
mov dword [rsp + 0x28], edi
mov byte [rbx + 0xffff], 0
mov qword [rsp + 0x20], rbx
call fcn.180001b40
mov rcx, rbx
call fcn.180053a94
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rcx, str.Error__d_in_swprintf_s_n
mov edx, edi
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call fcn.180053a94
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + 0x18]
mov dword [rsi], eax
mov eax, dword [rcx + 0x1c]
mov dword [rbx], eax
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x180003210
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x1800a2de8]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rcx, [rsp + 0x242]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x240], bx
call fcn.180056c20
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bx
call fcn.180056c20
mov ebx, 1
lea rdi, [0x1800887e8]
lea r9, str.mbae_default.log
lea r8, [0x1800a6d20]
lea rdx, str._s_s__d._s
lea rcx, [rsp + 0x240]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], ebx
call fcn.180003d50
lea rcx, [rsp + 0x240]
xor edx, edx
call fcn.1800542c0
cmp eax, 0xffffffff
je 0x1800032b9
inc ebx
cmp ebx, 1
jbe 0x180003271
jmp 0x1800032be
cmp ebx, 1
jbe 0x180003300
lea r9, str.mbae_default.log
lea r8, [0x1800a6d20]
lea rdx, str._s_s__d._s
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 1
call fcn.180003d50
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop word [rax + rax]
lea r9, str.mbae_default.log
lea r8, [0x1800a6d20]
lea rdx, [0x180088bf0]
lea rcx, [rsp + 0x240]
call fcn.180003d50
lea r9, str.mbae_default.log
lea r8, [0x1800a6d20]
lea rdx, str._s_s__d._s
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 1
call fcn.180003d50
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.180052be0
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
Function at 0x180003de0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebp, dword [rcx]
mov rdi, rcx
xor esi, esi
mov dword [rcx], esi
xor ecx, ecx
mov ebx, edx
call fcn.180054bb4
sub eax, dword [rdi + 4]
cmp eax, 5
jbe 0x180003e12
xor eax, eax
jmp 0x180003e5d
or r8d, 0xffffffff
mov r9, rdi
test ebx, ebx
je 0x180003e4f
lea r10, [0x180087dc0]
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [r9]
mov eax, r8d
lea r9, [r9 + 1]
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r8d, dword [r10 + rdx*4]
xor r8d, eax
dec ebx
jne 0x180003e30
not r8d
mov dword [rdi], ebp
cmp r8d, ebp
sete sil
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180006f70
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub rsp, 0x188
mov rax, qword [0x1800a2de8]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x11c
call fcn.180056c20
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180007212
xor edx, edx
lea ecx, [rdx + 0xa]
call fcn.180006eb0
test eax, eax
je 0x180006ff1
cmp byte [rsp + 0x16a], 1
mov eax, 0x8000
mov ecx, 0x4000
cmove eax, ecx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180052be0
add rsp, 0x188
ret
mov edx, 3
lea ecx, [rdx + 3]
call fcn.180006eb0
test eax, eax
je 0x18000702f
cmp byte [rsp + 0x16a], 1
mov eax, 0x2000
mov ecx, 0x1000
cmove eax, ecx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180052be0
add rsp, 0x188
ret
mov eax, dword [rsp + 0x54]
cmp eax, 6
jne 0x1800070d9
mov eax, dword [rsp + 0x58]
cmp eax, 2
jne 0x180007072
cmp byte [rsp + 0x16a], 1
mov eax, 0x800
mov ecx, 0x400
cmove eax, ecx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180052be0
add rsp, 0x188
ret
cmp eax, 1
jne 0x1800070a4
cmp byte [rsp + 0x16a], 1
mov eax, 0x200
mov ecx, 0x100
cmove eax, ecx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180052be0
add rsp, 0x188
ret
test eax, eax
jne 0x180007212
cmp byte [rsp + 0x16a], 1
mov eax, 0x80
mov ecx, 0x40
cmove eax, ecx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180052be0
add rsp, 0x188
ret
cmp eax, 5
jne 0x180007212
mov eax, dword [rsp + 0x58]
cmp eax, 2
jne 0x1800071cf
mov eax, 0x8000
test word [rsp + 0x168], ax
je 0x18000711b
mov eax, 0x20
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180052be0
add rsp, 0x188
ret
cmp byte [rsp + 0x16a], 1
jne 0x18000719b
xor eax, eax
lea rcx, str.kernel32.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x20]
test rax, rax
je 0x180007170
call rax
jmp 0x180007176
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [rsp + 0x20], 9
jne 0x18000719b
mov eax, 0x10
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180052be0
add rsp, 0x188
ret
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 4
mov edx, 8
test eax, eax
cmovne ecx, edx
mov eax, ecx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180052be0
add rsp, 0x188
ret
cmp eax, 1
jne 0x1800071f1
mov eax, 2
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180052be0
add rsp, 0x188
ret
test eax, eax
jne 0x180007212
mov eax, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180052be0
add rsp, 0x188
ret
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180052be0
add rsp, 0x188
ret
Function at 0x1800074b0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1800a2de8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rcx
mov rbp, rdx
xor ebx, ebx
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x30], ebx
mov word [rsp + 0x40], bx
call fcn.180056c20
test rbp, rbp
je 0x1800075fb
mov ecx, 0x64
mov eax, 8
mov r14, 0xffffffffffffffff
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.180052b1c
mov rdi, rax
test rax, rax
je 0x1800075fb
lea r9, [rsp + 0x30]
mov r8d, 0x320
mov rdx, rax
mov rcx, rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.PSAPI.DLL_EnumProcessModulesEx]
test eax, eax
je 0x1800075f3
mov ecx, dword [rsp + 0x30]
shr ecx, 3
mov dword [rsp + 0x30], ecx
cmp ecx, 0x64
jbe 0x1800075c0
mov rcx, rdi
call fcn.180054d04
mov ecx, dword [rsp + 0x30]
mov eax, 8
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.180052b1c
mov rdi, rax
test rax, rax
je 0x1800075fb
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
lea r8d, [r8*8]
mov rcx, rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.PSAPI.DLL_EnumProcessModulesEx]
test eax, eax
je 0x1800075f3
shr dword [rsp + 0x30], 3
nop dword [rax]
mov rdx, qword [rdi + rbx*8]
lea r8, [rsp + 0x40]
mov r9d, 0x208
mov rcx, rsi
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
lea rcx, [rsp + 0x40]
mov rdx, rbp
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x180007625
inc ebx
cmp ebx, dword [rsp + 0x30]
jbe 0x1800075c0
mov rcx, rdi
call fcn.180054d04
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180052be0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov rbx, qword [rdi + rbx*8]
mov rcx, rdi
call fcn.180054d04
mov rax, rbx
jmp 0x1800075fd
Function at 0x180009080
Capabilities:
Print debug messages
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x50], rsp
mov r15, rcx
mov qword [r11 - 0x40], 0xffffffffffffffff
xor ebx, ebx
mov dword [r11 + 0x18], ebx
mov byte [r11 + 0x10], bl
xor eax, eax
mov word [r11 + 0x11], ax
mov dword [rsp + 0x40], ebx
mov qword [r11 - 0x58], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r12d, 1
mov r8d, r12d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x18000923e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r14d, [rax + 0x1e]
mov qword [rsp + 0xa8], rbx
mov ecx, 0x1000a
call fcn.180053ad4
mov rsi, rax
mov ecx, 0x2000a
call fcn.180053ad4
mov rdi, rax
test rsi, rsi
je 0x1800091ec
test rax, rax
je 0x1800091ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x1e
mov dword [rsp + 0x20], eax
mov r9, r15
lea r8, str._s____d
mov edx, 0xffff
mov rcx, rdi
call fcn.180053a4c
test eax, eax
jle 0x1800091d4
mov word [rdi + 0x1fffe], bx
lea rdx, [rbx - 2]
mov rcx, rdi
call fcn.180053398
lea r8, [rax + 1]
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, rdi
mov rdx, rsi
lea rcx, [rsp + 0xa8]
call fcn.180054798
test eax, eax
je 0x1800091ad
mov r8d, r14d
mov rdx, rdi
lea rcx, str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.180053f50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rsi
lea r9, str.IsPEFile
mov r8d, r12d
mov edx, 0x113
lea rcx, str...ApiAuxNA.cpp
call fcn.180001b40
jmp 0x180009205
mov edx, r14d
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x1800091ff
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rsi, rsi
je 0x180009212
mov rcx, rsi
call fcn.180053a94
test rdi, rdi
je 0x18000921f
mov rcx, rdi
call fcn.180053a94
mov dword [rsp + 0x44], ebx
lea rdx, [0x180009237]
mov rcx, qword [rsp + 0x50]
call fcn.180057580
nop
nop
nop
xor eax, eax
jmp 0x1800093e6
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0xa0]
mov r8d, 2
lea rdx, [rsp + 0x98]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800092a7
movzx ecx, byte [0x1800897b4]
movzx eax, byte [rsp + 0x98]
sub ecx, eax
jne 0x18000929d
movzx ecx, byte [0x1800897b5]
movzx eax, byte [rsp + 0x99]
sub ecx, eax
jne 0x18000929d
movzx ecx, byte [0x1800897b6]
movzx eax, byte [rsp + 0x9a]
sub ecx, eax
test ecx, ecx
cmove ebx, r12d
mov dword [rsp + 0x40], ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800093e4
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x18000bfa0
Capabilities:
Print debug messages
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x40], rsp
mov r14d, ecx
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18000c142
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r15d, [rax + 0x1e]
mov dword [rsp + 0x88], r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [rax + 0x1e]
mov qword [rsp + 0x90], r12
mov ecx, 0x1000a
call fcn.180053ad4
mov rdi, rax
mov ecx, 0x2000a
call fcn.180053ad4
mov rbx, rax
test rdi, rdi
je 0x18000c0ea
test rax, rax
je 0x18000c0ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, r14d
lea r8, str.Error_opening_the_process:__d____d
mov edx, 0xffff
mov rcx, rbx
call fcn.180053a4c
test eax, eax
jle 0x18000c0d3
mov word [rbx + 0x1fffe], r12w
lea rdx, [r12 - 2]
mov rcx, rbx
call fcn.180053398
lea r8, [rax + 1]
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, rbx
mov rdx, rdi
lea rcx, [rsp + 0x90]
call fcn.180054798
test eax, eax
je 0x18000c0aa
mov r8d, esi
mov rdx, rbx
lea rcx, str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.180053f50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
lea r9, str.KillProcessID
mov edx, 0x40f
mov r8d, 1
lea rcx, str...ApiAuxNA.cpp
call fcn.180001b40
jmp 0x18000c103
mov edx, esi
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x18000c0fd
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rdi, rdi
je 0x18000c110
mov rcx, rdi
call fcn.180053a94
test rbx, rbx
je 0x18000c11d
mov rcx, rbx
call fcn.180053a94
mov dword [rsp + 0x30], r15d
lea rdx, [0x18000c136]
mov rcx, qword [rsp + 0x40]
call fcn.180057580
nop
nop
nop
mov eax, dword [rsp + 0x88]
jmp 0x18000c204
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x18000c204
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret