joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026560
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x140106c60], ecx
lea rax, [0x140106c64]
mov r8d, 1
mov edx, dword [rax - 4]
lea rax, [rax + 4]
shr edx, 0x1e
xor edx, dword [rax - 8]
imul ecx, edx, 0x6c078965
add ecx, r8d
inc r8d
mov dword [rax - 4], ecx
cmp r8d, 0x270
jl 0x140026573
mov dword [0x140101850], 1
mov dword [0x140107620], 1
ret

Function at 0x1400265b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140107620], 0
lea rbx, [0x140106c60]
jne 0x14002660f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140106c60], eax
mov edx, 1
lea r8, [0x140106c64]
nop
mov ecx, dword [r8 - 4]
lea r8, [r8 + 4]
shr ecx, 0x1e
xor ecx, dword [r8 - 8]
imul eax, ecx, 0x6c078965
add eax, edx
inc edx
mov dword [r8 - 4], eax
cmp edx, 0x270
jl 0x1400265e0
mov dword [0x140107620], 1
mov eax, dword [0x140106c60]
mov r10d, 0xe3
mov dword [0x140101850], 0x270
mov qword [0x140107628], rbx
nop dword [rax]
mov r9d, dword [rbx + 4]
mov edx, r9d
xor edx, eax
and edx, 0x7ffffffe
xor edx, eax
mov eax, r9d
shr edx, 1
and al, 1
neg al
mov eax, r9d
sbb ecx, ecx
and ecx, 0x9908b0df
xor edx, ecx
xor edx, dword [rbx + 0x634]
mov dword [rbx], edx
add rbx, 4
sub r10d, 1
jne 0x140026630
mov r11d, 0x18c
nop
mov r10d, dword [rbx + 4]
lea r8, [rbx + 4]
mov edx, r10d
mov eax, r10d
xor edx, r9d
and al, 1
and edx, 0x7ffffffe
xor edx, r9d
mov r9d, r10d
shr edx, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor edx, ecx
xor edx, dword [rbx - 0x38c]
mov dword [rbx], edx
lea rbx, [r8]
sub r11d, 1
jne 0x140026670
mov eax, dword [0x140106c60]
mov ecx, r10d
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
xor ecx, r10d
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [r8 - 0x38c]
mov dword [r8], ecx
add rsp, 0x20
pop rbx
ret

Function at 0x1400266f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
sub dword [0x140101850], 1
jne 0x140026702
call fcn.1400265b0
mov rax, qword [0x140107628]
mov ecx, dword [rax]
add rax, 4
mov qword [0x140107628], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
add rsp, 0x28
ret

Function at 0x140026750
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
sub dword [0x140101850], 1
jne 0x140026762
call fcn.1400265b0
mov rax, qword [0x140107628]
xorps xmm0, xmm0
mov ecx, dword [rax]
add rax, 4
mov qword [0x140107628], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x1400ef8e8]
add rsp, 0x28
ret
Function at 0x14002acd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x30], r12
mov r15, rcx
mov dword [rsp + 0x38], r12d
lea rdx, str.E4847ED08866458F8DD35F94B37001C0
mov byte [rsp + 0x3c], r12b
lea r8d, [r12 + 0xa]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14002ae86
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x38], eax
test eax, eax
je 0x14002ae86
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002ae86
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002ae86
cmp dword [rax], 0x4034b50
jne 0x14002ae52
call fcn.140004e90
test al, al
je 0x14002ae9f
mov edx, r12d
lea rdi, [0x140100940]
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rdi]
lea ecx, [rdx + 1]
inc edx
lea rdi, [rdi + 8]
mov word [rax], cx
cmp edx, 0xa
jl 0x14002ad90
mov r8d, dword [rsp + 0x38]
lea r9, [0x140100940]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x88]
call fcn.1400b11e0
mov edi, eax
test eax, eax
je 0x14002ae52
mov qword [rsp + 0x60], rbp
lea ebp, [rdi + 2]
mov ecx, ebp
mov qword [rsp + 0x68], rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, qword [rsp + 0x88]
mov r8d, edi
mov rdx, rbx
mov qword [rsp + 0x30], rax
mov rcx, rax
mov byte [rsp + 0x3c], 1
mov esi, edi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x30]
mov word [rdi + rax], r12w
test edi, edi
je 0x14002ae1a
mov rdi, rbx
xor eax, eax
mov ecx, esi
rep stosb byte [rdi], al
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [rsp + 0x38], ebp
call fcn.140004e90
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
test al, al
je 0x14002ae9f
mov rcx, qword [0x140102860]
call fcn.140024d40
mov rcx, qword [0x140102858]
call fcn.140024d40
mov r9d, 0xfde9
lea rdx, [rsp + 0x30]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, r14
call fcn.1400aa830
mov rax, qword [r15 + 0xbb0]
inc dword [0x140103818]
mov qword [0x140104b80], rax
mov eax, 3
jmp 0x14002aea1
xorps xmm3, xmm3
mov qword [rsp + 0x20], r12
mov r8, rbx
lea rcx, str.Could_not_extract_script_from_EXE.
xor edx, edx
call fcn.1400b4230
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x140032ea0
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 [0x140100b28]
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 0x140032f68
movzx edx, word [r8]
test dx, dx
je 0x140032f7d
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
movzx eax, bx
cmp dx, ax
je 0x140032f6b
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140032f48
movzx edx, word [r8 + 2]
add r8, 2
test dx, dx
jne 0x140032f40
mov r8, rbp
test r8, r8
je 0x140032f7d
cmp r8, r10
lea rbx, [r8 - 2]
cmovbe rbx, r8
jmp 0x140032f96
mov rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], bp
jne 0x140032f84
lea rbx, [r10 - 2]
lea rbx, [rbx + rax*2]
cmp rbx, r10
jbe 0x140032fb8
nop dword [rax + rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140032faf
cmp ax, 9
jne 0x140032fb8
sub rbx, 2
cmp rbx, r10
ja 0x140032fa0
mov rdi, rbx
sub rdi, r10
sar rdi, 1
inc rdi
cmp rdi, 0xfd
jbe 0x140032fe8
test r9b, r9b
je 0x140032fe4
mov r8, r10
lea rdx, str.This_line_does_not_contain_a_recognized_action.
mov rcx, r11
call fcn.1400481c0
xor eax, eax
jmp 0x140032ffe
mov r8, rdi
mov rdx, r10
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
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 0x140046ec0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea r8, str.Script_lines_most_recently_executed__oldest_first_.__Press__F5__to_refresh.__The_seconds_elapsed_between_a_line_and_the_one_after_it_is_in_parentheses_to_the_right__if_not_0_.__The_bottommost_lines_elapsed_time_is_the_number_of_seconds_since_it_executed._r_n_r_n
mov edx, 0xfffe
mov r14, rcx
call fcn.1400acf70
mov r8d, dword [0x140103804]
lea r9, [0x140000000]
movsxd rdx, eax
mov esi, 0x190
mov eax, r8d
mov r10d, 2
lea rcx, [r14 + rdx*2]
mov qword [rsp + 0x80], rcx
nop dword [rax + rax]
xor r15b, r15b
mov r13, rcx
test esi, esi
jle 0x14004706a
movsxd rcx, eax
mov edi, r10d
mov r12d, esi
nop word [rax + rax]
cmp eax, 0x190
lea rbx, [rcx - 0x190]
lea ebp, [rax - 0x190]
cmovl rbx, rcx
cmovl ebp, eax
cmp qword [r9 + rbx*8 + 0x103e60], 0
je 0x140047043
movzx r14d, r15b
lea eax, [rdi - 1]
xor r15b, r15b
cmp eax, esi
jge 0x140047096
test r14b, r14b
jne 0x140047043
mov r8d, dword [r9 + rbx*4 + 0x103820]
lea eax, [rbp + 1]
xor edx, edx
lea rcx, [rbx + 1]
cmp eax, 0x190
cmovl rdx, rcx
mov eax, dword [r9 + rdx*4 + 0x103820]
sub eax, r8d
cmp eax, 0x7fffffff
jbe 0x140046fef
mov r15b, 1
cmp edi, esi
jne 0x140046fcc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x140000000]
sub eax, dword [rcx + rbx*4 + 0x103820]
jmp 0x140046ff6
lea rax, [rbx + 2]
mov rcx, 0xfffffffffffffe72
cmp rax, 0x190
cmovl rcx, r10
add rcx, rbx
mov eax, dword [r9 + rcx*4 + 0x103820]
sub eax, r8d
lea rcx, [0x140000000]
mov rcx, qword [rcx + rbx*8 + 0x103e60]
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.1400470f0
mov r13, rax
lea r9, [0x140000000]
mov r10d, 2
inc edi
lea eax, [rbp + 1]
lea rcx, [rbx + 1]
sub r12, 1
jne 0x140046f40
mov r8d, dword [0x140103804]
mov r14, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x80]
mov rax, r13
mov edx, 0xfffe
sub rax, r14
sar rax, 1
sub edx, eax
cmp edx, 0x18
jg 0x1400470af
cmp esi, 0x78
jl 0x1400470af
sub esi, 0x64
mov eax, r8d
sub eax, esi
add eax, 0x190
jmp 0x140046f20
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x140000000]
sub eax, dword [rcx + rbx*4 + 0x103820]
jmp 0x140046ff6
lea r8, str._r_nPress__F5__to_refresh.
mov rcx, r13
call fcn.1400acf70
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 0x140048b10
Capabilities:
Print debug messages

Disassembly:
test edx, edx
je 0x140048c5b
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x4030
call fcn.1400caa90
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 0x140048b71
mov rbx, qword [rcx + 0x6d0]
test rbx, rbx
jne 0x140048b71
mov ecx, dword [rcx + 0x288]
movzx eax, word [rdi + 0x28c]
jmp 0x140048b79
movzx ecx, word [rbx + 2]
movzx eax, word [rbx + 4]
movsxd r9, ecx
lea r8, str._s___d__:___Warning:__s_n
lea rcx, [0x140104b80]
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.1400acf70
cmp word [rbp], 0
movsxd rcx, eax
je 0x140048bd5
sub r15d, ecx
lea rax, [rsp + 0x30]
lea rcx, [rax + rcx*2]
mov edx, r15d
mov r9, rbp
lea r8, str._____Specifically:__s_n
call fcn.1400acf70
mov r15, qword [rsp + 0x4058]
cmp esi, 3
jne 0x140048bfb
lea r9, [0x1400e4428]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140047b60
jmp 0x140048c40
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 2
jne 0x140048c40
test rbx, rbx
jne 0x140048c2c
mov rbx, qword [rdi + 0x6d0]
test rbx, rbx
jne 0x140048c2c
mov r8, rbp
mov rdx, r14
mov rcx, rdi
call fcn.1400481c0
jmp 0x140048c40
mov r9, rbp
mov r8d, 1
mov rdx, r14
mov rcx, rbx
call fcn.140047d40
mov rbx, qword [rsp + 0x4050]
mov rbp, qword [rsp + 0x4060]
add rsp, 0x4030
pop r14
pop rdi
pop rsi
ret
Function at 0x14004ea80
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x20], rbx
push r12
push r14
push r15
sub rsp, 0x140
movsxd rax, dword [rcx]
movzx r12d, r9b
mov ebx, r8d
mov r15, rdx
mov r14, rcx
cmp eax, 6
ja case.0x14004eabd.1
lea rcx, [0x140000000]
mov r10d, dword [rcx + rax*4 + 0x4ecac]
add r10, rcx
jmp r10
lea rax, str.Timeout
jmp 0x14004eaf1
lea rax, str.Match
jmp 0x14004eaf1
mov qword [rsp + 0x168], rsi
mov rsi, r15
test r15, r15
jne 0x14004eb07
lea rax, str.EndKey
mov rsi, qword [rsp + 0x168]
mov rbx, qword [rsp + 0x178]
add rsp, 0x140
pop r15
pop r14
pop r12
ret
test r12b, r12b
je 0x14004eb1d
movups xmm0, xmmword [str.EndKey:]
lea rsi, [rdx + 0xe]
sub ebx, 7
movups xmmword [rdx], xmm0
movzx eax, word [r14 + 0x6a]
mov qword [rsp + 0x160], rbp
test ax, ax
je 0x14004eb3d
xor ebp, ebp
mov word [rsi], ax
mov word [rsi + 2], bp
jmp 0x14004ec5e
cmp byte [r14 + 0x6d], 0
je 0x14004ebd4
xor edx, edx
mov qword [rsp + 0x170], rdi
mov r8d, 0x100
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov byte [rsp + 0x50], 0x80
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdx, rax
call fcn.140018a70
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, byte [r14 + 0x66]
xor ebp, ebp
mov ebx, ebp
mov rdi, rax
cmp dword [0x140102740], ebx
setne bl
xor edx, edx
call fcn.140019ea0
movzx ecx, byte [r14 + 0x66]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
mov r9, rsi
movzx edx, ax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov rdi, qword [rsp + 0x170]
movsxd rcx, eax
mov word [rsi + rcx*2], bp
jmp 0x14004ec5e
xor ebp, ebp
movzx ecx, bp
mov word [rsi], bp
cmp byte [r14 + 0x6c], cl
je 0x14004ebf8
movzx ecx, word [r14 + 0x68]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
call fcn.140018d80
movzx ecx, word [rsi]
test cx, cx
jne 0x14004ec43
test r12b, r12b
je 0x14004ec0a
mov ecx, ebp
cmp byte [r14 + 0x6c], cl
jne 0x14004ec25
cmp byte [r14 + 0x6c], bpl
mov r8d, ebx
movzx ecx, byte [r14 + 0x66]
mov rdx, rsi
sete r9b
call fcn.140018e30
movzx ecx, word [rsi]
test cx, cx
jne 0x14004ec43
movzx r9d, word [r14 + 0x68]
lea r8, str.sc_03X
mov edx, ebx
mov rcx, rsi
call fcn.1400acf70
movzx ecx, word [rsi]
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x14004ec5e
cmp word [rsi + 2], bp
jne 0x14004ec5e
test r12b, r12b
je 0x14004ec5e
sub cx, 0x20
mov word [rsi], cx
mov rbp, qword [rsp + 0x160]
lea rax, str.EndKey
test r12b, r12b
cmovne rax, r15
jmp 0x14004eae9
lea rax, [0x1400e6778]
jmp 0x14004eaf1
lea rax, str.NewInput
jmp 0x14004eaf1
lea rax, str.Stopped
jmp 0x14004eaf1
lea rax, [0x1400cc644]
jmp 0x14004eaf1
Function at 0x1400508b0
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 rbp, rcx
call fcn.140060b40
mov rdi, rax
test rax, rax
je 0x1400509da
mov rdx, rbx
mov rcx, rax
call fcn.1400b3f70
mov rsi, rax
test rax, rax
je 0x1400509da
xor edx, edx
mov rcx, rdi
xor bpl, bpl
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
test eax, eax
je 0x14005094f
cmp eax, dword [0x140105cc0]
je 0x14005094f
mov rcx, rdi
call fcn.1400b4570
test al, al
jne 0x14005094f
mov ecx, dword [0x140105cc0]
mov r8d, 1
mov edx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne bpl
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetFocus]
test rax, rax
je 0x1400509bd
mov rcx, qword [0x140102760]
lea rdx, [0x1400cc6d4]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400b1f60
mov rax, qword [0x1400ff050]
cmp dword [rax + 0x78], 0xffffffff
jle 0x1400509bd
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x140105cc0], eax
je 0x1400509a9
mov rax, qword [0x1400ff050]
mov ecx, dword [rax + 0x78]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400509bd
mov rcx, qword [0x1400ff050]
mov edx, 1
mov ecx, dword [rcx + 0x78]
call fcn.1400019b0
test bpl, bpl
je 0x1400509d3
mov ecx, dword [0x140105cc0]
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, 1
jmp 0x140050a1d
mov rax, qword [0x1400ff050]
lea rdx, [0x1400e1d2c]
test byte [rax + 0x140], 1
jne 0x140050a0b
mov rcx, qword [0x140102760]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400b1f60
jmp 0x140050a1d
lea r9, [0x1400cc644]
xor r8d, r8d
mov rcx, rbp
call fcn.140047870
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140051560
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.140060b40
test rax, rax
je 0x1400515a6
lea rdx, str.msctls_statusbar321
mov rcx, rax
call fcn.1400b3f70
mov rdi, rax
jmp 0x1400515a8
xor edi, edi
mov rcx, rbx
call fcn.1400132b0
mov rcx, rbx
test al, al
je 0x1400515c5
xor edx, edx
lea r8d, [rdx + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
jmp 0x1400515cb
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov rcx, qword [0x140104ae0]
lea r9, [0x1400cc644]
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.1400b3bb0
Function at 0x140052860
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, 0x30
mov rax, qword [rsp + 0x60]
mov rbx, qword [0x140104ae0]
mov qword [rsp + 0x20], rax
call fcn.140060b40
mov rsi, rax
mov ebp, 1
test rax, rax
je 0x1400528a5
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [rax + 1]
jmp 0x1400528a7
mov edi, ebp
lea eax, [rdi - 1]
mov byte [rsp + 0x20], bpl
movsxd r8, eax
xor r9d, r9d
xor edx, edx
mov rcx, rbx
call fcn.1400b1f60
cmp eax, ebp
je 0x1400528ca
xor eax, eax
jmp 0x1400529dd
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call fcn.1400016b0
test rsi, rsi
je 0x140052977
mov r8d, edi
mov qword [rsp + 0x40], r14
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [rbx + 0x23], 0
movsxd r14, eax
jne 0x140052903
mov rsi, qword [rbx + 0x10]
jmp 0x140052906
mov rsi, rbx
lea rdi, [0x1401082d8]
cmp byte [rsi + 0x23], bpl
jne 0x140052927
test byte [rsi + 0x21], 8
je 0x140052921
mov rcx, rsi
call fcn.140001560
add rsi, 0x10
jmp 0x14005292a
mov rsi, rdi
lea rax, [r14 + r14]
mov r14, qword [rsp + 0x40]
mov qword [rsi], rax
cmp byte [rbx + 0x23], 0
jne 0x140052942
mov rsi, qword [rbx + 0x10]
jmp 0x140052945
mov rsi, rbx
cmp byte [rsi + 0x23], bpl
jne 0x14005295d
test byte [rsi + 0x21], 8
je 0x140052959
mov rcx, rsi
call fcn.140001560
lea rdi, [rsi + 0x10]
cmp qword [rdi], 2
jae 0x1400529ad
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call fcn.1400016b0
xor esi, esi
mov word [rax], si
jmp 0x1400529ad
mov word [rax], si
cmp byte [rbx + 0x23], sil
jne 0x140052986
mov rdi, qword [rbx + 0x10]
jmp 0x140052989
mov rdi, rbx
cmp byte [rdi + 0x23], bpl
jne 0x1400529a3
test byte [rdi + 0x21], 8
je 0x14005299d
mov rcx, rdi
call fcn.140001560
add rdi, 0x10
jmp 0x1400529aa
lea rdi, [0x1401082d8]
mov qword [rdi], rsi
cmp byte [rbx + 0x23], 0
jne 0x1400529b7
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 2
jne 0x1400529d7
cmp qword [0x140106988], 0
je 0x1400529d7
lea rcx, [0x140106970]
call fcn.140006080
mov ebp, eax
jmp 0x1400529db
and byte [rbx + 0x21], 0x86
mov eax, ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140052a70
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
mov eax, 0x11cf0
call fcn.1400caa90
sub rsp, rax
xor eax, eax
mov byte [rsp + 0x1889], 1
mov rbx, rcx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x188c], eax
lea rcx, [0x1400cc644]
mov qword [rsp + 0x18a0], rax
cmp edx, 6
mov rdx, qword [0x1400ff050]
xorps xmm0, xmm0
mov dword [rsp + 0x18a8], eax
mov qword [rsp + 0x18b0], rax
mov qword [rsp + 0x18c8], rax
cmove rax, rbx
mov qword [rsp + 0x18c0], rax
mov rax, qword [rsp + 0x11d28]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x11d20]
mov qword [rsp + 0x1048], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
movdqa xmmword [rsp + 0x1890], xmm0
call fcn.1400b4840
test eax, eax
je 0x140052b21
lea rdx, [rsp + 0x30]
lea rcx, [0x1400b3950]
call qword [sym.imp.USER32.dll_EnumWindows]
movsxd rdx, dword [rsp + 0x188c]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
call fcn.1400014c0
mov eax, 1
add rsp, 0x11cf0
pop rbx
ret

Function at 0x140053c30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
mov eax, 0x10030
call fcn.1400caa90
sub rsp, rax
mov rbx, qword [0x140104ae0]
mov rbp, rdx
mov rcx, rbp
lea rdx, [rsp + 0x30]
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov byte [rsp + 0x20], 1
mov rcx, rbx
mov esi, eax
cmp eax, 0x7fff
jb 0x140053d12
lea r8d, [rsi - 1]
mov r9b, 1
xor edx, edx
call fcn.1400b1f60
test eax, eax
je 0x140053d2f
mov qword [rsp + 0x10040], rdi
xor r8d, r8d
mov edi, 1
mov rcx, rbx
mov edx, edi
call fcn.1400016b0
mov rdx, rax
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140053cd0
xor r8d, r8d
mov edx, edi
mov rcx, rbx
call fcn.1400016b0
xor ecx, ecx
mov word [rax], cx
cmp byte [rbx + 0x23], 0
jne 0x140053cda
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x23], 2
jne 0x140053d02
cmp qword [0x140106988], 0
je 0x140053d02
lea rcx, [0x140106970]
call fcn.140006080
mov edi, eax
mov rdi, qword [rsp + 0x10040]
jmp 0x140053d2f
and byte [rbx + 0x21], 0x86
mov eax, edi
mov rdi, qword [rsp + 0x10040]
jmp 0x140053d2f
test esi, esi
lea rax, [0x1400cc644]
lea rdx, [rsp + 0x30]
mov r8, rsi
cmove rdx, rax
xor r9d, r9d
call fcn.1400b1f60
lea r11, [rsp + 0x10030]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret
Function at 0x140056f50
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.1400caa90
sub rsp, rax
mov r9, qword [0x1401068c0]
lea r8, str.__s_s
movzx ebp, dl
mov qword [rsp + 0x20], rcx
mov rdi, rcx
lea r14, [rsp + 0x260]
mov edx, 0x800
lea rcx, [rsp + 0x260]
lea r15, [0x1400cc644]
call fcn.1400acf70
movsxd rbx, eax
lea esi, [rbx + 1]
cmp esi, 0x800
jg 0x140056fd5
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140056fd5
mov r9, qword [0x1401068c0]
jmp 0x140057038
lea rcx, [rsp + 0x50]
call fcn.140057640
test eax, eax
je 0x1400570fa
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rdi
lea r8, str.__s_s
mov edx, 0x800
lea rcx, [rsp + 0x260]
call fcn.1400acf70
movsxd rbx, eax
lea esi, [rbx + 1]
cmp esi, 0x800
jg 0x1400570fa
lea rcx, [rsp + 0x262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400570fa
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 0x1400570c0
lea rax, [0x1400e99f8]
mov edx, 0x800
lea r8, str.__s_s
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x1260]
call fcn.1400acf70
movsxd rsi, eax
lea ebp, [rsi + 1]
cmp ebp, 0x800
jg 0x1400570c0
lea rcx, [rsp + 0x1262]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400570c0
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, [0x140105cf0]
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.1400493c0
test eax, eax
setne al
jmp 0x1400570fc
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