joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007a8cc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1802a9070]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x18007a905
xor eax, eax
jmp 0x18007aa27
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x18007a93f
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x18007a93f
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x18007aa27
cmp qword [rbx + 0x80], 0
je 0x18007aa25
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18007a97a
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 0x18007a99d
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.1801a0050
cmp eax, edi
cmovne edi, esi
jmp 0x18007aa25
lea r8, [rbp - 0x40]
mov byte [rbp - 0x30], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x2f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp - 0x38]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x30]
call qword [rax + 0x38]
test eax, eax
je 0x18007a9eb
sub eax, 1
je 0x18007a9eb
cmp eax, 2
jne 0x18007aa25
movsx ecx, byte [rbp - 0x30]
jmp 0x18007a987
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x18007aa15
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.18019f9d8
cmp r14, rax
jne 0x18007aa25
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x38], rax
mov eax, esi
jne 0x18007aa27
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1801937d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x18007b17c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1802a9070]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18007b1eb
cmp byte [rcx + 0x71], 0
je 0x18007b1eb
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18007b23f
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x18007b205
sub eax, 1
je 0x18007b209
cmp eax, 2
jne 0x18007b23f
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1801937d0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18007b236
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.18019f9d8
cmp rdi, rax
jne 0x18007b23f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18007b1ed
xor al, al
jmp 0x18007b1ed

Function at 0x18007c9d8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1802a9070]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov dword [rbp - 0x30], 0x64616f4c
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x2c], 0x7262694c
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x28], 0x41797261
mov byte [rbp - 0x24], 0
mov dword [rbp - 0x20], 0x4e52454b
mov dword [rbp - 0x1c], 0x41424c45
mov dword [rbp - 0x18], 0x642e4553
mov word [rbp - 0x14], 0x6c6c
mov byte [rbp - 0x12], 0
call fcn.18007ca58
mov rcx, rbx
call rax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1801937d0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret

Function at 0x18007ca58
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x110
mov rax, qword [0x1802a9070]
xor rax, rsp
mov qword [rsp + 0x100], rax
or r9d, 0xffffffff
mov dword [rsp + 0x28], 0x64
mov rdi, rdx
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov r8, rcx
xor ecx, ecx
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
jmp 0x18007cade
mov rcx, qword [rax + 0x60]
lea r8, [rsp + 0x30]
sub r8, rcx
movzx edx, word [rcx]
movzx r9d, word [rcx + r8]
sub edx, r9d
jne 0x18007cad7
add rcx, 2
test r9d, r9d
jne 0x18007cac1
test edx, edx
je 0x18007cae7
mov rax, qword [rax]
cmp qword [rax + 0x30], 0
jne 0x18007cab5
jmp 0x18007caf0
mov rax, qword [rax + 0x30]
test rax, rax
jne 0x18007cafd
mov rcx, rbx
call fcn.18007c9d8
test rax, rax
je 0x18007cb0d
mov rdx, rdi
mov rcx, rax
call fcn.18007cb30
test rax, rax
jne 0x18007cb0f
xor eax, eax
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1801937d0
mov rbx, qword [rsp + 0x130]
add rsp, 0x110
pop rdi
ret
Function at 0x18007cb30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x1802a9070]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor r12d, r12d
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
je 0x18007cca8
movsxd rax, dword [rcx + 0x3c]
mov r9d, dword [rax + rcx + 0x88]
mov r11d, dword [rax + rcx + 0x8c]
lea r8, [rcx + r9]
test r11d, r11d
je 0x18007cca8
lea r13d, [r12 + 1]
cmp rdx, 0xffff
ja 0x18007cc57
mov ecx, dword [r8 + 0x1c]
movzx eax, bp
sub ax, word [r8 + 0x10]
add rcx, rbx
add ax, r13w
movzx edx, ax
mov edi, dword [rcx + rdx*4]
cmp edi, r9d
jb 0x18007cc57
lea eax, [r9 + r11]
cmp edi, eax
jae 0x18007cc57
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.180196810
lea rdx, [rbx + rdi]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r12b
jne 0x18007cbe6
test r8, r8
je 0x18007cca8
lea rcx, [rsp + 0x20]
call fcn.180196160
mov edx, 0x2e
lea rcx, [rsp + 0x20]
call fcn.1801960ac
lea rdi, [rax + r13]
mov byte [rax], r12b
cmp byte [rdi], 0x23
jne 0x18007cc29
lea rcx, [rdi + 1]
call fcn.1801a0598
movzx edi, ax
lea rcx, [rsp + 0x20]
call fcn.18007c9d8
mov rsi, rax
cmp rax, rbx
jne 0x18007cc4a
mov rdx, rbp
mov rcx, rdi
call fcn.1801a049c
test eax, eax
je 0x18007cca8
mov rdx, rdi
mov rcx, rsi
call fcn.18007cb30
jmp 0x18007ccaa
mov ecx, dword [r8 + 0x18]
mov edi, r12d
mov r15d, dword [r8 + 0x20]
sub ecx, r13d
lea r10d, [rdi + rcx]
mov rsi, rbp
shr r10d, 1
lea rax, [r15 + r10*4]
mov edx, dword [rax + rbx]
add rdx, rbx
sub rsi, rdx
mov al, byte [rdx]
cmp al, byte [rdx + rsi]
jne 0x18007cc8f
add rdx, r13
test al, al
jne 0x18007cc7c
mov eax, r12d
jmp 0x18007cc94
sbb eax, eax
or eax, r13d
test eax, eax
jns 0x18007cc9e
lea edi, [r10 + 1]
jmp 0x18007cca4
jle 0x18007ccd5
lea ecx, [r10 - 1]
cmp edi, ecx
jbe 0x18007cc65
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1801937d0
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, dword [r8 + 0x24]
add rcx, rbx
cmp word [rcx + r10*2], r12w
je 0x18007cca8
movzx edx, word [rcx + r10*2]
mov ecx, dword [r8 + 0x1c]
add rcx, rbx
mov edi, dword [rcx + rdx*4]
cmp edi, r9d
jb 0x18007cd27
lea eax, [r9 + r11]
cmp edi, eax
jae 0x18007cd27
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.180196810
lea rdx, [rbx + rdi]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r12b
jne 0x18007cd19
jmp 0x18007cbef
lea rax, [rbx + rdi]
jmp 0x18007ccaa
Function at 0x18007f32c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1802a9070]
xor rax, rsp
mov qword [rbp - 8], rax
mov rcx, qword [0x1802db910]
lea rdx, [rbp - 0x28]
mov rdi, qword [0x1802db2b0]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp - 0x20]
lea rcx, [rbp - 0x10]
sub eax, dword [rbp - 0x28]
movd xmm1, eax
mov eax, dword [rbp - 0x1c]
sub eax, dword [rbp - 0x24]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp - 0x10]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x1802db918]
cvtsi2ss xmm0, qword [0x1802db920]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x1802db918], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov bl, 1
and al, bl
mov ecx, 0x10
mov byte [rdi + 0x148], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, bl
mov byte [rdi + 0x149], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, bl
mov byte [rdi + 0x14b], 0
mov rbx, qword [0x1802db2b0]
mov byte [rdi + 0x14a], al
cmp byte [rbx + 0x3a3], 0
je 0x18007f452
cvttss2si eax, dword [rbx + 0x130]
mov rcx, qword [0x1802db910]
lea rdx, [rbp - 0x18]
mov dword [rbp - 0x18], eax
cvttss2si eax, dword [rbx + 0x134]
mov dword [rbp - 0x14], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rbp - 0x14]
mov ecx, dword [rbp - 0x18]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, 0xff7fffff
mov dword [rbx + 0x130], eax
mov dword [rbx + 0x134], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x18007f4ca
mov rdx, qword [0x1802db910]
cmp rax, rdx
je 0x18007f487
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x18007f4ca
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x18007f4ca
mov rcx, qword [0x1802db910]
lea rdx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x18007f4ca
movd xmm0, dword [rbp - 0x30]
movd xmm1, dword [rbp - 0x2c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x130], xmm0
movss dword [rbx + 0x134], xmm1
cmp byte [rdi + 0xc8], 0
je 0x18007f4d8
or eax, 0xffffffff
jmp 0x18007f4e5
mov rax, qword [0x1802db2b0]
mov eax, dword [rax + 0x1f98]
cmp dword [0x1802d4ca8], eax
je 0x18007f4f8
mov dword [0x1802d4ca8], eax
call fcn.18007f2d0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1801937d0
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x180080b64
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x180080bbe
mov r11b, 0x23
lea rdi, [0x1801dabe0]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x180080ba8
cmp rdx, 2
jb 0x180080ba8
cmp byte [r10], r11b
jne 0x180080ba8
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x180080b86
jmp 0x180080bff
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x180080bff
mov r11b, 0x23
lea rdi, [0x1801dabe0]
cmp dl, r11b
jne 0x180080be3
cmp byte [r10], r11b
jne 0x180080be3
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x180080bd1
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x180080d1c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180080d3d
and qword [r8], 0
lea rdx, [0x1801daa24]
call fcn.180080c10
mov rbx, rax
test rax, rax
je 0x180080e12
mov rcx, rax
call fcn.1801a0b1c
mov esi, eax
cmp eax, 0xffffffff
je 0x180080e0a
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.18019f734
test eax, eax
jne 0x180080e0a
mov rcx, rbx
call fcn.1801a0b1c
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180080e0a
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.18019f734
test eax, eax
jne 0x180080e0a
cmp rdi, 0xffffffffffffffff
je 0x180080e0a
mov rax, qword [0x1802db2b0]
test rax, rax
je 0x180080db7
inc dword [rax + 0x3bc]
mov rdx, qword [0x1802db2a8]
mov rcx, rdi
call fcn.180080464
mov rsi, rax
test rax, rax
je 0x180080e0a
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.18019fcbc
mov rcx, rbx
cmp rax, rdi
je 0x180080df8
call fcn.1801a03e8
mov rcx, rsi
call fcn.180083290
jmp 0x180080e12
call fcn.1801a03e8
test r14, r14
je 0x180080e05
mov qword [r14], rdi
mov rax, rsi
jmp 0x180080e14
mov rcx, rbx
call fcn.1801a03e8
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x180082bfc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x28
movsxd rdx, dword [rcx + 0xc0]
mov r9d, 4
mov rax, qword [rcx + 0xc8]
mov r8d, dword [rax + rdx*4 - 4]
lea rdx, [rsp + 0x38]
not r8d
movzx eax, byte [rdx]
inc rdx
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x1801dabe0]
xor r8d, dword [rax + rcx*4]
sub r9, 1
jne 0x180082c25
not r8d
mov ecx, r8d
call fcn.180082ed0
mov eax, r8d
add rsp, 0x28
ret
Function at 0x180082c5c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1802a9070]
xor rax, rsp
mov qword [rsp + 0x30], rax
movss xmm0, dword [rdx]
mov r8, rcx
subss xmm0, dword [rcx + 0x10]
movss xmm1, dword [rdx + 8]
mov r9d, 0x10
subss xmm1, dword [rcx + 0x10]
cvttss2si eax, xmm0
movss xmm0, dword [rdx + 4]
subss xmm0, dword [rcx + 0x14]
mov dword [rsp + 0x20], eax
cvttss2si eax, xmm0
movss xmm0, dword [rdx + 0xc]
subss xmm0, dword [rcx + 0x14]
movsxd rcx, dword [rcx + 0xc0]
mov dword [rsp + 0x24], eax
cvttss2si eax, xmm1
mov dword [rsp + 0x28], eax
cvttss2si eax, xmm0
mov dword [rsp + 0x2c], eax
mov rax, qword [r8 + 0xc8]
lea r8, [rsp + 0x20]
mov edx, dword [rax + rcx*4 - 4]
not edx
movzx eax, byte [r8]
inc r8
movzx ecx, dl
xor rcx, rax
shr edx, 8
lea rax, [0x1801dabe0]
xor edx, dword [rax + rcx*4]
sub r9, 1
jne 0x180082cd8
not edx
mov ecx, edx
call fcn.180082ed0
mov eax, edx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1801937d0
add rsp, 0x48
ret
Function at 0x18008aba4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1802db2b0]
mov r10d, 8
mov qword [rsp + 0x30], rcx
mov r9, qword [rax + 0x1a80]
movsxd rcx, dword [r9 + 0xc0]
mov rax, qword [r9 + 0xc8]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rsp + 0x30]
not r8d
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x1801dabe0]
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x18008abdc
not r8d
lea rdx, [rsp + 0x30]
lea rcx, [r9 + 0xc0]
mov dword [rsp + 0x30], r8d
call fcn.1800909e0
add rsp, 0x28
ret

