joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140049800
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140065040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400498d3
cmp byte [rcx + 0x71], 0
je 0x1400498d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400498cf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140049894
sub eax, 1
je 0x140049898
cmp eax, 2
jne 0x1400498cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004f220
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400498c6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400498cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14004987c
xor al, al
jmp 0x14004987c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004f220
add rsp, 0x60
pop rbx
ret

Function at 0x140049c10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140065040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.14004f7ac
mov qword [rax], rbx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14004a7e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140049c89
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004f220
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x14004fed0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140050836
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14005083b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140050884
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140052a90]
cmp byte [rcx + rax], 0
je 0x140050884
dec r8
sub rdx, 1
jne 0x14005086a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140017bf0
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x60], 0xfffffffffffffffe
cmp qword [rsp + 0x88], 0
je 0x140017c24
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x140017c2b
xor eax, eax
jmp 0x140017d0e
lea rcx, [rsp + 0x24]
call fcn.140017e70
nop
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x80]
call fcn.140017e20
test eax, eax
je 0x140017cf8
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
movsxd rdx, eax
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140017cf2
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x40], rax
call fcn.140003290
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x88]
call fcn.140014050
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.140070eb0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rsp + 0x28]
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x140017ce2
mov dword [rsp + 0x68], 1
jmp 0x140017cea
mov dword [rsp + 0x68], 0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x24]
call fcn.140017e90
mov eax, dword [rsp + 0x58]
add rsp, 0x78
ret

Function at 0x140017d20
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x50]
call fcn.140017e20
test eax, eax
je 0x140017d9c
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140017d96
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140017d96
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
call fcn.140001470
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret

Function at 0x140017e20
Capabilities:
Open clipboard

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
add rsp, 0x28
ret
Function at 0x14001f640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x28], 0
cmp qword [rsp + 0x60], 0
jne 0x14001f670
mov ecx, 0x7f
call qword [0x14052b178]
xor eax, eax
jmp 0x14001f83c
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
add rax, 0x88
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 4], 0
jne 0x14001f6a0
mov ecx, 0x7f
call qword [0x14052b178]
xor eax, eax
jmp 0x14001f83c
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x18], 0
je 0x14001f6cb
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x14], 0
jne 0x14001f6dd
mov ecx, 0x7f
call qword [0x14052b178]
xor eax, eax
jmp 0x14001f83c
mov rax, qword [rsp + 0x68]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
test eax, eax
jne 0x14001f73c
mov rax, qword [rsp + 0x68]
and rax, 0xffff
movzx ecx, ax
mov rax, qword [rsp + 0x20]
cmp ecx, dword [rax + 0x10]
jae 0x14001f71d
mov ecx, 0x7f
call qword [0x14052b178]
xor eax, eax
jmp 0x14001f83c
mov rax, qword [rsp + 0x68]
and rax, 0xffff
movzx eax, ax
mov rcx, qword [rsp + 0x20]
sub eax, dword [rcx + 0x10]
mov dword [rsp + 0x28], eax
jmp 0x14001f7fb
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 8]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
jmp 0x14001f7a1
mov eax, dword [rsp + 0x3c]
add eax, 1
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x3c], eax
jae 0x14001f7e5
mov rax, qword [rsp + 0x40]
mov edx, dword [rax]
mov rax, qword [rsp + 0x60]
add rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x68]
call fcn.140075130
test eax, eax
jne 0x14001f7e3
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x38], 1
jmp 0x14001f7e5
jmp 0x14001f77a
cmp dword [rsp + 0x38], 0
jne 0x14001f7fb
mov ecx, 0x7f
call qword [0x14052b178]
xor eax, eax
jmp 0x14001f83c
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x28], eax
jbe 0x14001f818
mov ecx, 0x7f
call qword [0x14052b178]
xor eax, eax
jmp 0x14001f83c
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
add rcx, rax
mov eax, dword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 8]
add rsp, 0x58
ret
Function at 0x14001f850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
movzx eax, word [rsp + 0x30]
mov word [rsp], ax
mov eax, 1
mov word [rsp + 4], ax
xor eax, eax
mov word [rsp + 8], ax
mov dword [rsp + 0xc], 0
jmp 0x14001f891
mov eax, dword [rsp + 0xc]
add eax, 1
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0xc], eax
jge 0x14001f90a
movzx ecx, word [rsp + 4]
movzx eax, word [rsp + 8]
cmp ecx, eax
jne 0x14001f8b0
xor eax, eax
mov word [rsp + 8], ax
movsxd rcx, dword [rsp + 0xc]
mov rax, qword [rsp + 0x20]
movzx edx, byte [rax + rcx]
add edx, 0x609
movsxd rcx, dword [rsp + 0xc]
mov rax, qword [rsp + 0x20]
mov byte [rax + rcx], dl
movsxd rdx, dword [rsp + 0xc]
movzx eax, word [rsp + 8]
movzx ecx, word [rsp + rax*2]
mov rax, qword [rsp + 0x20]
movzx edx, byte [rax + rdx]
xor edx, ecx
movsxd rcx, dword [rsp + 0xc]
mov rax, qword [rsp + 0x20]
mov byte [rax + rcx], dl
movzx eax, word [rsp + 8]
add ax, 1
mov word [rsp + 8], ax
jmp 0x14001f886
add rsp, 0x18
ret
Function at 0x14001ff20
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx]
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
movzx eax, word [rax + 0x14]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0
jmp 0x14001ff87
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
add rax, 0x28
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jge 0x1400200da
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x10], 0
jne 0x140020031
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jle 0x14002002c
movsxd rdx, dword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov r9d, 4
mov r8d, 0x1000
call qword [0x14052b188]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14001fffa
xor eax, eax
jmp 0x1400200df
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0xc]
mov rax, qword [rsp + 0x30]
add rax, rcx
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x28]
mov dword [rcx + 8], eax
movsxd r8, dword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.1400706b0
jmp 0x14001ff6e
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 0x14]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x10]
mov rax, rdx
add rax, rcx
cmp qword [rsp + 0x68], rax
jae 0x140020055
xor eax, eax
jmp 0x1400200df
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 0x10]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov r9d, 4
mov r8d, 0x1000
call qword [0x14052b188]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140020090
xor eax, eax
jmp 0x1400200df
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0xc]
mov rax, qword [rsp + 0x30]
add rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x10]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x14]
mov rdx, qword [rsp + 0x60]
add rdx, rax
mov rcx, qword [rsp + 0x28]
call fcn.140070f80
mov r11, qword [rsp + 0x40]
mov eax, dword [rsp + 0x28]
mov dword [r11 + 8], eax
jmp 0x14001ff6e
mov eax, 1
add rsp, 0x58
ret
Function at 0x14002a0b0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
lea rax, str.open
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x68]
call fcn.14001e430
mov rbx, rax
mov rcx, qword [rsp + 0x60]
call fcn.14002b0f0
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rbx
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov qword [rsp + 0x38], rax
cmp dword [rsp + 0x38], 0x20
jg 0x14002a134
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x68]
call fcn.140001450
mov eax, dword [rsp + 0x40]
jmp 0x14002a14a
mov dword [rsp + 0x44], 1
mov rcx, qword [rsp + 0x68]
call fcn.140001450
mov eax, dword [rsp + 0x44]
add rsp, 0x50
pop rbx
ret

