joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fa3d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov eax, 4
mov eax, eax
mov ecx, dword [0x140326120]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x140325ad8], eax
jle 0x1400fa448
lea rcx, [0x140325ad8]
call fcn.1401363d0
cmp dword [0x140325ad8], 0xffffffff
jne 0x1400fa448
lea rcx, str.Advapi32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1402a5fa8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140325ad0], rax
lea rcx, [0x140325ad8]
call fcn.140136370
cmp qword [0x140325ad0], 0
je 0x1400fa46f
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [0x140325ad0]
movzx eax, al
test eax, eax
je 0x1400fa46f
mov byte [rsp + 0x20], 1
jmp 0x1400fa474
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

Function at 0x1400fa480
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea r9, [rsp + 0x28]
xor r8d, r8d
mov edx, 0x4000
lea rcx, [0x1402a9250]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jl 0x1400fa4bb
mov rax, qword [rsp + 0x28]
jmp 0x1400fa4bd
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1402a7350]
call fcn.140134a00
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x1400fa4e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x10050
call fcn.1401354c0
sub rsp, rax
lea rdi, [rsp + 0x20]
mov ecx, 0x400c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x10060]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x10040], rax
mov r8d, 0x7fff
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x10060]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x10034], eax
cmp dword [rsp + 0x10034], 0
je 0x1400fa580
mov eax, dword [rsp + 0x10034]
inc rax
cmp rax, 0x7fff
ja 0x1400fa580
mov eax, dword [rsp + 0x10034]
inc rax
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x10068]
call fcn.14001e9a0
jmp 0x1400fa58d
xor eax, eax
mov rcx, qword [rsp + 0x10068]
mov word [rcx], ax
mov eax, dword [rsp + 0x10034]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1402a6c50]
call fcn.140134a00
mov eax, edi
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.140135520
add rsp, 0x10050
pop rdi
ret
Function at 0x1400fa5c0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x2c]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea rdx, [rsp + 0x2c]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xffffffff
jne 0x1400fa627
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400fa627
mov rax, 0xffffffffffffffff
jmp 0x1400fa62c
mov rax, qword [rsp + 0x28]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1402a67c0]
call fcn.140134a00
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x1400fa8f0
Capabilities:
Find taskbar

Disassembly:
push rdi
sub rsp, 0x30
mov eax, 4
mov eax, eax
mov ecx, dword [0x140326120]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x140325ac8], eax
jle 0x1400fa960
lea rcx, [0x140325ac8]
call fcn.1401363d0
cmp dword [0x140325ac8], 0xffffffff
jne 0x1400fa960
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetDpiForWindow
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140325ac0], rax
lea rcx, [0x140325ac8]
call fcn.140136370
mov ecx, gethostbyaddr
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x20], eax
cmp qword [0x140325ac0], 0
jne 0x1400fa97f
mov eax, dword [rsp + 0x20]
jmp 0x1400fa9b0
xor edx, edx
lea rcx, [0x1402a5e38]
call qword [sym.imp.USER32.dll_FindWindowW]
mov rcx, rax
call qword [0x140325ac0]
mov dword [rsp + 0x24], eax
mov r8d, dword [0x14032223c]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MulDiv]
add rsp, 0x30
pop rdi
ret
Function at 0x1400fc8a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, reloc.WSOCK32.dll_recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov eax, dword [rsp + 0xa8]
or eax, 1
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400fc91a
xor eax, eax
mov rcx, qword [rsp + 0x98]
mov word [rcx], ax
xor eax, eax
jmp 0x1400fca28
mov eax, dword [rsp + 0xa0]
shl rax, 1
mov dword [rsp + 0x54], eax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x64], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x64], 0
jne 0x1400fc975
cmp dword [rsp + 0x54], 0
jne 0x1400fc989
xor eax, eax
mov rcx, qword [rsp + 0x98]
mov word [rcx], ax
xor eax, eax
jmp 0x1400fca28
mov eax, dword [rsp + 0x54]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
dec eax
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x98]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x1400fc9ea
cmp dword [rsp + 0x54], 0
je 0x1400fc9e4
mov eax, dword [rsp + 0x54]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x98]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x1400fc9e4
mov eax, dword [rsp + 0x54]
dec eax
mov dword [rsp + 0x54], eax
jmp 0x1400fc9b9
mov eax, dword [rsp + 0x54]
jmp 0x1400fca28
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x54], eax
jb 0x1400fca12
xor eax, eax
mov rcx, qword [rsp + 0x98]
mov word [rcx], ax
xor eax, eax
jmp 0x1400fca28
mov eax, dword [rsp + 0x54]
xor ecx, ecx
mov rdx, qword [rsp + 0x98]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0x54]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140134a00
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x140101b80
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rcx, [0x140321850]
call fcn.140010190
test eax, eax
jne 0x140101bd6
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 9
lea r8, [0x1402a7644]
lea rdx, str.Cant_open_clipboard_for_writing.
lea rcx, [0x1403219f0]
call fcn.1400218c0
jmp 0x140101dae
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
add rax, 4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x30], rax
ja 0x140101da0
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140101da0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
add rax, 4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x30], rax
jbe 0x140101c5e
jmp 0x140101da0
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x30], rax
jbe 0x140101c98
jmp 0x140101da0
cmp dword [rsp + 0x5c], 0
jne 0x140101ca9
mov dword [rsp + 0x60], 1
jmp 0x140101cb1
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x5c]
add ecx, eax
mov eax, ecx
mov eax, eax
mov edx, eax
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140101cf1
xor edx, edx
lea rcx, [0x140321850]
call fcn.14000f9e0
call fcn.140021290
jmp 0x140101dae
cmp dword [rsp + 0x5c], 0
je 0x140101d8c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140101d61
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor edx, edx
lea rcx, [0x140321850]
call fcn.14000f9e0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 9
lea r8, [0x1402a76c4]
lea rdx, str.An_internal_function_call_failed.
lea rcx, [0x1403219f0]
call fcn.1400218c0
jmp 0x140101dae
mov eax, dword [rsp + 0x5c]
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
call fcn.140188cc0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x140101c01
xor edx, edx
lea rcx, [0x140321850]
call fcn.14000f9e0
add rsp, 0x70
pop rdi
ret
Function at 0x140102d50
Capabilities:
Enumerate gui resources

Disassembly:
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, reloc.WSOCK32.dll_ioctlsocket
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x28]
lea rcx, [0x140102bd0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1402a8940]
call fcn.140134a00
mov rax, rdi
add rsp, 0x50
pop rdi
ret
Function at 0x140104ce0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1890], 0
je 0x140104d19
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0
jne 0x140104d1e
jmp 0x140104e52
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
and eax, 1
test eax, eax
jne 0x140104d3f
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x1018]
movzx eax, word [rax]
test eax, eax
je 0x140104d81
mov rax, qword [rsp + 0x50]
add rax, 0x189c
mov r8d, 0x7fff
mov rdx, rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x1890]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x140104d81
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x50]
mov word [rdx + rax + 0x189c], cx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
and eax, 4
test eax, eax
je 0x140104daf
mov rax, qword [rsp + 0x50]
add rax, 0x1898
mov rdx, rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x1890]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
and eax, 0x20
test eax, eax
je 0x140104e1e
lea rdx, [rsp + 0x24]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x1890]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x140104e1e
mov rax, qword [rsp + 0x50]
add rax, 0x11a9c
mov rcx, qword [rsp + 0x50]
movzx r9d, byte [rcx + 0x1850]
mov r8d, 0x104
mov rdx, rax
mov ecx, dword [rsp + 0x24]
call fcn.1400529a0
test eax, eax
jne 0x140104e1e
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x50]
mov word [rdx + rax + 0x11a9c], cx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
and eax, 8
test eax, eax
je 0x140104e52
mov rax, qword [rsp + 0x50]
add rax, 0x1189a
mov r8d, 0x101
mov rdx, rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x1890]
call qword [sym.imp.USER32.dll_GetClassNameW]
mov rcx, rsp
lea rdx, [0x1402a8510]
call fcn.140134a00
add rsp, 0x40
pop rdi
ret

Function at 0x1401053d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x1401053f8
mov rcx, qword [rsp + 0x40]
call fcn.1400b2bf0
jmp 0x14010540e
xor r9d, r9d
xor r8d, r8d
mov edx, reloc.WSOCK32.dll_recv
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_PostMessageW]
cmp dword [rsp + 0x48], 0
jge 0x14010541d
mov dword [rsp + 0x48], 0
cmp dword [rsp + 0x48], 0
jne 0x14010542b
mov rax, qword [rsp + 0x40]
jmp 0x14010547a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x20], eax
mov edx, 1
mov ecx, 0x8000012f
call fcn.1400070b0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x14010545a
mov rax, qword [rsp + 0x40]
jmp 0x14010547a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x48]
sub ecx, eax
mov eax, ecx
cmp eax, 5
jg 0x140105473
jmp 0x140105475
jmp 0x140105435
mov rax, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140105860
Capabilities:
Enumerate gui resources

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x11d00
call fcn.1401354c0
sub rsp, rax
lea rdi, [rsp + 0x20]
mov ecx, 0x4738
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x11d10]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x11cf0], rax
lea rcx, [rsp + 0x30]
call fcn.140064a30
mov rax, qword [rsp + 0x11d10]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x18a8], rax
mov eax, dword [rsp + 0x11d18]
mov dword [rsp + 0x18b0], eax
mov eax, dword [rsp + 0x11d20]
mov dword [rsp + 0x18b4], eax
lea rdx, [rsp + 0x30]
lea rcx, [0x140106280]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0x1888], 0
je 0x140105925
mov rax, qword [0x14031a1e8]
cmp dword [rax + 0x90], 0xffffffff
jle 0x140105925
mov edx, 1
mov rax, qword [0x14031a1e8]
mov ecx, dword [rax + 0x90]
call fcn.1400070b0
mov rcx, rsp
lea rdx, [0x1402a8bc0]
call fcn.140134a00
mov rcx, qword [rsp + 0x11cf0]
xor rcx, rsp
call fcn.140135520
add rsp, 0x11d00
pop rdi
ret
Function at 0x140105950
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x11d20
call fcn.1401354c0
sub rsp, rax
lea rdi, [rsp + 0x20]
mov ecx, 0x4740
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x11d30]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x11d10], rax
mov rcx, qword [rsp + 0x11d30]
call fcn.1401066c0
movzx eax, al
test eax, eax
je 0x1401059ad
xor eax, eax
jmp 0x140105b7b
mov dl, 1
mov rcx, qword [rsp + 0x11d30]
call fcn.1401068e0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x20], rax
mov rax, qword [0x14031a1e8]
add rax, 0x80
mov r8, rax
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x11d30]
call fcn.1401066f0
test rax, rax
je 0x1401059f8
mov byte [rsp + 0x11d00], 1
jmp 0x140105a00
mov byte [rsp + 0x11d00], 0
movzx eax, byte [rsp + 0x11d00]
mov byte [rsp + 0x28], al
movzx eax, byte [rsp + 0x28]
test eax, eax
jne 0x140105a1f
mov dword [0x140325b00], 0
lea rcx, [rsp + 0x40]
call fcn.140064a30
movzx eax, byte [rsp + 0x11d38]
test eax, eax
je 0x140105a4b
movzx eax, byte [rsp + 0x28]
test eax, eax
jne 0x140105a4b
mov dword [rsp + 0x11d04], 0
jmp 0x140105a56
mov dword [rsp + 0x11d04], 1
movzx eax, byte [rsp + 0x11d04]
mov byte [rsp + 0x1891], al
mov rax, qword [0x140325af8]
mov qword [rsp + 0x18a8], rax
mov eax, dword [0x140325b00]
mov dword [rsp + 0x18b0], eax
mov r8, qword [rsp + 0x11d30]
mov rdx, qword [0x14031a1e8]
lea rcx, [rsp + 0x40]
call fcn.1401044c0
cmp dword [0x140325b00], 0
jle 0x140105ab0
mov dword [rsp + 0x11d08], 1
jmp 0x140105abb
mov dword [rsp + 0x11d08], 0
movzx eax, byte [rsp + 0x11d08]
mov byte [rsp + 0x11cf4], al
jmp 0x140105ad4
mov byte [rsp + 0x11cf4], 0
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x140105ae7
mov rcx, qword [rsp + 0x20]
call fcn.140106860
mov eax, dword [0x140325b00]
mov dword [rsp + 0x18b0], eax
lea rdx, [rsp + 0x40]
lea rcx, [0x140102cd0]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0x1898], 0
je 0x140105b5c
mov rcx, qword [rsp + 0x1898]
call fcn.140104570
mov rcx, qword [rsp + 0x1898]
call fcn.140106860
mov rax, qword [0x14031a1e8]
cmp dword [rax + 0x90], 0xffffffff
jle 0x140105b52
mov edx, 1
mov rax, qword [0x14031a1e8]
mov ecx, dword [rax + 0x90]
call fcn.1400070b0
mov rax, qword [rsp + 0x1898]
jmp 0x140105b7b
movzx eax, byte [rsp + 0x11cf4]
test eax, eax
jne 0x140105b6a
jmp 0x140105b79
mov dword [0x140325b00], 0
jmp 0x140105acc
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1402a8c20]
call fcn.140134a00
mov rax, rdi
mov rcx, qword [rsp + 0x11d10]
xor rcx, rsp
call fcn.140135520
add rsp, 0x11d20
pop rdi
ret
Function at 0x140106030
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x11d10
call fcn.1401354c0
sub rsp, rax
lea rdi, [rsp + 0x20]
mov ecx, 0x473c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x11d20]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x11d08], rax
xor edx, edx
mov rcx, qword [rsp + 0x11d20]
call fcn.1401068e0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x20], rax
mov edx, 4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindow]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1401060b5
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
jmp 0x14010608c
mov rax, qword [0x14031a1e8]
add rax, 0x80
mov r8, rax
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x11d20]
call fcn.1401066f0
test rax, rax
je 0x1401060e6
mov dword [0x140325b00], 0
lea rcx, [rsp + 0x40]
call fcn.140064a30
movzx eax, byte [rsp + 0x11d28]
test eax, eax
je 0x140106112
cmp dword [0x140325b00], 0
jne 0x140106112
mov dword [rsp + 0x11d00], 0
jmp 0x14010611d
mov dword [rsp + 0x11d00], 1
movzx eax, byte [rsp + 0x11d00]
mov byte [rsp + 0x1891], al
mov rax, qword [0x140325af8]
mov qword [rsp + 0x18a8], rax
mov eax, dword [0x140325b00]
mov dword [rsp + 0x18b0], eax
mov rax, qword [rsp + 0x11d20]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x18b8], rax
lea rdx, [rsp + 0x40]
lea rcx, [0x1401064b0]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0x1898], 0
je 0x1401061c8
mov rcx, qword [rsp + 0x1898]
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov rcx, rax
call fcn.140104570
mov rcx, qword [rsp + 0x1898]
call fcn.140106860
mov rax, qword [0x14031a1e8]
cmp dword [rax + 0x90], 0xffffffff
jle 0x1401061c3
mov edx, 1
mov rax, qword [0x14031a1e8]
mov ecx, dword [rax + 0x90]
call fcn.1400070b0
jmp 0x140106249
cmp dword [0x140325b00], 0
je 0x140106232
cmp dword [0x140325b00], 1
jle 0x1401061e7
mov dword [rsp + 0x11d04], 1
jmp 0x1401061f2
mov dword [rsp + 0x11d04], 0
movzx eax, byte [rsp + 0x11d04]
mov byte [rsp + 0x11cf4], al
mov dword [0x140325b00], 0
movzx eax, byte [rsp + 0x11cf4]
test eax, eax
je 0x140106230
mov rcx, qword [rsp + 0x20]
call fcn.140106860
xor edx, edx
mov rcx, qword [rsp + 0x11d20]
call fcn.140106030
jmp 0x140106249
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov rcx, rax
call fcn.140104570
mov rcx, rsp
lea rdx, [0x1402a8c80]
call fcn.140134a00
mov rcx, qword [rsp + 0x11d08]
xor rcx, rsp
call fcn.140135520
add rsp, 0x11d10
pop rdi
ret
Function at 0x140187730
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
call fcn.140187720
mov dword [rsp + 0x28], eax
call fcn.140219d80
mov ecx, 8
imul rcx, rcx, 5
mov rax, qword [rax + rcx]
mov qword [rsp + 0x30], rax
mov r9d, dword [rsp + 0x28]
lea r8, [rsp + 0x20]
mov edx, SafeArrayAllocDescriptor
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x20]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x30
je 0x1401877af
cmp dword [rsp + 0x24], 0x31
je 0x1401877b6
cmp dword [rsp + 0x24], 0x32
je 0x1401877bd
jmp 0x1401877c4
mov eax, 2
jmp 0x1401877c6
mov eax, 1
jmp 0x1401877c6
mov eax, 3
jmp 0x1401877c6
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x1401a50c0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401a4ba0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401a50ff
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402660c8]
jmp 0x1401a5109
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140225750
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret

Function at 0x14022f230
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14022e510
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14022f297
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1402660d0]
jmp 0x14022f2b9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14022f750
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret