joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001c8f4
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x70
cmp dword [0x18004d840], 0
mov rsi, qword [rsp + 0xa0]
mov rdi, r9
mov rbp, r8
mov r14, rdx
mov rbx, rcx
je 0x18001c9ff
mov eax, dword [0x18004d83c]
mov rcx, qword [0x180051bf8]
mov r10, qword [0x180051bf0]
cmp eax, 1
jne 0x18001c94c
test r10, r10
jne 0x18001c95e
cmp eax, 2
jne 0x18001c9ff
test rcx, rcx
je 0x18001c9ff
test rbx, rbx
je 0x18001c968
mov r9, rbx
jmp 0x18001c985
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [0x180051bf8]
mov r10, qword [0x180051bf0]
mov r9, rax
mov eax, dword [0x18004d83c]
and qword [rsp + 0x50], 0
xor r8d, r8d
mov edx, 0x1fffff
and qword [rsp + 0x48], r8
and qword [rsp + 0x40], r8
and qword [rsp + 0x38], r8
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
cmp eax, 1
jne 0x18001c9c3
lea rcx, [rsp + 0x60]
call r10
jmp 0x18001c9e0
mov eax, dword [0x180051c00]
mov qword [0x18004d830], rcx
lea rcx, [rsp + 0x60]
mov dword [0x18004d838], eax
call fcn.18001f152
test eax, eax
jne 0x18001c9ff
test byte [rsp + 0xa8], 4
jne 0x18001c9f8
mov rcx, qword [rsp + 0x60]
call fcn.18001d030
mov rax, qword [rsp + 0x60]
jmp 0x18001ca57
mov rax, qword [rsp + 0xb0]
test rbx, rbx
jne 0x18001ca30
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xa8]
mov r9, rsi
mov r8, rdi
mov rdx, rbp
mov rcx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x18001ca57
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xa8]
mov r9, rdi
mov dword [rsp + 0x28], eax
mov r8, rbp
mov rdx, r14
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x18001d030
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x18004d840], 0
mov rbx, rcx
je 0x18001d09f
mov eax, dword [0x18004d83c]
cmp eax, 1
jne 0x18001d063
mov r8, qword [0x180051bd8]
test r8, r8
je 0x18001d063
lea rdx, [rsp + 0x38]
call r8
jmp 0x18001d091
cmp eax, 2
jne 0x18001d09f
mov rax, qword [0x180051be0]
test rax, rax
je 0x18001d09f
mov qword [0x18004d830], rax
mov eax, dword [0x180051be8]
lea rdx, [rsp + 0x38]
mov dword [0x18004d838], eax
call fcn.18001f13f
test eax, eax
jne 0x18001d09f
mov eax, dword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_ResumeThread]
Function at 0x18001da74
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov ecx, 0x37
call fcn.18001b464
mov ecx, 0x27
movzx ebx, ax
call fcn.18001b464
mov edx, 1
xor ecx, ecx
movzx edi, ax
call fcn.18000d268
call fcn.180014e24
call fcn.18001eba0
cmp ebx, 1
jne 0x18001dacd
cmp edi, ebx
jne 0x18001dac4
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18001dab7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
cmp edi, 1
jne 0x18001db0c
mov r9, qword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.18001c8f4
or edx, 0xffffffff
mov rcx, rax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x18001dec8
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rax, [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r8d, 0x20
mov dl, 2
mov dword [rbp + 0x18], 0
mov word [rbp + 0x1c], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x18001df48
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
add rsp, 0x60
pop rbp
ret

Function at 0x18001ee0c
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
test r8d, r8d
je 0x18001ee66
xor r9d, r9d
mov edx, ebx
mov rcx, rbp
lea r8d, [r9 + 1]
add rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x18001ee66
add ebx, eax
cmp ebx, 2
jb 0x18001ee62
lea eax, [rbx - 1]
cmp byte [rax + rdi], 0xa
jne 0x18001ee62
lea eax, [rbx - 2]
cmp byte [rax + rdi], 0xd
je 0x18001ee7e
cmp ebx, esi
jb 0x18001ee30
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea ecx, [rbx - 2]
mov eax, ebx
mov byte [rcx + rdi], 0
jmp 0x18001ee69

Function at 0x180020414
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.18002027c

Function at 0x1800281e0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800281f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800281f8
xor eax, eax
test eax, eax
je 0x180028208
mov ecx, eax
call fcn.180021cc8
or eax, 0xffffffff
jmp 0x18002820a
xor eax, eax
add rsp, 0x28
ret
Function at 0x180028210
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180028228
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18002822a
xor eax, eax
test eax, eax
je 0x18002823a
mov ecx, eax
call fcn.180021cc8
or eax, 0xffffffff
jmp 0x18002823c
xor eax, eax
add rsp, 0x28
ret

Function at 0x180028244
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x18002825a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18002825c
xor eax, eax
test eax, eax
je 0x18002826c
mov ecx, eax
call fcn.180021cc8
or eax, 0xffffffff
jmp 0x18002826e
xor eax, eax
add rsp, 0x28
ret
Function at 0x18001c1c4
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18001c1c4
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18001c233
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001c233
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18001c233
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18001c233
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18001c233
cmp dword [rcx + 0x84], 0xe
jbe 0x18001c233
cmp dword [rcx + 0xf8], 0
je 0x18001c233
mov ecx, ebx
call fcn.18001c0fc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18001c358
nop
cmp dword [rbp + 0x20], 0
je 0x18001c281
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18001c190
int3

Function at 0x18001cdf0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18001ce18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18001ce18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180021270
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800212a0
xor eax, eax
jmp 0x180021363
mov rbp, rbx
cmp word [rax], si
je 0x1800212c5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800212ac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800212a8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180021190
movsxd r14, eax
test eax, eax
jne 0x180021303
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180021299
mov rcx, r14
call fcn.1800216bc
mov rdi, rax
test rax, rax
jne 0x18002131c
xor ecx, ecx
call fcn.18001ed94
jmp 0x1800212f8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180021190
test eax, eax
jne 0x18002134d
mov rcx, rdi
call fcn.18001ed94
jmp 0x180021357
xor ecx, ecx
call fcn.18001ed94
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140005610
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push r13
push r14
mov eax, 0x1078
call fcn.1400185b0
sub rsp, rax
mov rax, qword [0x14005d080]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rbp, rdx
mov qword [rsp + 0x38], r9
mov rdx, qword [rsp + 0x10c0]
xor r14d, r14d
mov qword [rsp + 0x30], rdx
mov r13, r8
mov qword [rsp + 0x40], rcx
test r8, r8
je 0x14000568a
mov r9d, 0x1000
lea rdx, [rsp + 0x50]
call fcn.140003cb0
test al, al
jne 0x140005692
lea rdx, str.____Cant_read_module_headers
lea rcx, [0x14005e7c0]
call fcn.140009f80
mov rcx, rax
call fcn.14000a240
mov rdx, r14
jmp 0x140005776
mov qword [rsp + 0x10a8], rsi
mov qword [rsp + 0x1070], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1068], r12
mov qword [rsp + 0x1060], r15
nop dword [rax]
inc rdi
cmp byte [rdi + rbp], r14b
jne 0x1400056c0
movsxd rax, dword [rsp + 0x8c]
lea rcx, [rsp + 0x50]
add rcx, rax
mov esi, r14d
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r15d, word [rcx + 6]
add r12, rax
cmp r14w, r15w
jae 0x140005738
nop dword [rax]
nop word [rax + rax]
mov eax, esi
mov r8, rdi
mov rdx, rbp
lea rcx, [rax + rax*4]
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call fcn.14003bf00
test eax, eax
jne 0x140005731
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], r14b
jne 0x140005723
cmp rdi, rax
je 0x1400057b0
inc esi
cmp esi, r15d
jb 0x140005700
lea rdx, str.____Cant_find_section
lea rcx, [0x14005e7c0]
call fcn.140009f80
mov rcx, rax
call fcn.14000a240
mov rdx, r14
mov r12, qword [rsp + 0x1068]
mov rdi, qword [rsp + 0x1070]
mov rsi, qword [rsp + 0x10a8]
mov r15, qword [rsp + 0x1060]
mov rax, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov r8d, r14d
mov qword [rsp + 0x20], rax
call fcn.140005490
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.1400178c0
add rsp, 0x1078
pop r14
pop r13
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x140005738
mov edx, dword [rbx + 8]
lea rcx, [rsp + 0x50]
add rcx, rax
je 0x140005738
test edx, edx
je 0x140005738
lea rax, [rsp + 0x50]
mov r14d, edx
sub rcx, rax
lea rdx, [rcx + r13]
jmp 0x140005756
Function at 0x1400064e0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140006504
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140006592
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140006560
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140006560
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.14003b4b0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000657d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140006585
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140006521
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140006670
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x1400065a9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400065ab
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400065dd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14003b4b0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000666d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140006618
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x14000664e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.140021668
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14000666d
cmp rsi, rax
ja 0x140006621
test rsi, rsi
je 0x14000666d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140021668
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x14000ec80
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14005d080]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x14000ed13
xor edx, edx
mov r8d, 0x238
lea rcx, [rsp + 0x30]
call fcn.14003bb60
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000ed13
cmp dword [rsp + 0x38], edi
je 0x14000ed0f
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000ecf5
jmp 0x14000ed13
mov esi, dword [rsp + 0x50]
cmp rbx, 0xffffffffffffffff
je 0x14000ed22
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400178c0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000ed50
Capabilities:
Get explorer pid

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14005d080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_GetShellWindow]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call fcn.14000ec80
cmp eax, dword [rsp + 0x20]
jne 0x14000edc5
lea rdx, str.___Pausing_to_allow_for_debugging
lea rcx, [0x14005e7c0]
call fcn.140009f80
mov rcx, rax
call fcn.14000a240
lea rdx, str.___Press_enter_to_close
lea rcx, [0x14005e7c0]
call fcn.140009f80
mov rcx, rax
call fcn.14000a240
call fcn.14000f8d0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400178c0
add rsp, 0x38
ret
Function at 0x140010b40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov eax, 0x5a4d
mov r8, rdx
cmp word [rcx], ax
jne 0x140010c72
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140010c72
test rax, rax
je 0x140010c72
mov edx, dword [rax + 0xd8]
test edx, edx
jne 0x140010b9d
lea rdx, str.___Load_config_directory_wasnt_found__probably_StackCookie_not_defined__fix_cookie_skipped
lea rcx, [0x14005e7c0]
call fcn.140009f80
mov rcx, rax
call fcn.14000a240
mov al, 1
add rsp, 0x28
ret
mov qword [rsp + 0x20], rdi
mov rdi, qword [rdx + rcx + 0x58]
test rdi, rdi
jne 0x140010bd3
lea rdx, str.___StackCookie_not_defined__fix_cookie_skipped
lea rcx, [0x14005e7c0]
call fcn.140009f80
mov rcx, rax
call fcn.14000a240
mov rdi, qword [rsp + 0x20]
mov al, 1
add rsp, 0x28
ret
sub rcx, r8
mov qword [rsp + 0x38], rsi
add rdi, rcx
movabs rsi, 0x2b992ddfa232
lea rcx, [0x14005e7c0]
cmp qword [rdi], rsi
je 0x140010c19
lea rdx, str.____StackCookie_already_fixed___this_probably_wrong
call fcn.140009f80
mov rcx, rax
call fcn.14000a240
mov rsi, qword [rsp + 0x38]
xor al, al
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, str.___Fixing_stack_cookie
mov qword [rsp + 0x30], rbx
call fcn.140009f80
mov rcx, rax
call fcn.14000a240
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
movabs rax, 0x2b992ddfa233
xor rcx, rbx
mov rbx, qword [rsp + 0x30]
xor rcx, rsi
cmp rcx, rsi
mov rsi, qword [rsp + 0x38]
cmove rcx, rax
mov al, 1
mov qword [rdi], rcx
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x140011ec0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14005d080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140011fe1
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140011fe1
test rax, rax
je 0x140011fe1
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + 0xb0]
test ecx, ecx
jne 0x140011f43
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x140011fec
lea rbx, [rdx + rcx]
mov ebp, dword [rax + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x140011fcf
nop word [rax + rax]
mov edx, dword [rbx + 4]
test edx, edx
je 0x140011fcf
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x140011fa8
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x140011fc4
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.1400126c0
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x140011f60
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x140011fec
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400178c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140013b00
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x14005d080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
lea r9, [rsp + 0x20]
xor r14d, r14d
mov ecx, 0xb
xor r8d, r8d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov ebx, r14d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140013b92
test rbx, rbx
je 0x140013b58
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140013b42
test eax, eax
jns 0x140013bb3
test rbx, rbx
je 0x140013bb8
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140013cb6
test rbx, rbx
jne 0x140013bbf
xor eax, eax
jmp 0x140013cb6
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x140013c96
nop dword [rax + rax]
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x140013c15
lea rcx, [rsp + 0x28]
call fcn.14000bf20
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x140013c35
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call fcn.140020e3c
test eax, eax
je 0x140013ccc
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140013c8c
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013c87
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013d1f
call fcn.1400178e0
inc edi
cmp edi, dword [rbx]
jb 0x140013be0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400178c0
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140013d1a
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013d15
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013d1f
call fcn.1400178e0
mov rax, rdi
jmp 0x140013ca9
call fcn.140021e8c
int3