joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180198e40
Capabilities:
Enumerate gui resources
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
sub rsp, 0x48
mov qword [rax + 0x18], rbx
mov rbx, r8
mov qword [rax - 0x10], rsi
mov qword [rax - 0x18], rdi
test r8, r8
jne 0x180198e7a
lea r8, [rax + 0x10]
lea rdx, [rax - 0x28]
call fcn.180198f90
mov edx, dword [rsp + 0x58]
mov rbx, qword [rax]
add rbx, 0x18
mov qword [rsp + 0x40], rbp
test edx, edx
je 0x180198f4d
mov ecx, edx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x180198f4d
cmp qword [0x1802978e0], 0
jne 0x180198ec9
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], 0
lea rcx, [0x180195230]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x50]
mov qword [0x1802978e0], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x1802978e0]
jne 0x180198f4d
cmp byte [rbx], 0
mov dil, 1
jne 0x180198f50
movzx esi, dil
call fcn.18019be98
mov rcx, rax
lea r8, [rbx + 8]
movabs rax, 0x346dc5d63886594b
imul rcx
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [r8]
add rax, 0xfa
cmp rdx, rax
jge 0x180198f76
movzx ecx, dil
xor al, al
mov rbp, qword [rsp + 0x40]
test sil, sil
mov byte [rbx], dil
mov rdi, qword [rsp + 0x30]
mov byte [rbx + 1], sil
mov rsi, qword [rsp + 0x38]
mov byte [rbx + 2], cl
mov byte [rbx + 3], al
mov rbx, qword [rsp + 0x60]
je 0x180198f48
mov qword [r8], rdx
add rsp, 0x48
ret
xor dil, dil
xor sil, sil
call fcn.18019be98
mov rcx, rax
movabs rax, 0x346dc5d63886594b
imul rcx
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
xor cl, cl
lea r8, [rbx + 8]
test dil, dil
jne 0x180198f1d
cmp byte [rbx], cl
je 0x180198f1d
mov al, 1
jmp 0x180198f1f
Function at 0x180199280
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x18019942e
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x18028f168]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x18028f178]
lea rdx, [rdi + rdi]
call fcn.18009a520
mov rax, qword [0x18028f168]
lea r9, [rdi - 1]
mov qword [0x18028f190], r9
mov qword [0x18028f198], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180199423
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x18028f178]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18019936f
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1801993e4
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x1801993ac
mov r10, qword [rdx]
cmp r10, rax
je 0x1801993a6
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1801993e4
cmp r9, rdx
je 0x1801993c0
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x1801993f8
cmp r9, rdx
jne 0x1801993b1
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x18019941e
mov r9, qword [0x18028f190]
jmp 0x180199320
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1801993e4
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.18019af50
int3
Function at 0x180199880
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r15
sub rsp, 0x80
mov rbp, r8
mov r15, rdx
mov esi, 0x811c9dc5
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rcx + r8], 0
jne 0x1801998a2
xor edx, edx
test rcx, rcx
je 0x1801998d5
nop dword [rax]
nop word [rax + rax]
movsx eax, byte [rdx + r8]
inc rdx
xor eax, esi
imul esi, eax, 0x1000193
cmp rdx, rcx
jb 0x1801998c0
xor edi, edi
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], r14
cmp dword [r15 + 8], edi
jle 0x180199968
xor r14d, r14d
mov rbx, qword [r15]
mov r9d, 0x811c9dc5
mov rax, 0xffffffffffffffff
movups xmm1, xmmword [rbx + r14 + 0x40]
mov r8, qword [rbx + r14]
nop word [rax + rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x180199910
xor edx, edx
test rax, rax
je 0x180199938
movsx ecx, byte [rdx + r8]
inc rdx
xor ecx, r9d
imul r9d, ecx, 0x1000193
cmp rdx, rax
jb 0x180199921
cmp esi, r9d
je 0x180199997
movq rdx, xmm1
test rdx, rdx
je 0x18019995c
mov r8, rbp
lea rcx, [0x180297201]
call fcn.180199880
mov ecx, eax
test eax, eax
jne 0x18019998e
inc edi
add r14, 0x60
cmp edi, dword [r15 + 8]
jl 0x1801998f0
xor eax, eax
mov r14, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xb0]
add rsp, 0x80
pop r15
pop rdi
pop rsi
ret
mov eax, dword [rbx + r14 + 0x48]
add eax, ecx
jmp 0x18019996a
psrldq xmm1, 8
movd eax, xmm1
jmp 0x18019996a

Function at 0x18019cb2c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18019cb66
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18019cb6b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18019cbb4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1801ff760]
cmp byte [rcx + rax], 0
je 0x18019cbb4
dec r8
sub rdx, 1
jne 0x18019cb9a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1801a2e10
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.1801c89b0
sub rsp, rax
mov rax, qword [0x18028d040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1801b5c54
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1801a2e5f
mov rax, rbp
jmp 0x1801a2f67
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 + 0x2950b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1801b5ee4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x2950b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1801a2f63
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 0x1801a2f63
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1801b5ee4
test rax, rax
js 0x1801a2f63
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1801a2f63
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1801a2f55
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1801a2f55
cmp byte [rcx], 0xd
jne 0x1801a2f3b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1801a2f4a
cmp byte [rcx + 1], 0xa
jne 0x1801a2f4a
inc rcx
jmp 0x1801a2f4a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x28d4b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1801a2f1d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1801a2f67
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1801c8900
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1801b3b94
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 0x1801b3c03
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1801b3c03
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1801b3c03
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1801b3c03
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1801b3c03
cmp dword [rcx + 0x84], 0xe
jbe 0x1801b3c03
cmp dword [rcx + 0xf8], 0
je 0x1801b3c03
mov ecx, ebx
call fcn.1801b3cb4
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.1801b3a90
nop
cmp dword [rbp + 0x20], 0
je 0x1801b3c51
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1801b3c5c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1801b3b94
Function at 0x1801b7f2c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1802950b0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1801b7f83
cmp word [rdx], r13w
jne 0x1801b7f83
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1801b7f88
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1801b80ad
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1801b80ce
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1801b7fc1
mov rdx, r9
mov word [rbx], cx
jmp 0x1801b7fe8
cmp r9, r8
jae 0x1801b7ff8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1801b7fa2
jmp 0x1801b80ad
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1801b80a2
cmp dword [rsp + 0x80], esi
je 0x1801b80a2
lea r8, [0x1802950b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1801b807a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1801b804a
mov word [rbx], r13w
jmp 0x1801b80aa
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1801b8057
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1801b80aa
cmp word [rsp + 0x70], r13w
jne 0x1801b8087
cmp rbx, r14
je 0x1801b8044
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1801b5eec
cmp word [rsp + 0x70], r13w
je 0x1801b80ad
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1802950b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1801b80a7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1801b80ad
Function at 0x1801bbe50
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1801bbe66
mov al, 1
jmp 0x1801bbec6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1801bbe77
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1801bbec4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1801c135c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1801bbec4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1801bbec4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1801bbec4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1801bbec6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1801bfbf0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1801bfc20
xor eax, eax
jmp 0x1801bfce3
mov rbp, rbx
cmp word [rax], si
je 0x1801bfc45
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1801bfc2c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1801bfc28
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1801bfb10
movsxd r14, eax
test eax, eax
jne 0x1801bfc83
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1801bfc19
mov rcx, r14
call fcn.1801ba8ec
mov rdi, rax
test rax, rax
jne 0x1801bfc9c
xor ecx, ecx
call fcn.1801b8c10
jmp 0x1801bfc78
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1801bfb10
test eax, eax
jne 0x1801bfccd
mov rcx, rdi
call fcn.1801b8c10
jmp 0x1801bfcd7
xor ecx, ecx
call fcn.1801b8c10
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1801c3a08
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1801b634c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1801c3aa9
cmp ebx, dword [rsp + 0x30]
je 0x1801c3aa2
test esi, esi
je 0x1801c3aa2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1801c3a7d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1801c3a8a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1801c3a67
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1801c3a8e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1801c3aab
mov eax, 1
jmp 0x1801c3aab
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1801c8054
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1801b5eec
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1801b5eec
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1801c81a4
cmp rax, 0xffffffffffffffff
je 0x1801c81a4
xor edi, edi
test rbp, rbp
jle 0x1801c814f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1801b8b98
mov rbx, rax
test rax, rax
jne 0x1801c80dc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1801c8145
mov edx, 0x8000
mov ecx, r14d
call fcn.1801c7ed8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1801ba1e0
cmp eax, 0xffffffff
je 0x1801c8125
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1801c80ec
mov edx, r15d
mov ecx, r14d
call fcn.1801c7ed8
jmp 0x1801c8145
cmp byte [rsi + 0x38], dil
je 0x1801c813c
cmp dword [rsi + 0x34], 5
jne 0x1801c813c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1801c8145
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1801b8c10
jmp 0x1801c81b8
jns 0x1801c81b8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1801b5eec
cmp rax, 0xffffffffffffffff
jne 0x1801c8170
cmp byte [rsi + 0x30], dil
je 0x1801c81b8
mov edi, dword [rsi + 0x2c]
jmp 0x1801c81b8
mov ecx, r14d
call fcn.1801c135c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1801c81b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1801c81b8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1801c81b1
mov eax, dword [rsi + 0x2c]
jmp 0x1801c81b6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1801b5eec
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1801c8aa0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1801c8ac8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1801c8ac8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x175a60
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x175beb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00192f80
xorps xmm15, xmm15
mov r14, qword [0x00414b78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x175ac5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x175ad4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x175af3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x175b03
cmp rbx, 0x1000
jae 0x175acb
jmp 0x175b6d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x175b15
xor edx, edx
jmp 0x175b64
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00192f80
xorps xmm15, xmm15
mov r14, qword [0x00414b78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x175af9
jmp 0x175ae8
call fcn.001c5040
xorps xmm15, xmm15
mov r14, qword [0x00414b78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00197480
lea rax, [0x002addbd]
mov ebx, 0x18
nop dword [rax]
call fcn.00197d00
mov rax, qword [rsp + 0x38]
call fcn.00197a40
lea rax, [0x002ae48c]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00197d00
mov rax, qword [rsp + 0x30]
call fcn.00197a40
call fcn.001976c0
call fcn.001974e0
lea rax, [0x002b11cd]
mov ebx, 0x21
call fcn.00195ae0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.001c1960
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00175a60
Function at 0x175c20
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x175e46
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00193000
xorps xmm15, xmm15
mov r14, qword [0x00414b78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x175c93
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x175ca2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x175cc5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x175cd5
cmp rbx, 0x1000
jae 0x175c99
nop
jmp 0x175d58
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x175ced
xor esi, esi
jmp 0x175d4a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00193000
xorps xmm15, xmm15
mov r14, qword [0x00414b78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x175ccb
jmp 0x175cb6
call fcn.001c5040
xorps xmm15, xmm15
mov r14, qword [0x00414b78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x175de0
nop dword [rax + rax]
call fcn.00197480
lea rax, [0x002ae4a5]
mov ebx, 0x19
call fcn.00197d00
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.00197a40
lea rax, [0x002ae48c]
mov ebx, 0x19
call fcn.00197d00
mov eax, dword [rsp + 0x34]
call fcn.00197a40
nop
call fcn.001976c0
call fcn.001974e0
lea rax, [0x002a9dec]
mov ebx, 0xd
call fcn.00195ae0
nop dword [rax + rax]
cmp eax, 0x5af
je 0x175d80
call fcn.00197480
lea rax, [0x002ae4a5]
mov ebx, 0x19
call fcn.00197d00
mov rax, qword [rsp + 0x38]
call fcn.00197a40
lea rax, [0x002ae48c]
mov ebx, 0x19
call fcn.00197d00
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.00197a40
call fcn.001976c0
call fcn.001974e0
lea rax, [0x002b08c7]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.00195ae0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.001c1960
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00175c20