joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51b5c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov qword [rbp + 0x60], r8
mov rcx, rsi
mov rdx, qword [rbp + 0x60]
mov r8, r9
call sub.kernel32.dll_FindResourceW
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x20], 0
jne 0x51b5f7
mov rcx, rbp
call fcn.0051b4b0
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_LoadResource
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x28], 0
jne 0x51b616
mov rcx, rbp
call fcn.0051b4b0
mov rcx, qword [rbx + 0x28]
call sub.kernel32.dll_LockResource
mov rdi, rax
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_SizeofResource
mov rcx, rbx
mov rdx, rdi
mov r8d, eax
call fcn.0051a2c0
lea rsp, [rbp + 0x28]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x532a90
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x18], 0
jne 0x532ac3
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x532b21
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x1c], 0
jne 0x532b21
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x68], 0
jne 0x532b21
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x1a], 0
mov byte [rax + 0x18], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x532b4b
lea rcx, [rbp + 0x38]
mov rdx, qword [0x0090dfe8]
call fcn.004158b0
mov rcx, qword [0x004eaec8]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.0043e110
mov rcx, rax
call fcn.0040e4b0
jmp 0x532b4b
lea rcx, [rbp + 0x30]
mov rdx, qword [0x0090dfe8]
call fcn.004158b0
mov rcx, qword [0x004eaec8]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.0043e110
mov rcx, rax
call fcn.0040e4b0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040f4a0
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x5339f0
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1a]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1a], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.005328d0
jmp 0x533a4b
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x533a70
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.005328d0
cmp esi, 1
jne 0x533a9a
mov byte [rbx + 0x1a], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x537cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, rsp
mov rsi, rcx
lea rdi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
cmp qword [0x009185a0], 0
jne 0x537d85
xor rcx, rcx
mov edx, 0x1000
mov r8d, 0x1000
mov r9d, 0x40
call sub.kernel32.dll_VirtualAlloc_1
mov rbx, rax
mov rax, qword [0x00918598]
mov qword [rbx], rax
lea rcx, [0x008cbd50]
lea rdx, [rbx + 8]
mov r8d, 8
call fcn.00408d60
lea rax, [0x00537c90]
mov qword [rbx + 0x10], rax
lea rsi, [rbx + 0x18]
mov byte [rsi], 0xe8
mov rcx, rsi
lea rdx, [rbx + 8]
call fcn.00537cc0
mov dword [rsi + 1], eax
mov rax, qword [0x009185a0]
mov qword [rsi + 5], rax
mov qword [0x009185a0], rsi
add rsi, 0x15
mov rax, rbx
neg rax
lea rax, [rsi + rax]
cmp rax, 0xfed
jl 0x537d43
mov qword [0x00918598], rbx
mov rax, qword [0x009185a0]
mov rsi, qword [0x009185a0]
mov rcx, qword [rsi + 5]
mov qword [0x009185a0], rcx
lea rdi, [rsi + 5]
lea rsi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
lea rsp, [rbp + 0x38]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x587c70
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rbx
sub rsp, 0xa8
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rdx
nop
lea rcx, [rbp + 0x78]
mov rdx, qword [rbp + 0xc8]
call fcn.0040fa70
mov rcx, qword [rbp + 0x78]
call fcn.00587110
mov byte [rbp + 0x83], al
cmp byte [rbp + 0x83], 0
jne 0x587ce5
lea rcx, [rbp + 0x78]
mov edx, 1
mov r8d, 1
call fcn.00411760
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax + 8]
mov qword [rbp + 0x98], rax
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
call fcn.00588ef0
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x90], 0
je 0x587e39
nop
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x90]
call fcn.00587640
mov rcx, qword [rbp + 0xc0]
lea rdx, [rbp + 0x54]
call fcn.00587ff0
test al, al
je 0x587e19
lea rcx, [rbp + 0x70]
xor rdx, rdx
mov r8d, dword [rbp + 0x58]
add r8d, 1
call fcn.0040f680
mov eax, dword [rbp + 0x54]
sub eax, 1
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jl 0x587e18
mov eax, dword [rbp + 0x58]
add eax, 1
mov dword [rbp + 0x88], eax
mov rcx, qword [rbp + 0x70]
call fcn.00411090
mov rcx, qword [rbp + 0x90]
mov edx, dword [rbp + 0x84]
mov r8, rax
lea r9, [rbp + 0x88]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.advapi32.dll_RegEnumKeyExW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.00587560
test al, al
je 0x587e04
mov rcx, qword [rbp + 0x70]
call fcn.00411090
lea rcx, [rbp + 0x40]
mov rdx, rax
call fcn.00411130
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x40]
call fcn.00587c70
sub dword [rbp + 0x84], 1
cmp dword [rbp + 0x84], 0xffffffff
jne 0x587d78
nop
nop
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x98]
call fcn.00587640
mov rcx, qword [rbp + 0x90]
call sub.advapi32.dll_RegCloseKey_1
cmp byte [0x009185fc], 0
je 0x587e98
mov rcx, qword [rbp + 0xc0]
movzx rdx, byte [rbp + 0x83]
call fcn.00587620
mov rbx, rax
mov rcx, qword [rbp + 0x78]
call fcn.00411090
mov rcx, rbx
mov rdx, rax
mov rax, qword [rbp + 0xc0]
mov r8d, dword [rax + 0x2c]
and r8d, 0x300
xor r9, r9
call sub.advapi32.dll_RegDeleteKeyExW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.00587560
mov byte [rbp + 0x8f], al
jmp 0x587ed7
mov rcx, qword [rbp + 0xc0]
movzx rdx, byte [rbp + 0x83]
call fcn.00587620
mov rbx, rax
mov rcx, qword [rbp + 0x78]
call fcn.00411090
mov rcx, rbx
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.00587560
mov byte [rbp + 0x8f], al
nop
lea rcx, [rbp + 0x40]
call fcn.0040f3c0
lea rcx, [rbp + 0x70]
mov edx, 2
call fcn.0040f4a0
movzx rax, byte [rbp + 0x8f]
lea rsp, [rbp + 0xa8]
pop rbx
pop rbp
ret

Function at 0x587fc0
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rdx
call fcn.00411090
mov rcx, qword [rbx + 8]
mov rdx, rax
call sub.advapi32.dll_RegDeleteValueW
mov rcx, rbx
mov edx, eax
call fcn.00587560
add rsp, 0x20
pop rbx
ret
Function at 0x5880a0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x90
mov rbp, rsp
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], rdx
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
nop
mov rax, qword [rbp + 0x50]
mov rcx, rax
mov rbx, qword [rax]
call qword [rbx + 0x90]
mov rcx, qword [rbp + 0x48]
lea rdx, [rbp + 0x70]
call fcn.00587ff0
test al, al
je 0x588194
lea rcx, [rbp + 0x68]
xor rdx, rdx
mov r8d, dword [rbp + 0x74]
add r8d, 1
call fcn.0040f680
xor rbx, rbx
mov esi, dword [rbp + 0x70]
sub esi, 1
cmp ebx, esi
jg 0x588193
add esi, 1
mov eax, dword [rbp + 0x74]
add eax, 1
mov dword [rbp + 0x8c], eax
mov rcx, qword [rbp + 0x68]
call fcn.00411090
mov rcx, qword [rbp + 0x48]
mov rcx, qword [rcx + 8]
mov edx, ebx
mov r8, rax
lea r9, [rbp + 0x8c]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.advapi32.dll_RegEnumKeyExW
mov rcx, qword [rbp + 0x68]
call fcn.00411090
lea rcx, [rbp + 0x58]
mov rdx, rax
call fcn.00411130
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x58]
mov rax, qword [rbp + 0x50]
mov rax, qword [rax]
call qword [rax + 0x78]
add ebx, 1
cmp ebx, esi
jne 0x588113
nop
nop
lea rcx, [rbp + 0x58]
call fcn.0040f3c0
lea rcx, [rbp + 0x68]
call fcn.0040f3c0
lea rsp, [rbp + 0x90]
pop rbx
pop rsi
pop rbp
ret

Function at 0x5883e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x90
mov rbp, rsp
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], rdx
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
nop
mov rax, qword [rbp + 0x50]
mov rcx, rax
mov rbx, qword [rax]
call qword [rbx + 0x90]
mov rcx, qword [rbp + 0x48]
lea rdx, [rbp + 0x70]
call fcn.00587ff0
test al, al
je 0x5884d4
lea rcx, [rbp + 0x68]
xor rdx, rdx
mov r8d, dword [rbp + 0x7c]
add r8d, 1
call fcn.0040f680
xor rbx, rbx
mov esi, dword [rbp + 0x78]
sub esi, 1
cmp ebx, esi
jg 0x5884d3
add esi, 1
mov eax, dword [rbp + 0x7c]
add eax, 1
mov dword [rbp + 0x8c], eax
mov rcx, qword [rbp + 0x68]
call fcn.00411090
mov rcx, qword [rbp + 0x48]
mov rcx, qword [rcx + 8]
mov edx, ebx
mov r8, rax
lea r9, [rbp + 0x8c]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.advapi32.dll_RegEnumValueW
mov rcx, qword [rbp + 0x68]
call fcn.00411090
lea rcx, [rbp + 0x58]
mov rdx, rax
call fcn.00411130
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x58]
mov rax, qword [rbp + 0x50]
mov rax, qword [rax]
call qword [rax + 0x78]
add ebx, 1
cmp ebx, esi
jne 0x588453
nop
nop
lea rcx, [rbp + 0x58]
call fcn.0040f3c0
lea rcx, [rbp + 0x68]
call fcn.0040f3c0
lea rsp, [rbp + 0x90]
pop rbx
pop rsi
pop rbp
ret
Function at 0x5897a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x98
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0xc0], r8
nop
mov rax, qword [rbp + 0xb0]
lea rax, [rax + rbp + 0x50]
mov rcx, rbp
neg rcx
mov rax, qword [rax + rcx]
mov rax, qword [rax + 8]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0xb0]
lea rax, [rax + rbp + 0x50]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
mov rdx, qword [rbp + 0xb8]
call fcn.00587640
nop
mov rax, qword [rbp + 0xb0]
lea rax, [rax + rbp + 0x50]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
lea rdx, [rbp + 0x64]
call fcn.00587ff0
test al, al
je 0x58994d
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc0]
xor r9, r9
call fcn.00589570
lea rcx, [rbp + 0x58]
xor rdx, rdx
mov r8d, dword [rbp + 0x70]
add r8d, 1
call fcn.0040f680
xor rax, rax
mov ebx, dword [rbp + 0x6c]
sub ebx, 1
mov dword [rbp + 0x80], eax
cmp dword [rbp + 0x80], ebx
jg 0x58994c
add ebx, 1
mov eax, dword [rbp + 0x70]
add eax, 1
mov dword [rbp + 0x84], eax
mov rcx, qword [rbp + 0x58]
call fcn.00411090
mov rcx, qword [rbp + 0xb8]
mov edx, dword [rbp + 0x80]
mov r8, rax
lea r9, [rbp + 0x84]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.advapi32.dll_RegEnumValueW
mov rcx, qword [rbp + 0xb0]
lea rcx, [rcx + rbp + 0x50]
mov rdx, rbp
neg rdx
mov rcx, qword [rcx + rdx]
mov edx, eax
call fcn.00587560
test al, al
je 0x589939
mov rcx, qword [rbp + 0x58]
call fcn.00411090
lea rcx, [rbp + 0x40]
mov rdx, rax
call fcn.00411130
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc0]
mov r9, qword [rbp + 0x40]
call fcn.00589570
add dword [rbp + 0x80], 1
cmp dword [rbp + 0x80], ebx
jne 0x589890
nop
nop
mov rax, qword [rbp + 0xb0]
lea rax, [rax + rbp + 0x50]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
mov rdx, qword [rbp + 0x88]
call fcn.00587640
nop
lea rcx, [rbp + 0x40]
call fcn.0040f3c0
lea rcx, [rbp + 0x58]
call fcn.0040f3c0
lea rsp, [rbp + 0x98]
pop rbx
pop rbp
ret
Function at 0x595540
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
xor rax, rax
xor rcx, rcx
sub edx, 1
cmp ecx, edx
jg 0x595582
add edx, 1
mov r9d, eax
and r9w, 0xf800
movzx r9d, r9w
shr r9d, 0xb
shl eax, 5
or r9w, ax
mov eax, r9d
movzx r9w, byte [r8]
xor ax, r9w
add r8, 1
add ecx, 1
cmp ecx, edx
jne 0x595553
nop
ret

Function at 0x6be8c0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x510
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0x520], rcx
nop
mov rax, qword [rbp + 0x520]
cmp qword [rax + 0x70], 0
jne 0x6bead9
mov rcx, qword [0x004e0508]
mov dl, 1
call fcn.00513780
mov rcx, qword [rbp + 0x520]
mov qword [rcx + 0x70], rax
mov rax, qword [rbp + 0x520]
lea rcx, [rax + 0x78]
call fcn.0040f3c0
mov ecx, 0x40
lea rdx, [rbp + 0x2f0]
call sub.user32.dll_GetKeyboardLayoutList
mov dword [rbp + 0x4fc], eax
xor rax, rax
mov ecx, dword [rbp + 0x4fc]
sub ecx, 1
mov dword [rbp + 0x3c], ecx
mov dword [rbp + 0x4f8], eax
mov eax, dword [rbp + 0x3c]
cmp dword [rbp + 0x4f8], eax
jg 0x6beab7
mov eax, dword [rbp + 0x3c]
add eax, 1
mov dword [rbp + 0x3c], eax
movsxd rax, dword [rbp + 0x4f8]
mov rcx, qword [rbp + rax*8 + 0x2f0]
call fcn.005ed220
test al, al
je 0x6beaa1
movsxd rax, dword [rbp + 0x4f8]
lea rax, [rbp + rax*8 + 0x2f0]
mov qword [rbp + 0x48], rax
mov byte [rbp + 0x50], ILClone
lea rcx, [rbp + 0x70]
lea rdx, [0x006beb64]
lea r8, [rbp + 0x48]
xor r9, r9
call fcn.004362b0
mov rcx, 0xffffffff80000002
mov rdx, rax
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x508]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x6beaa1
nop
mov dword [rbp + 0x4f4], 0x200
mov rcx, qword [rbp + 0x508]
lea rdx, [0x006bebd2]
xor r8, r8
xor r9, r9
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x4f4]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x6bea94
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0xf0]
mov r8d, pe_nt_image_headers64
call fcn.00411190
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x70]
mov rcx, rax
mov rdx, qword [rbp + 0x40]
movsxd r8, dword [rbp + 0x4f8]
mov r8, qword [rbp + r8*8 + 0x2f0]
mov rax, qword [rax]
call qword [rax + 0x80]
movsxd rax, dword [rbp + 0x4f8]
mov rcx, qword [rbp + 0x520]
mov rax, qword [rbp + rax*8 + 0x2f0]
cmp rax, qword [rcx + 0x80]
jne 0x6bea94
mov rax, qword [rbp + 0x520]
lea rcx, [rax + 0x78]
lea rdx, [rbp + 0xf0]
mov r8d, pe_nt_image_headers64
call fcn.00411190
nop
mov rcx, qword [rbp + 0x508]
call sub.advapi32.dll_RegCloseKey_1
add dword [rbp + 0x4f8], 1
mov eax, dword [rbp + 0x3c]
cmp dword [rbp + 0x4f8], eax
jne 0x6be95f
nop
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x70]
mov byte [rax + 0x61], 0
mov rax, qword [rbp + 0x520]
mov rcx, qword [rax + 0x70]
mov dl, 1
call fcn.00513630
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x70]
mov qword [rbp + 0x500], rax
nop
lea rcx, [rbp + 0x40]
call fcn.0040f3c0
mov rax, qword [rbp + 0x500]
lea rsp, [rbp + 0x510]
pop rbp
ret
Function at 0x1800086c0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x290
mov rax, qword [0x1801a70c0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000871b
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x180008722
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18000880a
mov qword [rsp + 0x2a0], rdi
xor edi, edi
nop dword [rax]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rdi
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x6c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], di
jne 0x180008750
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.1800146c0
cmp qword [rbx + 0x18], 7
mov rax, rbx
jbe 0x180008776
mov rax, qword [rbx]
mov r10, qword [rsp + 0x38]
lea r8, [rsp + 0x20]
mov r9, qword [rsp + 0x20]
cmp r10, 7
mov rdx, qword [rsp + 0x30]
cmova r8, r9
cmp rdx, qword [rbx + 0x10]
jne 0x18000882b
test rdx, rdx
je 0x1800087b8
sub r8, rax
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x18000882b
add rax, 2
sub rdx, 1
jne 0x1800087a4
mov edi, dword [rsp + 0x48]
cmp r10, 7
jbe 0x1800087f7
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x1800087ef
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000887d
mov rcx, r9
call fcn.180119280
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rdi, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180119260
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x290
pop rsi
ret
cmp r10, 7
jbe 0x180008862
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x18000885a
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000887d
mov rcx, r9
call fcn.180119280
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180008730
jmp 0x1800087f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x180011270
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov byte [0x1801e9d70], 1
call fcn.18000b760
call fcn.18000bb30
call fcn.18000c450
call fcn.18000c7f0
call fcn.18000a800
call fcn.18000af80
call fcn.18000b250
call fcn.180008900
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1800118d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1800118f8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x18001191e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180011920
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180011979
test ecx, ecx
jle 0x180011959
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x180011979
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180011979
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x1800119a0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1800119c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1800119d8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1800119f4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800119f6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180011a32
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x180011ace
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180011a6d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x180011aae
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x180011ace
cmp rbx, rax
ja 0x180011a80
test rbx, rbx
je 0x180011ace
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x180011f40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1801a70c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180011f6d
xor eax, eax
jmp 0x1800120d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180011fa7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180011fa7
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 0x1800120d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1800120cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180011fea
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 0x180012015
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1800120d1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180012084
sub eax, 1
je 0x180012084
cmp eax, 2
jne 0x1800120cc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1800120d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1800120b2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1800120cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1800120d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180119260
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret