joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015e40
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x2c0
xor edx, edx
mov rbp, rcx
xor edi, edi
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov rsi, rax
test rax, rax
je 0x140015fdc
movaps xmm0, xmmword [0x1400e42b0]
lea rcx, [rsp + 0x94]
movaps xmm1, xmmword [0x1400e42c0]
mov eax, dword [0x1400e4310]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x1400e42d0]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x1400e42e0]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x1400e42f0]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm1, xmmword [0x1400e4300]
mov dword [rsp + 0x90], eax
movzx eax, word [0x1400e4314]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
mov word [rsp + 0x94], ax
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x140015fcc
lea rax, [rsp + 0x2f0]
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015fcc
mov rcx, qword [rsp + 0x2f0]
lea rax, [rsp + 0x2e8]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400e4318]
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x2e0], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x2e8], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x2f0]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x2e0]
jne 0x140015fcc
mov ecx, dword [rsp + 0x2e8]
test ecx, ecx
je 0x140015fcc
shr ecx, 1
dec ecx
cmp word [rsp + rcx*2 + 0xb0], di
jne 0x140015fa5
test ecx, ecx
je 0x140015fcc
lea edx, [rcx - 1]
cmp word [rsp + rdx*2 + 0xb0], di
jne 0x140015fb7
mov ecx, edx
test edx, edx
jne 0x140015f90
jmp 0x140015fcc
inc ecx
cmp ecx, 0x104
jae 0x140015fcc
mov word [rsp + rcx*2 + 0xb0], di
test ecx, ecx
je 0x140015fcc
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
cmp rbp, rsi
je 0x140015fdc
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov rax, rdi
add rsp, 0x2c0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016510
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push r14
sub rsp, 0x38
movzx eax, word [rcx]
movzx ebp, r8b
mov r14, rcx
test ax, ax
jne 0x14001652f
add rsp, 0x38
pop r14
pop rbp
ret
cmp word [rcx + 2], 0
jne 0x14001654d
mov r8, qword [rsp + 0x70]
mov r9b, 1
movzx ecx, ax
add rsp, 0x38
pop r14
pop rbp
jmp fcn.140016670
mov qword [rsp + 0x58], rbx
movzx ebx, ax
test ebx, 0xffffff80
jne 0x140016570
mov edx, 2
mov ecx, ebx
call fcn.1400adfa4
test eax, eax
je 0x140016570
and ebx, 0xffffffdf
mov qword [rsp + 0x30], rdi
cmp bx, 0x56
jne 0x1400165db
movzx ecx, word [r14 + 2]
call fcn.14000ad90
cmp ax, 0x4b
jne 0x1400165db
lea rcx, [r14 + 4]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x50]
call fcn.1400af4c4
mov rcx, qword [rsp + 0x50]
cmp word [rcx], 0
je 0x1400165c2
mov rbx, qword [rsp + 0x58]
xor edi, edi
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rbp
ret
mov rbx, qword [rsp + 0x58]
movzx edi, al
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rbp
ret
mov qword [rsp + 0x60], rsi
xor edi, edi
mov qword [rsp + 0x28], r12
mov esi, edi
lea r12, [0x140101b40]
mov qword [rsp + 0x20], r15
mov rbx, r12
lea r15, [0x140102210]
nop
mov rcx, qword [rbx]
mov rdx, r14
call fcn.1400ab3f0
test eax, eax
je 0x140016641
inc esi
add rbx, 0x10
cmp rbx, r15
jl 0x140016600
test bpl, bpl
je 0x140016623
xor al, al
jmp 0x14001664e
mov rcx, r14
call fcn.140016410
test ax, ax
je 0x14001663b
movzx ecx, ax
call fcn.140016f20
movzx edi, al
movzx eax, dil
jmp 0x14001664e
movsxd rax, esi
shl rax, 4
movzx eax, byte [rax + r12 + 8]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
add rsp, 0x38
pop r14
pop rbp
ret

Function at 0x140016670
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx edi, r9b
mov rbx, rdx
movzx esi, cx
cmp cx, 0xa
jne 0x1400166a1
mov al, 0xd
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rdx, r8
mov qword [rsp + 0x30], rbp
movzx ecx, si
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rbp, ax
mov rcx, rbp
shr rcx, 8
cmp cl, 0xff
jne 0x140016704
cmp bpl, 0xff
jne 0x140016704
test dil, dil
je 0x140016709
movzx edi, si
test edi, 0xffffff80
jne 0x140016709
mov edx, 0x103
mov ecx, edi
call fcn.1400adfa4
test eax, eax
je 0x140016709
movzx ecx, si
call fcn.14000ad90
mov edx, 1
mov ecx, edi
movzx ebp, al
call fcn.1400adfa4
test eax, eax
setne cl
test cl, 0x38
je 0x14001670d
xor al, al
jmp 0x140016754
test rbx, rbx
je 0x140016750
movzx eax, cl
and al, 6
cmp al, 6
jne 0x140016720
or byte [rbx], 8
jmp 0x140016740
test cl, 2
je 0x140016730
movzx eax, byte [rbx]
test al, 3
jne 0x140016730
or al, 1
mov byte [rbx], al
test cl, 4
je 0x140016740
movzx eax, byte [rbx]
test al, 0xc
jne 0x140016740
or al, 4
mov byte [rbx], al
test cl, 1
je 0x140016750
movzx eax, byte [rbx]
test al, 0x30
jne 0x140016750
or al, 0x10
mov byte [rbx], al
movzx eax, bpl
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001baa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, r8
mov qword [rsp + 0x30], 0
mov rsi, rdx
mov dword [rsp + 0x38], 0
mov rbp, rcx
mov byte [rsp + 0x3c], 0
mov r8d, 0xa
lea rdx, str._AUTOHOTKEY_SCRIPT_
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14001bb0b
lea r8d, [rax + 0xa]
xor ecx, ecx
lea rdx, [0x1400e5e48]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14001bb75
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x38], eax
test eax, eax
je 0x14001bb75
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001bb75
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001bb75
mov r9d, 0xfde9
lea rdx, [rsp + 0x30]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, rsi
call fcn.140088ec0
mov rax, qword [rbp + 0xb80]
inc dword [0x140108140]
mov qword [0x140108148], rax
mov eax, 3
jmp 0x14001bb94
xorps xmm3, xmm3
mov qword [rsp + 0x20], 0
mov r8, rdi
lea rcx, str.Could_not_extract_script_from_EXE.
xor edx, edx
call fcn.140090ee0
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140022c10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
movzx eax, word [0x1401033f8]
xor ebp, ebp
mov word [rsp + 0x22], ax
mov eax, 0x7b
mov dword [rsp + 0x48], eax
mov ebx, SafeArrayAllocDescriptor
mov word [rsp + 0x20], bx
mov r10, r8
mov dword [rsp + 0x24], 0x90028
mov rsi, rdx
mov dword [rsp + 0x28], 0x3e003c
mov r11, rcx
mov dword [rsp + 0x2c], 0x3d003a
mov dword [rsp + 0x30], 0x2d002b
mov dword [rsp + 0x34], 0x2f002a
mov dword [rsp + 0x38], 0x7e0021
mov dword [rsp + 0x3c], 0x7c0026
mov dword [rsp + 0x40], 0x5b005e
mov dword [rsp + 0x44], 0x3f002e
test r8, r8
je 0x140022cd0
movzx edx, word [r8]
test dx, dx
je 0x140022ce5
lea rcx, [rsp + 0x20]
mov eax, ebx
nop dword [rax + rax]
cmp dx, ax
je 0x140022cd3
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140022cb0
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x140022ca4
mov r8, rbp
test r8, r8
je 0x140022ce5
cmp r8, r10
lea rbx, [r8 - 2]
cmovbe rbx, r8
jmp 0x140022d02
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r10 + rax*2], bp
jne 0x140022cf0
lea rbx, [r10 - 2]
lea rbx, [rbx + rax*2]
cmp rbx, r10
jbe 0x140022d1f
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140022d16
cmp ax, 9
jne 0x140022d1f
sub rbx, 2
cmp rbx, r10
ja 0x140022d07
mov rdi, rbx
sub rdi, r10
sar rdi, 1
inc rdi
cmp rdi, 0xfd
jbe 0x140022d4f
test r9b, r9b
je 0x140022d4b
mov r8, r10
lea rdx, [0x1400e6370]
mov rcx, r11
call fcn.140039240
xor eax, eax
jmp 0x140022d64
mov r8, rdi
mov rdx, r10
mov rcx, rsi
call fcn.1400b44b4
mov rax, rbx
mov word [rsi + rdi*2], bp
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140038220
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea r8, [0x1400e8ab0]
mov qword [rsp + 0x70], rcx
mov edx, 0xfffe
mov r14, rcx
call fcn.14008b520
mov r8d, dword [0x140106dd8]
lea r9, [0x140000000]
movsxd rdx, eax
mov ebp, 0x190
mov edi, r8d
lea rax, [r14 + rdx*2]
mov qword [rsp + 0x80], rax
xor r15b, r15b
mov r13, rax
test ebp, ebp
jle 0x14003839c
movsxd rbx, edi
mov esi, 2
mov r12d, ebp
nop dword [rax + rax]
cmp edi, 0x190
jl 0x1400382a5
sub edi, 0x190
sub rbx, 0x190
cmp qword [r9 + rbx*8 + 0x107420], 0
je 0x14003837f
movzx r14d, r15b
lea eax, [rsi - 1]
xor r15b, r15b
cmp eax, ebp
jge 0x1400383d1
test r14b, r14b
jne 0x14003837f
mov edx, dword [r9 + rbx*4 + 0x106de0]
lea rax, [rbx + 1]
xor ecx, ecx
cmp edi, 0x18f
cmovl rcx, rax
mov eax, dword [r9 + rcx*4 + 0x106de0]
sub eax, edx
cmp eax, 0x7fffffff
jbe 0x140038331
mov r15b, 1
cmp esi, ebp
jne 0x140038315
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x140000000]
sub eax, dword [rcx + rbx*4 + 0x106de0]
jmp 0x140038338
lea rax, [rbx + 2]
cmp rax, 0x190
jl 0x140038327
add rax, 0xfffffffffffffe70
mov eax, dword [r9 + rax*4 + 0x106de0]
sub eax, edx
lea rcx, [0x140000000]
mov rcx, qword [rcx + rbx*8 + 0x107420]
mov r9d, 0xfffe
mov r8, r13
mov byte [rsp + 0x28], r14b
sub r8, qword [rsp + 0x70]
mov rdx, r13
sar r8, 1
sub r9d, r8d
mov dword [rsp + 0x20], eax
mov r8d, 0xc8
cmp r9d, r8d
cmovl r8d, r9d
mov r9b, 1
call fcn.140038560
mov r13, rax
lea r9, [0x140000000]
inc esi
inc edi
inc rbx
sub r12, 1
jne 0x140038290
mov r8d, dword [0x140106dd8]
mov r14, qword [rsp + 0x70]
mov rax, r13
mov edx, 0xfffe
sub rax, r14
sar rax, 1
sub edx, eax
cmp edx, 0x18
jg 0x1400383ea
cmp ebp, 0x78
jl 0x1400383ea
mov rax, qword [rsp + 0x80]
sub ebp, 0x64
mov edi, r8d
sub edi, ebp
add edi, 0x190
jmp 0x140038272
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x140000000]
sub eax, dword [rcx + rbx*4 + 0x106de0]
jmp 0x140038338
lea r8, [0x1400e8cb8]
mov rcx, r13
call fcn.14008b520
mov rbx, qword [rsp + 0x78]
movsxd rcx, eax
lea rax, [rcx*2]
add rax, r13
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140039c60
Capabilities:
Print debug messages

Disassembly:
test edx, edx
je 0x140039da9
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x4030
call fcn.1400c0680
sub rsp, rax
mov qword [rsp + 0x4050], rbx
mov rbp, r9
mov rbx, qword [rsp + 0x4070]
mov r14, r8
mov qword [rsp + 0x4058], r15
mov esi, edx
mov rdi, rcx
test rbx, rbx
jne 0x140039cc1
mov rbx, qword [rcx + 0x6a0]
test rbx, rbx
jne 0x140039cc1
mov ecx, dword [rcx + 0x2c8]
movzx eax, word [rdi + 0x2cc]
jmp 0x140039cc9
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
movsxd r9, ecx
lea r8, [0x1400e92e0]
lea rcx, [0x140108148]
movzx eax, ax
mov r15d, 0x2000
mov qword [rsp + 0x28], r14
mov edx, r15d
mov dword [rsp + 0x20], eax
mov r9, qword [rcx + r9*8]
lea rcx, [rsp + 0x30]
call fcn.14008b520
cmp word [rbp], 0
movsxd rcx, eax
je 0x140039d25
sub r15d, ecx
lea rax, [rsp + 0x30]
lea rcx, [rax + rcx*2]
mov edx, r15d
mov r9, rbp
lea r8, [0x1400e8ed8]
call fcn.14008b520
mov r15, qword [rsp + 0x4058]
cmp esi, 3
jne 0x140039d49
lea ecx, [rsi - 2]
call fcn.1400ad950
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400b366c
jmp 0x140039d8e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x140039d8e
test rbx, rbx
jne 0x140039d7a
mov rbx, qword [rdi + 0x6a0]
test rbx, rbx
jne 0x140039d7a
mov r8, rbp
mov rdx, r14
mov rcx, rdi
call fcn.140039240
jmp 0x140039d8e
mov r9, rbp
mov r8d, 1
mov rdx, r14
mov rcx, rbx
call fcn.140038ea0
mov rbx, qword [rsp + 0x4050]
mov rbp, qword [rsp + 0x4060]
add rsp, 0x4030
pop r14
pop rdi
pop rsi
ret
Function at 0x14003a390
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x450
mov r14, rdx
mov r15, rdx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebp, ebp
test rax, rax
je 0x14003a3d5
lea r8d, [rbp + 0x64]
mov rcx, rax
lea rdx, [rsp + 0x180]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14003a3dd
mov word [rsp + 0x180], bp
mov rbx, qword [0x140108df8]
or rsi, 0xffffffffffffffff
mov word [rsp + 0x80], bp
test rbx, rbx
je 0x14003a4a8
nop dword [rax]
cmp byte [rbx + 0x15], bpl
je 0x14003a440
mov rcx, qword [rbx]
call fcn.1400860e0
test eax, eax
je 0x14003a420
cmp eax, 1
je 0x14003a420
lea r9, [0x1400e8620]
jmp 0x14003a427
mov rax, qword [rbx]
mov r9, qword [rax + 8]
lea r8, [0x1400e95f8]
mov edx, 0x7d
lea rcx, [rsp + 0x80]
call fcn.14008b580
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x14003a400
cmp word [rsp + 0x80], bp
je 0x14003a4a8
lea rcx, [rsp + 0x80]
mov rax, rsi
nop
inc rax
cmp word [rcx + rax*2], bp
jne 0x14003a460
cmp rax, 0x7b
jbe 0x14003a49b
lea rdi, [rsp + 0x80]
mov ebx, 0x7f
lea rdi, [rdi + rax*2]
sub rbx, rax
mov r8, rbx
lea rdx, [0x1400e4760]
mov rcx, rdi
call fcn.1400b44b4
mov word [rdi + rbx*2], bp
jmp 0x14003a4a8
cmp word [rsp + rax*2 + 0x7e], 0x20
jne 0x14003a4a8
mov word [rsp + rax*2 + 0x7e], bp
mov rax, qword [0x140105bc8]
cmp byte [rax + 0x138], bpl
je 0x14003a4c6
cmp byte [0x140108e61], bpl
mov ebx, 1
je 0x14003a4c8
mov ebx, ebp
mov eax, dword [0x140105d48]
cmp eax, 1
jle 0x14003a4d6
lea ebp, [rax - 1]
mov cl, 1
call fcn.1400157e0
movzx ecx, al
lea rdx, [rsp + 0x250]
call fcn.140015bf0
mov edx, dword [0x140105d48]
lea r11, [0x1400e2d40]
mov r10d, dword [0x140105d24]
lea r8, [0x1400e9600]
mov qword [rsp + 0x70], rax
lea r9, [0x1400e2d38]
mov eax, dword [0x140105d6c]
lea rcx, [0x1400cffcc]
mov dword [rsp + 0x68], eax
sub r10d, ebx
mov dword [rsp + 0x60], edx
lea rax, [rsp + 0x80]
mov dword [rsp + 0x58], r10d
cmp edx, 1
mov edi, 0xfffe
cmovg rcx, r8
mov edx, edi
cmp qword [0x140105d90], 0
mov r8, r9
mov qword [rsp + 0x50], rcx
mov rcx, r14
mov dword [rsp + 0x48], ebp
cmove r8, r11
cmp qword [0x140105d98], 0
mov qword [rsp + 0x40], rax
mov eax, dword [0x140108e08]
cmove r9, r11
mov dword [rsp + 0x38], eax
mov eax, dword [0x140108e0c]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea r8, [0x1400e9680]
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x180]
call fcn.14008b520
movsxd rcx, eax
mov edx, edi
sub edx, ecx
lea r14, [r14 + rcx*2]
mov rcx, r14
call fcn.14000aa30
nop dword [rax + rax]
cmp word [r14 + rsi*2 + 2], 0
lea rsi, [rsi + 1]
jne 0x14003a5c0
cmp qword [0x140105d88], 0
lea rax, [0x1400e8cb8]
lea rbx, [r14 + rsi*2]
lea r8, [0x1400e97f0]
mov rcx, rbx
cmovne r8, rax
mov rax, rbx
sub rax, r15
sar rax, 1
sub edi, eax
mov edx, edi
call fcn.14008b520
lea r11, [rsp + 0x450]
movsxd rcx, eax
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
lea rax, [rbx + rcx*2]
mov rbx, qword [r11 + 0x20]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140041da0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x68]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov r11, r8
mov rbx, rdx
mov qword [rsp + 0x20], rax
mov r8, r10
mov rdx, r11
mov rsi, rcx
call fcn.140050ec0
mov rdi, rax
test rax, rax
je 0x140041ea2
mov rdx, rbx
mov rcx, rax
call fcn.140090c00
mov rbp, rax
test rax, rax
je 0x140041ea2
xor edx, edx
mov rcx, rdi
xor sil, sil
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
test eax, eax
je 0x140041e3f
cmp eax, dword [0x140108290]
je 0x140041e3f
mov rcx, rdi
call fcn.140091220
test al, al
jne 0x140041e3f
mov ecx, dword [0x140108290]
mov r8d, 1
mov edx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne sil
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetFocus]
test rax, rax
je 0x140041e85
mov rcx, qword [0x140105d40]
lea rdx, [0x1400cffdc]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008ec90
mov rax, qword [0x140101a58]
mov ecx, dword [rax + 0x78]
cmp ecx, 0xffffffff
jle 0x140041e85
mov edx, 1
call fcn.1400016f0
test sil, sil
je 0x140041e9b
mov ecx, dword [0x140108290]
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, 1
jmp 0x140041ee5
mov rax, qword [0x140101a58]
lea rdx, [0x1400e352c]
test byte [rax + 0x140], 1
jne 0x140041ed3
mov rcx, qword [0x140105d40]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.14008ec90
jmp 0x140041ee5
lea r9, [0x1400cffcc]
xor r8d, r8d
mov rcx, rsi
call fcn.140038c10
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x68]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov r11, r8
mov rbx, rdx
mov qword [rsp + 0x20], rax
mov r8, r10
mov rdx, r11
call fcn.140050ec0
test rax, rax
je 0x1400429f6
lea rdx, [0x1400eaa50]
mov rcx, rax
call fcn.140090c00
mov rdi, rax
jmp 0x1400429f8
xor edi, edi
mov rcx, rbx
call fcn.140010ae0
mov rcx, rbx
test al, al
je 0x140042a14
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400af4c4
jmp 0x140042a19
call fcn.1400aefc8
mov rcx, qword [0x1401080a0]
lea r9, [0x1400cffcc]
mov dword [rsp + 0x68], gethostbyname
mov r8d, eax
mov rdx, rdi
mov dword [rsp + 0x60], 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140090890
Function at 0x140047840
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
mov eax, 0x2260
call fcn.1400c0680
sub rsp, rax
mov r9, qword [0x140108e50]
lea r8, [0x1400eab70]
movzx ebp, dl
mov qword [rsp + 0x20], rcx
mov rdi, rcx
lea r14, [rsp + 0x260]
mov edx, 0x800
lea rcx, [rsp + 0x260]
lea r15, [0x1400cffcc]
call fcn.14008b520
movsxd rbx, eax
lea esi, [rbx + 1]
cmp esi, 0x800
jg 0x1400478c5
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400478c5
mov r9, qword [0x140108e50]
jmp 0x140047928
lea rcx, [rsp + 0x50]
call fcn.140047f70
test eax, eax
je 0x1400479ea
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rdi
lea r8, [0x1400eab70]
mov edx, 0x800
lea rcx, [rsp + 0x260]
call fcn.14008b520
movsxd rbx, eax
lea esi, [rbx + 1]
cmp esi, 0x800
jg 0x1400479ea
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400479ea
lea r9, [rsp + 0x50]
mov edi, SafeArrayAllocDescriptor
movsxd rax, esi
mov word [rsp + rbx*2 + 0x260], di
xor ebx, ebx
mov word [rsp + rax*2 + 0x260], bx
test bpl, bpl
je 0x1400479b0
lea rax, [0x1400eab80]
mov edx, 0x800
lea r8, [0x1400eab70]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x1260]
call fcn.14008b520
movsxd rsi, eax
lea ebp, [rsi + 1]
cmp ebp, 0x800
jg 0x1400479b0
lea rcx, [rsp + 0x1262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400479b0
movsxd rax, ebp
lea r14, [rsp + 0x1260]
mov word [rsp + rsi*2 + 0x1260], di
lea r15, [rsp + 0x260]
mov word [rsp + rax*2 + 0x1260], bx
mov qword [rsp + 0x48], rbx
lea rcx, [0x1401082b0]
mov byte [rsp + 0x40], 0
xor r9d, r9d
mov byte [rsp + 0x38], 0
mov r8, r15
mov qword [rsp + 0x30], rbx
mov rdx, r14
mov qword [rsp + 0x28], rbx
mov byte [rsp + 0x20], 0
call fcn.14003a630
test eax, eax
setne al
jmp 0x1400479ec
xor al, al
lea r11, [rsp + 0x2260]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140047f70
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
sub rsp, 0x250
mov qword [rax - 0x10], rbp
mov rsi, rcx
mov qword [rax - 0x18], rdi
xor ebp, ebp
mov edi, ebp
mov qword [rax + 0x18], rbx
nop
mov r9d, edi
lea rax, [rsp + 0x268]
or r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x1400eaeb0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400480b9
mov rcx, qword [rsp + 0x268]
lea rax, [rsp + 0x260]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400eae98]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x260], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x268]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400480b9
mov edx, dword [rsp + 0x260]
test edx, edx
je 0x1400480b9
shr edx, 1
dec edx
mov dword [rsp + 0x260], edx
cmp word [rsp + rdx*2 + 0x30], bp
jne 0x140048059
test edx, edx
je 0x14004806f
nop dword [rax]
lea eax, [rdx - 1]
cmp word [rsp + rax*2 + 0x30], bp
jne 0x14004806f
mov dword [rsp + 0x260], eax
mov edx, eax
test eax, eax
jne 0x140048040
jmp 0x14004806f
inc edx
mov dword [rsp + 0x260], edx
cmp edx, 0x104
jae 0x1400480b9
mov word [rsp + rdx*2 + 0x30], bp
mov eax, edx
test edx, edx
je 0x1400480c0
mov rdi, qword [rsp + 0x240]
mov rbp, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x270]
test rsi, rsi
je 0x1400480b0
lea rcx, [rsp + 0x30]
sub rsi, rcx
lea rdx, [rsp + 0x30]
nop
movzx ecx, word [rdx]
mov word [rsi + rdx], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x1400480a0
add rsp, 0x250
pop rsi
ret
mov word [rsp + 0x30], bp
mov eax, ebp
test edi, edi
jne 0x140048075
mov edi, 0x200
jmp 0x140047f90
Function at 0x1400641f0
Capabilities:
Get file version info

Disassembly:
push rbx
push rdi
sub rsp, 0x148
mov rbx, rdx
mov byte [rsp + 0x20], 1
mov rdi, rcx
xor edx, edx
mov rcx, qword [0x1401080a0]
xor r9d, r9d
or r8, 0xffffffffffffffff
call fcn.14008ec90
test rbx, rbx
je 0x140064384
cmp word [rbx], 0
je 0x140064384
lea rdx, [rsp + 0x168]
mov qword [rsp + 0x140], rsi
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
jne 0x140064278
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140101a58]
mov dl, 1
mov dword [rcx + 0x40], eax
mov rcx, rdi
call fcn.140038ce0
mov rsi, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbx
ret
mov rcx, rsi
mov qword [rsp + 0x160], rbp
call fcn.1400ab568
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140064362
lea r9, [rsp + 0x170]
mov rcx, rbp
lea r8, [rsp + 0x178]
lea rdx, [0x1400e47d0]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140064362
mov rax, qword [rsp + 0x178]
lea r8, [0x1400ec5e8]
mov edx, dword [rax + 0xc]
mov r9d, dword [rax + 8]
movzx ecx, dx
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x40]
shr edx, 0x10
mov dword [rsp + 0x28], edx
mov edx, 0x80
movzx eax, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], eax
call fcn.14008b520
mov rcx, rbp
call fcn.1400adb8c
mov rax, qword [0x140101a58]
xor edx, edx
mov rcx, rdi
mov dword [rax + 0x40], 0
call fcn.140038ce0
mov rcx, qword [0x1401080a0]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008ec90
mov rbp, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140101a58]
mov dword [rcx + 0x40], eax
mov rcx, rbp
call fcn.1400adb8c
mov rcx, rdi
call fcn.14003c220
jmp 0x140064348
mov rax, qword [0x140101a58]
mov dl, 1
mov rcx, rdi
mov dword [rax + 0x40], 0x57
call fcn.140038ce0
add rsp, 0x148
pop rdi
pop rbx
ret