joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180063620
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
mov rax, qword [rcx + 0x3c8]
mov ebx, edx
mov esi, r9d
sub rax, qword [rcx + 0x3c0]
mov r12d, r8d
mov rdi, rcx
sar rax, 4
cmp rbx, rax
jb 0x180063662
mov eax, 0x80004005
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rax, qword [rcx + 0x3c8]
mov qword [rsp + 0x50], rbp
sub rax, qword [rcx + 0x3c0]
sar rax, 4
cmp rbx, rax
jb 0x180063683
call fcn.180076fcc
mov rbp, qword [rdi + 0x3c0]
add rbx, rbx
mov rcx, qword [rbp + rbx*8 + 8]
test rcx, rcx
je 0x180063775
cmp rcx, 0xffffffffffffffff
je 0x180063775
lea edx, [r12 + 0x2c]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18006374c
mov r12, qword [rsp + 0x70]
mov dword [rsp + 0x58], 0
mov rcx, qword [rbp + rbx*8 + 8]
lea r9, [rsp + 0x58]
mov rdx, r12
mov r8d, esi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180063761
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x180063710
cmp eax, 0x3e6
je 0x180063710
test eax, eax
jle 0x18006377a
movzx eax, ax
or eax, 0x80070000
jmp 0x18006377a
mov edx, esi
mov rcx, rdi
call fcn.180063790
mov rdi, rax
test rax, rax
jne 0x180063729
mov eax, 0x8007000e
jmp 0x18006377a
mov rcx, qword [rbp + rbx*8 + 8]
lea r9, [rsp + 0x58]
mov r8d, esi
mov rdx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180063753
call fcn.180003220
jmp 0x18006377a
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.1800785c0
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180063771
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
xor eax, eax
jmp 0x18006377a
mov eax, 0x80004005
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x180064620
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x30
mov rax, r9
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, rax
mov ebx, r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x48]
cmp eax, ebx
jne 0x180064653
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1800660b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x248
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, r9
mov r12, r8
mov rdi, rdx
nop dword [rax + rax]
movzx eax, word [rdi]
cmp ax, 0x20
je 0x1800660ef
cmp ax, 9
jne 0x1800660f5
add rdi, 2
jmp 0x1800660e0
cmp word [rdi], 0x22
mov qword [rsp + 0x240], rbp
jne 0x18006611b
add rdi, 2
mov edx, 0x22
lea rcx, [rdi + 2]
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rbx, rax
jmp 0x180066155
lea rcx, [rdi + 2]
mov edx, 0x20
call qword [sym.imp.SHLWAPI.dll_StrChrW]
lea rcx, [rdi + 2]
mov edx, 9
mov rbp, rax
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rbx, rax
test rbp, rbp
je 0x180066155
test rax, rax
jne 0x18006614e
mov rbx, rbp
jmp 0x180066155
cmp rbp, rax
cmovb rbx, rbp
test rbx, rbx
jne 0x180066164
mov eax, 0xe0032002
jmp 0x180066269
sub rbx, rdi
sar rbx, 1
cmp rbx, 0x104
jge 0x18006615a
mov edx, 0x5c
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrW]
test rax, rax
je 0x18006619f
add rbx, rbx
mov rdx, rdi
mov rcx, rsi
mov r8, rbx
call fcn.1800785c0
xor edi, edi
mov word [rbx + rsi], di
jmp 0x1800661e5
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov rbp, rax
test rax, rax
jne 0x1800661cc
mov eax, 0x80004005
jmp 0x180066269
add rbx, rbx
lea rcx, [rax + 2]
mov rdx, rdi
mov r8, rbx
call fcn.1800785c0
xor edi, edi
mov word [rbx + rbp + 2], di
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180066267
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], di
call fcn.1800795c0
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [rax], 0
je 0x180066227
lea rcx, [rsp + 0x20]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [rsp + 0x20], 0
je 0x180066252
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180066267
mov eax, 0xe0032001
jmp 0x180066269
xor eax, eax
mov rbp, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180076a70
add rsp, 0x248
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x180066440
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp word [rcx], 0
mov rsi, r8
mov rdi, rdx
jne 0x18006646c
mov eax, 0x80070057
jmp 0x180066640
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0x70], rbp
xor ebp, ebp
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1800664b1
call fcn.180003220
jmp 0x180066633
xor eax, eax
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea r8d, [rax + 0x10]
mov rcx, rbx
mov dword [rsp + 0x40], ebp
mov byte [rsp + 0x48], bpl
mov qword [rsp + 0x49], rax
mov dword [rsp + 0x51], eax
mov word [rsp + 0x55], ax
mov byte [rsp + 0x57], al
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800665ec
mov ecx, dword [rsp + 0x48]
cmp ecx, dword [str.MAC]
jne 0x180066509
mov dword [rdi], 5
jmp 0x180066622
cmp ecx, dword [str.fLaC]
jne 0x18006651c
mov dword [rdi], 6
jmp 0x180066622
cmp ecx, dword [str.wvpk]
jne 0x18006652f
mov dword [rdi], 7
jmp 0x180066622
cmp ecx, dword [str.IsZ_]
jne 0x180066542
mov dword [rdi], 0xa
jmp 0x180066622
cmp ecx, dword [str.RIFF]
jne 0x180066563
mov rax, qword [rsp + 0x50]
cmp rax, qword [str.WAVEfmt]
jne 0x180066563
mov dword [rdi], 8
jmp 0x180066622
lea rax, [rsp + 0x48]
lea rcx, str.MEDIA_DESCRIPTOR
mov rdx, qword [rax]
cmp rdx, qword [rcx]
jne 0x180066585
mov rdx, qword [rax + 8]
cmp rdx, qword [rcx + 8]
jne 0x180066585
mov eax, ebp
jmp 0x18006658a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x180066599
mov dword [rdi], 2
jmp 0x180066622
xor eax, eax
xor r8d, r8d
mov rcx, rbx
lea r9d, [rax + 2]
lea rdx, [rax - 0x10]
mov byte [rsp + 0x58], bpl
mov qword [rsp + 0x59], rax
mov dword [rsp + 0x61], eax
mov word [rsp + 0x65], ax
mov byte [rsp + 0x67], al
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180066600
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180066600
call fcn.180003220
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x180066633
mov eax, dword [rsp + 0x5c]
cmp eax, dword [str.NER5]
je 0x18006661c
mov eax, dword [rsp + 0x60]
cmp eax, dword [str.NERO]
je 0x18006661c
mov dword [rsi], ebp
jmp 0x180066628
mov dword [rdi], 1
mov dword [rsi], 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180076a70
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x180067120
Capabilities:
Get disk information via ioctl
Get disk size

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor eax, eax
mov rdi, rdx
xor esi, esi
mov qword [r11 - 0x70], rsi
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
lea rax, [r11 - 0x68]
mov rbx, r8
xor r9d, r9d
mov qword [r11 - 0x78], rax
lea rax, [r11 - 0x40]
mov edx, 0x24050
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], esi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1800671c2
cmp dword [rsp + 0x40], esi
je 0x1800671c2
cmp dword [rsp + 0x7c], 0x800
jne 0x180067276
mov rax, qword [rsp + 0x80]
mov qword [rbx], rax
xor eax, eax
jmp 0x18006727b
xor eax, eax
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x2404c
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov rcx, rdi
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180067276
cmp dword [rsp + 0x40], esi
je 0x180067276
cmp dword [rsp + 0x64], 0x800
jne 0x180067276
xor eax, eax
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov edx, 0x7405c
mov rcx, rdi
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180067276
cmp dword [rsp + 0x40], esi
je 0x180067276
mov rax, qword [rsp + 0x48]
mov qword [rbx], rax
xor eax, eax
jmp 0x18006727b
mov eax, 0xe003200c
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.180076a70
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800673e0
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x90
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbp, r9
movzx r12d, r8w
movzx ebx, dx
mov rsi, rcx
xor eax, eax
mov qword [rsp + 0x5a], rax
mov qword [rsp + 0x62], rax
mov word [rsp + 0x6a], ax
mov word [rsp + 0x58], dx
lea rdx, [0x1800f4a98]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x180067458
mov eax, 0xe003200c
jmp 0x180067566
xor edi, edi
mov word [rsp + 0x70], di
xor eax, eax
mov qword [rsp + 0x72], rax
mov qword [rsp + 0x7a], rax
mov word [rsp + 0x82], ax
movzx r8d, bx
lea rdx, str.._c:
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x1800674ca
call fcn.180003220
nop
jmp 0x180067566
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
call fcn.180067120
mov edi, eax
test eax, eax
js 0x18006755b
cmp eax, 1
je 0x18006755b
mov rax, qword [rbp]
mov rdx, qword [rsp + 0x40]
mov rcx, rbp
call qword [rax + 0x70]
mov edi, eax
test eax, eax
js 0x18006754e
cmp eax, 1
je 0x18006754e
test r12w, r12w
je 0x180067531
movzx r8d, r12w
mov rdx, rbx
mov rcx, rsi
call fcn.1800672a0
mov edi, eax
test eax, eax
js 0x180067524
cmp eax, 1
jne 0x180067531
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x180067566
mov r8, rbp
mov rdx, rbx
mov rcx, rsi
call fcn.180067590
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x180067566
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x180067566
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180076a70
add rsp, 0x90
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18006ec60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
lea rcx, [0x18011ce00]
xor edx, edx
mov r8d, 0x800
call fcn.1800795c0
mov edi, reloc.WS2_32.dll_recv
xor ebp, ebp
nop word [rax + rax]
mov rbx, qword [rsi + 0x20]
inc dword [rbx + 0x20]
mov edx, dword [rbx + 0x20]
cmp dword [rbx + 0x10], ebp
jne 0x18006ed2e
mov eax, dword [rbx + 0x28]
test eax, eax
js 0x18006ed2e
cmp eax, 1
je 0x18006ed2e
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18006eced
mov eax, dword [rbx + 0x24]
cmp edx, eax
cmovb eax, edx
lea rdx, [rsp + 0x48]
shl rax, 0xb
mov qword [rsp + 0x48], rax
mov rax, qword [rcx]
call qword [rax + 0x78]
test eax, eax
je 0x18006eced
mov dword [rbx + 0x28], 0x80004004
jmp 0x18006ed2e
mov rcx, rbx
call fcn.1800711d0
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x48]
lea rdx, [0x18011ce00]
mov r8d, 0x800
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18006ed26
call fcn.180003220
mov dword [rbx + 0x28], eax
mov rcx, rbx
call fcn.180071250
sub rdi, 1
jne 0x18006eca0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180071120
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 0x28]
mov rdi, rdx
mov rbx, rcx
test eax, eax
js 0x180071171
cmp eax, 1
je 0x180071171
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x18007117e
mov eax, dword [rbx + 0x20]
mov edx, dword [rbx + 0x24]
cmp eax, edx
cmovb edx, eax
mov eax, edx
lea rdx, [rsp + 0x40]
shl rax, 0xb
mov qword [rsp + 0x40], rax
mov rax, qword [rcx]
call qword [rax + 0x78]
test eax, eax
je 0x18007117e
mov dword [rbx + 0x28], 0x80004004
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, rbx
call fcn.1800711d0
mov rcx, qword [rbx + 8]
xor eax, eax
lea r9, [rsp + 0x40]
mov r8d, 0x800
mov rdx, rdi
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800711b5
call fcn.180003220
mov dword [rbx + 0x28], eax
mov rcx, rbx
call fcn.180071250
mov rbx, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x1800711d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x100
call fcn.1800795c0
mov rax, qword [rbx]
xor ecx, ecx
mov r8d, dword [rax + 0xc]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180071232
call fcn.180003220
mov dword [rbx + 0x28], eax
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180076a70
add rsp, 0x150
pop rbx
ret

