joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403be780
Capabilities:
Create thread
Terminate thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov ax, word [rdx + 0x224]
xor ebx, ebx
mov rdi, rdx
and eax, 0x8000
mov dword [rsp + 0x58], ebx
neg eax
sbb ecx, ecx
xor edx, edx
and ecx, 0x803000
add ecx, 0x84408000
mov dword [0x1404fc464], ecx
lea rcx, [rsp + 0x68]
call qword [rdi + reloc.mfc90u.dll_CInternetException::CInternetException]
cmp eax, ebx
jne 0x1403be7ce
mov eax, recv
jmp 0x1403be8a7
lea r8, [0x1404139e8]
lea rcx, str.UpdateCheck
xor edx, edx
mov r9, r8
mov dword [rsp + 0x20], ebx
call qword [rdi + 0x2b8]
cmp rax, rbx
mov rcx, rax
mov qword [rdi + 0x280], rax
je 0x1403be7c4
cmp dword [rdi + 0x230], ebx
jle 0x1403be879
lea rax, [rsp + 0x58]
lea r8, [0x1403be72c]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, rbx
mov rsi, rax
jne 0x1403be834
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1403be85b
mov edx, dword [rdi + 0x230]
mov rcx, rax
imul edx, edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
cmp eax, reloc.mfc90u.dll_HashKey_wchar_t_const__
jne 0x1403be862
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, recv
jmp 0x1403be875
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp eax, ebx
je 0x1403be875
mov ebx, dword [rsp + 0x60]
mov eax, ebx
jmp 0x1403be8a7
mov eax, dword [0x1404fc464]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
call qword [rdi + reloc.mfc90u.dll_CMiniFrameWnd::CMiniFrameWnd]
mov qword [rdi + reloc.mfc90u.dll_CDocObjectServerItem::CDocObjectServerItem], rax
neg rax
sbb eax, eax
not eax
and eax, 0xd
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1403bf230
Capabilities:
Hide graphical window

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0xd0
lea rax, str.StatusWindow
mov rbx, rcx
mov ecx, send
mov qword [r11 - 0x18], rax
mov rsi, rdx
call qword [sym.imp.USER32.dll_GetSysColor]
mov ecx, eax
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, 0x7f00
xor ecx, ecx
mov qword [rsp + 0xb0], rax
call qword [sym.imp.USER32.dll_LoadCursorA]
and qword [rsp + 0xa0], 0
and qword [rsp + 0xc8], 0
xor ecx, ecx
mov qword [rsp + 0xa8], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
and dword [rsp + 0x90], 0
and dword [rsp + 0x94], 0
and qword [rsp + 0xb8], 0
and dword [rsp + 0x84], 0
mov qword [rsp + 0x98], rax
lea rax, [0x1403bee84]
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x50
mov qword [rsp + 0x88], rax
call qword [sym.imp.USER32.dll_RegisterClassExA]
and qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x98]
mov rdx, qword [rsp + 0xc0]
lea r8, str.File_Download
mov qword [rsp + 0x50], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
mov eax, 0x64
mov dword [rsp + 0x38], 0xa0
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], eax
mov r9d, 0x80c00000
mov ecx, 0x40001
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rcx, qword [rbx + reloc.mfc90u.dll_CHtmlEditCtrl::CHtmlEditCtrl]
test rcx, rcx
mov rdi, rax
jne 0x1403bf363
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x6c]
mov r11d, dword [rsp + 0x7c]
sub eax, dword [rsp + 0x64]
sub r11d, dword [rsp + 0x74]
mov ecx, dword [rsp + 0x78]
sub ecx, dword [rsp + 0x70]
cdq
mov dword [rsp + 0x30], shutdown
sub eax, edx
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ecx
sar eax, 1
mov r9d, eax
mov eax, r11d
cdq
sub eax, edx
sar eax, 1
sub r9d, eax
mov eax, dword [rsp + 0x68]
sub eax, dword [rsp + 0x60]
add r9d, dword [rsp + 0x64]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov eax, ecx
mov rcx, rdi
cdq
sub eax, edx
xor edx, edx
sar eax, 1
sub r8d, eax
add r8d, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov ebx, 5
mov rcx, rdi
mov edx, ebx
call qword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
and qword [rsp + 0x58], 0
lea r8, [0x14048c57c]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], CPtrList::AddTail
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], 0x1e
mov dword [rsp + 0x30], 0x50
lea rdx, str.BUTTON
mov r9d, 0x50000000
xor ecx, ecx
mov dword [rsp + 0x28], 0x5a
mov dword [rsp + 0x20], 0x69
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov edx, ebx
mov rcx, rax
mov qword [rsi], rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea r11, [rsp + 0xd0]
mov rax, rdi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1403bf47c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
and dword [rsp + 0x58], 0
mov ebx, r8d
mov rdi, rdx
xor r8d, r8d
xor edx, edx
mov r9d, 2
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x58], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1403bf4d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, shutdown
jmp 0x1403bf4db
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1403c0388
Capabilities:
Create thread
Terminate thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rsi, rcx
mov ebx, edx
lea ecx, [rdi + 0x40]
mov edx, reloc.mfc90u.dll_COleStreamFile::COleStreamFile
mov dword [rsp + 0x48], edi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [rdi + 0x40]
mov edx, reloc.mfc90u.dll_COleStreamFile::COleStreamFile
mov qword [rsi + 0x254], rax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsi + reloc.mfc90u.dll_CView::CView], rax
mov byte [rax], dil
mov rax, qword [rsi + 0x254]
mov byte [rax], dil
mov qword [0x1404fc458], rsi
mov dword [0x1404fc460], ebx
cmp dword [rsi + 0x230], 0xa
jge 0x1403c03f9
mov dword [rsi + 0x230], 0xa
cmp dword [rsi + 0x210], edi
jne 0x1403c040b
mov dword [rsi + 0x210], 0x50
cmp byte [rsi], dil
jne 0x1403c044b
mov rax, qword [str.secure.softwarekey.com]
mov rcx, qword [rsi + 0x254]
mov qword [rcx], rax
mov rax, qword [0x14048c298]
mov qword [rcx + 8], rax
mov eax, dword [0x14048c2a0]
mov dword [rcx + 0x10], eax
movzx eax, word [0x14048c2a4]
mov word [rcx + 0x14], ax
mov al, byte [0x14048c2a6]
mov byte [rcx + 0x16], al
jmp 0x1403c0466
mov rdx, qword [rsi + 0x254]
mov rcx, rsi
mov al, byte [rcx]
add rcx, 1
mov byte [rdx], al
add rdx, 1
cmp al, dil
jne 0x1403c0455
mov rcx, qword [rsi + 0x208]
cmp rcx, rdi
je 0x1403c048f
cmp byte [rcx], dil
je 0x1403c048f
mov rdx, qword [rsi + reloc.mfc90u.dll_CView::CView]
mov al, byte [rcx]
add rcx, 1
mov byte [rdx], al
add rdx, 1
cmp al, dil
jne 0x1403c047e
lea rax, [rsp + 0x48]
lea r8, [0x1403c01b0]
mov r9, rsi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, rdi
mov rbx, rax
jne 0x1403c04c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1403c0509
mov edx, dword [rsi + 0x230]
mov rcx, rax
imul edx, edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
cmp eax, reloc.mfc90u.dll_HashKey_wchar_t_const__
jne 0x1403c04ea
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1403c0509
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp eax, edi
je 0x1403c050e
mov eax, dword [rsp + 0x40]
cmp eax, 4
mov edi, eax
je 0x1403c0509
cmp eax, 2
jne 0x1403c050e
mov edi, recv
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1403c0520
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1404f5550]
xor rax, rsp
mov qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu], rax
lea rax, [rsp + 0x38]
mov rdi, rcx
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x1403c062f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov esi, SerializeElements<class ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > >
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x1403c0620
cmp dword [rsp + 0x30], 2
mov byte [rsp + reloc.mfc90u.dll_AFX_MODULE_THREAD_STATE::AFX_MODULE_THREAD_STATE], bl
jne 0x1403c05e2
lea rcx, [rsp + 0x40]
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
add eax, 0xffffffff
cmp eax, 0x103
setbe bl
jmp 0x1403c0620
lea rdx, [rsp + 0x40]
mov ecx, ebx
sub rdx, rdi
lea rax, [rsi + 0x7ffffefa]
cmp rax, rbx
je 0x1403c060b
mov al, byte [rdx + rdi]
cmp al, bl
je 0x1403c060b
mov byte [rdi], al
add rdi, 1
sub rsi, 1
jne 0x1403c05ec
cmp rsi, rbx
jne 0x1403c0619
sub rdi, 1
mov ecx, 0x8007007a
cmp ecx, ebx
mov byte [rdi], bl
setge bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1403c0631
xor eax, eax
mov rcx, qword [rsp + reloc.mfc90u.dll_CChevronOwnerDrawMenu::CChevronOwnerDrawMenu]
xor rcx, rsp
call fcn.1403c2380
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1403c29ff
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1404f5550]
jne 0x1403c239a
rol rcx, 0x10
test cx, 0xffff
jne 0x1403c2396
repz ret
ror rcx, 0x10
jmp 0x1403c2958
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1404fbcd0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1404fbdc8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1403c29dd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1404fbcd0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1403c29ff
mov rax, qword [rsp + 0x88]
mov qword [0x1404fbdc8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1404fbd68], rax
mov rax, qword [0x1404fbdc8]
mov qword [0x1404fbc40], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1404fbd50], rax
mov dword [0x1404fbc30], 0xc0000409
mov dword [0x1404fbc34], 1
mov rax, qword [0x1404f5550]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1404f5558]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1404fbcc8], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14048c8a8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1404fbcc8], 0
jne 0x1403c2a86
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140003020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140003053
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
mov rbx, rax
je 0x140003097
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140003092
cmp rbx, r11
jae 0x140003097
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140003080
cmp rbx, r11
jb 0x14000309b
xor eax, eax
jmp 0x1400030a7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140003770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov eax, r8d
mov rsi, rdx
mov ebx, r8d
shr eax, 4
mov rbp, rcx
mov r8d, 6
add ax, 1
mov rcx, rsi
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
mov r12, rax
je 0x1400038d9
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400038d9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
mov rdi, rax
je 0x1400038d9
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x14000380a
cmp rdi, r11
jae 0x1400038d9
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x1400037f4
cmp rdi, r11
jae 0x1400038d9
movzx eax, word [rdi]
test ax, ax
je 0x1400038d9
mov qword [rsp + 0x60], r13
movzx ebx, ax
call qword [0x14003b630]
xor r13d, r13d
lea r12, [rdi + 2]
mov r9d, ebx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rbp]
mov edx, 1
movsxd rsi, eax
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, esi
or edx, ecx
jge 0x14000387a
mov edx, esi
mov rcx, rbp
call fcn.140003af0
mov rbx, qword [rbp]
movzx edi, word [rdi]
call qword [0x14003b630]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r9d, edi
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test esi, esi
mov r13, qword [rsp + 0x60]
js 0x1400038ce
mov rcx, qword [rbp]
cmp esi, dword [rcx - 0xc]
jg 0x1400038ce
mov dword [rcx - 0x10], esi
mov rcx, qword [rbp]
mov eax, 1
mov byte [rsi + rcx], 0
jmp 0x1400038db
mov ecx, 0x80070057
call fcn.140003000
int3
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x1400077f8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x180
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140039d10]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
lea r8, [rsp + 0x30]
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test eax, eax
jne 0x1400078f7
mov r9d, 0x104
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, eax
test eax, eax
jne 0x1400078ce
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.140003390
nop
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.1400077f8
mov ebx, eax
test eax, eax
setne byte [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400078b5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
cmp byte [rsp + 0x20], 0
je 0x1400078be
jmp 0x1400078ce
jmp 0x14000784e
cmp ebx, 0x103
je 0x1400078de
cmp ebx, 0x3f2
jne 0x1400078ec
mov rdx, qword [rsi]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140015710
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400098a8
Capabilities:
Set thread local storage value

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 r13
push r14
sub rsp, 0x20
mov esi, 1
mov r14, r8
mov rdi, rdx
cmp dword [rdx + 0x10], esi
mov r12, rcx
mov ebp, esi
jle 0x140009935
lea ebx, [rsi + 7]
lea r13d, [rsi + 0xf]
test r14, r14
je 0x140009901
mov rax, qword [r12 + 0x10]
cmp qword [rax + r13 + 8], r14
je 0x140009901
mov rax, qword [rdi + 0x18]
cmp qword [rbx + rax], 0
je 0x140009921
xor esi, esi
jmp 0x140009921
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x140009918
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rdi + 0x18]
and qword [rbx + rax], 0
add ebp, 1
add r13, 0x10
add rbx, 8
cmp ebp, dword [rdi + 0x10]
jl 0x1400098e1
invalid
test esi, esi
je 0x14000997c
lea rcx, [r12 + 0x28]
Function at 0x14000bb80
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x140039d10]
xor rax, rsp
mov qword [rsp + 0x120], rax
test rcx, rcx
mov rbx, rdx
mov rdi, rcx
jne 0x14000bbb5
call fcn.140004e5c
int3
test rdx, rdx
jne 0x14000bbc0
call fcn.140004e5c
int3
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0x20], 0
mov esi, eax
call fcn.140017480
mov r8d, 0x100
cmp esi, r8d
ja 0x14000bc11
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x14000bc11
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x14000bc1d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140015710
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000da8c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call fcn.1400090f8
mov rbx, rax
mov rax, qword [rax + 0x78]
test rax, rax
je 0x14000dac3
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x14000dac3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x401
call qword [sym.imp.USER32.dll_SendMessageA]
test edi, edi
mov rbx, qword [rbx + 0xa0]
je 0x14000daf3
test rbx, rbx
je 0x14000daf3
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14000daf3
mov rax, qword [rbx]
or rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [rax + 0x2d0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140018820
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x14003f0e0]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140019f80
test rax, rax
je 0x140018874
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x140018909
mov ecx, 2
call fcn.140023490
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140017480
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1400188f5
test ebx, ebx
jne 0x1400188f5
lea ecx, [rax + 2]
call fcn.140023490
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140018930
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x140039eb0]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14001896e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140018950
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140018b55
mov ecx, 3
call fcn.140023700
cmp eax, 1
je 0x140018b0c
mov ecx, 3
call fcn.140023700
test eax, eax
jne 0x1400189a5
cmp dword [0x140039d00], 1
je 0x140018b0c
cmp edi, 0xfc
je 0x140018b55
mov qword [rsp + 0x50], rbp
lea rbp, [0x14003f0f0]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140017360
test eax, eax
je 0x1400189e9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140018780
lea rdx, [0x14003f109]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14003f20d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140018a39
lea r8, str._program_name_unknown_
lea rcx, [0x14003f109]
mov edx, 0x2fb
call fcn.140017360
test eax, eax
je 0x140018a39
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140018780
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14003f109]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140018a88
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14003f404]
lea r9d, [rax + 3]
lea r8, [0x14002fb04]
sub rdx, rcx
call fcn.1400182b0
test eax, eax
je 0x140018a88
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140018780
lea r8, [0x14002fb00]
mov edx, 0x314
mov rcx, rbp
call fcn.140017610
test eax, eax
je 0x140018ab4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140018780
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.140017610
test eax, eax
je 0x140018ae4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140018780
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1400234a0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140018b55
cmp rax, 0xffffffffffffffff
je 0x140018b55
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret