joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008f87
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400161e0]
jne 0x140006faa
rol rcx, 0x10
test cx, 0xffff
jne 0x140006fa6
repz ret
ror rcx, 0x10
jmp 0x140008ee0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400173b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400174a8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140008f65
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400173b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140008f87
mov rax, qword [rsp + 0x88]
mov qword [0x1400174a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140017448], rax
mov rax, qword [0x1400174a8]
mov qword [0x140017320], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140017430], rax
mov dword [0x140017310], 0xc0000409
mov dword [0x140017314], 1
mov rax, qword [0x1400161e0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400161e8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400173a8], eax
mov ecx, 1
call fcn.140009030
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140011330]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400173a8], 0
jne 0x14000900e
mov ecx, 1
call fcn.140009030
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140009270
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x140016200]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x1400092ae
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140009290
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140009495
mov ecx, 3
call fcn.14000c350
cmp eax, 1
je 0x14000944c
mov ecx, 3
call fcn.14000c350
test eax, eax
jne 0x1400092e5
cmp dword [0x140016050], 1
je 0x14000944c
cmp edi, 0xfc
je 0x140009495
mov qword [rsp + 0x50], rbp
lea rbp, [0x1400178a0]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140007990
test eax, eax
je 0x140009329
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140007050
lea rdx, [0x1400178b9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x1400179bd], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140009379
lea r8, str._program_name_unknown_
lea rcx, [0x1400178b9]
mov edx, 0x2fb
call fcn.140007990
test eax, eax
je 0x140009379
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140007050
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x1400178b9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x1400093c8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x140017bb4]
lea r9d, [rax + 3]
lea r8, [0x140011934]
sub rdx, rcx
call fcn.14000c230
test eax, eax
je 0x1400093c8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140007050
lea r8, [0x140011930]
mov edx, 0x314
mov rcx, rbp
call fcn.14000c170
test eax, eax
je 0x1400093f4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140007050
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.14000c170
test eax, eax
je 0x140009424
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140007050
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.14000bf10
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140009495
cmp rax, 0xffffffffffffffff
je 0x140009495
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400094b0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.14000c350
cmp eax, 1
je 0x1400094e2
mov ecx, 3
call fcn.14000c350
test eax, eax
jne 0x140009596
cmp dword [0x140016050], 1
jne 0x140009596
mov qword [rsp + 0x48], rbx
lea rbx, [0x140016200]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14000950e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1400094f8
jmp 0x140009582
cmp edi, 0x17
jae 0x140009582
mov ecx, 3
call fcn.14000c350
cmp eax, 1
je 0x140009539
mov ecx, 3
call fcn.14000c350
test eax, eax
jne 0x140009582
cmp dword [0x140016050], 1
jne 0x140009582
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140009582
cmp rax, 0xffffffffffffffff
je 0x140009582
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.140009270
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x140009d60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x140017dcc]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x140009dbc
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140009d9c
mov dword [0x140017dcc], 1
jmp 0x140009dcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140009db6
mov dword [0x140017dcc], 2
jmp 0x140009e39
mov eax, dword [0x140017dcc]
cmp eax, 1
jne 0x140009e30
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140009e0a
cmp word [rdi], bp
mov rax, rdi
je 0x140009de9
add rax, 2
cmp word [rax], bp
jne 0x140009dd7
add rax, 2
cmp word [rax], bp
jne 0x140009dd7
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.140008710
test rax, rax
mov rbx, rax
jne 0x140009e11
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x140009f2b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.140007bf0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x140009f2b
cmp eax, 2
je 0x140009e39
test eax, eax
jne 0x140009e0a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x140009e0a
cmp byte [rax], bpl
mov rbx, rax
je 0x140009e88
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140009e0a
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x140009e50
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.140008780
test rax, rax
mov r12, rax
jne 0x140009ead
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140009f2b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x140009f15
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140009f3e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x140009ec0
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.140007b10
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140009f26
Function at 0x14000bf10
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.140008000
xor ebx, ebx
cmp qword [0x140018128], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14000c03c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14000c14f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000c14f
mov rcx, rax
call fcn.140007f30
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140018128], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140007f30
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140018130], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140007f30
lea rcx, [rsp + 0x98]
mov qword [0x140018138], rax
call fcn.1400089c0
test eax, eax
je 0x14000bfef
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140007050
cmp dword [rsp + 0x98], 2
jne 0x14000c03c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140007f30
test rax, rax
mov qword [0x140018148], rax
je 0x14000c03c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140007f30
mov qword [0x140018140], rax
mov rcx, qword [0x140018140]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x14000c0e8
cmp qword [0x140018148], rbp
je 0x14000c0e8
call fcn.1400080f0
mov rcx, qword [0x140018148]
mov rsi, rax
call fcn.1400080f0
test rsi, rsi
mov r12, rax
je 0x14000c0e8
test rax, rax
je 0x14000c0e8
call rsi
test rax, rax
je 0x14000c0b3
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000c0b3
test byte [rsp + 0x40], 1
jne 0x14000c0e8
lea rcx, [rsp + 0x30]
call fcn.140008a10
test eax, eax
je 0x14000c0d5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140007050
cmp dword [rsp + 0x30], 4
jb 0x14000c0e2
bts edi, 0x15
jmp 0x14000c126
bts edi, 0x12
jmp 0x14000c126
mov rcx, qword [0x140018130]
cmp rcx, rbp
je 0x14000c126
call fcn.1400080f0
test rax, rax
je 0x14000c126
call rax
test rax, rax
mov rbx, rax
je 0x14000c126
mov rcx, qword [0x140018138]
cmp rcx, rbp
je 0x14000c126
call fcn.1400080f0
test rax, rax
je 0x14000c126
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140018128]
call fcn.1400080f0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14000c14f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000c151
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000d500
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400161e0]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14000d547
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140006f90
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14000d400
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140006f90
add rsp, 0x38
ret
Function at 0x180001050
Capabilities:
Create process memory minidump
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
lea rcx, [0x1800011b0]
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
xor esi, esi
lea rcx, str.crash.dmp
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x4c], esi
mov qword [rsp + 0x44], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov r8, rdi
mov rcx, rax
mov edx, ebx
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x40010
lea r8, str.Game_crash
lea rdx, str.The_game_has_crashed._ncrash.dmp_was_generated.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 0x1337
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1800038f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
mov r8d, 0x20a
lea rdx, [0x18008b630]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x20a
je 0x180003943
test eax, eax
je 0x180003950
call fcn.180001020
lea r8, str.dbdata
mov edx, 7
lea rcx, [rax + 2]
call fcn.18000a9c0
lea rcx, [0x18008b630]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18000395d
add rsp, 0x28
ret
lea rcx, str.Your_game_path_is_too_long__Please_shorten_it.
call fcn.180003760
int3
lea rcx, str.Could_not_get_current_file_path_
call fcn.180003760
int3
lea rcx, str.Could_not_find_dbdata_license_file_
call fcn.180003760
int3
Function at 0x180003970
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, qword [0x18008b5e0]
lea rdx, [0x18001ca58]
mov rdi, qword [0x18008b610]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DeleteFileW
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x18001ca78]
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlAddVectoredExceptionHandler
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ZwSetContextThread
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ZwGetContextThread
mov rcx, rdi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateThreadEx
mov rcx, rdi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test r12, r12
je 0x180003b2d
test rsi, rsi
je 0x180003b2d
test rbx, rbx
je 0x180003b2d
test rbp, rbp
je 0x180003b2d
test r14, r14
je 0x180003b2d
test r15, r15
je 0x180003b2d
test rax, rax
je 0x180003b2d
xor r9d, r9d
lea r8, [0x18008ba78]
lea rdx, [0x180003690]
mov rcx, r12
call fcn.1800052b0
xor r9d, r9d
lea r8, [0x18008b620]
lea rdx, [0x180003700]
mov rcx, rsi
call fcn.1800052b0
xor r9d, r9d
lea r8, [0x18008b5f8]
lea rdx, [0x180003640]
mov rcx, rbx
call fcn.1800052b0
xor r9d, r9d
lea r8, [0x18008ba70]
lea rdx, [0x180003620]
mov rcx, rbp
call fcn.1800052b0
xor r9d, r9d
lea r8, [0x18008b5e8]
lea rdx, [0x1800035e0]
mov rcx, r14
call fcn.1800052b0
xor r9d, r9d
lea r8, [0x18008ba50]
lea rdx, [fcn.180003530]
mov rcx, r15
call fcn.1800052b0
xor r9d, r9d
lea r8, [0x18008ba58]
lea rdx, [0x1800032a0]
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
jmp fcn.1800052b0
lea rcx, str.Could_not_find_all_needed_functions_
call fcn.180003760
int3
Function at 0x180003bd0
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x6b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov ecx, 0x802
call fcn.18000aa3c
xor edx, edx
mov r8d, 0x802
mov rcx, rax
mov rdi, rax
call fcn.180013e80
mov r8d, 0x802
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180003c6f
mov rcx, rdi
call fcn.18000aa28
add ebx, ebx
mov rax, 0xffffffffffffffff
mov ecx, ebx
add ecx, 2
cmovb rcx, rax
call fcn.18000aa3c
add ebx, 2
xor edx, edx
mov r8d, ebx
mov rcx, rax
mov rdi, rax
call fcn.180013e80
mov r8d, ebx
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
mov rsi, rax
call fcn.180013e80
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180003d7c
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x28], eax
je 0x180003d66
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call fcn.180001040
test rax, rax
je 0x180003d66
mov edx, dword [rsp + 0x28]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x264]
mov r8d, 0x434
mov rbx, rax
call fcn.180013e80
lea rdx, [rsp + 0x260]
mov dword [rsp + 0x260], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x180003d5d
nop dword [rax]
lea r8, [rsp + 0x490]
mov rax, rdi
sub r8, rdi
nop
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x180003d44
add rax, 2
test ecx, ecx
jne 0x180003d30
test edx, edx
je 0x180003db2
lea rdx, [rsp + 0x260]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x180003d20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180003cb0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.18000aa28
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.180006160
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov ecx, 0x1337
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x180003fa0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
cmp rdi, 0x40000000
jbe 0x180003fea
lea rax, [rdi - 0x40000000]
cmp rsi, rax
cmovb rsi, rax
mov rbx, qword [0x18008bab0]
lea rbp, [rdi + 0x40000000]
cmp rcx, rbp
cmovbe rbp, rcx
sub rbp, 0xfff
test rbx, rbx
je 0x18000402d
nop dword [rax + rax]
cmp rbx, rsi
jb 0x180004025
cmp rbx, rbp
jae 0x180004025
cmp qword [rbx + 8], 0
jne 0x18000412f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180004010
mov qword [rsp + 0x88], r14
mov r14d, 0x40
mov qword [rsp + 0x90], r15
mov r15, rdi
cmp rdi, rsi
jb 0x180004093
nop dword [rax + rax]
mov r8d, dword [rsp + 0x50]
mov rdx, rsi
mov rcx, r15
call fcn.180003e50
mov r15, rax
test rax, rax
je 0x18000408e
mov r9d, r14d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800040de
cmp r15, rsi
jae 0x180004050
jmp 0x180004093
test rbx, rbx
jne 0x1800040de
cmp rdi, rbp
ja 0x18000411f
nop dword [rax]
mov r8d, dword [rsp + 0x50]
mov rdx, rbp
mov rcx, rdi
call fcn.180003ef0
mov rdi, rax
test rax, rax
je 0x18000411f
mov r9d, r14d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800040de
cmp rdi, rbp
jbe 0x1800040a0
jmp 0x18000411f
xor edx, edx
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], edx
nop word [rax + rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rbx + 8], rcx
add r14, 0x40
add rcx, 0x40
mov rdx, rax
cmp r14, 0xfc0
jbe 0x1800040f0
mov rax, qword [0x18008bab0]
mov qword [rbx], rax
mov qword [0x18008bab0], rbx
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x88]
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180006160
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x180004cf0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x180004e3f
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180004e36
mov esi, 1
mov qword [rsp + 0x68], rbx
cmp dword [rsp + 0x20], 0x10
jb 0x180004dec
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180004dec
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180004dec
mov rdx, qword [rdi]
test rdx, rdx
jne 0x180004dad
mov rcx, qword [0x18008ba80]
mov r8d, 0x200
mov dword [rdi + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x180004e15
lea rbx, [rdi + 0xc]
jmp 0x180004de1
mov eax, dword [rdi + 8]
lea rbx, [rdi + 0xc]
cmp dword [rbx], eax
jb 0x180004de1
mov rcx, qword [0x18008ba80]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rdi + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180004e15
mov qword [rdi], rax
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180004d53
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180004e31
mov r8, qword [rdi]
xor esi, esi
test r8, r8
je 0x180004e31
mov rcx, qword [0x18008ba80]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rsi
mov rbx, qword [rsp + 0x68]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180006160
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret