joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024fe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push esi
push edi
xor esi, esi
push 0x206
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x6a]
push esi
push eax
mov edi, ecx
mov word [ebp - 0x6c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x402549
mov edi, dword [edi + 4]
jmp 0x40254c
add edi, 4
cmp dword [0x4e1058], 8
mov eax, dword [0x4e1044]
jae 0x40255f
mov eax, 0x4e1044
push edi
push eax
push 0x4ab3bc
lea eax, [ebp - 0x6c]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll__snwprintf]
add esp, 0x14
lea eax, [ebp - 0x70]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x6c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x70], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40263f
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
lea eax, [ebp - 0x74]
push eax
push esi
lea eax, [ebp - 0x78]
push eax
push esi
mov ebx, 0x4ab3c8
push ebx
push dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
call edi
cmp eax, esi
je 0x4025d1
mov esi, eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40263e
mov eax, dword [ebp - 0x74]
add eax, 2
push eax
call fcn.0049555c
cmp eax, esi
pop ecx
mov dword [ebp - 0x7c], eax
jne 0x4025ec
mov esi, 0xe00c001e
jmp 0x4025c4
lea ecx, [ebp - 0x74]
push ecx
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push ebx
push dword [ebp - 0x70]
call edi
mov edi, eax
cmp edi, esi
jne 0x40262a
cmp dword [ebp - 0x78], 1
jne 0x40262a
mov eax, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
push str..Pipe_
mov word [ebx + eax], si
call dword [0x4aa3c4]
mov ecx, dword [ebp - 0x80]
push ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x7c]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, edi
pop ebx
mov ecx, dword [ebp + 0x19c]
pop edi
xor ecx, ebp
pop esi
call fcn.00495616
add ebp, 0x1a0
leave
ret 4

Function at 0x4028fe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x402930
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40293c
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x402907
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c0009
jmp 0x402937
Function at 0x402943
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x402975
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402981
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x40294c
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c000b
jmp 0x40297c
Function at 0x402e87
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
push esi
mov dword [0x4e0804], edi
call fcn.0040300d
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0xc], eax
jne 0x402fa7
xor esi, esi
inc esi
mov dword [esp + 0xc], esi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x402ec9
call fcn.0040353a
cmp eax, ebx
jne 0x402fa7
push str.6E8BF4D4_75FE_4e6e_8F22_E2AC2E900DF3
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
jne 0x402ee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402ef7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x402ef5
call esi
jmp 0x402ef7
xor eax, eax
cmp eax, ebx
je 0x402f2c
cmp dword [0x4e07f4], ebx
jne 0x402fa7
push str.kxetrayDF737DA7_CDCC_4e53_BE4F_96706694ED9F
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x402fa7
push ebx
push ebx
push dword [0x4e08dc]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x402fa7
call fcn.0047b444
test eax, eax
je 0x402f77
lea eax, [esp + 0x10]
push eax
mov esi, vtable.KMsgBoxActor.0
lea eax, [esp + 0x18]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x28], bl
mov dword [esp + 0x30], edi
call fcn.00481b17
mov dword [esp + 0x10], esi
lea esi, [esp + 0x14]
call fcn.00481beb
jmp 0x402fa7
call fcn.00402c55
call fcn.00422680
call fcn.004215d6
test eax, eax
je 0x402f91
call fcn.0042187c
jmp 0x402f96
call fcn.004217e5
cmp dword [0x4e07f0], ebx
je 0x402fa3
call fcn.00408146
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403bac
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [0x4e05ac]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x20], esi
je 0x403bd2
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
jmp 0x403bd6
mov dword [esp + 0x10], esi
cmp dword [esp + 0x10], esi
jne 0x403bea
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x403c17
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [esp + 0x10], eax
je 0x403c17
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x403c17
push esi
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x20], 1
push dword [esp + 0x10]
mov ebx, edi
mov dword [edi + 0x320], esi
call fcn.00404119
mov edx, eax
cmp edx, esi
mov dword [esp + 0x18], edx
jne 0x403c45
push 1
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x403d32
call fcn.00407b88
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
lea ebx, [edi + 4]
push ebx
call fcn.00407a3b
cmp dword [edi + 0x314], esi
je 0x403cd5
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x14]
je 0x403cb5
push 1
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x14]
je 0x403cd5
push esi
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
call fcn.00404288
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx]
mov dword [edi + 0x320], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x20], esi
je 0x403d1e
push 1
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [esp + 0x10], esi
je 0x403d1e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx]
jne 0x403d1e
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x24]
call fcn.00407b88
push dword [ebx]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4071dc
Capabilities:
Get file size
Read file on windows

Disassembly:
push 8
mov eax, 0x4a4518
call fcn.0049cb58
mov esi, ecx
mov eax, dword [esi]
xor edi, edi
cmp dword [eax - 0xc], edi
mov dword [ebp - 0x14], edi
je 0x4072c0
mov eax, dword [0x4dff94]
mov ecx, 0x4dff94
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push dword [esi]
push str._s_d._s
push eax
call fcn.00408085
add esp, 0x14
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x4072b5
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, edi
je 0x4072ac
mov esi, dword [ebp + 0xc]
push edi
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebx + 0xa]
push eax
mov dword [ebp + 8], edi
call fcn.00406b55
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x4072a3
cmp dword [ebp + 8], ebx
jne 0x4072a3
mov eax, ebx
call fcn.004071c3
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401291
xor eax, eax
inc eax
jmp 0x4072c3
xor eax, eax
mov edx, esi
call fcn.00406adb
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401291
mov eax, dword [ebp - 0x14]
call fcn.0049cc30
ret 0xc

Function at 0x40731c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push dword [esp + 0x10]
mov esi, eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40737e
push ebx
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x407354
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x407358
xor eax, eax
jmp 0x40737d
push edi
push eax
lea eax, [edi + 1]
push eax
call fcn.00406b55
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, edi
call fcn.004071c3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
ret
Function at 0x408146
Capabilities:
Delete registry value

Disassembly:
push 0xc
mov eax, 0x4a086d
call fcn.0049cb58
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, 0x4b2ad8
mov dword [ebp - 0x18], 2
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
mov eax, dword [esi]
cmp eax, edi
je 0x4081a9
cmp word [eax], di
je 0x4081a9
mov eax, dword [esi - 4]
mov ecx, dword [esi - 8]
lea edx, [ebp - 0x14]
push edx
push 0xf003f
push edi
push eax
push ecx
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4081a3
push dword [esi]
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x4081b6
or dword [ebp - 4], 0xffffffff
jmp 0x4081d1
push dword [esi - 4]
push dword [esi - 8]
call fcn.0047b78e
pop ecx
pop ecx
cmp eax, edi
je 0x4081c2
cmp eax, 2
je 0x4081c2
inc dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp ebx, edi
je 0x4081d1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xc
dec dword [ebp - 0x18]
jne 0x408163
mov eax, dword [ebp - 0x10]
call fcn.0049cc30
ret
Function at 0x40925b
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, eax
mov dword [esp + 0x18], esi
jne 0x40929a
mov eax, dword [0x4e05ac]
cmp eax, esi
je 0x409285
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
jmp 0x409288
mov dword [ebp + 8], esi
cmp dword [ebp + 8], esi
jne 0x40929a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x4092c4
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp + 8], eax
je 0x4092c4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4092c4
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x18], 1
push dword [ebp + 8]
mov ebx, edi
mov dword [edi + 0x320], esi
call fcn.004095d3
mov edx, eax
cmp edx, esi
mov dword [esp + 0x10], edx
jne 0x4092f0
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x4093d9
call fcn.00407b88
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
lea ebx, [edi + 4]
push ebx
call fcn.00407a3b
cmp dword [edi + 0x314], esi
je 0x40937f
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xc]
je 0x40935f
push 1
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xc]
je 0x40937f
push esi
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_AttachThreadInput]
call fcn.00404288
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx]
mov dword [edi + 0x320], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x18], esi
je 0x4093c5
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp + 8], esi
je 0x4093c5
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx]
jne 0x4093c5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x1c]
call fcn.00407b88
push dword [ebx]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40aa33
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
test byte [esi + 0xe], 2
je 0x40aa89
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
sub eax, ecx
je 0x40aa7a
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
sub edx, eax
je 0x40aa7a
push 0x11
xor edx, edx
push edx
push edx
add ecx, 0xfffffffc
push ecx
add eax, 0xfffffffc
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x40aa89
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0xe], 0xfd
leave
ret 4

Function at 0x40aa8d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 1
jne 0x40aaaa
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0xe], 0xfd
jmp 0x40ab08
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
je 0x40ab0d
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
je 0x40ab0d
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x40ab08
or byte [esi + 0xe], 4
mov al, byte [esi + 0xe]
test al, 2
jne 0x40aaff
push dword [ebp + 8]
or al, 2
push esi
mov byte [esi + 0xe], al
call fcn.0040ab20
push 8
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40ab08
cmp dword [esi + 0x10], edi
je 0x40ab08
mov byte [esi + 0x14], 1
mov dword [esi + 0x10], edi
jmp 0x40ab1c
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0xe], 0xfd
leave
ret 8

