joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4235d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x48], rbp
mov rbp, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x4235c5
mov r8, qword [rbp + 0x20]
mov r9d, 1
mov qword [rsp + 0x30], r12
lea edx, [r9 + 0x2f]
call qword [sym.imp.USER32.dll_SendMessageW]
movzx edx, word [rbp]
mov rcx, qword [rbp + 8]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, qword [rbp + 8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor r8d, r8d
cmp word [rax + 2], 0xffff
mov r12, rax
sete r8b
test r8d, r8d
je 0x42340a
mov edx, dword [rax + 0xc]
lea rcx, [rax + 0x1a]
jmp 0x423410
mov edx, dword [rax]
lea rcx, [rax + 0x12]
cmp word [rcx], 0xffff
jne 0x423420
add rcx, 4
jmp 0x42342c
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x423420
cmp word [rcx], 0xffff
jne 0x423440
add rcx, 4
jmp 0x423450
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x423440
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x423450
test dl, 0x40
je 0x42347c
test r8d, r8d
je 0x42346c
add rcx, 6
jmp 0x423470
add rcx, 2
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x423470
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
lea rdi, [rcx + 3]
mov rcx, r12
xor esi, esi
and rdi, 0xfffffffffffffffc
call fcn.00423350
cmp word [rax], si
jbe 0x423594
mov qword [rsp + 0x40], rbx
mov rbx, qword [rsp + 0x20]
nop
nop
test esi, esi
jne 0x4234c6
mov rcx, qword [rbp + 0x10]
lea edx, [rsi + 5]
call qword [sym.imp.USER32.dll_GetWindow]
mov rbx, rax
jmp 0x4234d7
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
mov rbx, rax
test rbx, rbx
je 0x42358f
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, dword [rdi + 0x14]
je 0x423509
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
mov rbx, rax
jne 0x4234e0
jmp 0x42358f
test rbx, rbx
je 0x42358f
mov r8, qword [rbp + 0x20]
mov r9d, 1
mov rcx, rbx
lea edx, [r9 + 0x2f]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp word [rdi + 0x18], 0xffff
lea r11, [rdi + 0x18]
jne 0x423540
add r11, 4
jmp 0x42354d
movzx eax, word [r11]
add r11, 2
test ax, ax
jne 0x423540
cmp word [r11], 0xffff
jne 0x423560
add r11, 4
jmp 0x42356d
movzx eax, word [r11]
add r11, 2
test ax, ax
jne 0x423560
movzx eax, word [r11]
mov rcx, r12
inc esi
lea rdi, [rax + r11 + 5]
and rdi, 0xfffffffffffffffc
call fcn.00423350
movzx ecx, word [rax]
cmp esi, ecx
jl 0x4234b0
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x20], 0
mov rbp, qword [rsp + 0x48]
add rsp, 0x38
ret
jmp 0x423390
Function at 0x4235f0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1268
call fcn.0042ec50
sub rsp, rax
mov rax, qword [0x004583d0]
mov qword [rsp + 0x1230], rax
mov qword [rsp + 0x1278], rbx
mov qword [rsp + 0x1260], rdi
mov qword [rsp + 0x1258], r12
mov qword [rsp + CControlBar::OnIdleUpdateCmdUI], r13
mov qword [rsp + 0x1248], r14
xor r14d, r14d
mov r13, rcx
mov rbx, rcx
mov r12d, r14d
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
mov r8d, 0xffc
movsxd rcx, eax
mov dword [rsp + 0x230], r14d
lea rdi, [rbx + rcx*2]
lea rcx, [rsp + 0x234]
call sub.msvcrt.dll_memset
cmp rbx, rdi
jae 0x423767
mov qword [rsp + CCheckListBox::OnLBInsertString], rbp
mov qword [rsp + CSplitterWnd::OnLButtonDblClk], rsi
cmp word [rbx], 0x25
jne 0x42370f
mov rbp, rbx
add rbx, 2
cmp rbx, rdi
mov rsi, rbx
jae 0x423734
cmp word [rbx], 0x25
jne 0x4236de
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x204
mov word [rbx], r14w
mov dword [rsp + 0x20], r14d
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x20]
mov r8d, CSocketWnd::CSocketWnd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4236e9
mov word [rbx], 0x25
add rbx, 2
cmp rbx, rdi
jb 0x4236a0
jmp 0x423734
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
mov word [rbp], 0x25
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r12d, 1
mov word [rbx], 0x25
jmp 0x423734
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdx, eax
movzx eax, word [rbx]
mov word [rsp + rdx*2 + 0x230], ax
mov word [rsp + rdx*2 + 0x232], r14w
add rbx, 2
cmp rbx, rdi
jb 0x423683
test r12d, r12d
mov rsi, qword [rsp + 0x1288]
mov rbp, qword [rsp + 0x1280]
je 0x423767
lea rdx, [rsp + 0x230]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov r14, qword [rsp + 0x1248]
mov r13, qword [rsp + 0x1250]
mov r12, qword [rsp + 0x1258]
mov rdi, qword [rsp + 0x1260]
mov rbx, qword [rsp + 0x1278]
xor eax, eax
mov rcx, qword [rsp + 0x1230]
call fcn.0042ec20
add rsp, 0x1268
ret
Function at 0x4237b0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0x8c8
mov rax, qword [0x004583d0]
mov qword [rsp + 0x890], rax
mov qword [r11 - 8], rbx
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
mov rsi, rdx
xor edx, edx
mov qword [r11 - 0x20], rdi
mov rbp, r8
mov rdi, rcx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x20]
mov ebx, r9d
call sub.msvcrt.dll_memset
bts ebx, 9
lea rax, str._UserProfile_
mov dword [rsp + 0x24], ebx
lea rcx, [rsp + 0x94]
xor ebx, ebx
xor edx, edx
mov r8d, 0x7fc
mov dword [rsp + 0x20], WSAStartup
mov dword [rsp + 0x90], ebx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x48], rax
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x90]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x90]
mov dx, 0x2e
call qword [sym.imp.msvcrt.dll_wcsrchr]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x68], rbx
test rax, rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x50], 1
cmove rcx, qword [rsp + 0x48]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rdi, qword [rsp + 0x8a8]
mov rsi, qword [rsp + 0x8b0]
mov rbp, qword [rsp + 0x8b8]
mov rbx, qword [rsp + 0x8c0]
mov rcx, qword [rsp + 0x890]
call fcn.0042ec20
add rsp, 0x8c8
ret
Function at 0x4240d0
Capabilities:
Capture webcam image

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
mov rbx, rdx
mov qword [rsp + 0x48], rdi
mov rdi, rcx
movsxd r8, r8d
xor r9d, r9d
mov rcx, rbx
mov edx, 0x419
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, rdi
mov edx, 0x41d
movsxd r8, eax
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rdi, qword [rsp + 0x48]
add rsp, 0x28
ret