Function at 0x180071250
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0xa50
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0xa40], rax
mov rbx, rcx
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0xa00
call fcn.1800795c0
mov rax, qword [rbx]
xor ecx, ecx
mov r8d, dword [rax + 0x10]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800712b2
call fcn.180003220
mov dword [rbx + 0x28], eax
mov eax, 1
mov rcx, qword [rsp + 0xa40]
xor rcx, rsp
call fcn.180076a70
add rsp, 0xa50
pop rbx
ret
Function at 0x1800734d0
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov edi, edx
lea rcx, [rsp + 0x32]
xor ebp, ebp
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bp
call fcn.1800795c0
lea edx, [rbp + 0x5c]
lea rcx, [rbx + 0xc0]
call fcn.180078578
test rax, rax
jne 0x180073532
mov eax, 0x80004005
jmp 0x180073587
sub rax, rbx
lea rdx, [rbx + 0xc0]
lea rcx, [rsp + 0x30]
lea r8, [rax - 0xc0]
sar r8, 1
inc r8d
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x180073575
call fcn.180003220
jmp 0x180073587
mov ecx, dword [rbx + 0x6c]
mov eax, 0x80070070
add ecx, edi
cmp qword [rsp + 0x20], rcx
cmova eax, ebp
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180076a70
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18007930b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18010f050]
jne 0x180076a8a
rol rcx, 0x10
test cx, 0xffff
jne 0x180076a86
repz ret
ror rcx, 0x10
jmp 0x180079264
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1801172b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1801173a8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800792e9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1801172b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18007930b
mov rax, qword [rsp + 0x88]
mov qword [0x1801173a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180117348], rax
mov rax, qword [0x1801173a8]
mov qword [0x180117220], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180117330], rax
mov dword [0x180117210], 0xc0000409
mov dword [0x180117214], 1
mov rax, qword [0x18010f050]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18010f058]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1801172a8], eax
mov ecx, 1
call fcn.18007984c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800ce888]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1801172a8], 0
jne 0x180079392
mov ecx, 1
call fcn.18007984c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x18007e4e8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x18007e35c
Function at 0x180083ca4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.18007985c
xor ebx, ebx
mov rdi, rax
cmp qword [0x180117f78], rbx
jne 0x180083daa
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180083e7f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180083e7f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x1800cfb10]
mov rcx, rsi
mov qword [0x180117f78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180117f80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x180117f88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x180117f98], rax
test rax, rax
je 0x180083da1
lea rdx, [0x1800cfac0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x180117f90], rax
jmp 0x180083db1
mov rax, qword [0x180117f90]
jmp 0x180083db8
mov rax, qword [0x180117f90]
mov r11, qword [0x180117f98]
cmp rax, rdi
je 0x180083e20
cmp r11, rdi
je 0x180083e20
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x180117f98]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x180083e20
test rax, rax
je 0x180083e20
call rsi
test rax, rax
je 0x180083e1a
lea rcx, [rsp + 0x88]
mov r9d, recv
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180083e1a
test byte [rsp + 0x38], 1
jne 0x180083e20
bts ebp, 0x15
jmp 0x180083e5e
mov rcx, qword [0x180117f80]
cmp rcx, rdi
je 0x180083e5e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180083e5e
call rax
mov rbx, rax
test rax, rax
je 0x180083e5e
mov rcx, qword [0x180117f88]
cmp rcx, rdi
je 0x180083e5e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180083e5e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180117f78]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180083e7f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180083e81
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x18008f630
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
movsxd rbx, dword [rsp + 0x40]
xor r10d, r10d
mov rsi, r8
mov r11, rdx
cmp r9d, 2
jne 0x18008f732
cmp rbx, 2
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], r12
mov r12d, r10d
mov ebp, r10d
mov r9, r10
jl 0x18008f6ed
mov qword [rsp + 0x30], r13
mov rdi, rdx
mov qword [rsp + 0x38], r14
lea r14, [rbx - 1]
lea r13, [r8 + 4]
sub rdi, r8
mov ecx, dword [r13 - 4]
mov r8d, dword [r11 + r9*4]
add r9, 2
mov eax, ecx
add r13, 8
cdq
sub eax, edx
sar eax, 1
sub r8d, eax
lea eax, [rcx + r8]
cdq
mov ecx, eax
mov eax, r8d
mov r8d, dword [rdi + r13 - 8]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
add ebp, ecx
mov ecx, dword [r13 - 8]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub r8d, eax
lea eax, [rcx + r8]
cdq
mov ecx, eax
mov eax, r8d
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
add r12d, eax
add r12d, ecx
cmp r9, r14
jl 0x18008f681
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x30]
cmp r9, rbx
jge 0x18008f71d
mov ecx, dword [rsi + r9*4]
mov r8d, dword [r11 + r9*4]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub r8d, eax
lea eax, [rcx + r8]
cdq
mov r10d, eax
mov eax, r8d
xor r10d, edx
sub r10d, edx
cdq
xor eax, edx
sub eax, edx
add r10d, eax
lea eax, [r12 + rbp]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x20]
add eax, r10d
pop rdi
pop rsi
pop rbx
ret
cmp r9d, 1
jne 0x18008f78e
cmp rbx, 2
mov r8d, r10d
mov r9d, r10d
mov rcx, r10
jl 0x18008f772
lea rdi, [rbx - 1]
nop dword [rax + rax]
mov eax, dword [r11 + rcx*4]
add rcx, 2
cdq
xor eax, edx
sub eax, edx
add r8d, eax
mov eax, dword [r11 + rcx*4 - 4]
cdq
xor eax, edx
sub eax, edx
add r9d, eax
cmp rcx, rdi
jl 0x18008f750
cmp rcx, rbx
jge 0x18008f783
mov eax, dword [r11 + rcx*4]
cdq
xor eax, edx
sub eax, edx
mov r10d, eax
lea eax, [r9 + r8]
add eax, r10d
pop rdi
pop rsi
pop rbx
ret
mov eax, r10d
pop rdi
pop rsi
pop rbx
ret