joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e89c4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400e89f4
xor eax, eax
jmp 0x1400e8ab7
mov rbp, rbx
cmp word [rax], si
je 0x1400e8a19
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400e8a00
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400e89fc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400e2e4c
movsxd r14, eax
test eax, eax
jne 0x1400e8a57
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400e89ed
mov rcx, r14
call fcn.1400de60c
mov rdi, rax
test rax, rax
jne 0x1400e8a70
xor ecx, ecx
call fcn.1400de188
jmp 0x1400e8a4c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400e2e4c
test eax, eax
jne 0x1400e8aa1
mov rcx, rdi
call fcn.1400de188
jmp 0x1400e8aab
xor ecx, ecx
call fcn.1400de188
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400e8ad4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400e8b5b
mov rsi, rbx
cmp word [rax], bp
je 0x1400e8b1a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400e8b04
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400e8b00
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400de60c
mov rdi, rax
test rax, rax
je 0x1400e8b48
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400f7f50
mov rbp, rdi
xor ecx, ecx
call fcn.1400de188
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400eba5c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400dcd54
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400ebafd
cmp ebx, dword [rsp + 0x30]
je 0x1400ebaf6
test esi, esi
je 0x1400ebaf6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400ebad1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400ebade
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400ebabb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400ebae2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400ebaff
mov eax, 1
jmp 0x1400ebaff
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ef698
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140177080]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400ef6e2
call fcn.1400d9210
mov dword [rax], 0xf
call fcn.1400d9230
mov dword [rax], 0xd
call fcn.1400cdec8
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400bf720
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400ef6ed
lea eax, [rbx + 1]
jmp 0x1400ef6cf
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400ef6cd
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400ef6cf

Function at 0x1400efdbc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400cee48
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400efe46
cmp byte [rbp - 0x21], r15b
je 0x1400efe41
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400efe7c
call fcn.1400dff34
test eax, eax
jne 0x1400efe68
cmp byte [rbp - 0x21], r15b
je 0x1400efe60
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400efe7c
cmp byte [rbp - 0x21], r15b
je 0x1400efe79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400d811c
test eax, eax
jne 0x1400eff1c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400cee48
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400efebb
cmp byte [rbp - 0x21], r15b
je 0x1400efef0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400efef0
call fcn.1400dff34
test eax, eax
jne 0x1400efedc
cmp byte [rbp - 0x21], r15b
je 0x1400efed5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400efef0
cmp byte [rbp - 0x21], r15b
je 0x1400efeed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400d811c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400eff1c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400eff1f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400eff2d
mov rcx, rdi
call fcn.1400de188
cmp byte [rbp + 0x3f], r15b
je 0x1400eff3c
mov rcx, qword [rbp + 0x27]
call fcn.1400de188
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400f0b14
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400e2198
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400e2198
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400f0c64
cmp rax, 0xffffffffffffffff
je 0x1400f0c64
xor edi, edi
test rbp, rbp
jle 0x1400f0c0f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400dd328
mov rbx, rax
test rax, rax
jne 0x1400f0b9c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400f0c05
mov edx, 0x8000
mov ecx, r14d
call fcn.1400daa8c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400dde80
cmp eax, 0xffffffff
je 0x1400f0be5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400f0bac
mov edx, r15d
mov ecx, r14d
call fcn.1400daa8c
jmp 0x1400f0c05
cmp byte [rsi + 0x38], dil
je 0x1400f0bfc
cmp dword [rsi + 0x34], 5
jne 0x1400f0bfc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400f0c05
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400de188
jmp 0x1400f0c78
jns 0x1400f0c78
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400e2198
cmp rax, 0xffffffffffffffff
jne 0x1400f0c30
cmp byte [rsi + 0x30], dil
je 0x1400f0c78
mov edi, dword [rsi + 0x2c]
jmp 0x1400f0c78
mov ecx, r14d
call fcn.1400e6958
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400f0c78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400f0c78
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400f0c71
mov eax, dword [rsi + 0x2c]
jmp 0x1400f0c76
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400e2198
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400f1b90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400f1bb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400f1bb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [0x14024f558], 0
mov rbx, qword [0x140253708]
jne 0x140001d03
mov edx, SafeArrayGetLBound
mov rcx, rbx
mov qword [rsp + 0x38], rdi
lea r8d, [rdx - 7]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
mov rdi, rax
je 0x140001cfe
mov rdx, rax
mov rcx, rbx
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001cf9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x40], 0
mov rbx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.140055340
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140001cf0
lea rcx, [0x14024f550]
call fcn.140001520
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1400032a0
Capabilities:
Write file on windows

Disassembly:
push rdi
mov eax, 0x12d00
call fcn.14006b7a0
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x12d10], rbx
mov qword [rsp + 0x12d18], rbp
mov qword [rsp + 0x12d20], rsi
mov rax, qword [0x1400980c0]
xor rax, rsp
mov qword [rsp + 0x12cf0], rax
mov ebx, ecx
lea rbp, [0x140073618]
mov qword [rsp + 0x60], rbp
xor esi, esi
mov qword [rsp + 0x128a0], rsi
mov qword [rsp + 0x128a8], rsi
mov qword [rsp + 0x128b0], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], esi
mov dword [rsp + 0x7c], esi
mov dword [rsp + 0x80], esi
mov dword [rsp + 0xd4d4], esi
mov dword [rsp + 0xd4d8], 0x20000
mov dword [rsp + 0xd4dc], esi
mov dword [rsp + 0xd4e0], esi
mov byte [rsp + 0x12894], sil
mov qword [rsp + 0x128c0], rsi
mov dword [rsp + 0x128c8], esi
mov dword [rsp + 0x128cc], esi
mov dword [rsp + 0x128b8], esi
mov dword [rsp + 0x128d0], esi
mov dword [rsp + 0x128d4], 0x80
mov dword [rsp + 0x128d8], esi
mov dword [rsp + 0x128dc], esi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x128e0], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, 0x19e5
lea rdx, [0x14024d9c0]
lea rcx, [rsp + 0x60]
call fcn.140018ed0
mov rdi, qword [rsp + 0x48]
cmp ebx, 4
jne 0x1400033e2
lea rcx, [rdi + 0xdfc]
lea r8, str.v4.0.30319
lea edx, [rsi + 0xc]
call fcn.140052d30
lea rdx, [0x140253960]
lea rcx, [rsp + 0x128f0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.DNRuntime.dll
lea rcx, [rsp + 0x128f0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 7
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
lea rcx, [rsp + 0x128f0]
call fcn.140069630
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000348a
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
mov r8d, 0x2a00
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [0x140253724]
lea r8, [0x14025371c]
lea rdx, [0x140253714]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd r8, dword [rsp + 0x40]
xor edx, edx
mov rcx, rdi
call fcn.140056570
nop
mov qword [rsp + 0x60], rbp
lea rcx, [rsp + 0x60]
call fcn.1400192d0
mov rcx, qword [rsp + 0x128a0]
test rcx, rcx
je 0x1400034c2
call fcn.1400522c0
mov eax, 0x2a00
jmp 0x1400034c7
mov eax, 0x2a00
mov rcx, qword [rsp + 0x12cf0]
xor rcx, rsp
call fcn.1400527c0
lea r11, [rsp + 0x12d00]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003670
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push r12
sub rsp, 0x20
xor esi, esi
test r8d, r8d
mov r12, rdx
mov rbp, rcx
je 0x1400036dc
mov edx, dword [rcx + 0x28]
mov rcx, qword [rcx + 0x38]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x50], esi
call fcn.14001a800
movsxd rbx, dword [rsp + 0x50]
mov edx, dword [rbp + 0x2c]
mov r8, qword [rsp + 0x40]
mov r9, rbx
mov rcx, r12
call fcn.1400529f0
mov rcx, qword [rsp + 0x40]
mov r8, rbx
xor edx, edx
call fcn.140056570
mov rcx, qword [rsp + 0x40]
call fcn.140052ac0
jmp 0x1400036fd
mov edx, dword [rcx + 0x28]
mov r8, qword [rcx + 0x38]
mov rcx, r12
mov r9, rdx
call fcn.1400529f0
mov r8d, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x38]
xor edx, edx
call fcn.140056570
cmp dword [rbp + 0x30], esi
mov qword [rbp + 0x38], rsi
je 0x140003879
movsxd r8, dword [r12 + 0x3c]
mov ebx, esi
mov r9d, esi
add r8, r12
cmp word [r8 + 0x18], 0x20b
movzx eax, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [rax + r8 + 0x18]
mov rcx, rdx
jne 0x1400037c0
test r10d, r10d
mov r11d, dword [r8 + 0xf8]
mov ebx, 1
je 0x140003772
mov eax, dword [rcx + 8]
test eax, eax
jne 0x140003751
mov eax, dword [rcx + 0x10]
mov r8d, dword [rcx + 0xc]
cmp r11d, r8d
jb 0x140003766
add eax, r8d
cmp r11d, eax
jb 0x1400037fd
add r9d, ebx
add rcx, 0x28
cmp r9d, r10d
jb 0x140003747
mov rax, rsi
mov r8d, dword [rax + 8]
mov ecx, esi
sub r8d, 0x10
test ebx, ebx
je 0x140003814
test r10d, r10d
je 0x14000385b
mov eax, dword [rdx + 8]
test eax, eax
jne 0x14000379a
mov eax, dword [rdx + 0x10]
mov r9d, dword [rdx + 0xc]
cmp r8d, r9d
jb 0x1400037af
add eax, r9d
cmp r8d, eax
jb 0x140003849
add ecx, 1
add rdx, 0x28
cmp ecx, r10d
jb 0x140003790
jmp 0x14000385b
test r10d, r10d
mov r11d, dword [r8 + 0xe8]
je 0x140003772
nop
mov eax, dword [rcx + 8]
test eax, eax
jne 0x1400037da
mov eax, dword [rcx + 0x10]
mov r8d, dword [rcx + 0xc]
cmp r11d, r8d
jb 0x1400037eb
add eax, r8d
cmp r11d, eax
jb 0x1400037fd
add r9d, 1
add rcx, 0x28
cmp r9d, r10d
jb 0x1400037d0
jmp 0x140003772
mov eax, r8d
sub eax, dword [rcx + 0x14]
movsxd rcx, eax
mov rax, r11
sub rax, rcx
add rax, r12
jmp 0x140003775
test r10d, r10d
je 0x14000385b
nop
nop
mov eax, dword [rdx + 8]
test eax, eax
jne 0x14000382a
mov eax, dword [rdx + 0x10]
mov r9d, dword [rdx + 0xc]
cmp r8d, r9d
jb 0x14000383b
add eax, r9d
cmp r8d, eax
jb 0x140003849
add ecx, 1
add rdx, 0x28
cmp ecx, r10d
jb 0x140003820
jmp 0x14000385b
mov eax, r9d
mov esi, r8d
sub eax, dword [rdx + 0x14]
movsxd rcx, eax
sub rsi, rcx
add rsi, r12
mov eax, dword [rsi]
mov dword [rbp + 0x4c], eax
mov eax, dword [rsi + 0xc]
mov dword [rbp + 0x58], eax
mov eax, dword [rsi + 4]
mov dword [rbp + 0x50], eax
mov eax, dword [rsi + 8]
mov dword [rbp + 0x48], 1
mov dword [rbp + 0x54], eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r12
pop rsi
pop rbp
ret
Function at 0x1400086f0
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov esi, r9d
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x38]
lea r9, [rsp + 0x30]
mov rdi, rcx
mov byte [rsp + 0x20], 0
call fcn.140007f40
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x140008780
nop
nop
nop
mov dword [rsp + 0x80], SafeArrayUnaccessData
mov rcx, qword [rbx]
lea rdx, [rsp + 0x80]
mov rax, qword [rcx]
call qword [rax]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140008730
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x140008778
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140008770
mov edx, 1
call fcn.1400096e0
mov rcx, rbx
call fcn.1400522c0
mov qword [rdi + 0x18], 0
mov edx, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
xor r9d, r9d
add ecx, edx
xor r8d, r8d
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x48], ecx
mov ecx, dword [rsp + 0x3c]
mov dword [rsp + 0x44], 0
add ecx, edx
mov edx, esi
mov dword [rsp + 0x4c], ecx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov rax, qword [rdi + 0xa8]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x34]
mov rcx, rdi
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x50], 1
sub eax, dword [rsp + 0x40]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x4c]
sub eax, dword [rsp + 0x44]
mov dword [rsp + 0x68], eax
mov rax, qword [rdi]
call qword [rax]
mov rcx, qword [rdi + 0xa8]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rdi + 0xa8]
call qword [sym.imp.USER32.dll_UpdateWindow]
cmp qword [rdi + 0xa8], 0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
setne al
mov rsp, r11
pop rdi
ret
Function at 0x140009430
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, 0x150
mov rax, qword [0x1400980c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, qword [rcx + 0x20]
mov rbp, rcx
lea rcx, [rsp + 0x30]
mov eax, dword [rbp + 0x28]
mov rdi, qword [rbp + 0x18]
mov dword [rcx], eax
mov eax, dword [rbp + 0x2c]
mov dword [rcx + 4], eax
mov eax, dword [rbp + 0x30]
mov dword [rcx + 8], eax
mov eax, dword [rbp + 0x34]
mov dword [rcx + 0xc], eax
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetParent]
mov r9, rdi
mov r8, rbx
mov rcx, rax
mov edx, 0x135
call qword [sym.imp.USER32.dll_SendMessageA]
test rax, rax
je 0x1400094b3
lea rdx, [rsp + 0x30]
mov r8, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_FillRect]
mov esi, dword [rbp + 0x10]
mov r9d, SafeArrayGetLBound
lea rdx, [rsp + 0x30]
test sil, 1
mov rcx, rbx
lea r8d, [r9 - 5]
jne 0x1400094d2
lea r8d, [r9 - 0xa]
call qword [sym.imp.USER32.dll_DrawEdge]
mov rcx, qword [rbp + 0x18]
lea rdx, [rsp + 0x40]
mov r8d, 0x100
call qword [sym.imp.USER32.dll_GetWindowTextA]
test sil, 4
je 0x140009552
mov edx, 0xf0f0f0
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetTextColor]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
repne scasb al, byte [rdi]
mov dword [rsp + 0x20], 0x25
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DrawTextA]
add dword [rsp + 0x34], 1
add dword [rsp + 0x30], 1
add dword [rsp + 0x38], 1
add dword [rsp + 0x3c], 1
mov edx, 0x787878
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetTextColor]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
not rcx
mov dword [rsp + 0x20], 0x25
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DrawTextA]
test sil, 0x10
je 0x1400095a9
add dword [rsp + 0x34], 3
add dword [rsp + 0x30], 3
sub dword [rsp + 0x38], 3
sub dword [rsp + 0x3c], 3
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DrawFocusRect]
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400527c0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000ece0
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rsi
sub rsp, 0x28
test dl, dl
mov rbx, rcx
je 0x14000ed26
test rcx, rcx
je 0x14000ecf9
lea rsi, [rcx + 0x20]
jmp 0x14000ecfb
xor esi, esi
cmp qword [rsi], 0
je 0x14000edf9
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov al, 1
add rsp, 0x28
pop rsi
pop rbx
ret
xor esi, esi
test rcx, rcx
je 0x14000ed33
lea rax, [rcx + 0x20]
jmp 0x14000ed36
mov rax, rsi
cmp qword [rax], rsi
je 0x14000edf9
test rcx, rcx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x20], r13
je 0x14000ed54
add rcx, 0x20
jmp 0x14000ed57
mov rcx, rsi
mov rcx, qword [rcx]
mov qword [rsp + 0x50], r12
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov rdx, qword [rbx + 8]
test rdx, rdx
lea r13d, [rax + 1]
movsxd rbp, r13d
je 0x14000edbb
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x48], rdi
xor eax, eax
mov rdi, rdx
lea r12, [rbp + 1]
repne scasb al, byte [rdi]
mov rdi, qword [rsp + 0x48]
not rcx
sub rcx, 1
cmp rcx, r12
je 0x14000edc8
mov rcx, rdx
call fcn.140053110
test r13d, r13d
je 0x14000edb5
mov rcx, r12
call fcn.140051810
mov qword [rbx + 8], rax
jmp 0x14000edc8
mov qword [rbx + 8], rsi
jmp 0x14000edc8
lea rcx, [rbp + 1]
call fcn.140051810
mov qword [rbx + 8], rax
test rbx, rbx
mov r12, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
je 0x14000eddb
lea rsi, [rbx + 0x20]
mov rdx, qword [rbx + 8]
mov rcx, qword [rsi]
mov r8d, r13d
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov r13, qword [rsp + 0x20]
mov al, 1
add rsp, 0x28
pop rsi
pop rbx
ret
xor al, al
add rsp, 0x28
pop rsi
pop rbx
ret
Function at 0x1400106e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12d, ecx
lea rcx, [0x140252140]
xor r13d, r13d
xor edx, edx
mov rbx, r13
call fcn.140051958
lea ebp, [r13 + 1]
test rax, rax
mov rsi, rax
je 0x1400107e6
nop
test rbx, rbx
jne 0x1400107e6
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, 1
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
mov rdi, rax
jne 0x140010753
mov rbx, r13
jmp 0x1400107c9
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140010769
mov rbx, r13
jmp 0x1400107c4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
jne 0x14001077f
mov rbx, r13
jmp 0x1400107c4
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rbx
and ecx, 0xf
jbe 0x1400107b2
nop
nop
cmp rbx, r11
jae 0x1400107b7
add ecx, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1400107a0
cmp rbx, r11
jb 0x1400107bc
mov rbx, r13
jmp 0x1400107c4
cmp word [rbx], r13w
cmove rbx, r13
test rbx, rbx
jne 0x140010801
lea rcx, [0x140252140]
mov edx, ebp
call fcn.140051958
add ebp, 1
test rax, rax
mov rsi, rax
jne 0x140010720
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x1400107e8