joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800cc0b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
lea r14, [0x180000000]
mov ecx, dword [rcx + 0xa8]
mov eax, ecx
and eax, 0xfff0000
cmp eax, 0x3ff0000
je 0x1800cc16a
bt ecx, 0x10
jb 0x1800cc108
movzx eax, byte [rdi + 0xbd]
test byte [rax + r14 + 0x152950], 0x60
jne 0x1800cc108
mov rcx, rdi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp fcn.1800c8a80
mov eax, ecx
and eax, 0xb0000
cmp eax, 0xb0000
je 0x1800cc146
movzx r8d, byte [rdi + 0xbd]
movzx eax, byte [r8 + r14 + 0x152950]
and al, 0x60
cmp al, 0x40
jne 0x1800cc146
cmp r8b, 0x47
je 0x1800cc146
mov rcx, rdi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp fcn.1800c2640
and ecx, 0x110000
cmp ecx, 0x110000
je 0x1800cc16a
movzx eax, byte [rdi + 0xbd]
movzx eax, byte [rax + r14 + 0x152950]
and al, 0x60
cmp al, 0x60
je 0x1800cc133
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov ebp, 0x7ffd
mov qword [rsp + 0x40], rsi
nop
movzx edx, byte [rdi + 0xbd]
movzx r8d, word [rdi + 0xb8]
mov r10d, dword [rdi + 0x28]
shl edx, 0x11
cmp r8d, r10d
jb 0x1800cc1c9
mov rax, qword [rdi + 0x20]
lea r9, [rax + r8*8]
movzx eax, byte [rax + r8*8 + 5]
shl eax, 0xa
add edx, eax
mov rax, qword [r9]
mov qword [rdi + 0xc0], rax
cmp r8w, bp
jae 0x1800cc1c9
mov rax, qword [r9 + 8]
mov qword [rdi + 0xc8], rax
movzx r8d, word [rdi + 0xba]
cmp r8d, r10d
jb 0x1800cc202
mov rax, qword [rdi + 0x20]
movzx ecx, byte [rax + r8*8 + 5]
lea r9, [rax + r8*8]
mov rax, qword [rax + r8*8]
mov qword [rdi + 0xd0], rax
cmp r8w, bp
jae 0x1800cc20b
mov rax, qword [r9 + 8]
mov qword [rdi + 0xd8], rax
jmp 0x1800cc20b
mov ecx, r8d
and ecx, 0x3ff
lea esi, [rcx + rdx]
xor ebx, ebx
mov r8d, ebx
mov eax, 0x5e1d27b
and r8d, 0x1ffff
or r8d, esi
mov ecx, r8d
ror ecx, 0xb
sub ecx, r8d
rol ecx, 0xe
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3e9
sub ecx, eax
mov edx, dword [r14 + rcx*4 + 0x153790]
mov eax, edx
and eax, 0xffffff
cmp eax, r8d
je 0x1800cc26e
lea eax, [rcx + 1]
mov edx, dword [r14 + rax*4 + 0x153790]
mov eax, edx
and eax, 0xffffff
cmp eax, r8d
jne 0x1800cc286
mov eax, edx
mov rcx, rdi
shr rax, 0x18
call qword [r14 + rax*8 + 0x153290]
movzx edx, ax
test edx, edx
jne 0x1800cc2a0
cmp ebx, 0xfffff
je 0x1800cc2c3
mov eax, ebx
shr eax, 0xa
or ebx, eax
xor ebx, 0xffc00
jmp 0x1800cc210
cmp edx, 5
jae 0x1800cc2d9
cmp edx, 1
je 0x1800cc180
cmp edx, 2
jne 0x1800cc2cd
mov edx, dword [rdi + 0xb8]
mov rcx, rdi
call fcn.1800c2a50
jmp 0x1800cc2e7
mov rcx, rdi
call fcn.1800c8a80
jmp 0x1800cc2e7
cmp edx, 3
je 0x1800cc302
mov eax, 0xffff
jmp 0x1800cc2e7
mov rax, qword [rdi + 0x20]
movzx eax, byte [rax + rdx*8 + 4]
shl eax, 0x18
add eax, edx
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov edx, 0x18
mov rcx, rdi
call fcn.180083790
int3
Function at 0x1800cc3c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
movzx r11d, word [rdx + 2]
mov r14, rcx
movzx r9d, word [r8 + 2]
cmp rdx, r8
je 0x1800cc517
mov r10, qword [rcx + 0x20]
cmp byte [r10 + r11*8 + 5], 0x1e
lea rbx, [r10 + r11*8]
jne 0x1800cc3f7
movzx r11d, word [rbx]
lea rbx, [r10 + r11*8]
cmp byte [r10 + r9*8 + 5], 0x1e
lea rcx, [r10 + r9*8]
jne 0x1800cc40b
movzx r9d, word [rcx]
lea rcx, [r10 + r9*8]
movzx edi, byte [rdx + 5]
lea eax, [rdi - 0x38]
cmp al, 1
jbe 0x1800cc41b
movzx eax, word [rdx]
jmp 0x1800cc423
movzx eax, word [rdx]
movzx eax, word [r10 + rax*8]
movzx edx, ax
movzx eax, byte [r8 + 5]
sub al, 0x38
cmp al, 1
jbe 0x1800cc437
movzx eax, word [r8]
jmp 0x1800cc440
movzx eax, word [r8]
movzx eax, word [r10 + rax*8]
movzx r8d, ax
cmp r11d, r9d
jne 0x1800cc462
cmp edx, r8d
je 0x1800cc517
mov rcx, r14
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp fcn.1800cc5c0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r15
mov r15d, 0x8000
cmp r11d, r15d
jae 0x1800cc485
cmp r9d, r15d
jb 0x1800cc509
cmp dil, 0x38
jne 0x1800cc4fe
xor esi, esi
mov ebp, r11d
cmp byte [rbx + 5], 0x29
mov edi, esi
jne 0x1800cc4b2
movzx eax, word [rbx + 2]
cmp ax, r15w
jae 0x1800cc4b2
movzx ebp, word [rbx]
mov esi, dword [r10 + rax*8]
cmp ebp, r9d
jne 0x1800cc4b2
test esi, esi
jne 0x1800cc509
cmp byte [rcx + 5], 0x29
jne 0x1800cc4d3
movzx eax, word [rcx + 2]
cmp ax, r15w
jae 0x1800cc4d3
movzx r9d, word [rcx]
mov edi, dword [r10 + rax*8]
cmp r11d, r9d
jne 0x1800cc4d3
test edi, edi
jne 0x1800cc509
cmp ebp, r9d
jne 0x1800cc4dc
cmp esi, edi
jne 0x1800cc509
cmp edx, r8d
jne 0x1800cc50d
mov eax, 1
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
movzx eax, byte [rcx + 4]
xor al, byte [rbx + 4]
test al, 0x1f
je 0x1800cc4dc
xor eax, eax
jmp 0x1800cc4e6
mov rcx, r14
call fcn.1800cc5c0
jmp 0x1800cc4e6
mov eax, 2
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x1800cd520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movzx eax, byte [rcx + 0xd4]
lea r14, [rcx + 0xb8]
movzx r12d, word [r14]
and al, 0x1f
mov rdi, rcx
cmp al, 0xe
jne 0x1800cd588
movzx edx, word [rcx + 0x208]
cmp edx, r12d
jbe 0x1800cd588
movzx eax, word [rcx + 0x226]
cmp eax, r12d
jbe 0x1800cd588
nop
cmp eax, edx
jb 0x1800cd6dd
mov ecx, eax
mov rax, qword [rdi + 0x20]
movzx eax, word [rax + rcx*8 + 6]
cmp eax, r12d
ja 0x1800cd570
movzx eax, word [rdi + 0x228]
cmp eax, r12d
jbe 0x1800cd6e1
mov rbx, qword [rdi + 0x20]
mov ebp, 0x8000
mov dword [rsp + 0x50], ebp
nop word [rax + rax]
lea r13, [rbx + rax*8]
movzx eax, word [rbx + rax*8]
movzx ecx, word [rbx + rax*8 + 2]
lea rdx, [rbx + rax*8]
cmp r14, rdx
je 0x1800cd6dd
movzx r9d, word [r14 + 2]
cmp byte [rbx + r9*8 + 5], 0x1e
lea r8, [rbx + r9*8]
jne 0x1800cd5e3
movzx r9d, word [r8]
lea r8, [rbx + r9*8]
cmp byte [rbx + rcx*8 + 5], 0x1e
lea r10, [rbx + rcx*8]
jne 0x1800cd5f6
movzx ecx, word [r10]
lea r10, [rbx + rcx*8]
movzx r11d, byte [r14 + 5]
lea eax, [r11 - 0x38]
cmp al, 1
jbe 0x1800cd609
movzx eax, word [r14]
jmp 0x1800cd611
movzx eax, word [r14]
movzx eax, word [rbx + rax*8]
movzx r15d, ax
movzx eax, byte [rdx + 5]
sub al, 0x38
cmp al, 1
jbe 0x1800cd624
movzx eax, word [rdx]
jmp 0x1800cd62b
movzx eax, word [rdx]
movzx eax, word [rbx + rax*8]
movzx esi, ax
cmp r9d, ecx
je 0x1800cd6b2
cmp r9d, ebp
jae 0x1800cd640
cmp ecx, ebp
jb 0x1800cd6c9
cmp r11b, 0x38
jne 0x1800cd6a5
xor r11d, r11d
xor edx, edx
cmp byte [r8 + 5], 0x29
mov ebp, r9d
jne 0x1800cd672
movzx eax, word [r8 + 2]
cmp ax, word [rsp + 0x50]
jae 0x1800cd672
movzx ebp, word [r8]
mov r11d, dword [rbx + rax*8]
cmp ebp, ecx
jne 0x1800cd672
test r11d, r11d
jne 0x1800cd6c9
cmp byte [r10 + 5], 0x29
jne 0x1800cd69a
movzx eax, word [r10 + 2]
mov r8d, 0x8000
cmp ax, r8w
jae 0x1800cd69a
movzx ecx, word [r10]
mov edx, dword [rbx + rax*8]
cmp r9d, ecx
jne 0x1800cd69a
test edx, edx
jne 0x1800cd6c9
cmp ebp, ecx
jne 0x1800cd6b2
cmp r11d, edx
je 0x1800cd6b2
jmp 0x1800cd6c9
movzx eax, byte [r10 + 4]
xor al, byte [r8 + 4]
test al, 0x1f
jne 0x1800cd6c9
cmp r15d, esi
je 0x1800cd6dd
mov rcx, rdi
mov r8d, esi
mov edx, r15d
call fcn.1800cc5c0
test eax, eax
jne 0x1800cd6dd
movzx eax, word [r13 + 6]
cmp eax, r12d
jbe 0x1800cd6e1
mov ebp, 0x8000
jmp 0x1800cd5b0
xor eax, eax
jmp 0x1800cd6e6
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800cd9f0
Capabilities:
Encrypt data using rc4 prga

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
movzx ebp, dx
xor edi, edi
mov r15, rcx
movzx r9d, word [rcx + rbp*2 + 0x1a2]
cmp r9d, r8d
jbe 0x1800cdad0
mov r11, qword [rcx + 0x20]
mov eax, r8d
lea r14, [r11 + rax*8]
nop
movzx eax, byte [r11 + r9*8 + 4]
lea rbx, [r11 + r9*8]
movzx ecx, word [rbx]
and al, 0x1f
cmp ecx, r8d
je 0x1800cdafa
test al, al
jne 0x1800cdac2
movzx ecx, word [r11 + rcx*8 + 2]
movzx edx, word [r14 + 2]
cmp ebp, 0x42
je 0x1800cdaae
movzx r9d, byte [r11 + rcx*8 + 4]
movzx r10d, byte [r11 + rdx*8 + 4]
movzx eax, r9b
xor al, r10b
test al, 0x1f
je 0x1800cdaae
and r9b, 0x1f
mov ecx, edi
cmp r9b, 5
mov eax, edi
sete cl
and r10b, 0x1f
cmp r10b, 5
sete al
cmp ecx, eax
je 0x1800cdac2
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
cmp ecx, edx
je 0x1800cda91
cmp ecx, 0x8000
jae 0x1800cda91
cmp edx, 0x8000
jae 0x1800cda91
movzx r9d, word [rbx + 6]
cmp r9d, r8d
ja 0x1800cda30
movzx eax, word [r15 + rbp*2 + 0x192]
cmp eax, r8d
jbe 0x1800cda91
mov rdx, qword [r15 + 0x20]
lea rcx, [rdx + rax*8]
movzx eax, word [rdx + rax*8]
cmp eax, r8d
je 0x1800cdb04
movzx eax, word [rcx + 6]
cmp eax, r8d
ja 0x1800cdae2
jmp 0x1800cda91
test al, al
setne dil
mov eax, edi
jmp 0x1800cda93
test byte [rcx + 4], 0x1f
setne dil
mov eax, edi
jmp 0x1800cda93
Function at 0x1800cebd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r10, qword [rcx + 0x20]
mov esi, r9d
movzx r14d, dx
mov r12d, r8d
mov r9d, edx
mov rbp, rcx
movzx r15d, byte [r10 + r14*8 + 5]
cmp r15d, 0x35
jb 0x1800ced0f
cmp r15d, r8d
jg 0x1800ced0f
xor edx, edx
add rcx, 0xb24
nop word [rax + rax]
cmp word [rcx], r14w
jne 0x1800cec3a
mov eax, dword [rcx + 4]
cmp eax, esi
jb 0x1800cec3a
xor eax, esi
test eax, 0xfff
je 0x1800cecfe
inc rdx
add rcx, 8
cmp rdx, 0x10
jl 0x1800cec20
movzx edx, word [r10 + r14*8]
mov r9d, esi
mov qword [rsp + 0x40], rbx
mov rcx, rbp
movzx ebx, word [r10 + r14*8 + 2]
mov qword [rsp + 0x48], rdi
call fcn.1800cebd0
mov r9d, esi
mov r8d, r12d
mov edx, ebx
mov rcx, rbp
mov edi, eax
call fcn.1800cebd0
mov ecx, 0xf4
mov word [rbp + 0xb8], di
add r15w, cx
mov word [rbp + 0xba], ax
movzx edx, r15w
mov ecx, 0x100
imul edx, ecx
mov r8d, esi
shr r8d, 5
mov rcx, rbp
and r8w, 0x1f
or r8w, dx
mov word [rbp + 0xbc], r8w
call fcn.1800cc0b0
mov ecx, dword [rbp + 0xba4]
mov r9d, eax
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rdx, [rcx*8]
lea eax, [rcx + 1]
and eax, 0xf
mov dword [rbp + 0xba4], eax
mov word [rdx + rbp + 0xb24], r14w
mov word [rdx + rbp + 0xb26], r9w
mov dword [rdx + rbp + 0xb28], esi
jmp 0x1800ced50
movzx ecx, word [rcx + 2]
movzx eax, byte [r10 + rcx*8 + 4]
shl eax, 0x18
add eax, ecx
jmp 0x1800ced53
bt esi, 0xb
jae 0x1800ced50
movzx ecx, byte [r10 + r14*8 + 4]
mov edx, 0x605fd9
and ecx, 0x1f
shr edx, cl
test dl, 1
jne 0x1800ced50
mov eax, 0x5b15
mov word [rbp + 0xb8], r14w
mov rcx, rbp
mov word [rbp + 0xbc], ax
mov word [rbp + 0xba], si
call fcn.1800cc0b0
mov r9d, eax
mov eax, r9d
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1800d8860
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
mov edx, 0x14
call fcn.1800c2a50
mov ecx, 0x548a
mov word [rdi + 0xb8], ax
mov word [rdi + 0xbc], cx
mov rcx, rdi
mov word [rdi + 0xba], bx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1800cc0b0

Function at 0x1800ee650
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x1801927cc]
mov ebx, edi
test ecx, ecx
je 0x1800ee78b
mov rax, qword [0x1801927c0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800ee6a8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800ee680
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800ee78b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1800ee9d0
mov r8d, dword [0x1801927cc]
cmp ebx, r8d
jae 0x1800ee718
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1801927c0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x1800ee711
mov edx, esi
mov ecx, ebx
call fcn.1800ee8c0
mov edi, eax
test eax, eax
jne 0x1800ee718
mov r8d, dword [0x1801927cc]
inc ebx
cmp ebx, r8d
jb 0x1800ee6e0
cmp qword [rsp + 0x20], 0
je 0x1800ee78b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800ee777
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800ee768
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800ee740
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18018c820]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800ee8c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1801927c0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800ee924
mov eax, 0xa
jmp 0x1800ee9b3
test esi, esi
je 0x1800ee946
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800ee969
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800ee969
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800ee962
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800ee969
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800ee9d0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180189e48]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800eeafa
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800eeaf1
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800eead4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800eead4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800eead4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800eea92
mov dword [rbx + 8], pe_nt_image_headers64
mov r8d, 0x200
mov rcx, qword [0x18018c820]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800eeaf1
jmp 0x1800eeac7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800eeac7
mov rcx, qword [0x18018c820]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800eeaf1
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800eea40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800eeb53
cmp dword [rbx + 0xc], esi
jbe 0x1800eeb53
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800eeb4c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1800ef0f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800eeb10
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800f21e0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800ef2a0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1800ef30f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1800ef2f8
mov qword [rsp + 0x38], rsi
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800ef2ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800ef2c0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18018c820]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800ef3d0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x1800ef410
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1801927b8]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800ef44e
cmp rsi, r14
jb 0x1800ef446
cmp rsi, r15
jae 0x1800ef446
cmp qword [rsi + 8], 0
jne 0x1800ef617
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800ef431
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800ef4e2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800ef4d9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800ef4d9
cmp dword [rsp + 0x70], 0x10000
je 0x1800ef55b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800ef4d9
sub rbx, rbp
cmp rbx, r14
jae 0x1800ef4a0
test rsi, rsi
jne 0x1800ef5c0
cmp rdi, r15
ja 0x1800ef5ff
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800ef5ff
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800ef5ff
cmp dword [rsp + 0x70], 0x10000
je 0x1800ef591
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800ef512
jmp 0x1800ef5ff
test rbx, rbx
je 0x1800ef4d9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800ef5c0
cmp rbx, r14
jae 0x1800ef480
jmp 0x1800ef4e2
test rdi, rdi
je 0x1800ef5ff
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800ef5c0
cmp rdi, r15
jbe 0x1800ef4f0
jmp 0x1800ef5ff
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800ef5d0
mov rax, qword [0x1801927b8]
mov qword [rsi], rax
mov qword [0x1801927b8], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x18010d818
Capabilities:
Parse pe header

Disassembly:
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 0x18010d6bf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18010d6bf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18010d6bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18010d6bf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18010d6bf
cmp dword [rcx + 0x84], 0xe
jbe 0x18010d6bf
cmp dword [rcx + 0xf8], 0
je 0x18010d6bf
mov ecx, ebx
call fcn.18010d77c
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.18010d54c
nop
cmp dword [rbp + 0x20], 0
je 0x18010d70d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18010d718
int3
xor r8d, r8d
xor edx, edx
jmp 0x18010d650

Function at 0x180123fb8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1800f3300
sub rsp, rax
mov rax, qword [0x180189e48]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180128de8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180124007
mov rax, rbp
jmp 0x18012410f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x18d980]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18012f5b4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x18d980]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18012410b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18012410b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18012f5b4
test rax, rax
js 0x18012410b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18012410b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1801240fd
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1801240fd
cmp byte [rcx], 0xd
jne 0x1801240e3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1801240f2
cmp byte [rcx + 1], 0xa
jne 0x1801240f2
inc rcx
jmp 0x1801240f2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x18a3f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1801240c5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18012410f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800f21e0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret