joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001f80
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov ecx, 0x61
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140001f9b
call fcn.1400016f0
jmp 0x140001f84
mov ecx, 0x62
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x140001f84
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001f84

Function at 0x140003170
Capabilities:
Parse pe header

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

Function at 0x140002630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov al, byte [rsp + 0x67]
mov r10b, al
xor r10b, 1

Function at 0x140002698
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, eax
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x24], eax
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x10], rdx

Function at 0x1400026c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, qword [rsp + 0x58]
imul rax, qword [rsp + 0x58]
mov qword [rsp + 0x58], rax
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword [rsp + 0x10]
mov ecx, dword [rsp + 0x24]
mov edx, dword [rsp + 0x28]
mov r8d, 0x100
add ecx, 1
mov qword [rsp + 8], rax
mov eax, ecx
mov dword [rsp + 4], edx
cdq
idiv r8d
movsxd r9, edx
mov r10, qword [rsp + 0x30]
mov r11b, byte [r10 + r9]
movzx ecx, r11b
mov esi, dword [rsp + 4]
add esi, ecx
mov eax, esi
mov dword [rsp], edx
cdq
idiv r8d
movsxd rdi, edx
mov bl, byte [r10 + rdi]
mov bp, word [rsp + 0x56]
imul bp, word [rsp + 0x56]
mov word [rsp + 0x56], bp
mov byte [r10 + r9], bl
mov byte [r10 + rdi], r11b
movzx r8d, byte [r10 + r9]
add r8d, ecx
mov byte [rsp + 0x67], 0x9b
and r8d, 0xff
mov r11b, 0x44
mov bl, byte [rsp + 0x2f]
mov al, bl
mul r11b
mov byte [rsp + 0x67], al
mov ecx, r8d
mov r9d, ecx
mov al, byte [r10 + r9]
mov r9, qword [rsp + 0x38]
mov rdi, qword [rsp + 8]
xor al, byte [r9 + rdi]
mov r14, qword [rsp + 0x48]
mov byte [r14 + rdi], al
add rdi, 1
mov r15, qword [rsp + 0x18]
cmp rdi, r15
mov ecx, dword [rsp]
mov dword [rsp + 0x24], ecx
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x10], rdi
je 0x14000266a
invalid

Function at 0x140002780
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x20
lea rax, [fcn.140002780]
mov qword [rsp + 0x18], 0x330210ae
mov qword [rsp + 8], rax
jmp 0x1400027e7

