joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002fa0
Capabilities:
Resolve function by parsing pe exports

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, 0x20
movsxd rax, dword [rcx + 0x3c]
mov rbx, rcx
mov ecx, 0x10b
cmp word [rax + rbx + 0x18], cx
je 0x140003043
mov ecx, 0x20b
cmp word [rax + rbx + 0x18], cx
jne 0x140003043
mov ecx, dword [rax + rbx + 0x88]
mov rdx, rbx
call fcn.140002f34
mov rdx, rbx
mov r14d, eax
add r14, rbx
mov ecx, dword [r14 + 0x20]
call fcn.140002f34
mov ecx, dword [r14 + 0x24]
mov rdx, rbx
mov esi, eax
add rsi, rbx
call fcn.140002f34
mov ebp, dword [r14 + 0x18]
mov edi, eax
add rdi, rbx
jmp 0x14000303f
mov ecx, dword [rsi]
mov rdx, rbx
dec ebp
call fcn.140002f34
lea rdx, [0x14002bd48]
mov ecx, eax
add rcx, rbx
call fcn.14000c7e8
test rax, rax
jne 0x140003060
add rsi, 4
add rdi, 2
test ebp, ebp
jne 0x140003015
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, dword [r14 + 0x1c]
mov rdx, rbx
call fcn.140002f34
movzx r8d, word [rdi]
mov rdx, rbx
mov ecx, eax
add rcx, rbx
mov ecx, dword [rcx + r8*4]
call fcn.140002f34
jmp 0x140003045

Function at 0x140003248
Capabilities:
Parse pe header

Disassembly:
mov r9d, 0x5a4d
mov r8d, 0x400
mov r10d, 0x4550
test rcx, rcx
je 0x14000327c
cmp word [rcx], r9w
jne 0x14000327c
cmp dword [rcx + 0x3c], r8d
jg 0x14000327c
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], r10d
jne 0x14000327c
movzx edx, word [rax + rcx + 4]
jmp 0x14000327e
xor edx, edx
test rcx, rcx
je 0x1400032a4
cmp word [rcx], r9w
jne 0x1400032a4
cmp dword [rcx + 0x3c], r8d
jg 0x1400032a4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], r10d
jne 0x1400032a4
mov ecx, 0x8664
mov eax, dword [rax + 0x28]
ret
xor eax, eax
ret
Function at 0x140003614
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x140035410]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r15, rcx
mov rbx, rdx
lea rcx, [rbp + 2]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov r14, r9
mov word [rbp], r12w
call fcn.140015a30
lea rcx, [rbp]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140003669
sub rax, 2
cmp word [rbp + rax*2], 0x5c
je 0x14000368c
cmp word [rbp + rax*2], 0x2f
je 0x14000368c
dec rax
jmp 0x140003677
lea rcx, [rbp + 2]
lea rcx, [rcx + rax*2]
test rcx, rcx
je 0x14000369d
mov word [rcx], r12w
lea rcx, [rbp]
mov edx, 0x104
call fcn.14000d0c8
lea rdi, [rbp]
lea rcx, [0x14002be48]
test rax, rax
mov qword [rsp + 0x68], r12
cmove rdi, r12
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call qword [0x1400261e8]
lea rdx, [0x14002be58]
mov rcx, rax
call qword [0x1400261d0]
mov rsi, rax
mov qword [0x140038bb8], rax
test rax, rax
je 0x140003829
xor edx, edx
lea rcx, [rbp - 0x68]
lea r8d, [rdx + 0x60]
call fcn.140015a30
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x60]
mov r8, r15
xor edx, edx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x68]
xor ecx, ecx
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov dword [rbp - 0x70], 0x68
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x800000c
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x20], r12
call rsi
test eax, eax
je 0x140003829
mov rdx, qword [rsp + 0x68]
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], 1
lea rax, [rbp - 0x80]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov rcx, r14
mov qword [rsp + 0x28], r12
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x20], r12
call qword [0x1400264d8]
test eax, eax
je 0x1400037c2
cmp eax, 0x40000003
jne 0x140003829
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140003829
test rbx, rbx
je 0x140003800
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140003800
cmp dword [rbx + 0x3c], 0x400
jg 0x140003800
movsxd rax, dword [rbx + 0x3c]
add rax, rbx
cmp dword [rax], 0x4550
jne 0x140003800
mov ecx, 0x20b
cmp word [rax + 0x18], cx
mov al, 1
je 0x140003803
mov al, r12b
test al, al
lea r8, [rsp + 0x68]
mov rcx, rbx
sete r9b
call fcn.1400014e8
test al, al
je 0x140003829
mov rcx, qword [rsp + 0x70]
call qword [0x140026280]
mov al, 1
jmp 0x14000382b
xor al, al
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14000bb20
add rsp, 0x320
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1800028c0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x1800028f2
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x1800028f2
nop word cs:[rax + rax]
jmp 0x1800028f0
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x1800029c8
mov rsi, r10
test r8b, r8b
je 0x1800029e0
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002960
test r9b, r9b
je 0x1800029f0
sub rsi, rcx
je 0x1800029c4
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x1800029c0
test ebp, ebp
jne 0x1800029c0
add rbx, 1
cmp rsi, rbx
jne 0x180002980
jmp 0x1800029c4
test ebp, ebp
jne 0x18000294c
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x1800029e0
jmp 0x1800029f0

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x140005a80
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push r13
push r14
mov eax, 0x10b8
call fcn.140015420
sub rsp, rax
mov rax, qword [0x14005d060]
xor rax, rsp
mov qword [rsp + 0x1090], rax
mov r14, rdx
mov qword [rsp + 0x48], r9
mov rdx, qword [rsp + 0x1100]
xor ebp, ebp
mov qword [rsp + 0x40], rdx
mov r13, r8
mov qword [rsp + 0x50], rcx
test r8, r8
je 0x140005b45
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x90]
mov qword [rsp + 0x78], rax
lea r9d, [rbp + 0x28]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
mov dword [rsp + 0x28], ebp
mov edx, 0x80862007
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x60], 0x33
mov qword [rsp + 0x80], 0x1000
mov dword [rsp + 0x58], ebp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140005b4d
lea rdx, str.____Cant_read_module_headers
lea rcx, [0x14005e630]
call fcn.14000aca0
mov rcx, rax
call fcn.14000af30
mov rdx, rbp
jmp 0x140005c26
mov qword [rsp + 0x10e8], rsi
mov qword [rsp + 0x10b0], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x10a8], r12
mov qword [rsp + 0x10a0], r15
inc rdi
cmp byte [r14 + rdi], bpl
jne 0x140005b74
movsxd rax, dword [rsp + 0xcc]
lea rcx, [rsp + 0x90]
add rcx, rax
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r15d, word [rcx + 6]
add r12, rax
test r15d, r15d
je 0x140005be8
nop word [rax + rax]
mov eax, esi
mov r8, rdi
mov rdx, r14
lea rcx, [rax + rax*4]
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call fcn.140017680
test eax, eax
jne 0x140005be1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x140005bd3
cmp rdi, rax
je 0x140005c60
inc esi
cmp esi, r15d
jb 0x140005bb0
lea rdx, str.____Cant_find_section
lea rcx, [0x14005e630]
call fcn.14000aca0
mov rcx, rax
call fcn.14000af30
mov rdx, rbp
mov r12, qword [rsp + 0x10a8]
mov rdi, qword [rsp + 0x10b0]
mov rsi, qword [rsp + 0x10e8]
mov r15, qword [rsp + 0x10a0]
mov rax, qword [rsp + 0x40]
mov r9, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov r8d, ebp
mov qword [rsp + 0x20], rax
call fcn.1400058b0
mov rcx, qword [rsp + 0x1090]
xor rcx, rsp
call fcn.140014880
add rsp, 0x10b8
pop r14
pop r13
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x140005be8
mov ecx, dword [rbx + 8]
mov edx, eax
lea rax, [rsp + 0x90]
add rax, rdx
je 0x140005be8
test ecx, ecx
je 0x140005be8
mov ebp, ecx
add rdx, r13
jmp 0x140005c06
Function at 0x140006b50
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140006b72
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140006bec
mov rdi, r14
mov rcx, rbx
call fcn.140009340
test rax, rax
jle 0x140006bc4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140016d90
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140006bdc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140006be4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140006b86
sub r14, rdi
jmp 0x140006cd9
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140006c03
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006c05
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006c3a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140016d90
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140006cd6
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140006c75
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140006cb1
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14001e9b0
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140006cef
cmp rbp, rax
ja 0x140006c81
mov r8, rdi
test rdi, rdi
je 0x140006cd6
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14001e9b0
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140006cd9
Function at 0x140007100
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14005d060]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000712d
xor eax, eax
jmp 0x140007273
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140007167
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140007167
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140007273
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140007266
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400071aa
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400071b9
movsx ecx, dil
jmp 0x14000720d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x140007227
sub eax, 1
je 0x140007227
cmp eax, 2
jne 0x140007266
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14001aeb0
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000726b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140007254
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14001e080
cmp rsi, rax
jne 0x140007266
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14000726b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140014880
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000dfc0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14005d060]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x14000e04d
xor edx, edx
mov r8d, 0x238
lea rcx, [rsp + 0x30]
call fcn.140017460
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000e04d
cmp dword [rsp + 0x38], edi
je 0x14000e049
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x14000e02f
mov esi, dword [rsp + 0x50]
cmp rbx, 0xffffffffffffffff
je 0x14000e05c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140014880
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000e090
Capabilities:
Get explorer pid

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14005d060]
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.14000dfc0
cmp eax, dword [rsp + 0x20]
jne 0x14000e105
lea rdx, str.___Pausing_to_allow_for_debugging
lea rcx, [0x14005e630]
call fcn.14000aca0
mov rcx, rax
call fcn.14000af30
lea rdx, str.___Press_enter_to_close
lea rcx, [0x14005e630]
call fcn.14000aca0
mov rcx, rax
call fcn.14000af30
call fcn.14000e6e0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140014880
add rsp, 0x38
ret
Function at 0x14000f0d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f1f7
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000f1f7
mov r8d, dword [rax + rcx + 0xd8]
test r8d, r8d
jne 0x14000f122
lea rdx, str.___Load_config_directory_wasnt_found__probably_StackCookie_not_defined__fix_cookie_skipped
lea rcx, [0x14005e630]
call fcn.14000aca0
mov rcx, rax
call fcn.14000af30
mov al, 1
add rsp, 0x28
ret
mov qword [rsp + 0x20], rdi
mov rdi, qword [r8 + rcx + 0x58]
test rdi, rdi
jne 0x14000f158
lea rdx, str.___StackCookie_not_defined__fix_cookie_skipped
lea rcx, [0x14005e630]
call fcn.14000aca0
mov rcx, rax
call fcn.14000af30
mov rdi, qword [rsp + 0x20]
mov al, 1
add rsp, 0x28
ret
sub rcx, rdx
mov qword [rsp + 0x38], rsi
add rdi, rcx
movabs rsi, 0x2b992ddfa232
lea rcx, [0x14005e630]
cmp qword [rdi], rsi
je 0x14000f19e
lea rdx, str.____StackCookie_already_fixed___this_probably_wrong
call fcn.14000aca0
mov rcx, rax
call fcn.14000af30
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.14000aca0
mov rcx, rax
call fcn.14000af30
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
movabs rcx, 0x2b992ddfa233
xor rax, rbx
mov rbx, qword [rsp + 0x30]
xor rax, rsi
cmp rax, rsi
mov rsi, qword [rsp + 0x38]
cmove rax, rcx
mov qword [rdi], rax
mov al, 1
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x140010340
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14005d060]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140010453
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x140010453
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor edx, edx
mov qword [rsp + 0x50], rdx
mov ecx, dword [rax + rsi + 0xb0]
test ecx, ecx
jne 0x1400103b8
mov qword [rdi], rdx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
jmp 0x140010460
lea rbx, [rsi + rcx]
mov ebp, dword [rax + rsi + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x48]
cmp rbx, rbp
jae 0x140010441
mov r8d, dword [rbx + 4]
test r8d, r8d
je 0x140010441
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [r8 - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, rdx
je 0x14001041a
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 + 0x48], rcx
jmp 0x140010436
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140010a80
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x1400103d0
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
jmp 0x140010460
xor edx, edx
mov qword [rcx], rdx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140014880
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140011750
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x50
mov rax, qword [0x14005d060]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
lea r9, [rsp + 0x20]
mov r14, rcx
mov dword [rsp + 0x20], ebp
xor r8d, r8d
xor edx, edx
mov ebx, ebp
lea ecx, [rbp + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400117de
nop dword [rax]
test rbx, rbx
je 0x1400117a6
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 r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, reloc.WS2_32.dll_inet_addr
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140011790
test eax, eax
jns 0x1400117ff
test rbx, rbx
je 0x140011804
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x1400118f5
test rbx, rbx
jne 0x14001180b
xor eax, eax
jmp 0x1400118f5
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rdi
mov edi, ebp
cmp dword [rbx], ebp
jbe 0x1400118d5
mov esi, edi
lea rdx, [rbx + 0x30]
imul rax, rsi, 0x128
mov qword [rsp + 0x28], rbp
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], recv
movzx ecx, word [rax + rbx + 0x2e]
add rcx, rax
add rdx, rcx
inc r8
cmp byte [rdx + r8], bpl
jne 0x140011854
lea rcx, [rsp + 0x28]
call fcn.140009710
cmp qword [r14 + 0x18], 0x10
mov rdx, r14
jb 0x140011874
mov rdx, qword [r14]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call fcn.14001e34c
test eax, eax
je 0x14001190b
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1400118cb
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400118c6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011966
call fcn.1400148a0
inc edi
cmp edi, dword [rbx]
jb 0x140011822
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140014880
add rsp, 0x50
pop r14
pop rbp
pop rbx
ret
imul rax, rsi, 0x128
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
mov rdi, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140011961
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001195c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011966
call fcn.1400148a0
mov rax, rdi
jmp 0x1400118e8
call fcn.14001eec4
int3
Function at 0x140013194
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x14005d060]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov edi, 0xffff
xor r14d, r14d
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x1400131d8
movzx eax, r14w
jmp 0x14001330e
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140013214
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x140013214
lea ecx, [r9 - 1]
mov dword [rax], ecx
movzx eax, si
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x14001330e
cmp qword [rcx + 0x80], r14
je 0x14001330b
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140013252
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14001327b
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.14001f950
cmp ax, di
je 0x14001330b
movzx edi, si
jmp 0x14001330b
lea r8, [rbp + 0xf]
mov word [rbp + 7], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp + 9]
lea r8, [rbp + 0x3f]
mov qword [rsp + 0x30], r8
lea r8, [rbp + 0x1f]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], r8
lea r8, [rbp + 7]
call qword [0x1400393b8]
test eax, eax
je 0x1400132d0
sub eax, 1
je 0x1400132d0
cmp eax, 2
jne 0x14001330b
movzx ecx, word [rbp + 7]
jmp 0x14001325e
mov r14, qword [rbp + 0xf]
lea rax, [rbp + 0x1f]
sub r14, rax
je 0x1400132fa
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x1f]
mov r8, r14
mov edx, 1
call fcn.14001e080
cmp r14, rax
jne 0x14001330b
lea rax, [rbp + 7]
mov byte [rbx + 0x72], 1
cmp qword [rbp + 0x17], rax
movzx eax, si
jne 0x14001330e
movzx eax, di
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140014880
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14001b374
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001b394
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001f13c
or eax, 0xffffffff
jmp 0x14001b396
xor eax, eax
add rsp, 0x28
ret

Function at 0x14002419c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140023fc8