Function at 0x14002c158
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 r12, r8
mov rbx, rdx
mov r13, rcx
xor edi, edi
call fcn.1400396e8
lea r8d, [rdi + 5]
mov rbp, qword [rax + 0x18]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
cmp rax, rdi
je 0x14002c1b4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rbp
mov r8, r12
mov rdx, rdi
mov rcx, r13
call fcn.14002bbec
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x14002c248
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x14002c287
cmp dword [rcx + 0xa8], 0
jne 0x14002c287
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.1400396e8
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.14002c1ec
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14002d260
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.14005bd58
mov rsi, rax
test rax, rax
je 0x14002d2dc
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x14002d2d7
cmp dword [rbx], 0x40
jb 0x14002d2d7
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x14002d2d7
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14002d2e0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140034758
Capabilities:
Extract resource via kernel32 functions

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
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1400347c0
call fcn.1400396e8
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x1400347c0
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1400347e2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140034170
mov esi, eax
test rdi, rdi
je 0x1400347e0
test rbx, rbx
je 0x1400347e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x14003554c
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], 0
jne 0x14003558a
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x14003563e
call fcn.14003696c
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x1400355a9
mov ecx, 0x80004005
call fcn.140001520
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140076508
test eax, eax
je 0x140035611
cmp eax, 0xc
je 0x14003560b
cmp eax, 0x16
je 0x140035605
cmp eax, 0x22
je 0x140035605
cmp eax, 0x50
je 0x140035611
call fcn.140036878
int3
call fcn.140036878
int3
call fcn.140036830
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x14003563c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.oledlg.dll_OleUIBusyA + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140038580
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xa8], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x1400385f7
call fcn.14003850c
mov rsi, rax
test rax, rax
jne 0x1400385b3
mov eax, edi
jmp 0x14003860d
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x1400385af
mov r9, qword [rcx + 0xd0]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140050948
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r13, rdx
mov r12, rcx
call fcn.1400396e8
mov rbx, qword [rax + 0x18]
mov r8d, 0xf1
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor r14d, r14d
cmp rax, r14
jne 0x14005098e
xor eax, eax
jmp 0x140050a67
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
cmp rax, r14
je 0x140050987
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
cmp rax, r14
je 0x140050987
movzx ecx, word [rax + 6]
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14002b378
mov r9d, r14d
mov rbp, rax
cmp r14w, word [rbx + 6]
jae 0x140050a00
mov rdx, rax
lea r8, [rbx + 8]
movzx ecx, word [r8]
inc r9d
add r8, 2
mov dword [rdx], ecx
movzx eax, word [rbx + 6]
add rdx, 4
cmp r9d, eax
jl 0x1400509e6
movzx r8d, word [rbx + 6]
mov rdx, rbp
mov rcx, r12
call fcn.14004f15c
mov rcx, rbp
mov esi, eax
call fcn.14002b3bc
cmp esi, r14d
je 0x140050a5c
movzx ecx, word [rbx + 4]
movzx eax, word [rbx + 2]
mov dword [rsp + 0x60], eax
add eax, 7
mov dword [rsp + 0x64], ecx
mov r8, qword [rsp + 0x60]
mov dword [rsp + 0x68], eax
lea eax, [rcx + 7]
mov dword [rsp + 0x6c], eax
mov rdx, qword [rsp + 0x68]
mov rcx, r12
call fcn.14004f98c
mov rdx, r13
mov rcx, r12
call fcn.14004fa60
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x140058854
Capabilities:
Move file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x140058877
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, eax
call fcn.14006e1e0
add rsp, 0x20
pop rbx
ret

Function at 0x140058880
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1400588a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, eax
call fcn.14006e1e0
add rsp, 0x20
pop rbx
ret
Function at 0x140076b18
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140082090
nop
cmp dword [0x14052f5c0], 1
je 0x140076ac4
mov dword [0x14052f5bc], 1
mov byte [0x14052f5b8], r12b
test ebx, ebx
jne 0x140076ab0
mov rcx, qword [0x140531690]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140076a9d
mov rcx, qword [0x140531688]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140076a3c
call fcn.140077838
cmp qword [rdi], rax
jne 0x140076a3c
jmp 0x140076a22
cmp rdi, rsi
jb 0x140076a9d
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140077838
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140531690]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140531688]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140076a7b
cmp r13, rax
je 0x140076a9b
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140076a22
lea rdx, [0x140092110]
lea rcx, [0x1400920f8]
call fcn.14007686c
lea rdx, [0x140092120]
lea rcx, [0x140092118]
call fcn.14007686c
nop
test r12d, r12d
je 0x140076ad3
mov ecx, 8
call fcn.140081f90
test r12d, r12d
jne 0x140076afe
mov dword [0x14052f5c0], 1
lea ecx, [r12 + 8]
call fcn.140081f90
mov ecx, r15d
call fcn.140076800
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14007698c

Function at 0x140076b24
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14007698c