Function at 0x140002c0c
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
xor edx, edx
mov r11d, dword [rsp + 0x2c]
div r11d
mov edx, edx
mov esi, edx
mov rdi, qword [rsp + 0x30]
invalid
Function at 0x1400421a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140042220
cmp r11, r10
ja 0x140042297
cmp r10, rdx
ja 0x1400422a9
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140042222
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140042200
jmp 0x140042284
ja 0x14004222a
mov r11, r10
cmp rax, r8
jne 0x1400421ce
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140042260
mov rdi, r8
sub ecx, edx
jns 0x14004227b
jmp 0x140042286
cmp r8, rsi
je 0x1400422b8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140042286
xor al, 1
cmp rdi, rsi
jne 0x140042240
jmp 0x140042286
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140118b20
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140118960
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140118c80
int3
Function at 0x140055290
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, rdx
mov rsi, rcx
movups xmm0, xmmword [rdx + 0x38]
movups xmm1, xmmword [rdx + 0x48]
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x50], xmm0
mov rax, qword [rdx + 0x28]
movzx ecx, byte [rdx + 0x30]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x30], rax
mov byte [rbp - 1], cl
mov byte [rbp - 0x28], cl
movzx eax, byte [0x14016031c]
mov edx, 0x5f0
xor ecx, ecx
call fcn.1400fd810
test rax, rax
mov qword [rbp - 0x10], rbx
je 0x14005551c
mov rdi, rax
lea r14, [rbx + 0x38]
mov r8d, 0x5f0
mov rcx, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + 0x60]
mov qword [rbp - 0x20], rax
movabs rcx, 0x7465646279746573
movabs rdx, 0x6c7967656e657261
movabs r8, 0xded7d4e2d7dedfc6
movabs r9, 0xa60c596fc19fead0
movabs r10, 0xe414a674f0de7325
movabs r11, 0x800000000000000
nop word cs:[rax + rax]
mov eax, 1
lock xadd qword [0x1401601e0], rax
mov r13, rax
xor r13, rcx
lea r15, [rdx + r13]
mov rbx, r13
rol rbx, 0x10
xor rbx, r15
lea r12, [rbx + r8]
rol rbx, 0x15
add r13, r9
mov r15, r13
xor r15, r10
rol r13, 0x20
xor rax, r12
add rax, r15
rol r15, 0xd
xor r12, r11
xor r15, rax
rol rax, 0x20
xor r12, rbx
add r13, r12
rol r12, 0x10
xor r12, r13
add rax, r12
rol r12, 0x15
add r13, r15
rol r15, 0x11
xor r12, rax
xor r15, r13
rol r13, 0x20
xor rax, r11
add rax, r15
rol r15, 0xd
xor r15, rax
rol rax, 0x20
xor r13, 0xff
add r13, r12
rol r12, 0x10
xor r12, r13
add rax, r12
rol r12, 0x15
add r13, r15
rol r15, 0x11
xor r15, r13
rol r13, 0x20
xor r12, rax
add rax, r15
rol r15, 0xd
xor r15, rax
rol rax, 0x20
add r13, r12
rol r12, 0x10
xor r12, r13
add rax, r12
rol r12, 0x15
add r13, r15
rol r15, 0x11
xor r15, r13
rol r13, 0x20
xor r12, rax
add rax, r15
rol r15, 0xd
add r13, r12
rol r12, 0x10
xor r12, r13
rol r12, 0x15
xor r15, rax
add r13, r15
rol r15, 0x11
mov rax, r13
rol rax, 0x20
xor rax, r15
xor rax, r12
xor rax, r13
je 0x140055360
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rdx + 0x58]
movups xmm0, xmmword [r14]
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rsi + 0x128], xmm1
movups xmmword [rsi + 0x118], xmm0
mov r8, qword [rbp - 0x18]
mov qword [rsi + 0x138], r8
movzx r8d, byte [rbp - 1]
mov byte [rsi + 0x140], r8b
mov qword [rsi], 0
mov qword [rsi + 8], rdi
mov qword [rsi + 0x80], 0
mov qword [rsi + 0x88], rdi
mov r8, qword [rbp - 0x20]
mov qword [rsi + 0x100], r8
mov qword [rsi + 0x108], rax
mov qword [rsi + 0x110], rcx
mov rax, qword [rdx + 0x10]
shl rax, 1
test rax, rax
jne 0x1400554f8
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r8, qword [rdx + 0x18]
mov rcx, qword [0x1401602a0]
xor edx, edx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp qword [sym.imp.kernel32.dll_HeapFree]
mov ecx, 8
mov edx, 0x5f0
call fcn.140118500
ud2
Function at 0x1400e1fa0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov r14, rcx
mov rcx, qword [rcx + 8]
mov r12, qword [r14 + 0x10]
adc byte [rcx + rcx*4 - 0x20], cl

Function at 0x1400eec50
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x1400eec75
cmp rax, rcx
je 0x1400eec7b
cmp rdx, 4
jae 0x1400eec7f
xor eax, eax
xor r8d, r8d
jmp 0x1400eed10
pop rbp
jmp fcn.14003f280
xor eax, eax
pop rbp
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1401237a0]
movdqa xmm3, xmmword [0x1401237b0]
pxor xmm1, xmm1
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x1400eeca0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1400eed27
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1400eed10
pop rbp
ret

Function at 0x1400f39f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x48], 0xfffffffffffffffe
test r8, r8

Function at 0x1400f6160
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret

Function at 0x1400f8510
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
mov esi, ecx
Function at 0x1400fcc10
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14016031c]
mov edx, 0x10
xor ecx, ecx
call fcn.1400fd810
test rax, rax
je 0x1400fcd03
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400fcdc0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400fccf5
mov rcx, qword [rbx]
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x18], rax
call qword [rax]
mov rax, qword [rbp - 0x18]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x20]
je 0x1400fccce
cmp qword [rax + 0x10], 0x11
jae 0x1400fccb7
mov r8, qword [rbp - 0x10]
jmp 0x1400fccbf
mov r8, qword [rbp - 0x10]
mov r8, qword [r8 - 8]
mov rcx, qword [0x1401602a0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1401602a0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.140118500
ud2

Function at 0x140101ff0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rcx + 0x18]
test rdi, rdi
je 0x14010207f
mov rbx, qword [rsi]
lea r14, [rbx + 0x10]
movdqa xmm0, xmmword [rbx]
pmovmskb eax, xmm0
not eax
mov r15, qword [sym.imp.pdh.dll_PdhRemoveCounter]
jmp 0x140102050
tzcnt ecx, eax
shl ecx, 5
mov rdx, rbx
sub rdx, rcx
lea ebp, [rax - 1]
and ebp, eax
mov rcx, qword [rdx - 8]
call r15
mov eax, ebp
dec rdi
je 0x14010207f
test ax, ax
jne 0x140102030
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r14]
pmovmskb eax, xmm0
add rbx, 0xfffffffffffffe00
add r14, 0x10
cmp eax, 0xffff
je 0x140102060
not eax
jmp 0x140102030
mov rcx, qword [rsi + 0x38]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140102097
call qword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
je 0x1401020b2
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x1401020c6
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x1401020a5
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.pdh.dll_PdhCloseQuery]
Function at 0x1401049d0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140104a12
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x140104a1a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x140104a2b
jmp 0x140104a42
xor r10d, r10d
jmp 0x140104acd
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140104a42
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140104a59
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140104a79
add r11, r8
jmp 0x140104bab
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140104b42
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140104af0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x140104b60
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140104b72
jmp 0x140104b8d
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140104b8d
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140104ba7
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret

Function at 0x1401091c0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rax, rdx
mov rsi, rcx
lea rdx, [rbp - 4]
mov rcx, rax
call qword [sym.imp.shell32.dll_CommandLineToArgvW]
test rax, rax
je 0x1401092db
mov qword [rbp - 0x30], rsi
movsxd rcx, dword [rbp - 4]
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 8
mov qword [rbp - 0x10], 0
lea rsi, [rax + rcx*8]
mov r15d, 8
xor r12d, r12d
lea rbx, [rbp - 0x48]
lea r14, [rbp - 0x60]
mov qword [rbp - 0x28], rax
mov rdi, rax
jmp 0x140109261
mov qword [rsi], 0
mov qword [rsi + 8], 8
mov qword [rsi + 0x10], 0
Function at 0x140117dbc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140117e06
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140117e06
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140117e06
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140117e06
cmp dword [rcx + 0x84], 0xe
jbe 0x140117e06
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140117e08
xor al, al
add rsp, 0x28
ret
Function at 0x1400012d4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x120
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, qword [rbx + 0x20]
mov edx, 9
mov rbp, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edi, edi
lea rdx, [rsp + 0x50]
lea r8d, [rdi + 0x64]
mov rcx, rbp
mov rsi, rax
mov word [rsp + 0x50], di
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x130]
mov dword [rsp + 0x130], edi
mov dword [rsp + 0x134], edi
call qword [sym.imp.USER32.dll_ClientToScreen]
lea r8d, [rdi + 0x10]
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.1400dfee0
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r8d, dword [rsp + 0x40]
mov r9d, dword [rsp + 0x44]
mov edi, dword [rsp + 0x48]
mov ebx, dword [rsp + 0x4c]
mov dword [rsp + 0x30], 4
sub edi, r8d
sub r8d, dword [rsp + 0x130]
sub ebx, r9d
sub r9d, dword [rsp + 0x134]
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x44], r9d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov r8d, dword [rsp + 0x44]
mov edx, dword [rsp + 0x40]
mov r9d, edi
mov rcx, rsi
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_MoveWindow]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140004778
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov rcx, qword [rcx]
mov ebx, esi
cmp rcx, rsi
je 0x14000479e
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea edx, [rbx + 0x2d0]
mov rcx, rdi
movsxd rdx, edx
call fcn.14005c004
cmp ebx, esi
jg 0x14000484d
mov rax, qword [rdi]
lea rcx, [0x1400fc890]
mov r8d, 0x208
mov word [rax], si
mov rdx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
mov ebx, eax
jg 0x140004832
mov rdx, qword [rdi]
lea rcx, [0x1400fc880]
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
mov ebx, eax
jg 0x140004832
mov rdx, qword [rdi]
xor r9d, r9d
xor ecx, ecx
lea r8d, [r9 + 0x24]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
cmp ebx, esi
jle 0x14000484d
mov rax, qword [rdi]
lea rdx, [0x1400fc870]
lea rcx, [rax + rbx*2]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
add ebx, 5
cmp ebx, esi
jle 0x14000484d
mov rax, qword [rdi]
movsxd rcx, ebx
mov edx, 0x5c
mov word [rax + rcx*2], dx
mov rax, qword [rdi]
inc ebx
movsxd rcx, ebx
mov word [rax + rcx*2], si
mov rdx, qword [rdi]
lea rcx, [0x14011afa0]
call fcn.140027928
cmp ebx, esi
jle 0x14000486c
mov rcx, qword [rdi]
call fcn.1400df328
cmp eax, esi
jne 0x1400048a8
mov rdx, qword [rdi]
xor r9d, r9d
xor ecx, ecx
lea r8d, [r9 + 0x24]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rcx, qword [rdi]
lea rdx, str.TEMP_
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [rdi]
lea rcx, [0x14011afa0]
call fcn.140027928
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140004ec0
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push rbx
sub rsp, 0x70
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea rcx, str.LC_ALL
lea r8d, [rbx + 0x20]
mov word [rsp + 0x20], bx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movzx r11d, word [rsp + 0x20]
cmp r11w, bx
jne 0x140004f0c
lea r9d, [rbx + 0x20]
lea r8, [rsp + 0x20]
lea edx, [rbx + 0xb]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov r11w, word [rsp + 0x20]
lea rax, [rsp + 0x20]
cmp r11w, bx
lea rdx, [0x1400fca68]
lea rcx, [0x14011a9a8]
cmovne rdx, rax
call fcn.140066cbc
mov rcx, qword [0x14011a9a8]
call fcn.14005d19c
movzx ecx, word [0x140125004]
cmp eax, 1
cmovg cx, ax
mov word [0x140125004], cx
add rsp, 0x70
pop rbx
ret

Function at 0x140005068
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14000505c
lea rdx, str.ChangeWindowMessageFilter
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140005053
mov edx, 1
mov ecx, 0x233
call rdi
mov edx, 1
lea ecx, [rdx + 0x49]
call rdi
mov edx, 1
lea ecx, [rdx + 0x48]
call rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
or eax, 0x8001
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x1401182d0], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x1401182e0], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp qword [0x14011b190], 0
mov qword [0x1401182d8], rax
jne 0x1400050ce
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [0x14011b190], rax
and qword [0x14011aa28], 0
lea rax, [0x14011aa28]
mov qword [0x14011aff0], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
mov dword [0x14011a8b4], eax
call fcn.140016c5c
add rsp, 0x28
jmp 0x140004ffc