Function at 0x18008ac1c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1802db2b0]
mov r10d, 4
mov dword [rsp + 0x30], ecx
mov r9, qword [rax + 0x1a80]
movsxd rcx, dword [r9 + 0xc0]
mov rax, qword [r9 + 0xc8]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rsp + 0x30]
not r8d
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x1801dabe0]
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x18008ac53
not r8d
lea rdx, [rsp + 0x30]
lea rcx, [r9 + 0xc0]
mov dword [rsp + 0x30], r8d
call fcn.1800909e0
add rsp, 0x28
ret

Function at 0x18008fa90
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, qword [0x1802db2b0]
cmp byte [rbx + 0x3048], 0
je 0x18008fb50
cmp qword [rbx + 0x3050], 0
lea rbp, [rax + 0x10]
lea rdi, [rbx + 0x3058]
je 0x18008fb42
mov r9d, dword [rdi + 4]
test r9d, r9d
jns 0x18008fafb
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180091354
mov rcx, qword [rsp + 0x40]
and dword [rdi], 0
mov rdx, rcx
mov rcx, rdi
mov r8, rbp
call fcn.180081690
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3050]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x1802db299]
movsxd r8, eax
mov rax, qword [rbx + 0x3060]
test rax, rax
cmovne rcx, rax
call fcn.18019f9d8
jmp 0x18008fb50
mov rdx, rcx
mov r8, rbp
mov rcx, rdi
call fcn.180081690
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x180090164
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1802db2b0]
mov rbx, rcx
and dword [rax + 0x3014], 0
test rcx, rcx
je 0x1800901cb
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.1800901d8
lea rdx, [0x1801daa28]
mov rcx, rbx
mov rdi, rax
call fcn.180080c10
mov rbx, rax
test rax, rax
je 0x1800901cb
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call fcn.18019f9d8
mov rcx, rbx
call fcn.1801a03e8
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18018c544
Capabilities:
Set console window title

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x1802a9070]
xor rax, rsp
mov qword [rsp + 0xa0], rax
cmp byte [0x1802de77d], 0
je 0x18018c56d
xor al, al
jmp 0x18018c777
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x1802db418], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x1802db408], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x1802db428], rax
call qword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x18018c5bb
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x1802db420], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x1802db410], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x1802db430], rax
mov edx, 3
mov rcx, qword [0x1802db420]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov edx, 0xe1
mov rcx, qword [0x1802db430]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
movabs rax, 0x2a3fce091d7aec50
mov qword [rsp + 0x20], rax
movabs rax, 0xdec1d69cf4a96862
mov qword [rsp + 0x28], rax
movabs rax, 0xc6a43a235d20ce6
mov qword [rsp + 0x30], rax
movabs rax, 0x953f0921af1d0a47
mov qword [rsp + 0x38], rax
movabs rax, 0xf79636fd942835dc
mov qword [rsp + 0x40], rax
movabs rax, 0xdf2cccf26a41bc2d
mov qword [rsp + 0x48], rax
movabs rax, 0xf7fb9ccab1dd4b5
mov qword [rsp + 0x50], rax
movabs rax, 0x5172d1ab5399f086
mov qword [rsp + 0x58], rax
movabs rax, 0x4556bc6c6d0f9f0b
mov qword [rsp + 0x60], rax
movabs rax, 0xab93f6c18ddd0110
mov qword [rsp + 0x68], rax
movabs rax, 0x2c4a638215f27895
mov qword [rsp + 0x70], rax
movabs rax, 0xb54b2e4fc0792a6a
mov qword [rsp + 0x78], rax
movabs rax, 0x9fe21698e74759bf
mov qword [rsp + 0x80], rax
movabs rax, 0xb05fa29d0961cf44
mov qword [rsp + 0x88], rax
movabs rax, 0x2f12d6becd3db1d9
mov qword [rsp + 0x90], rax
movabs rax, 0x5172d1ab5399f0de
mov qword [rsp + 0x98], rax
movdqa xmm0, xmmword [rsp + 0x20]
pxor xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [rsp + 0x30]
pxor xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x30], xmm1
movdqa xmm0, xmmword [rsp + 0x40]
pxor xmm0, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [rsp + 0x50]
pxor xmm1, xmmword [rsp + 0x90]
movdqa xmmword [rsp + 0x50], xmm1
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov byte [0x1802de77d], 1
mov al, 1
jmp 0x18018c777
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1801937d0
add rsp, 0xb8
ret
Function at 0x18018e090
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.18018e2b0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18018e197
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18018e0f4
mov rax, qword [0x1802a9008]
cmp qword [rsp + 0x20], rax
ja 0x18018e0f4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18018e0b6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180196810
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18018e123
jmp 0x18018e197
cmp dword [rsp + 0x50], 0x10000
jne 0x18018e17a
cmp qword [rsp + 0x48], 0x10000
jb 0x18018e17a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18018e168
mov rax, qword [rsp + 0x28]
jmp 0x18018e199
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18018e192
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.18018e2b0
mov qword [rsp + 0x20], rax
jmp 0x18018e0b6
xor eax, eax
add rsp, 0x68
ret

Function at 0x18018e1a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.18018e2f0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18018e2a3
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18018e1fb
mov rax, qword [0x1802a9008]
cmp qword [rsp + 0x20], rax
ja 0x18018e1fb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18018e1bd
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180196810
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18018e22a
jmp 0x18018e2a3
cmp dword [rsp + 0x50], 0x10000
jne 0x18018e281
cmp qword [rsp + 0x48], 0x10000
jb 0x18018e281
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18018e26f
mov rax, qword [rsp + 0x28]
jmp 0x18018e2a5
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18018e29e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18018e2f0
mov qword [rsp + 0x20], rax
jmp 0x18018e1bd
xor eax, eax
add rsp, 0x68
ret