Function at 0x424120
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x130
mov rax, qword [0x004583d0]
mov qword [rsp + 0x120], rax
mov rbx, rcx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4241b3
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0x20], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x424183
test byte [rsp + 0x32], 0x80
jne 0x424183
xor r9d, r9d
xor edx, edx
mov cl, 0x12
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_keybd_event]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4241b3
test byte [rsp + 0x32], 0x80
jne 0x4241b3
xor r9d, r9d
xor edx, edx
mov cl, 0x12
lea r8d, [r9 + 3]
call qword [sym.imp.USER32.dll_keybd_event]
mov rcx, qword [rsp + 0x120]
call fcn.0042ec20
add rsp, 0x130
pop rbx
ret
Function at 0x425040
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlGetNtVersionNumbers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x42525b
lea r8, [0x00480578]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call rax
and dword [0x00480578], 0xfffffff
cmp dword [rsp + 0x30], 6
jb 0x42525b
lea rcx, str.UxTheme.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov rbx, rax
je 0x42525b
lea rdx, str.DrawThemeTextEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [rsp + 0x30], 0xa
mov qword [0x00480560], rax
jb 0x42525b
mov edx, 0x31
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x68
mov rcx, rbx
mov qword [0x00480558], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x6a
mov rcx, rbx
mov qword [0x00480540], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x84
mov rcx, rbx
mov qword [0x00480550], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x85
mov rcx, rbx
mov qword [0x00480520], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x00480578], 0x47ba
mov edx, 0x87
mov qword [0x00480528], rax
mov rcx, rbx
jae 0x42515b
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x00480530], rax
jmp 0x425168
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x00480570], rax
mov edx, 0x89
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.user32.dll
mov qword [0x00480548], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.SetWindowCompositionAttribute
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x00480558], 0
mov qword [0x00480518], rax
je 0x42525b
cmp qword [0x00480540], 0
je 0x42525b
mov rax, qword [0x00480520]
test rax, rax
je 0x42525b
cmp qword [0x00480528], 0
je 0x42525b
cmp qword [0x00480530], 0
jne 0x4251ef
cmp qword [0x00480570], 0
je 0x42525b
cmp qword [0x00480548], 0
je 0x42525b
mov byte [0x00480508], 1
call rax
test al, al
je 0x425216
call fcn.00424f10
mov byte [0x00480509], 1
test al, al
je 0x42521d
mov byte [0x00480509], 0
cmp dword [0x00480510], 0
jne 0x42525b
mov rax, qword [0x00480530]
test rax, rax
je 0x425242
mov cl, 1
call rax
call qword [0x00480540]
add rsp, 0x20
pop rbx
ret
mov rax, qword [0x00480570]
test rax, rax
je 0x425255
mov ecx, 1
call rax
call qword [0x00480540]
add rsp, 0x20
pop rbx
ret
Function at 0x4267f0
Capabilities:
Find taskbar

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
lea r8, str.Shell_TrayWnd
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
test rax, rax
je 0x42683e
lea r8, str.TrayNotifyWnd
xor r9d, r9d
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_FindWindowExW]
test rax, rax
je 0x42683e
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
add rsp, 0x50
pop rbx
ret
lea rdx, [rsp + 0x20]
mov ecx, 5
mov dword [rsp + 0x20], 0x30
call qword [sym.imp.SHELL32.dll_SHAppBarMessage]
test rax, rax
je 0x4268b9
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x426896
dec eax
je 0x426873
dec eax
je 0x426896
dec eax
jne 0x426938
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
mov dword [rbx + 4], eax
mov eax, dword [rsp + 0x44]
mov dword [rbx + 0xc], eax
lea eax, [rcx - 0x64]
mov dword [rbx], eax
lea eax, [rcx - 0x10]
mov dword [rbx + 8], eax
add rsp, 0x50
pop rbx
ret
mov ecx, dword [rsp + 0x44]
lea eax, [rcx - 0x64]
mov dword [rbx + 4], eax
lea eax, [rcx - 0x10]
mov dword [rbx + 0xc], eax
mov eax, dword [rsp + 0x38]
mov dword [rbx], eax
mov eax, dword [rsp + 0x40]
mov dword [rbx + 8], eax
add rsp, 0x50
pop rbx
ret
lea r8, str.Shell_TrayWnd
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
test rax, rax
je 0x426910
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r11d, dword [rbx + 8]
mov eax, r11d
sub eax, dword [rbx]
cmp eax, 0x96
jle 0x4268f7
lea eax, [r11 - 0x96]
mov dword [rbx], eax
mov ecx, dword [rbx + 0xc]
mov eax, ecx
sub eax, dword [rbx + 4]
cmp eax, 0x1e
jle 0x426938
lea eax, [rcx - 0x1e]
mov dword [rbx + 4], eax
add rsp, 0x50
pop rbx
ret
xor edx, edx
xor r9d, r9d
mov r8, rbx
lea ecx, [rdx + 0x30]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov r11d, dword [rbx + 8]
mov eax, dword [rbx + 0xc]
sub r11d, 0x96
sub eax, 0x1e
mov dword [rbx + 4], eax
mov dword [rbx], r11d
add rsp, 0x50
pop rbx
ret

Function at 0x426cd0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x3f0
mov rax, qword [0x004583d0]
mov qword [rsp + 0x3e0], rax
mov rax, qword [rcx + 0x830]
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov eax, dword [rcx + 0x820]
mov ecx, 2
mov dword [rsp + 0x20], 0x3b8
mov dword [rsp + 0x34], 7
mov dword [rsp + 0x38], 0x8064
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x40], 0
mov word [rsp + 0x48], 0
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x426d55
mov edx, 0x444
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rbx + 0x10], 0
mov rcx, qword [rsp + 0x3e0]
call fcn.0042ec20
add rsp, 0x3f0
pop rbx
ret
Function at 0x427180
Capabilities:
Create thread
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov dword [rcx + 0x820], edx
mov rbx, rcx
mov dword [rcx + 0xc], r8d
add rcx, 0x18
mov rdx, r9
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbx
call fcn.00426df0
mov r11d, dword [rsp + 0x60]
test r11d, r11d
je 0x4271b9
mov dword [rbx + 0x824], r11d
cmp dword [rsp + 0x68], 0
je 0x4271fd
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x4271d4
mov edx, 0x444
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rax, [rbx + 8]
lea r8, [0x00427000]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x10], rax
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x428810
Capabilities:
Log keystrokes via application hook

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x78], rbx
mov rbx, rcx
mov rcx, qword [rcx + 0x48]
call fcn.00427480
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x428a06
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [rbx + 0x38]
jne 0x428a06
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x48]
mov qword [rsp + 0x88], rdi
call qword [sym.imp.USER32.dll_GetSubMenu]
test rax, rax
mov rdi, rax
je 0x4289fe
mov ecx, dword [rbx + 0x28]
mov edx, 0x403
mov r9d, 1
add ecx, 0x9c40
mov qword [rsp + 0x80], rsi
mov dword [rbx + 0x18], 1
movsxd r8, ecx
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.USER32.dll_SendMessageW]
movsxd r8, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x30]
xor esi, esi
lea r9, [rsp + 0x30]
mov edx, 0x41d
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x3c], esi
call qword [sym.imp.USER32.dll_SendMessageW]
mov r11d, dword [rsp + 0x30]
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rbx + 0x30]
lea r9d, [rsi + 1]
lea r8, [rsp + 0x70]
xor edx, edx
mov dword [rsp + 0x70], r11d
mov dword [rsp + 0x74], eax
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov rcx, qword [rbx + 0x30]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_MapWindowPoints]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x44]
mov eax, dword [rcx]
xor r11d, r11d
mov dword [rsp + 0x40], SafeArrayUnaccessData
mov dword [rsp + 0x44], r11d
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x4c], r11d
mov dword [rsp + 0x50], r11d
mov dword [rdx], eax
mov eax, dword [rcx + 4]
mov dword [rdx + 4], eax
mov eax, dword [rcx + 8]
mov qword [0x004805f0], rbx
mov dword [rdx + 8], eax
mov eax, dword [rcx + 0xc]
mov dword [rdx + 0xc], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [0x00428590]
lea ecx, [rsi - 1]
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov r9d, dword [rsp + 0x74]
mov r8d, dword [rsp + 0x70]
mov qword [0x004805f8], rax
mov eax, dword [rbx + 0x28]
mov edx, 0x140
mov dword [rbx + 0x14], eax
lea rax, [rsp + 0x40]
mov rcx, rdi
mov qword [rsp + 0x28], rax
mov rax, qword [rbx + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_TrackPopupMenuEx]
test eax, eax
je 0x4289b4
mov rcx, qword [rbx + 0x30]
movsxd r8, eax
mov edx, 0x111
mov r9d, 0xaffe0000
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x30]
xor r9d, r9d
add eax, 0x9c40
mov edx, 0x403
mov dword [rbx + 0x14], 0xffffffff
movsxd r8, eax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x004805f8]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov qword [0x004805f8], rsi
mov qword [0x004805f0], rsi
mov dword [rbx + 0x1c], esi
mov rsi, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
Function at 0x4294e0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
sub rsp, 0x78
mov qword [rax - 8], rbx
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
mov qword [rax - 0x20], rdi
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r14
mov qword [rax - 0x40], r15
mov r12, rcx
xor r15d, r15d
mov rcx, r9
mov rsi, r9
mov r14, r8
mov rbp, rdx
mov r13d, 0xffffffff
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x42954e
mov rbx, rsi
nop
cmp word [rbx], 9
je 0x42954b
mov rcx, rsi
inc edi
add rbx, 2
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp edi, eax
jl 0x429530
jmp 0x42954e
mov r13d, edi
mov edx, dword [rsp + 0xa0]
mov rcx, rbp
call qword [sym.imp.GDI32.dll_SetTextColor]
cmp qword [r12 + 0x60], r15
mov rdi, qword [rsp + 0x58]
jne 0x4295ad
lea rcx, str.NULL_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, 6
mov rcx, rbp
call qword [sym.imp.GDI32.dll_GetCurrentObject]
test rax, rax
je 0x4295ad
lea r8, [r12 + 0x6c]
mov edx, 0x5c
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetObjectW]
lea rcx, [r12 + 0x6c]
call qword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov qword [r12 + 0x60], rax
cmp dword [r12 + reloc.MFC42u.dll_AfxThrowUserException], r15d
mov ebx, 0x100000
mov r9, r14
mov eax, ebx
mov r8d, r13d
mov rdx, rsi
cmovne eax, r15d
mov rcx, rbp
or eax, 0x24
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_DrawTextW]
cmp r13d, 0xffffffff
je 0x42960f
cmp dword [r12 + reloc.MFC42u.dll_AfxThrowUserException], r15d
lea eax, [r13 + 1]
mov r9, r14
movsxd rcx, eax
cmovne ebx, r15d
mov r8d, 0xffffffff
lea rdx, [rsi + rcx*2]
or ebx, 0x26
mov rcx, rbp
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_DrawTextW]
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x78
ret

Function at 0x42b7d0
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x48], rbx
xor ebx, ebx
test edx, edx
mov qword [rsp + 0x50], rsi
mov rsi, rcx
mov rcx, rbx
setne cl
lea r8, [rsp + 0x20]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
add rcx, 0xffffffff80000001
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
mov edi, eax
jne 0x42b82f
mov rcx, qword [rsp + 0x20]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x20]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
test edi, edi
mov rdi, qword [rsp + 0x58]
sete al
add rsp, 0x38
ret
Function at 0x42b850
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
sub rsp, 0xc78
mov rax, qword [0x004583d0]
mov qword [rsp + 0xc60], rax
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rbx, rcx
xor ecx, ecx
mov qword [r11 - 8], rdi
mov esi, edx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [rsp + 0x250]
mov r8d, CSocketWnd::CSocketWnd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x44]
xor edx, edx
mov r8d, 0x204
mov dword [rsp + 0x40], 0
call sub.msvcrt.dll_memset
xor eax, eax
lea rdi, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
lea r8, [rsp + 0x250]
repne scasw ax, word [rdi]
mov eax, dword [0x004396bc]
mov rcx, 0xffffffffffffffff
mov dword [rdi - 2], eax
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
xor edx, edx
nop
nop
movzx eax, word [r8 + rdx]
add rdx, 2
test ax, ax
mov word [rdi + rdx - 4], ax
jne 0x42b8f0
xor eax, eax
lea rdi, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rax, qword [str.___bg]
lea rcx, [rsp + reloc.MFC42u.dll_AfxDaoTerm]
mov qword [rdi - 2], rax
mov eax, dword [0x004396b8]
xor edx, edx
mov r8d, 0x7fc
mov dword [rsp + AfxDaoTerm], 0
mov dword [rdi + 6], eax
call sub.msvcrt.dll_memset
xor ecx, ecx
test esi, esi
setne cl
lea r8, [rsp + 0x30]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
add rcx, 0xffffffff80000001
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x460]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov rsi, qword [rsp + 0xc98]
jne 0x42ba20
lea rax, [rsp + 0x40]
lea rdi, [rsp + 0x460]
sub rdi, rax
nop
nop
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x42b9e3
add rax, 2
test ecx, ecx
jne 0x42b9d0
test edx, edx
je 0x42ba19
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x40]
mov r9d, 1
add eax, eax
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, 1
jmp 0x42ba22
xor eax, eax
mov rdi, qword [rsp + 0xc70]
mov rbx, qword [rsp + 0xc90]
mov rcx, qword [rsp + 0xc60]
call fcn.0042ec20
add rsp, 0xc78
ret
Function at 0x42ba50
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov r11, rsp
sub rsp, 0x488
mov rax, qword [0x004583d0]
mov qword [rsp + AfxDaoTerm], rax
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
mov rsi, rdx
mov ebp, r8d
lea rdx, [r11 - 0x238]
mov r8d, CSocketWnd::CSocketWnd
mov qword [r11 - 0x18], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x44]
xor ebx, ebx
xor edx, edx
mov r8d, 0x204
mov dword [rsp + 0x40], ebx
call sub.msvcrt.dll_memset
xor eax, eax
lea rdi, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
lea r8, [rsp + 0x250]
repne scasw ax, word [rdi]
mov eax, dword [0x004396bc]
mov rcx, 0xffffffffffffffff
mov dword [rdi - 2], eax
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
xor edx, edx
nop
movzx eax, word [r8 + rdx]
add rdx, 2
test ax, ax
mov word [rdi + rdx - 4], ax
jne 0x42bae0
xor eax, eax
lea rdi, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rax, qword [str.___bg]
mov rcx, rbx
mov qword [rdi - 2], rax
mov eax, dword [0x004396b8]
test ebp, ebp
setne cl
lea r8, [rsp + 0x30]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
add rcx, 0xffffffff80000001
mov dword [rdi + 6], eax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rbp, qword [rsp + 0x480]
test eax, eax
mov edi, eax
jne 0x42bb89
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x30]
lea r9d, [rdi + 1]
add eax, eax
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x478]
mov rbx, qword [rsp + 0x4a8]
test edi, edi
mov rdi, qword [rsp + 0x470]
sete al
mov rcx, qword [rsp + 0x460]
call fcn.0042ec20
add rsp, 0x488
ret