joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180027d60
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], 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]
cmp rdi, 0x40000000
jbe 0x180027d9b
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18011e100]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x30], r15
cmovbe r15, qword [rsp + 0x30]
sub r15, 0xfff
test rsi, rsi
je 0x180027ddd
cmp rsi, r14
jb 0x180027dd5
cmp rsi, r15
jae 0x180027dd5
cmp qword [rsi + 8], 0
jne 0x180027f9d
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180027dc0
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
cmp rdi, r14
jb 0x180027e62
nop word [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 0x180027e59
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 0x180027e59
cmp dword [rsp + 0x70], 0x10000
je 0x180027edb
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180027e59
sub rbx, rbp
cmp rbx, r14
jae 0x180027e20
test rsi, rsi
jne 0x180027f46
cmp rdi, r15
ja 0x180027f8d
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 0x180027f8d
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180027f8d
cmp dword [rsp + 0x70], 0x10000
je 0x180027f14
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 0x180027e92
jmp 0x180027f8d
test rbx, rbx
je 0x180027e59
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180027f46
cmp rbx, r14
jae 0x180027e00
jmp 0x180027e62
test rdi, rdi
je 0x180027f8d
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180027f46
cmp rdi, r15
jbe 0x180027e70
jmp 0x180027f8d
xor eax, eax
lea rcx, [rsi + 0x40]
mov rdx, rcx
mov qword [rsi + 8], rax
sub rdx, rsi
mov dword [rsi + 0x10], eax
nop dword [rax]
mov rax, qword [rsi + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rsi + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x180027f60
mov rax, qword [0x18011e100]
mov qword [rsi], rax
mov qword [0x18011e100], rsi
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb0]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x18002adf8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1801182c0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov edi, 0xffff
xor r14d, r14d
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x18002ae3c
movzx eax, r14w
jmp 0x18002af72
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x18002ae78
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x18002ae78
lea ecx, [r9 - 1]
mov dword [rax], ecx
movzx eax, si
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x18002af72
cmp qword [rcx + 0x80], r14
je 0x18002af6f
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x18002aeb6
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x18002aedf
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.18009be38
cmp ax, di
je 0x18002af6f
movzx edi, si
jmp 0x18002af6f
lea r8, [rbp + 0xf]
mov word [rbp + 7], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp + 9]
lea r8, [rbp + 0x3f]
mov qword [rsp + 0x30], r8
lea r8, [rbp + 0x1f]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], r8
lea r8, [rbp + 7]
call qword [0x1800e85c8]
test eax, eax
je 0x18002af34
sub eax, 1
je 0x18002af34
cmp eax, 2
jne 0x18002af6f
movzx ecx, word [rbp + 7]
jmp 0x18002aec2
mov r14, qword [rbp + 0xf]
lea rax, [rbp + 0x1f]
sub r14, rax
je 0x18002af5e
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x1f]
mov r8, r14
mov edx, 1
call fcn.180070344
cmp r14, rax
jne 0x18002af6f
lea rax, [rbp + 7]
mov byte [rbx + 0x72], 1
cmp qword [rbp + 0x17], rax
movzx eax, si
jne 0x18002af72
movzx eax, di
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.18005ac00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x18004fd6c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x180036cc6
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x180036ca9
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x180036c94

Function at 0x18004fd80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x180036cfe
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x180036ce1
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x180036ccc
Function at 0x1800aef5c
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1800aec02
call fcn.18009dd34
mov dword [rax], 0x16
call fcn.18006ca78
jmp 0x1800aed4d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800aed4d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1800aed4d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1800aec31
lock or dword [rcx + 0x14], 0x10
jmp 0x1800aed4d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800aec45
call fcn.1800af558
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1800aec55
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1800aec58
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1800aea48
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1800b2bdc
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1800aed3b
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1800aece9
mov rcx, rbx
call fcn.1800aea48
cmp eax, 0xffffffff
je 0x1800aecd4
mov rcx, rbx
call fcn.1800aea48
cmp eax, 0xfffffffe
je 0x1800aecd4
mov rcx, rbx
call fcn.1800aea48
movsxd rdi, eax
lea r14, [0x18011cff0]
mov rcx, rbx
sar rdi, 6
call fcn.1800aea48
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1800aecdb
lea rdx, [0x180118520]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800aece9
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1800aed0d
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1800aed0d
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1800aed0d
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1800aed2b
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1800aed36
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1800aed52
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1800aebcc
Function at 0x1800dce70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x1801182c0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1800dcf80
cmp dword [rsp + 0x30], 1
je 0x1800dcec7
jmp 0x1800dcfaf
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x68]
call fcn.1800e1cb0
nop
call fcn.1800dbb70
mov qword [rsp + 0x50], rax
lea r8, str..log
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x88]
call fcn.180022800
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call fcn.1800db800
nop
lea rcx, [rsp + 0x88]
call fcn.180021df0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xc0]
lea r8, [0x1800dcb50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x58], rax
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
nop
lea rcx, [rsp + 0x68]
call fcn.180021df0
jmp 0x1800dcfaf
call fcn.1800dbb70
mov qword [rsp + 0x60], rax
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.180021f60
lea rcx, str.Detaching_from_process._Goodbye.
call fcn.1800df440
call fcn.1800dbb70
mov rcx, rax
call fcn.1800db7d0
mov eax, 1
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.18005ac00
add rsp, 0xb8
ret
Function at 0x1800ddcd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
add rax, 0x80
mov r8d, 0x10
xor edx, edx
mov rcx, rax
call fcn.18005f120
mov rax, qword [rsp + 0x50]
add rax, 0x80
mov rdx, rax
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 0x90]
call qword [sym.imp.XINPUT9_1_0.dll_XInputGetState]
test eax, eax
jne 0x1800ddd21
mov dword [rsp + 0x2c], 1
jmp 0x1800ddd29
mov dword [rsp + 0x2c], 0
mov rax, qword [rsp + 0x50]
movzx ecx, byte [rsp + 0x2c]
mov byte [rax + 0x96], cl
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x94]
mov rcx, qword [rsp + 0x50]
movzx ecx, word [rcx + 0x84]
cmp eax, ecx
je 0x1800dde51
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x94]
mov rcx, qword [rsp + 0x50]
movzx ecx, word [rcx + 0x84]
xor eax, ecx
mov word [rsp + 0x24], ax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x94]
mov word [rsp + 0x28], ax
mov eax, 1
mov word [rsp + 0x20], ax
jmp 0x1800ddda2
movzx eax, word [rsp + 0x20]
shl ax, 1
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x24]
and eax, 1
test eax, eax
je 0x1800dde22
movzx eax, word [rsp + 0x28]
and eax, 1
test eax, eax
je 0x1800dddf3
mov rax, qword [rsp + 0x50]
add rax, 0x40
mov rcx, rax
call fcn.1800233a0
movzx eax, al
test eax, eax
je 0x1800dddf1
mov rax, qword [rsp + 0x50]
add rax, 0x40
mov qword [rsp + 0x30], rax
movzx eax, word [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x30]
call fcn.180023460
jmp 0x1800dde22
mov rax, qword [rsp + 0x50]
mov rcx, rax
call fcn.1800233a0
movzx eax, al
test eax, eax
je 0x1800dde22
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
movzx eax, word [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.180023460
movzx eax, word [rsp + 0x20]
cmp eax, 0x8000
jne 0x1800dde32
jmp 0x1800dde51
movzx eax, word [rsp + 0x24]
shr ax, 1
mov word [rsp + 0x24], ax
movzx eax, word [rsp + 0x28]
shr ax, 1
mov word [rsp + 0x28], ax
jmp 0x1800ddd95
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
movzx ecx, word [rcx + 0x84]
mov word [rax + 0x94], cx
add rsp, 0x48
ret

Function at 0x1800dead0
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov eax, 0x10
imul rax, rax, 0
mov ecx, 1
mov word [rsp + rax + 0x20], cx
mov eax, 0x10
imul rax, rax, 0
mov ecx, 2
mov word [rsp + rax + 0x22], cx
mov eax, 0x10
imul rax, rax, 0
mov dword [rsp + rax + 0x24], 0
call fcn.1800dbb70
mov rcx, rax
call fcn.1800236e0
mov ecx, 0x10
imul rcx, rcx, 0
mov qword [rsp + rcx + 0x28], rax
mov r8d, 0x10
mov edx, 1
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1800deb56
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Couldnt_register_raw_input._Error_code:__010x
call fcn.1800df510
jmp 0x1800deb62
lea rcx, str.Raw_input_registered
call fcn.1800df5b0
add rsp, 0x38
ret
Function at 0x1800df810
Capabilities:
Connect pipe
Create pipe
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x4b8
mov rax, qword [0x1801182c0]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov ecx, 0x28
call fcn.180071a2c
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x40], 0
mov edx, 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x1800df85b
mov byte [rsp + 0x40], 1
cmp qword [rsp + 0x60], 0
je 0x1800df894
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x1800df882
mov byte [rsp + 0x40], 1
mov dword [rsp + 0x58], 0x18
mov dword [rsp + 0x68], 1
jmp 0x1800df899
mov byte [rsp + 0x40], 1
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x1800df8ad
mov qword [rsp + 0x50], 0
jmp 0x1800df8b7
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0
mov r9d, 1
mov r8d, 6
mov edx, 1
lea rcx, str..pipeIgcsClientToDll
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rcx, qword [rsp + 0x4c0]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x4c0]
cmp qword [rax + 8], 0xffffffffffffffff
je 0x1800df91c
mov dword [rsp + 0x44], 1
jmp 0x1800df924
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0x4c0]
movzx ecx, byte [rsp + 0x44]
mov byte [rax + 0x19], cl
mov rax, qword [rsp + 0x4c0]
movzx eax, byte [rax + 0x19]
test eax, eax
jne 0x1800df975
lea rdx, str.Couldnt_create_the_Client____DLL_named_pipe.
lea rcx, [rsp + 0x78]
call fcn.180010030
nop
lea rcx, [rsp + 0x78]
call fcn.1800d9040
nop
lea rcx, [rsp + 0x78]
call fcn.180002210
mov eax, 1
jmp 0x1800dfa71
mov byte [rsp + 0x41], 0
mov rax, qword [rsp + 0x4c0]
cmp qword [rax + 8], 0xffffffffffffffff
je 0x1800dfa3a
mov rax, qword [rsp + 0x4c0]
movzx eax, byte [rax + 0x19]
test eax, eax
je 0x1800dfa3a
xor edx, edx
mov rax, qword [rsp + 0x4c0]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x1800df9cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x1800dfa2a
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov r8d, 0x400
lea rdx, [rsp + 0xa0]
mov rax, qword [rsp + 0x4c0]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800dfa2a
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x4c0]
call fcn.1800df700
mov byte [rsp + 0x41], al
movzx eax, byte [rsp + 0x41]
test eax, eax
je 0x1800dfa28
jmp 0x1800dfa2a
jmp 0x1800df9cd
movzx eax, byte [rsp + 0x41]
test eax, eax
je 0x1800dfa35
jmp 0x1800dfa3a
jmp 0x1800df97a
lea rdx, [0x1800fc5a0]
lea rcx, str.Named_pipe__s_closed._Exiting_listener_thread.
call fcn.1800df440
lea rcx, str.System_shut_down_started.
call fcn.1800df440
call fcn.1800dbb70
mov qword [rsp + 0x70], rax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.180021f60
xor eax, eax
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.18005ac00
add rsp, 0x4b8
ret
Function at 0x1800dfad0
Capabilities:
Write file on windows

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x1078
call fcn.18005bab0
sub rsp, rax
mov rax, qword [0x1801182c0]
xor rax, rsp
mov qword [rsp + 0x1060], rax
call fcn.1800dbb70
mov qword [rsp + 0x38], rax
movzx r8d, byte [rsp + 0x1090]
mov rdx, qword [rsp + 0x1088]
mov rcx, qword [rsp + 0x38]
call fcn.1800db610
mov rax, qword [rsp + 0x1080]
movzx eax, byte [rax + 0x18]
test eax, eax
je 0x1800dfb41
mov rax, qword [rsp + 0x1080]
cmp qword [rax], 0xffffffffffffffff
jne 0x1800dfb46
jmp 0x1800dfbfd
movzx eax, byte [rsp + 0x1090]
cmp eax, 6
jne 0x1800dfb58
jmp 0x1800dfbfd
mov eax, 1
imul rax, rax, 0
movzx ecx, byte [rsp + 0x1090]
mov byte [rsp + rax + 0x60], cl
mov rcx, qword [rsp + 0x1088]
call fcn.180023980
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x1088]
call fcn.1800023e0
mov qword [rsp + 0x48], rax
mov eax, 1
imul rax, rax, 1
lea rax, [rsp + rax + 0x60]
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov edx, 0xffe
mov rcx, rax
call fcn.180071958
mov rcx, qword [rsp + 0x1088]
call fcn.180023980
inc rax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x1080]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.18005ac00
add rsp, 0x1078
ret

Function at 0x1800dfc20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
lea r8, [0x1800dfef0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x10], rax
add rsp, 0x48
ret

Function at 0x1800dff50
Capabilities:
Write file on windows

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
mov eax, 0x1058
call fcn.18005bab0
sub rsp, rax
mov rax, qword [0x1801182c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rax, qword [rsp + 0x1060]
movzx eax, byte [rax + 0x18]
test eax, eax
jne 0x1800dff8a
jmp 0x1800dfffa
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x40], 7
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x40], 0x12
movzx eax, byte [rsp + 0x1068]
test eax, eax
je 0x1800dffb9
mov byte [rsp + 0x30], 1
jmp 0x1800dffbe
mov byte [rsp + 0x30], 0
mov eax, 1
imul rax, rax, 2
movzx ecx, byte [rsp + 0x30]
mov byte [rsp + rax + 0x40], cl
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, 3
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x1060]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18005ac00
add rsp, 0x1058
ret
Function at 0x1800e00b0
Capabilities:
Write file on windows

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x1058
call fcn.18005bab0
sub rsp, rax
mov rax, qword [0x1801182c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rax, qword [rsp + 0x1060]
movzx eax, byte [rax + 0x18]
test eax, eax
jne 0x1800e00f8
jmp 0x1800e0178
cmp dword [rsp + 0x1070], 0xffe
jl 0x1800e0107
jmp 0x1800e0178
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x40], 8
mov eax, 1
imul rax, rax, 1
movzx ecx, byte [rsp + 0x1078]
mov byte [rsp + rax + 0x40], cl
movsxd rax, dword [rsp + 0x1070]
lea rcx, [rsp + 0x42]
mov r8, rax
mov rdx, qword [rsp + 0x1068]
call fcn.18005e910
mov eax, dword [rsp + 0x1070]
add eax, 2
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x1060]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18005ac00
add rsp, 0x1058
ret

Function at 0x1800e1830
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov edx, 4
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
jne 0x1800e186d
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1800e186d
mov dword [rsp + 0x24], 1
jmp 0x1800e1875
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1800e1984
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov eax, 2
mov rcx, qword [rsp + 0x40]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.18005b45c
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov r8d, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [0x18011dca0]
call fcn.180025530
mov qword [rsp + 0x50], rax
lea rcx, [0x18011dca0]
call fcn.180021840
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call fcn.180071a34
test eax, eax
jne 0x1800e1931
mov dword [rsp + 0x2c], 1
jmp 0x1800e1939
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x20]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1800250d0
nop
lea rcx, [rsp + 0x38]
call fcn.180025170
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, str.Window_found_with_title:__s
call fcn.1800df5b0
nop
lea rcx, [rsp + 0x38]
call fcn.180025150
mov eax, dword [rsp + 0x20]
add rsp, 0x78
ret
Function at 0x1800e1a20
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x30], 0
mov rdx, qword [rsp + 0x58]
lea rcx, [0x18011dca0]
call fcn.18001d510
lea rdx, [rsp + 0x28]
lea rcx, [0x1800e17c0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x58]
call fcn.180021df0
mov rax, qword [rsp + 0x20]
add rsp, 0x48
ret

Function at 0x1800e1bc0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
cmp qword [rsp + 0x38], 0
je 0x1800e1c27
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0x30]
mov r8d, 8
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
test eax, eax
jne 0x1800e1c27
mov qword [rsp + 0x40], 0
cmp qword [rsp + 0x40], 0
jne 0x1800e1c3a
mov qword [rsp + 0x48], 0
jmp 0x1800e1c62
mov r9d, 0x18
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
jne 0x1800e1c62
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x38], 0
je 0x1800e1c75
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x48]
mov rdi, qword [rsp + 0x80]
mov rsi, rax
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x80]
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x1800e20c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1800e20e3
mov byte [rsp + 0x20], 1
jmp 0x1800e20e8
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret