joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001242a
Capabilities:
Parse pe header

Disassembly:
push r12
sub rsp, 0x20
test rcx, rcx
je 0x14001246b
cmp word [rcx], 0x5a4d
jne 0x14001246b
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x14001246b
call fcn.1400088c5
mov rcx, qword [0x140903220]
mov r12, rax
call fcn.140015170
cmp byte [rax], 0
jne 0x14001246b
cmp dword [r12], 0x4550
je 0x14001246e
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop r12
ret

Function at 0x1400124c8
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x19991f17
call fcn.1400116d5
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x140012c4f
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xc85e88a6
call fcn.1400116d5
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x140012c92
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x8a92015
call fcn.1400116d5
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
nop
syscall
ret

Function at 0x140013e20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001b260
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001b260
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140014a52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14090b908]
test eax, eax
je 0x140014aea
lea rax, [0x14090b8e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14090b910]
mov qword [rbp - 8], rax
jmp 0x140014ace
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140014ac2
cmp qword [rbp - 0x10], 0
je 0x140014ac2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140014a88
lea rax, [0x14090b8e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140014aeb
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140014bf0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140014c18
mov eax, 0
jmp 0x140014c66
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140014c41
mov eax, 0
jmp 0x140014c66
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140014c61
mov eax, 0
jmp 0x140014c66
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140014c6c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140014cea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140014ce1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140014ce1
mov rax, qword [rbp - 8]
jmp 0x140014cff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140014cb4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001c654
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14001c79e
mov rcx, qword [rbp + 0x10]
call fcn.140020c2d
cmp eax, 1
jne 0x14001c791
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x14001c747
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14001c75d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x14001c743
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14001c77c
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.msvcrt.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14001c79f
nop
add rsp, 0x90
pop rbp
ret
Function at 0x14001d995
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x14001d7bb]
mov rdx, rax
lea rax, [0x14090c390]
mov rcx, rax
call fcn.14001cdc6
mov eax, dword [0x1400285f0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001d9e8
mov rax, qword [rbp - 0x10]
jmp 0x14001db48
call fcn.14001c530
mov qword [rbp - 0x10], rax
mov rax, qword [0x14090f050]
test rax, rax
je 0x14001da04
cmp qword [rbp - 0x10], 0
jne 0x14001da0e
mov eax, 0
jmp 0x14001db48
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.14001c654
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x14001dae9
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1400285f0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14001db44
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14001dc42
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.14001d995
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.14001d7e9
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x14001dcaf
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x1400285f0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001ddf3
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001dd4c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001dd07
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001c40c
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400285f0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001ddf3
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001dd86
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x14001ddf3
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001c40c
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400285f0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140001000
Capabilities:
Enumerate process modules

Disassembly:
sub rsp, 0x488
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x470], rax
lea rdx, str.Counter_Strike
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x14000104a
mov eax, 2
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140001180
add rsp, 0x488
ret
mov qword [rsp + 0x490], rbx
lea rdx, [rsp + 0x20]
mov rcx, rax
mov qword [rsp + 0x480], rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov ecx, 0x1fffff
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [rsp + 0x20]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000109e
mov eax, 1
jmp 0x14000112a
xor edx, edx
lea rcx, [rsp + 0x34]
mov r8d, 0x434
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x438
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x140001110
mov qword [rsp + 0x498], rsi
lea rsi, str.hl.exe
nop dword [rax]
mov rax, rbx
lea rdx, [rsp + 0x60]
nop dword [rax + rax]
movzx ecx, word [rdx + rax*2]
inc rax
cmp cx, word [rsi + rax*2 - 2]
jne 0x140001152
cmp rax, 7
jne 0x1400010f0
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x498]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
xor eax, eax
mov rbx, qword [rsp + 0x490]
mov rdi, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140001180
add rsp, 0x488
ret
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x1400010e0
jmp 0x140001108

Function at 0x140001a48
Capabilities:
Parse pe header

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

Disassembly:
push r12
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r12, qword [rax + 0x20]
test r12, r12
je 0x401338
nop dword [rax + rax]
cmp word [r12 + 0x48], 0
je 0x40133e
mov rax, qword [r12 + 0x50]
mov r8d, 0xd7c
lea r9, [rax + 2]
movzx eax, word [rax]
test ax, ax
je 0x40132a
mov edx, r8d
lea r11d, [rax - 0x41]
lea r10d, [rax + 0x20]
shl edx, 4
cmp r11w, 0x19
cmovbe eax, r10d
add r9, 2
add eax, edx
add r8d, eax
movzx eax, word [r9 - 2]
test ax, ax
jne 0x401300
cmp ecx, r8d
je 0x401347
mov r12, qword [r12]
test r12, r12
jne 0x4012e0
mov rax, r12
pop r12
ret
xor r12d, r12d
mov rax, r12
pop r12
ret
mov r12, qword [r12 + 0x20]
mov rax, r12
pop r12
ret

Function at 0x401360
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x401428
movsxd r8, dword [rcx + 0x3c]
add r8, rcx
cmp dword [r8], 0x4550
jne 0x401428
push r12
push rbp
push rdi
push rsi
push rbx
mov r8d, dword [r8 + 0x88]
add r8, rcx
mov ebx, dword [r8 + 0x20]
mov edi, dword [r8 + 0x1c]
mov esi, dword [r8 + 0x24]
mov r8d, dword [r8 + 0x14]
test r8d, r8d
je 0x40141a
lea rax, [rcx + rsi + 2]
sub r8d, 1
lea r11, [rcx + rsi]
sub rbx, rcx
lea rbp, [rax + r8*2]
nop word [rax + rax]
mov rax, r11
movzx r8d, word [r11]
mov r9d, 0xd7c
sub rax, rsi
mov eax, dword [rbx + rax*2]
lea r8, [rcx + r8*4]
mov r12d, dword [r8 + rdi]
add rax, rcx
lea r10, [rax + 1]
movsx eax, byte [rax]
test al, al
je 0x40140a
nop dword [rax]
mov r8d, r9d
add r10, 1
shl r8d, 4
add eax, r8d
add r9d, eax
movsx eax, byte [r10 - 1]
test al, al
jne 0x4013f0
cmp edx, r9d
je 0x401429
add r11, 2
cmp rbp, r11
jne 0x4013c0
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
ret
mov eax, r12d
pop rbx
pop rsi
add rax, rcx
pop rdi
pop rbp
pop r12
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0x20
xor ecx, ecx
mov edx, 0x2000
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, 0x2000
lea rdx, [0x14001ba60]
mov rcx, rax
mov rbx, rax
call fcn.14000fef0
call rbx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14000176c
Capabilities:
Parse pe header

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

Function at 0x140005eec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005ce8
Function at 0x140011104
Capabilities:
Create thread

Disassembly:
jmp 0x140011f20
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x14001f008]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x1400250f9]
call fcn.14001149c
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140011177
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.14001126c
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.140011122
nop
lea rcx, [rbp + 0x108]
call fcn.1400111ea
lea rax, [0x140011334]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.140011348
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x150]
mov qword [rcx], rax
mov rax, qword [rbp + 0x150]
cmp qword [rax], 0
je 0x140012020
lea rcx, [rbp + 8]
call fcn.1400111f9
jmp 0x140012039
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.14001112c
nop
lea rcx, [rbp + 8]
call fcn.1400111ea
lea rcx, [rbp - 0x30]
lea rdx, [0x14001bd10]
call fcn.14001140b
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.140011253
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x1400112b2
Capabilities:
Terminate process

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

Function at 0x14001135c
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015740
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015760
xor al, al
jmp 0x1400157e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015773
xor al, al
jmp 0x1400157e1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001579d
xor al, al
jmp 0x1400157e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400157b1
xor al, al
jmp 0x1400157e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400157c3
xor al, al
jmp 0x1400157e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400157df
xor al, al
jmp 0x1400157e1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400020a0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdi, str.cs2.exe
nop dword [rax]
xor ecx, ecx
lea rdx, [rsp + 0x4c]
nop word [rax + rax]
movzx eax, word [rdi + rcx*2]
inc rcx
cmp ax, word [rdx + rcx*2 - 2]
jne 0x140002143
cmp rcx, 8
jne 0x140002100
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1fffff
mov qword [0x1400067b8], r8
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x140006780], rax
mov eax, dword [rsp + 0x28]
jmp 0x140002160
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400020f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400021a0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret

Function at 0x140002d64
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002dae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002dae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002dae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002dae
cmp dword [rcx + 0x84], 0xe
jbe 0x140002dae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002db0
xor al, al
add rsp, 0x28
ret
Function at 0x140e1e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140e1e1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140e1e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e1e06f
add dl, dl
jne 0x140e1e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e1e0f6
xor eax, eax
add dl, dl
jne 0x140e1e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e1e1ad
add dl, dl
jne 0x140e1e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e1e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e1e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e1e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e1e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e1e07e
mov eax, 1
add dl, dl
jne 0x140e1e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e1e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e1e0fb
sub eax, ebx
mov ebx, 1
jne 0x140e1e14c
mov ecx, 1
add dl, dl
jne 0x140e1e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e1e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e1e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e1e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e1e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e1e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e1e15d
cmp eax, 0x7d00
jae 0x140e1e19b
cmp eax, 0x500
jb 0x140e1e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e1e07e
cmp eax, 0x7f
ja 0x140e1e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e1e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e1e1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140e1e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20