Function at 0x40f867
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
inc edi
cmp eax, 0xf
mov esi, ecx
jne 0x40f896
mov ecx, dword [ebp + 0x18]
lea eax, [esi + 0x98]
mov dword [eax], edi
and dword [ecx], 0
cmp dword [eax], 0
je 0x40f8cd
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 2
jne 0x40f8ee
push dword [esi + 0x10]
mov dword [esi + 0x98], edi
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x40f8c7
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40f8c7
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [esi + 0x98], 0
jne 0x40f88d
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c12a
jmp 0x40f88f
cmp eax, 0x47
jne 0x40f913
push dword [ebp + 0x14]
lea ebx, [esi + 0x98]
mov eax, esi
mov dword [ebx], edi
call fcn.0040f939
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [ebx], 0
jmp 0x40f88b
cmp eax, 0x18
jne 0x40f8cd
mov eax, dword [ebp + 0x10]
lea ebx, [esi + 0x98]
mov dword [ebx], edi
call fcn.0040fa03
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [ebx], 0
jne 0x40f88d
jmp 0x40f8cd
Function at 0x4149db
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x278]
cmp dword [edi], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x414a06
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov eax, dword [esi + 0x26c]
cmp eax, ebx
je 0x414ad3
push eax
call fcn.0040762f
mov edi, eax
cmp edi, ebx
pop ecx
je 0x414a88
push ebx
push esi
push 2
pop eax
mov ecx, edi
call fcn.00414659
mov eax, dword [esi + 0x26c]
cmp eax, dword [esi + 0x268]
jne 0x414a88
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.00407a07
mov eax, dword [edi + 0x40]
cmp eax, ebx
je 0x414a77
cmp word [eax], bx
je 0x414a77
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x414a88
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x414a88
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
mov dword [esi + 0x26c], ebx
je 0x414ad3
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push dword [esi + 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
leave
ret 0xc
Function at 0x41865d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x9c
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0xc
mov eax, 0x49de22
call fcn.0049cb58
lea ecx, [ebp]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor esi, esi
push 0x4b3e2c
lea ecx, [ebp]
mov dword [ebp - 4], esi
call dword [0x4aa3c4]
push str.9B7A98EC_7EF9_468c_ACC8_37C793DBD7E0
lea ecx, [ebp]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str.Implemented_Categories_
lea ecx, [ebp]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str.A5F7140E_4311_4ef9_AABC_F55941B5EBE5
lea ecx, [ebp]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
mov dword [ebp - 0x10], esi
jae 0x4186d6
lea eax, [ebp + 4]
lea ecx, [ebp - 0x10]
push ecx
push 1
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x41871f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00495616
add ebp, 0xa0
leave
ret
push 0x7e
lea eax, [ebp + 0x1e]
push esi
push eax
mov word [ebp + 0x1c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push str.idex
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 0x80
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x41876a
lea eax, [ebp + 0x1c]
push eax
mov ecx, edi
call dword [0x4aa3c4]
xor esi, esi
inc esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4186ed
Function at 0x4187e3
Capabilities:
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x4db020]
xor eax, esp
mov dword [esp + 0x194], eax
and word [esp], 0
push 0x18e
lea eax, [esp + 6]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x418847
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push str.localhost
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [esp + 0x194]
mov eax, dword [ebp + 8]
xor ecx, esp
call fcn.00495616
mov esp, ebp
pop ebp
ret 4

Function at 0x41885e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp + 0x13]
push eax
call fcn.004187e3
push str.kxetray.log
lea esi, [ebp - 8]
call fcn.0047ac42
lea ecx, [ebp - 4]
push ecx
mov ecx, eax
call fcn.00407fbe
pop ecx
pop ecx
mov ecx, dword [eax]
call fcn.0047f131
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401291
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401291
push dword [ebp + 0x10]
mov esi, 0x4e08f4
push str.kxetray::start_cmdline:_ws
call fcn.0047f2a9
pop ecx
pop ecx
push str.kdump.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
cmp eax, ebx
je 0x418904
push str.KxEOpenDumpMonitorEx2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x418904
push ebx
push ebx
push eax
push 0x418778
push ebx
push ebx
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
push 0xa
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, ebx
je 0x418904
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], 8
mov dword [ebp - 8], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push str.kxetray::Init_com_end
call fcn.0047f2a9
pop ecx
push dword [ebp + 0x10]
push 0x4e0800
call fcn.004012a9
mov edi, dword [ebp + 8]
call fcn.00402e87
mov edi, eax
cmp edi, ebx
jne 0x418950
call fcn.00402fb1
mov edi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
push dword [ebp + 0x10]
push str.kxetray::end__ws_return__d
call fcn.0047f2a9
add esp, 0xc
call fcn.0047f249
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10