joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001230
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rax, qword [0x140025040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r12, rcx
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowDC]
lea rdx, [rbp + 0x17]
mov rcx, r12
mov r15, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rbp - 0x21]
mov rcx, r12
call qword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [rbp - 0x19]
mov rcx, r15
mov edi, dword [rbp - 0x15]
sub ebx, dword [rbp - 0x21]
sub edi, dword [rbp - 0x1d]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r8d, edi
mov edx, ebx
mov rcx, r15
mov r14, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
mov rcx, r14
mov rsi, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [rbp + 0x17]
mov r9d, ebx
mov edx, dword [rbp + 0x1b]
add ecx, 0xa
mov dword [rsp + 0x40], 0xcc0020
add edx, 0x1e
mov dword [rsp + 0x38], edx
xor r8d, r8d
mov dword [rsp + 0x30], ecx
xor edx, edx
mov qword [rsp + 0x28], r15
mov rcx, r14
mov dword [rsp + 0x20], edi
call qword [sym.imp.GDI32.dll_BitBlt]
lea r8, [rbp - 0x51]
mov edx, 0x20
mov rcx, rsi
call qword [sym.imp.GDI32.dll_GetObjectW]
lea r8, [0x140020c78]
lea rdx, str.TMP.bmp
lea rcx, [rbp - 0x59]
call fcn.14000ad10
mov ecx, dword [rbp - 0x49]
xor r8d, r8d
mov r9, qword [rbp - 0x59]
mov edx, ecx
imul edx, dword [rbp - 0x45]
mov r13d, 1
mov dword [rbp - 0x2b], r8d
xorps xmm0, xmm0
mov dword [rbp - 1], r8d
mov dword [rbp - 9], ecx
lea rcx, [rbp - 0x31]
lea r8d, [r13 + 0xd]
mov dword [rbp - 0x27], 0x36
mov dword [rbp + 3], edx
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 5], r13w
lea eax, [rdx + 0x36]
mov dword [rbp - 0x11], 0x28
mov dword [rbp - 0x2f], eax
mov edx, r13d
mov eax, 0x4d42
mov word [rbp - 0x31], ax
movzx eax, word [rbp - 0x3f]
mov word [rbp - 3], ax
mov eax, dword [rbp - 0x4d]
mov dword [rbp - 0xd], eax
call fcn.14000abb0
mov r9, qword [rbp - 0x59]
lea r8d, [r13 + 0x27]
mov edx, r13d
lea rcx, [rbp - 0x11]
call fcn.14000abb0
mov eax, dword [rbp - 0x49]
imul eax, dword [rbp - 0x45]
movsxd rcx, eax
call fcn.140003f34
mov rbx, rax
mov dword [rsp + 0x30], 0
lea rax, [rbp - 0x11]
mov r9d, edi
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetDIBits]
mov r8d, dword [rbp - 0x49]
mov edx, r13d
imul r8d, dword [rbp - 0x45]
mov rcx, rbx
mov r9, qword [rbp - 0x59]
movsxd r8, r8d
call fcn.14000abb0
mov rcx, rbx
call fcn.140003ef0
mov rcx, qword [rbp - 0x59]
call fcn.14000a55c
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r15
mov rcx, r12
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140003ed0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140004558
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400045a2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400045a2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400045a2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400045a2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400045a2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400045a4
xor al, al
add rsp, 0x28
ret

Function at 0x14000a72c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14000a763
call fcn.14000da3c
mov dword [rax], 0x16
call fcn.14000b0ec
xor eax, eax
jmp 0x14000a7f1
mov rdx, r9
mov rcx, r8
call fcn.14000a6c8
mov rbx, rax
test rax, rax
je 0x14000a7ee
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14000a5f4]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14000a7db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000d9b0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000a7c2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14000a7d1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14000ca9c
jmp 0x14000a7ee
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000a7eb
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14000c03c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000be38
Function at 0x14000ee84
Capabilities:
Get file size

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001111f
mov rsi, rbx
cmp word [rax], bp
je 0x1400110de
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400110c8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400110c4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001195c
mov rdi, rax
test rax, rax
je 0x14001110c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140015fe0
mov rbp, rdi
xor ecx, ecx
call fcn.14000ca9c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140012acc
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, [0x140026f90]
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 0x140012b23
cmp word [rdx], r13w
jne 0x140012b23
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140012b28
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140012c4d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140012c6e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140012b61
mov rdx, r9
mov word [rbx], cx
jmp 0x140012b88
cmp r9, r8
jae 0x140012b98
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 0x140012b42
jmp 0x140012c4d
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 0x140012c42
cmp dword [rsp + 0x80], esi
je 0x140012c42
lea r8, [0x140026f90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140012c1a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140012bea
mov word [rbx], r13w
jmp 0x140012c4a
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 0x140012bf7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140012c4a
cmp word [rsp + 0x70], r13w
jne 0x140012c27
cmp rbx, r14
je 0x140012be4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140012804
cmp word [rsp + 0x70], r13w
je 0x140012c4d
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, [0x140026f90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140012c47
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140012c4d
Function at 0x140014d50
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.140012804
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140012804
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140014ea0
cmp rax, 0xffffffffffffffff
je 0x140014ea0
xor edi, edi
test rbp, rbp
jle 0x140014e4b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000da5c
mov rbx, rax
test rax, rax
jne 0x140014dd8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140014e41
mov edx, 0x8000
mov ecx, r14d
call fcn.14000c0b8
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.14000ea84
cmp eax, 0xffffffff
je 0x140014e21
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140014de8
mov edx, r15d
mov ecx, r14d
call fcn.14000c0b8
jmp 0x140014e41
cmp byte [rsi + 0x38], dil
je 0x140014e38
cmp dword [rsi + 0x34], 5
jne 0x140014e38
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140014e41
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000ca9c
jmp 0x140014eb4
jns 0x140014eb4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140012804
cmp rax, 0xffffffffffffffff
jne 0x140014e6c
cmp byte [rsi + 0x30], dil
je 0x140014eb4
mov edi, dword [rsi + 0x2c]
jmp 0x140014eb4
mov ecx, r14d
call fcn.140011614
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140014eb4
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 0x140014eb4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140014ead
mov eax, dword [rsi + 0x2c]
jmp 0x140014eb2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140012804
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 0x140015d80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015da8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015da8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400296c3
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push r15
mov rax, 8
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x1400296cd
sub rsp, 0x28
call fcn.14004bec0
mov dword [0x140104001], 0x19f
mov dword [0x140104001], 0x1a0
mov byte [rsp + 0x28], 0
mov dword [0x140104001], 0x1a2
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push 0x28
sub rsp, 0x20
call sub.KERNEL32.dll_GetCurrentProcess
add rsp, 0x20
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.DLL_OpenProcessToken
and rax, rax
je 0x140029862
mov dword [0x140104001], 0x1a3
lea rax, [rsp + 0x38]
mov dword [0x140104001], 0x1a5
lea rax, [rsp + 0x38]
mov rax, rax
push rax
movabs rax, str.SeDebugPrivilege
push rax
push 0
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.DLL_LookupPrivilegeValueW
and rax, rax
je 0x140029844
mov dword [0x140104001], 0x1a6
lea rax, [rsp + 0x40]
mov dword [0x140104001], 0x1a9
lea rbp, [rsp + 0x40]
mov dword [rbp], 1
mov dword [0x140104001], 0x1aa
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp]
push rax
lea rbp, [rsp + 0x48]
push rbp
pop rbp
pop rax
mov dword [rbp + 4], eax
mov dword [0x140104001], 0x1ab
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp + 4]
push rax
lea rbp, [rsp + 0x48]
push rbp
pop rbp
pop rax
mov dword [rbp + 8], eax
mov dword [0x140104001], 0x1ac
push rbp
pop rbp
mov dword [rbp + 0xc], 2
mov dword [0x140104001], 0x1ae
lea rax, [rsp + 0x60]
mov rax, rax
push rax
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0x10
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0
push qword [rsp + 0x58]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
add rsp, 0x30
mov rax, rax
push rax
pop rax
mov byte [rsp + 0x28], al
mov dword [0x140104001], 0x1af
mov dword [0x140104001], 0x1b0
push qword [rsp + 0x30]
pop rcx
call sub.KERNEL32.dll_CloseHandle
mov dword [0x140104001], 0x1b1
mov dword [0x140104001], 0x1b2
movsx rax, byte [rsp + 0x28]
movsx rax, al
jmp 0x14002988f
add rsp, 0x68
pop r15
pop rbp
ret

Function at 0x14002a818
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
sub rsp, 0x28
call fcn.14004bec0
mov dword [0x140104001], 0x100002b
mov dword [0x140104001], 0x100002c
push qword [rsp + 0x40]
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14002a86c
mov dword [0x140104001], 0x100002d
mov rax, 1
jmp 0x14002a883
mov dword [0x140104001], 0x100002e
mov dword [0x140104001], 0x100002f
xor rax, rax
add rsp, 0x30
pop r15
ret
Function at 0x14002a9da
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
push rbp
mov rax, 0x11
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14002a9f1
sub rsp, 0x28
call fcn.14004bec0
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14004bf30
add rsp, 0x10
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.14004bf30
add rsp, 0x10
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x38]
sub rsp, 0x10
call fcn.14004bf30
add rsp, 0x10
mov dword [0x140104001], 0x3f
mov dword [0x140104001], 0x43
lea rbp, [rsp + 0x40]
mov dword [rbp], 0x70
mov dword [0x140104001], 0x44
movabs rax, str.runas
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x10], rax
mov dword [0x140104001], 0x45
mov rax, qword [rsp + 0x30]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x20], rax
mov dword [0x140104001], 0x46
mov rax, qword [rsp + 0x28]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x18], rax
mov dword [0x140104001], 0x47
mov rax, qword [rsp + 0x38]
mov rax, rax
push rax
pop rax
mov qword [rbp + 0x28], rax
mov dword [0x140104001], 0x48
mov dword [rbp + 0x30], 1
mov dword [0x140104001], 0x4b
lea rax, [rsp + 0x40]
mov rax, rax
push rax
pop rcx
call sub.SHELL32.DLL_ShellExecuteExW
jmp 0x14002ab17
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.14004bfa0
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.14004bfa0
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.14004bfa0
add rsp, 0x28
pop rax
add rsp, 0xb0
pop rbp
ret
Function at 0x14002accf
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.14004bec0
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14004bf30
add rsp, 0x10
mov dword [0x140104001], 0x3e5
mov dword [0x140104001], 0x3e7
push 5
sub rsp, 8
sub rsp, 0x20
call sub.USER32.DLL_GetDesktopWindow
add rsp, 0x28
mov rax, rax
push rax
pop rcx
pop rdx
call sub.USER32.DLL_GetWindow
mov qword [rsp + 0x30], rax
mov dword [0x140104001], 0x3e8
cmp qword [rsp + 0x30], 0
je 0x14002aef7
mov dword [0x140104001], 0x3e9
push rcx
sub rsp, 0x28
call fcn.14004baa0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.14004baa0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push qword [rsp + 0x50]
pop rcx
sub rsp, 0x20
call sub.USER32.DLL_GetWindowTextLengthW
add rsp, 0x28
mov r15, rax
add r15, 2
mov rax, r15
push rax
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140049e50
add rsp, 0x28
lea rcx, [rsp + 0x40]
pop rdx
call fcn.14004bb60
mov dword [0x140104001], 0x3ea
push qword [rsp + 0x38]
pop rcx
call fcn.1400494c0
mov rax, rax
push rax
push qword [rsp + 0x40]
push qword [rsp + 0x40]
pop rcx
pop rdx
pop r8
call sub.USER32.DLL_GetWindowTextW
mov dword [0x140104001], 0x3eb
push rcx
sub rsp, 0x28
call fcn.14004baa0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.14004baa0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.14004baa0
add rsp, 0x28
pop rcx
push rax
push qword [rsp + 0x50]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140049fa0
add rsp, 0x28
call fcn.14004bca0
push rcx
sub rsp, 0x20
call fcn.14004baa0
add rsp, 0x20
pop rcx
push rax
push rcx
sub rsp, 0x28
call fcn.14004baa0
add rsp, 0x28
pop rcx
push rax
push qword [rsp + 0x60]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140049fa0
add rsp, 0x20
push rax
call fcn.14004be40
mov rdx, rax
pop rax
add qword [rsp], rdx
push rax
call fcn.14004be40
mov rdx, rax
pop rax
add qword [rsp + 8], rdx
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140049330
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.14002d704
add rsp, 0x28
pop rax
and rax, rax
je 0x14002aebf
mov dword [0x140104001], 0x3ec
mov rax, 1
jmp 0x14002af13
mov dword [0x140104001], 0x3ed
mov dword [0x140104001], 0x3ee
push 2
push qword [rsp + 0x38]
pop rcx
pop rdx
call sub.USER32.DLL_GetWindow
mov qword [rsp + 0x30], rax
mov dword [0x140104001], 0x3ef
jmp 0x14002ad36
mov dword [0x140104001], 0x3f0
xor rax, rax
jmp 0x14002af13
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.14004bfa0
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.14004bfa0
add rsp, 0x28
pop rax
add rsp, 0x40
pop r15
ret

Function at 0x14002d704
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14013d8b0]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x14002e408
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x140150ac0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14002e462
mov r8, qword [0x140104276]
mov rcx, qword [0x14014f718]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140150ac0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.14002d689
lea rcx, [0x14002e3e0]
mov rdx, rbx
call fcn.14002e6dc
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14002e46c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140150ac0], eax
add rsp, 0x28
jmp fcn.14002e408
Function at 0x14002f5a8
Capabilities:
Create thread

Disassembly:
or r8d, 0xffffffff
xor edx, edx
jmp 0x14002f5a8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r12d, edx
mov r15, rcx
mov rdx, rcx
mov rcx, qword [0x140150bb0]
mov esi, r8d
xor r14d, r14d
call fcn.14004aeb4
mov rbx, rax
test rax, rax
je 0x14002f78d
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
cmp qword [rax + 0x20], r14
je 0x14002f68e
mov rcx, r15
call fcn.14002fa24
jmp 0x14002f60c
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x2d], r14b
jne 0x14002f601
mov rcx, qword [rbx + 0x20]
call fcn.14002fba8
mov edi, 1
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], r12d
mov byte [rbx + 0x2c], dil
call fcn.14002f4f0
lea rax, [rsp + 0x88]
lea r8, [0x14002f7a8]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], r14d
mov r9, rbx
mov edx, 0x2000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14002f669
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x14002f678
mov edx, esi
mov rcx, r15
call fcn.14002f888
mov rcx, qword [rbx]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx]
mov r9d, edi
jmp 0x14002f739
mov edi, 1
mov ebp, r14d
test dil, r12b
cmovne ebp, edi
test r12b, 2
je 0x14002f746
mov rcx, rax
call fcn.14002f44c
lea rcx, [rbx + 8]
lea edx, [rdi + 0x1f]
call fcn.14004b9d0
mov rcx, qword [0x140150c68]
mov rdx, qword [rsp + 0x30]
mov r9, qword [rcx]
lea r8, [rsp + 0x30]
mov r14, rax
call qword [r9 + 0x28]
test eax, eax
jne 0x14002f78d
mov rcx, qword [rsp + 0x30]
mov byte [r14 + 9], bpl
mov byte [r14 + 8], dil
mov qword [r14], rcx
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x14]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
cmp esi, 0xffffffff
je 0x14002f723
mov r8, r14
mov edx, esi
mov rcx, r15
call fcn.14002f890
jmp 0x14002f731
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x60]
jmp 0x14002f78d
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
cmp esi, 0xffffffff
je 0x14002f76b
mov edx, esi
mov rcx, r15
call fcn.14002f888
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
xor r8d, r8d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x60]
test eax, eax
jne 0x14002f78d
mov r14, rdi
mov byte [rbx + 0x2c], dil
mov byte [rbx + 0x2e], bpl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rax, r14
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400306d4
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14003074b
movsxd rdx, ecx
lea rcx, [0x140030630]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x140150bf0]
test rbx, rbx
je 0x1400307be
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140030741
cmp byte [rbx + 0x20], 0
je 0x140030741
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140030707
jmp 0x1400307be
mov rbx, qword [0x140150bf0]
test rbx, rbx
je 0x1400307be
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400307b6
cmp byte [rbx + 0x21], 0
je 0x14003077a
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x1400307a6
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140150bf0]
call fcn.14004b988
mov rbx, rdi
test rdi, rdi
jne 0x140030757
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret