joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140121648
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r15d, r9d
mov r14, rdx
mov rbx, rcx
lea rdx, [0x1401ef798]
mov rcx, r8
call fcn.140162980
mov rdi, rax
xor r12d, r12d
test rax, rax
sete al
mov byte [rbx + 0xb0], al
test rdi, rdi
je 0x140121894
mov rcx, rdi
call fcn.1401c1c30
cmp eax, 0x42
jne 0x14012188c
mov rcx, rdi
call fcn.1401c1c30
cmp eax, 0x4d
jne 0x14012188c
xor r8d, r8d
lea edx, [rax - 0x4b]
mov rcx, rdi
call fcn.1401c1b50
mov r9, rdi
lea ebx, [r12 + 1]
mov r8d, ebx
lea edx, [rbx + 3]
lea rcx, [rsp + 0x30]
call fcn.1401c1818
mov eax, dword [rsp + 0x30]
add eax, 0xfffffff2
mov dword [rsp + 0x30], eax
mov ecx, eax
call fcn.1401bce40
mov rsi, rax
test rax, rax
je 0x14012188c
xor r8d, r8d
lea edx, [rbx + 0xd]
mov rcx, rdi
call fcn.1401c1b50
mov r8d, dword [rsp + 0x30]
mov r9, rdi
mov edx, ebx
mov rcx, rsi
call fcn.1401c1818
mov ecx, dword [rsp + 0x30]
cmp rax, rcx
je 0x1401218b7
mov ecx, 0x686
call fcn.1400f70b0
mov r8, rax
lea r9, str.BMP__PNG
mov edx, 0x200
lea rcx, [rbp - 0x80]
call fcn.1400132f8
lea ecx, [rbx + 0x65]
call fcn.1400f70b0
mov qword [rsp + 0x58], r12
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
or rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rax + r8*2], r12w
jne 0x140121778
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400041b8
nop
mov qword [rsp + 0x38], r12
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
lea rax, [rbp - 0x80]
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x1401217a2
mov r8, rbx
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.1400041b8
nop
mov r9d, 0x10
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x38]
mov rcx, qword [0x140233a48]
call fcn.1401635d0
nop
mov ebx, 0x1000
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14012181e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, rbx
jb 0x140121819
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401218fb
call fcn.1401af9bc
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r12w
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140121870
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, rbx
jb 0x14012186b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401218f5
call fcn.1401af9bc
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r12w
mov rcx, rsi
call fcn.1401bce2c
mov rcx, rdi
call fcn.1401bc584
xor al, al
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1401afad0
add rsp, 0x490
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, rdi
call fcn.1401bc584
mov r9d, 0x400
movzx r8d, r15w
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov edx, 2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UpdateResourceW]
mov ebx, eax
mov rcx, rsi
call fcn.1401bce2c
test ebx, ebx
setne al
jmp 0x140121896
call fcn.1401b6b94
nop
call fcn.1401b6b94
nop
int3
Function at 0x140121904
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r13, rdx
mov dword [rsp + 0x34], r9d
mov rbx, rcx
lea rdx, [0x1401ef798]
mov rcx, r8
call fcn.140162980
xor r15d, r15d
mov rdi, rax
test rax, rax
sete al
mov byte [rbx + 0xb0], al
test rdi, rdi
je 0x1401219d4
lea r12d, [r15 + 1]
mov r9, rdi
mov r8d, r12d
lea edx, [r15 + 0x16]
lea rcx, [rsp + 0x40]
call fcn.1401c1818
cmp word [rsp + 0x40], r15w
jne 0x1401219cc
cmp word [rsp + 0x42], r12w
jne 0x1401219cc
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.1401c1b50
movzx ecx, word [rsp + 0x44]
sub rcx, r12
shl rcx, 4
add rcx, 0x16
call fcn.1401bce40
mov rsi, rax
test rax, rax
je 0x1401219cc
movzx edx, word [rsp + 0x44]
sub rdx, r12
imul rcx, rdx, 0xe
add rcx, 0x14
call fcn.1401bce40
mov rbp, rax
mov rcx, rsi
test rax, rax
jne 0x1401219f4
call fcn.1401bce2c
mov rcx, rdi
call fcn.1401bc584
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401afad0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
movzx edx, word [rsp + 0x44]
mov r9, rdi
shl rdx, 4
mov r8, r12
add rdx, 6
call fcn.1401c1818
mov r14d, r15d
mov eax, dword [rsi + 0x10]
movups xmm0, xmmword [rsi]
movups xmmword [rbp], xmm0
mov dword [rbp + 0x10], eax
cmp r15w, word [rsp + 0x44]
jae 0x140121ae0
movsxd rax, r14d
lea r15d, [r12 + r14]
imul rcx, rax, 0xe
mov rbx, rax
add rbx, rbx
mov word [rcx + rbp + 0x12], r15w
mov eax, dword [rsi + rbx*8 + 0xe]
movsd xmm0, qword [rsi + rbx*8 + 6]
movsd qword [rcx + rbp + 6], xmm0
mov dword [rcx + rbp + 0xe], eax
mov eax, eax
mov ecx, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rax
call fcn.1401bce40
mov r12, rax
test rax, rax
je 0x140121b32
mov edx, dword [rsi + rbx*8 + 0x12]
xor r8d, r8d
mov rcx, rdi
call fcn.1401c1b50
mov rdx, qword [rsp + 0x38]
mov r9, rdi
mov r8d, 1
mov rcx, r12
call fcn.1401c1818
mov eax, dword [rsp + 0x30]
mov r9d, 0x400
mov dword [rsp + 0x28], eax
mov edx, 3
movzx r8d, r15w
mov rcx, r13
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_UpdateResourceW]
mov rcx, r12
mov ebx, eax
call fcn.1401bce2c
test ebx, ebx
je 0x140121b32
movzx eax, word [rsp + 0x44]
mov r12d, 1
add r14d, r12d
cmp r14d, eax
jl 0x140121a28
mov rcx, rdi
call fcn.1401bc584
movzx eax, word [rsp + 0x44]
mov r9d, 0x400
movzx r8d, word [rsp + 0x34]
mov rcx, r13
imul edx, eax, 0xe
add edx, 6
mov dword [rsp + 0x28], edx
mov edx, 0xe
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_UpdateResourceW]
mov rcx, rsi
mov ebx, eax
call fcn.1401bce2c
mov rcx, rbp
call fcn.1401bce2c
test ebx, ebx
setne al
jmp 0x1401219d6
mov rcx, rdi
call fcn.1401bc584
mov rcx, rsi
call fcn.1401bce2c
mov rcx, rbp
call fcn.1401bce2c
jmp 0x1401219d4
Function at 0x140121f9c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rsi, r8
mov rax, rdx
mov rbx, rcx
lea rdx, [0x1401ef798]
mov rcx, rax
call fcn.140162980
mov rdi, rax
test rax, rax
sete al
mov byte [rbx + 0xb0], al
test rdi, rdi
jne 0x140121fe6
xor al, al
jmp 0x1401220be
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov ecx, 0x2000
call fcn.14000417c
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
add rax, 0x2000
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x20]
mov qword [rbp + 0x10], rax
mov rcx, qword [rbp - 0x20]
lea rbx, [rcx + 0x2000]
xor edx, edx
mov r8d, 0x2000
call fcn.1401b2770
mov qword [rbp - 0x18], rbx
and qword [rbp + 0x10], 0
mov ebx, 1
jmp 0x140122053
mov r9, rsi
mov r8, rax
mov rdx, rbx
mov rcx, qword [rbp - 0x20]
call fcn.1401bcb8c
mov rcx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
mov r9, rdi
sub r8, rcx
mov rdx, rbx
call fcn.1401c1818
test rax, rax
jne 0x140122041
mov rcx, rdi
call fcn.1401bc584
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1401220bc
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401220a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401220d3
call fcn.1401af9bc
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov al, bl
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret
call fcn.1401b6b94
int3

Function at 0x1401220dc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x2030
call fcn.1401b0350
sub rsp, rax
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov rax, rdx
mov rbx, rcx
mov rcx, rax
lea rdx, [0x1401ef790]
call fcn.140162980
test rax, rax
mov rdi, rax
sete al
mov byte [rbx + 0xb0], al
test rdi, rdi
je 0x140122203
xor r15d, r15d
lea r12d, [r15 + 1]
mov r9, rdi
lea rcx, [rsp + 0x20]
mov r8d, 0x2000
mov rdx, r12
call fcn.1401c1818
mov rbp, rax
cmp rax, 0x20
jbe 0x1401221fb
xor esi, esi
lea r14d, [rbp - 0x20]
test r14d, r14d
jle 0x1401221ab
lea rbx, [rsp + 0x21]
cmp byte [rbx - 1], 0x61
jne 0x1401221a0
cmp byte [rbx], 0x73
jne 0x1401221a0
movsxd rax, esi
lea rcx, [rsp + 0x22]
add rcx, rax
lea rdx, str.Invoker_
mov r8d, 0x14
call fcn.1401bc320
test eax, eax
je 0x1401221c1
add esi, r12d
add rbx, r12
cmp esi, r14d
jl 0x140122174
add ebp, 0xffffffe0
xor r8d, r8d
add r15d, ebp
mov rcx, rdi
mov edx, r15d
call fcn.1401c1b50
jmp 0x140122141
lea edx, [rsi + r15]
xor r8d, r8d
mov rcx, rdi
call fcn.1401c1b50
mov r9, rdi
lea rcx, str.requireAdministrator_
mov r8d, 0x15
mov rdx, r12
call fcn.1401bcb8c
cmp rax, 0x15
mov rcx, rdi
sete bl
call fcn.1401bc584
mov al, bl
jmp 0x140122205
mov rcx, rdi
call fcn.1401bc584
xor al, al
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.1401afad0
lea r11, [rsp + 0x2030]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140122e78
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2030
call fcn.1401b0350
sub rsp, rax
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rsp + 0x2020], rax
lea rdx, [0x1401ef798]
call fcn.1400cdac4
mov rsi, rax
test rax, rax
je 0x140122f66
xor r14d, r14d
xor r15d, r15d
lea ebx, [r14 + 1]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov r8d, 0x2000
mov rdx, rbx
call fcn.1401c1818
mov r12, rax
cmp eax, 0x20
jle 0x140122f5a
xor ebp, ebp
lea r13d, [rax - 0x20]
test r13d, r13d
jle 0x140122f35
lea rdi, [rsp + 0x21]
cmp byte [rdi - 1], 0x72
jne 0x140122f2b
cmp byte [rdi], 0x65
jne 0x140122f2b
movsxd rax, ebp
lea rcx, [rsp + 0x22]
add rcx, rax
lea rdx, str.quireAdministrator_
mov r8d, 0x14
call fcn.1401bc320
test eax, eax
je 0x140122f5c
add ebp, ebx
add rdi, rbx
cmp ebp, r13d
jl 0x140122eff
add r14d, 0xffffffe0
xor r8d, r8d
add r14d, r12d
mov rcx, rsi
mov edx, r14d
call fcn.1401c1b50
add r15d, ebx
cmp r15d, 0x100
jb 0x140122ed1
xor bl, bl
mov rcx, rsi
call fcn.1401bc584
mov al, bl
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.1401afad0
lea r11, [rsp + 0x2030]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140122f98
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x430
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rax, rdx
mov rbx, rcx
mov rcx, rax
lea rdx, [0x1401ef798]
call fcn.140162980
xor edi, edi
mov rsi, rax
test rax, rax
sete al
mov byte [rbx + 0xb0], al
test rsi, rsi
je 0x14012303a
mov r9, rsi
lea edx, [rdi + 1]
mov r8d, 0x400
lea rcx, [rsp + 0x20]
call fcn.1401c1818
mov rcx, rsi
mov rbx, rax
call fcn.1401bc584
lea eax, [rbx - 4]
movsxd rcx, eax
test eax, eax
jle 0x140123036
cmp byte [rsp + rdi + 0x20], 0x55
jne 0x14012302e
cmp byte [rsp + rdi + 0x21], 0x50
jne 0x14012302e
cmp byte [rsp + rdi + 0x22], 0x58
jne 0x14012302e
cmp byte [rsp + rdi + 0x23], 0x30
je 0x14012303a
inc rdi
cmp rdi, rcx
jl 0x140123012
xor al, al
jmp 0x14012303c
mov al, 1
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1401afad0
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140124da4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2038
call fcn.1401b0350
sub rsp, rax
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov rax, rdx
mov rbx, rcx
mov rcx, rax
lea rdx, [0x1401ef798]
mov r13, r9
mov r12, r8
call fcn.140162980
test rax, rax
mov rdi, rax
sete al
mov byte [rbx + 0xb0], al
test rdi, rdi
je 0x140124f24
xor r15d, r15d
mov r9, rdi
lea rcx, [rsp + 0x20]
mov r8d, 0x2000
mov edx, 1
call fcn.1401c1818
mov rbp, rax
cmp rax, 0x28
jbe 0x140124f1c
xor esi, esi
lea r14, [rax - 0x28]
test r14, r14
je 0x140124ed1
lea rbx, [rsp + 0x24]
cmp byte [rbx - 4], 0x2a
jne 0x140124e69
cmp byte [rbx - 3], 0x2a
jne 0x140124e69
lea rcx, [rbx - 2]
mov r8d, 0xc
lea rdx, [0x1401ee750]
call fcn.1401bc320
test eax, eax
je 0x140124eea
cmp word [rbx - 4], 0x2a
jne 0x140124e90
cmp word [rbx - 2], 0x2a
jne 0x140124e90
mov r8d, 0xc
lea rdx, str.messages
mov rcx, rbx
call fcn.1401c076c
test eax, eax
je 0x140124eea
mov eax, 0xfeff
cmp word [rbx - 4], ax
jne 0x140124ec2
cmp word [rbx - 2], 0x2a
jne 0x140124ec2
cmp word [rbx], 0x2a
jne 0x140124ec2
lea rcx, [rbx + 2]
mov r8d, 0xc
lea rdx, str.messages
call fcn.1401c076c
test eax, eax
je 0x140124eea
inc rsi
inc rbx
cmp rsi, r14
jb 0x140124e3f
add ebp, 0xffffffd8
xor r8d, r8d
add r15d, ebp
mov rcx, rdi
mov edx, r15d
call fcn.1401c1b50
jmp 0x140124e06
lea edx, [rsi + r15]
xor r8d, r8d
mov rcx, rdi
call fcn.1401c1b50
mov r9, rdi
mov r8, r13
mov edx, 1
mov rcx, r12
call fcn.1401c1818
mov rcx, rdi
mov rbx, rax
call fcn.1401bc584
mov rax, rbx
jmp 0x140124f26
mov rcx, rdi
call fcn.1401bc584
xor eax, eax
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.1401afad0
add rsp, 0x2038
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140129b54
Capabilities:
Get geographical location

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rsp + 0x130], rax
movdqa xmm0, xmmword [0x1401efea0]
xor esi, esi
xor edi, edi
mov dword [rsp + 0x30], r9d
mov r13d, 0x400
mov r15d, r9d
mov r14, r8
mov rbp, rdx
mov rbx, rcx
movdqu xmmword [rsp + 0x34], xmm0
cmp rcx, r13
jb 0x140129bc3
lea eax, [rsi + 1]
cmp eax, 5
jae 0x140129bc3
mov edi, ebx
inc esi
and edi, 0x3ff
shr rbx, 0xa
inc eax
cmp rbx, r13
jae 0x140129ba9
mov rcx, rbx
call fcn.140129a9c
cmp rbx, 0x64
jae 0x140129c62
test edi, edi
je 0x140129c62
imul eax, edi, 0x3e8
shr eax, 0xa
cmp rbx, 0xa
sbb ecx, ecx
xor edx, edx
and ecx, 0xffffffa6
add ecx, 0x64
div ecx
mov edi, eax
test eax, eax
je 0x140129c62
cmp rbx, 0xa
jae 0x140129c0e
lea rbx, [0x1401e03ac]
cmp eax, 0xa
jb 0x140129c15
lea rbx, [0x1401dbff0]
mov r9d, reloc.SHELL32.dll_SHRestricted
lea r8, [rsp + 0x60]
mov ecx, r13d
lea edx, [r9 - 0x56]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx r9d, word [rsp + 0x60]
lea r8, str._c_s_u
mov edx, 0xa
mov dword [rsp + 0x28], edi
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call fcn.1400132f8
mov r8, r14
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.1400ff030
test r15d, r15d
jne 0x140129c6b
test esi, esi
je 0x140129c94
mov r8, r14
lea rdx, [0x1401dc108]
mov rcx, rbp
call fcn.1400ff030
mov ecx, dword [rsp + rsi*4 + 0x30]
call fcn.1400f70b0
mov rdx, rax
mov r8, r14
mov rcx, rbp
call fcn.1400ff030
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401afad0
add rsp, 0x140
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140129cb8
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x108
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov r9d, reloc.SHELL32.dll_SHRestricted
lea r8, [rsp + 0x20]
mov ecx, 0x400
lea edx, [r9 - 0x55]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1401afad0
add rsp, 0x108
ret
Function at 0x14012a118
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14, rcx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor ebp, ebp
movsxd rdi, eax
test eax, eax
je 0x14012a2f7
lea rcx, [rdi*2 + 2]
call fcn.1401bce40
mov rbx, rax
test rax, rax
je 0x14012a2f7
lea r8d, [rdi + 1]
mov word [rax], bp
mov rdx, rax
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowTextW]
or rsi, 0xffffffffffffffff
mov rdi, rsi
inc rdi
cmp word [rbx + rdi*2], bp
jne 0x14012a18c
lea rdx, [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetDC]
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
mov r12, rax
lea edx, [r9 + 0x31]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, rax
mov rcx, r12
call qword [sym.imp.GDI32.dll_SelectObject]
lea r9, [rsp + 0x20]
mov r8d, edi
mov rdx, rbx
mov rcx, r12
mov r13, rax
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [rsp + 0x30]
cmp dword [rsp + 0x20], ecx
jl 0x14012a2d7
mov rcx, rbx
call fcn.1400e39c8
cmp rax, rbx
je 0x14012a22c
mov r8, rsi
inc r8
cmp word [rax + r8*2], bp
jne 0x14012a203
lea r8, [r8*2 + 2]
mov rdx, rax
mov rcx, rbx
call fcn.1401b1b70
mov rdi, rsi
inc rdi
cmp word [rbx + rdi*2], bp
jne 0x14012a223
mov rsi, rdi
lea r9, [rsp + 0x20]
mov r8d, edi
shr rsi, 1
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea r15, [rsi + 2]
cmp r15, rdi
jae 0x14012a2cb
lea rdi, [rbx + r15*2]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], bp
jne 0x14012a257
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x20], eax
jl 0x14012a2cb
cmp rsi, 1
jb 0x14012a2cb
cmp r8, 1
jb 0x14012a2cb
mov eax, 0x2026
lea r8, [r8*2 + 2]
lea rcx, [rdi - 4]
mov word [rdi - 6], ax
mov rdx, rdi
call fcn.1401b1b70
or rbp, 0xffffffffffffffff
xor eax, eax
inc rbp
cmp word [rbx + rbp*2], ax
jne 0x14012a29a
lea r9, [rsp + 0x20]
mov r8d, ebp
mov rdx, rbx
mov rcx, r12
dec rsi
sub rdi, 2
dec r15
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
cmp r15, rbp
mov ebp, 0
jb 0x14012a253
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, r12
mov rcx, r14
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, rbx
call fcn.1401bce2c
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401afad0
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14012a770
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, 0x30
mov r14, r8
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor r15d, r15d
test eax, eax
jle 0x14012a812
lea esi, [rax + 1]
movsxd rcx, esi
lea eax, [r15 + 2]
mul rcx
lea rbx, [r15 - 1]
cmovo rax, rbx
mov rcx, rax
call fcn.1401afd6c
mov rdi, rax
test rax, rax
je 0x14012a812
mov r8d, esi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov qword [rsp + 0x20], rdi
inc rbx
cmp word [rdi + rbx*2], r15w
jne 0x14012a7dd
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0x20]
movaps xmm0, xmmword [rsp + 0x20]
xor r9d, r9d
xor r8d, r8d
movdqa xmmword [rsp + 0x20], xmm0
mov rdx, r14
call fcn.14012a9f0
mov rcx, rdi
call fcn.1401af9bc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14013bd98
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x140258338], 0
je 0x14013bdb3
or eax, 0xffffffff
jmp 0x14013bebb
mov rax, qword [0x1402481e8]
test rax, rax
jg 0x14013bdd3
dec rax
mov qword [0x1402481e8], rax
and qword [0x140258248], 0
jmp 0x14013bdab
mov rbx, qword [0x140258248]
test rbx, rbx
jg 0x14013be27
mov rcx, qword [0x140258238]
mov ebx, 0x2000
mov edx, ebx
call fcn.14013c038
movsxd rcx, eax
mov qword [0x140258248], rcx
test eax, eax
je 0x14013bdc9
cmp rcx, 0xffffffffffffffff
je 0x14013be5d
mov rax, qword [0x140258238]
add qword [0x140258288], rbx
mov qword [0x140258240], rax
call fcn.14013b62c
mov rbx, qword [0x140258248]
mov rax, qword [0x140248220]
test byte [rax + 0x90], 1
je 0x14013bea0
cmp byte [0x14025847c], 0
je 0x14013be75
test rbx, rbx
je 0x14013bea0
mov rdx, qword [0x140258240]
lea rcx, [0x140258488]
mov r8, rbx
call fcn.14013f8b8
jmp 0x14013be99
lea rdx, [0x140234eb0]
lea rcx, [0x14023fda0]
call fcn.1400c06b8
jmp 0x14013bdc9
mov rdi, qword [0x140258240]
test rbx, rbx
je 0x14013bea0
call fcn.14013f608
xor byte [rdi], al
movzx ecx, byte [rdi]
call fcn.14013f77c
inc rdi
sub rbx, 1
jne 0x14013be81
mov rbx, qword [0x140258248]
mov rax, qword [0x140258240]
dec rbx
mov qword [0x140258248], rbx
movzx eax, byte [rax]
inc qword [0x140258240]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14013f674
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov dil, r8b
mov rcx, rdx
call fcn.14013f628
movsd xmm0, qword [rbx]
mov eax, dword [rbx + 8]
xor ebx, ebx
movsd qword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], eax
mov ecx, dword [0x1402583c0]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [rsp + rbx + 0x20], al
movzx ecx, byte [rsp + rbx + 0x20]
call fcn.14013f77c
inc rbx
cmp rbx, 0xc
jl 0x14013f6ae
mov rax, qword [0x140248220]
movzx ecx, byte [0x1402582b7]
test byte [rax + 0x90], 2
movzx eax, byte [0x1402582af]
cmovne ecx, eax
movzx eax, byte [rsp + 0x2b]
cmp eax, ecx
je 0x14013f70c
or eax, 0xffffffff
jmp 0x14013f761
test dil, dil
je 0x14013f75f
mov rbx, qword [0x140258248]
mov rax, qword [0x1402481e8]
mov rdi, qword [0x140258240]
movsxd rcx, ebx
cmp rcx, rax
cmovg ebx, eax
test ebx, ebx
je 0x14013f75f
mov ecx, dword [0x1402583c0]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [rdi], al
movzx ecx, byte [rdi]
call fcn.14013f77c
inc rdi
sub ebx, 1
jne 0x14013f733
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401afad0
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14013f77c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov r8, qword [0x1402583b8]
mov eax, ecx
mov r9d, ecx
mov rdx, r8
mov rcx, qword [0x1402583c0]
xor rdx, rax
movzx eax, dl
lea rdx, [0x140247dc0]
shr r8d, 8
xor r8d, dword [rdx + rax*4]
movzx eax, r8b
add eax, dword [0x1402583bc]
imul eax, eax, 0x8088405
mov dword [0x1402583b8], r8d
inc eax
mov dword [0x1402583bc], eax
shr rax, 0x18
xor rax, rcx
shr ecx, 8
movzx eax, al
xor ecx, dword [rdx + rax*4]
mov eax, r9d
mov dword [0x1402583c0], ecx
ret

Function at 0x14013fa6c
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14, qword [rsp + 0xa0]
mov r12, rdx
lea rdx, [rsp + 0x20]
mov rsi, r9
mov r15, r8
mov rbx, rcx
call fcn.14013ff70
xor edi, edi
test rsi, rsi
je 0x14013fae4
cmp byte [r14], dil
je 0x14013fae4
movups xmm0, xmmword [rsi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rbx + 0x10], xmm1
movups xmm0, xmmword [rsi + 0x20]
movups xmmword [rbx + 0x20], xmm0
movups xmm1, xmmword [rsi + 0x30]
movups xmmword [rbx + 0x30], xmm1
movups xmm0, xmmword [rsi + 0x40]
movups xmmword [rbx + 0x40], xmm0
movups xmm1, xmmword [rsi + 0x50]
movups xmmword [rbx + 0x50], xmm1
jmp 0x14013fb18
lea rax, [rbx + 0x60]
mov ecx, 0x40
xor byte [rax], 0x6a
inc rax
sub rcx, 1
jne 0x14013faed
mov rcx, rbx
call fcn.1400fd140
mov r8d, 0x40
lea rdx, [rbx + 0x60]
mov rcx, rbx
call fcn.1400fd168
test rsi, rsi
je 0x14013fb4f
cmp byte [r14], dil
jne 0x14013fb4f
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rsi + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rsi + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rsi + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rsi + 0x50], xmm1
mov byte [r14], 1
mov r8d, 0x14
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400fd168
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14013ff70
test r15, r15
je 0x14013fb88
mov rcx, rdi
mov al, byte [rsp + rcx + 0x20]
inc edi
mov byte [rcx + r12], al
mov ecx, edi
cmp rcx, r15
jb 0x14013fb77
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401afad0
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret