joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002952
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
cmp esi, 1
jb 0x10002b12
cmp esi, dword [ebx + 0x20]
ja 0x10002b12
movzx ecx, word [ebx + 0x14]
lea eax, [esi - 1]
mov dword [ebp - 4], ecx
imul eax, ecx
cmp esi, 1
jne 0x1000298a
add eax, 0x64
sub dword [ebp - 4], 0x64
push edi
push 0
push eax
push dword [ebx]
call dword [sym.imp.MSVCRT.dll_fseek]
push dword [ebp - 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebx]
mov edi, eax
push dword [ebp - 4]
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x20
cmp eax, dword [ebp - 4]
jne 0x10002b06
mov cl, byte [edi]
lea eax, [edi + 8]
and cl, 8
mov dword [ebp - 8], eax
cmp cl, 8
je 0x100029ea
and dword [ebp - 0x14], 0
push 4
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
add dword [ebp - 8], 4
mov ax, word [edi + 3]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
and dword [ebp - 0xc], 0
movzx eax, ax
mov dword [ebp - 0x18], eax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0xc], eax
jl 0x10002a11
mov byte [ebp - 0x14], 1
mov eax, dword [ebp - 8]
mov ax, word [eax]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, word [ebx + 0x14]
movzx ecx, ax
sub edx, 4
mov dword [ebp - 0x1c], ecx
cmp ecx, edx
jg 0x10002b06
test ax, ax
jbe 0x10002b06
mov al, byte [edi]
and al, 8
cmp al, 8
jne 0x10002acd
add ecx, edi
cmp esi, 1
mov dword [ebp - 0x10], ecx
jne 0x10002a56
sub dword [ebp - 0x10], 0x64
push 0x19
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor esi, esi
pop ecx
cmp eax, esi
je 0x10002a75
mov cl, byte [ebp + 0x13]
mov dword [eax + 9], esi
mov dword [eax + 0xd], esi
mov dword [eax + 0x11], esi
mov byte [eax + 5], cl
mov esi, eax
mov al, byte [ebp - 0x14]
and dword [esi + 0x15], 0
mov byte [esi], al
mov eax, dword [ebp + 8]
mov dword [esi + 1], eax
lea eax, [esi + 0x15]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0xc], eax
jge 0x10002b06
movzx eax, word [ebx + 0x14]
sub eax, dword [ebp - 0x1c]
push esi
mov ecx, ebx
push eax
push dword [ebp - 0x10]
call fcn.10002b1a
test al, al
je 0x10002ab4
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp - 0x20]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
add dword [ebp - 8], 2
add eax, edi
cmp dword [ebp - 8], eax
jae 0x10002b06
inc dword [ebp - 0xc]
mov esi, dword [ebp + 8]
jmp 0x100029ff
cmp esi, 1
lea eax, [ecx + edi]
jne 0x10002ad8
sub eax, 0x64
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [ebx + 0x20]
jae 0x10002ab4
mov esi, dword [ebp + 0xc]
push 0
push dword [ebp - 0x14]
mov ecx, ebx
push esi
push eax
call fcn.10002952
mov eax, dword [esi]
test eax, eax
je 0x10002ab4
add eax, 0x15
mov dword [ebp + 0xc], eax
mov eax, dword [eax]
jmp 0x10002af8
push edi
call fcn.10004b5a
pop ecx
mov al, 1
pop edi
jmp 0x10002b14
xor al, al
pop esi
pop ebx
leave
ret 0x10
Function at 0x10004989
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
lea eax, [ebp - 0x118]
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x118]
lea edi, [esi + 0x14]
push eax
push str._sTime.inf
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x14
push eax
push 0x10007158
push str.chrome
push str.Time
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_sscanf]
lea eax, [esi + 0x538]
push eax
lea eax, [ebp - 0x14]
push str._I64d
push eax
call ebx
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0x14]
push 0x14
push eax
push 0x10007158
push str.sogou
push str.Time
call edi
lea eax, [esi + 0x548]
push eax
lea eax, [ebp - 0x14]
push str._I64d
push eax
call ebx
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0x14]
push 0x14
push eax
push 0x10007158
push str.360se
push str.Time
call edi
lea eax, [esi + 0x540]
push eax
lea eax, [ebp - 0x14]
push str._I64d
push eax
call ebx
push 0x14
push 0
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0x14]
push 0x14
push eax
push 0x10007158
push str.liebao
push str.Time
call edi
add esi, 0x550
lea eax, [ebp - 0x14]
push esi
push str._I64d
push eax
call ebx
add esp, 0xc
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004b0d
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push 0xc750
and dword [esi + 0xc], 0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 8], eax
pop ecx
lea eax, [esp + 4]
mov dword [esi + 0x10], 0x400
push eax
push 0
push esi
push 0x10004ac7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
pop esi
je 0x10004b4f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10004b55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
pop eax
pop ecx
ret
Function at 0x403188
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebp, 0x147
push ebp
mov esi, ecx
push 0x80ae
call fcn.00402984
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call edi
push 0
push 0
push ebp
push 0x80af
mov ecx, esi
mov ebx, eax
call fcn.00402984
push eax
call edi
lea ecx, [esi + 0x90]
mov ebp, eax
call fcn.00411e96
xor eax, eax
cmp ebx, dword [esi + 0x94]
push 0
sete al
mov ecx, esi
push eax
push 0xf1
push 0xa04e
call fcn.00402984
push eax
call edi
xor eax, eax
cmp ebp, dword [esi + 0x94]
push 0
sete al
mov ecx, esi
push eax
push 0xf1
push 0xa04f
call fcn.00402984
push eax
call edi
xor eax, eax
cmp ebx, dword [esi + 0x94]
mov ecx, esi
sete al
push eax
push 0xa04e
call fcn.00402984
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
xor eax, eax
cmp ebp, dword [esi + 0x94]
mov ecx, esi
sete al
push eax
push 0xa04f
call fcn.00402984
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40377b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov ebx, ecx
je 0x4037e2
lea esi, [ebp - 0x400]
push edi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov word [esi], ax
inc edi
inc esi
inc esi
cmp edi, 0xff
jl 0x403796
mov esi, 0x1fe
push esi
lea eax, [ebp - 0x400]
push eax
lea edi, [ebx + 0x49c]
push edi
call dword [sym.imp.MSVCRT.dll__memicmp]
add esp, 0xc
test eax, eax
je 0x4037e2
push esi
lea eax, [ebp - 0x400]
push eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 1
pop eax
jmp 0x4037e4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40395b
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x41f618
call fcn.0041ef90
push ecx
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, 0x147
push ebx
mov esi, ecx
push 0x80ae
call fcn.00402984
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call edi
push 0
push 0
push ebx
push 0x80af
mov ecx, esi
mov ebp, eax
call fcn.00402984
push eax
call edi
lea ecx, [esp + 0x10]
mov ebx, eax
call sub.MFC42u.DLL_CString::CString_3
and dword [esp + 0x1c], 0
cmp dword [esp + 0x28], 0
mov eax, ebx
je 0x4039ba
mov eax, ebp
push eax
push 1
lea ecx, [esi + 0x90]
call fcn.00411e00
test eax, eax
je 0x403a50
xor eax, eax
cmp ebp, dword [esi + 0x94]
push 0
sete al
mov ecx, esi
push eax
push 0xf1
push 0xa04e
call fcn.00402984
push eax
call edi
xor eax, eax
cmp ebx, dword [esi + 0x94]
push 0
sete al
mov ecx, esi
push eax
push 0xf1
push 0xa04f
call fcn.00402984
push eax
call edi
xor eax, eax
cmp ebp, dword [esi + 0x94]
mov ecx, esi
sete al
push eax
push 0xa04e
call fcn.00402984
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
xor eax, eax
cmp ebx, dword [esi + 0x94]
mov ecx, esi
sete al
push eax
push 0xa04f
call fcn.00402984
push eax
call edi
or dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4050d8
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41f8f4
call fcn.0041ef90
push ecx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40511d
cmp dword [ebp + 0x10], esi
je 0x405141
push esi
push str.Create_Error_
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x405141
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 4]
push esi
lea edx, [ebp - 0x10]
push edx
push ecx
push eax
push edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x405978
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x41fa30
call fcn.0041ef90
sub esp, 0x24c
push ebx
push esi
push 1
pop esi
push 0x104
lea eax, [ebp - 0x258]
push eax
push dword [0x442fe8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x4059c1
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::operator_3
push 0x3c
lea eax, [ebp - 0x50]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x50], 0x3c
call sub.MFC42u.DLL_CString::CString_2
push ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x4c], ebx
call sub.MFC42u.DLL_CString::GetBuffer
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x34], esi
call sub.MFC42u.DLL_CString::CString_2
cmp dword [ebp + 0x10], ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
je 0x405a1d
mov dword [ebp - 0x44], str.runas
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp - 0x14]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405e04
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret
Function at 0x407c5d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
test byte [0x4565c1], 1
jne 0x407c96
or byte [0x4565c1], 1
mov eax, 0x19000
push eax
mov dword [0x4565cc], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [0x4565c8], eax
mov dword [esp], 0x407f70
call fcn.0041ef6d
pop ecx
mov eax, dword [0x4565cc]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
push 0x42a8f0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push dword [0x4565cc]
xor esi, esi
push esi
push dword [0x4565c8]
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 4]
push eax
push dword [0x4565c8]
lea eax, [ebp - 0x44]
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
mov ebx, VariantClear
push ebx
call esi
mov edi, 0xea
cmp eax, edi
jne 0x407d26
add dword [ebp - 4], 0x2800
mov eax, dword [ebp - 4]
push eax
push dword [0x4565c8]
mov dword [0x4565cc], eax
call dword [sym.imp.MSVCRT.dll_realloc]
pop ecx
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
push 0
mov dword [0x4565c8], eax
push 0
lea eax, [ebp - 0x44]
push eax
push ebx
call esi
jmp 0x407ced
mov eax, dword [ebp + 8]
mov ecx, dword [0x4565c8]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret 0xc
Function at 0x408085
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x41fe08
call fcn.0041ef90
sub esp, 0x258
push ebx
push esi
push 0x104
lea eax, [ebp - 0x264]
push eax
push dword [0x442fe8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [0x440650]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3c
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x5c], esi
call sub.MFC42u.DLL_CString::CString_1
push str.cmd.exe
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0041ec12
push ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x58], ebx
call sub.MFC42u.DLL_CString::GetBuffer
push 0x43ccd8
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x40], ebx
call fcn.0041eb9a
mov esi, eax
push str._k__
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041eb9a
lea ecx, [ebp - 0x264]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_operator_1
push esi
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, str.runas
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, ebx
je 0x4081a0
push 0xfefe
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4081b3
push dword [0x442ddc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x440650], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4081d8
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x41fe1c
call fcn.0041ef90
sub esp, 0x24c
push esi
push 0x104
lea eax, [ebp - 0x258]
push eax
push dword [0x442fe8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [0x440650]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3c
xor esi, esi
lea eax, [ebp - 0x50]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x50], 0x3c
call sub.MFC42u.DLL_CString::CString_1
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
mov dword [ebp - 0x4c], esi
call sub.MFC42u.DLL_CString::GetBuffer
push str.RESTART_DESKTOPOK_2018
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x34], 1
call fcn.0041eb9a
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, str.runas
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, esi
je 0x408290
push 0xfefe
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4082a3
push dword [0x442ddc]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x440650], eax
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x409c0a
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4201c8
call fcn.0041ef90
sub esp, 0x18
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionThemesPersonalize
lea ecx, [ebp - 0x18]
call fcn.0041eb9a
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 0x20019
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push bind
mov byte [ebp - 4], 1
call fcn.004066b4
or dword [ebp - 0x14], 0xffffffff
push str.AppsUseLightTheme
lea ecx, [ebp - 0x24]
call fcn.0041eb9a
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CString::CString
cmp dword [ebp - 0x14], 1
jne 0x409c9d
cmp dword [ebp - 0x10], ebx
je 0x409c99
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
mov bl, 1
jmp 0x409cae
cmp dword [ebp - 0x10], ebx
je 0x409cae
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40a5f2
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x420264
call fcn.0041ef90
push ecx
push ecx
and dword [ebp - 4], 0
push str.shell32.dll_Control_RunDLL
lea ecx, [ebp - 0x10]
call fcn.0041eb9a
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
push 5
push 0
push dword [ebp - 0x14]
push str.rundll32.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x40b01d
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x4420d0]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xc8], eax
je 0x40b04e
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [0x4417ec], ecx
mov ecx, 0x440fd0
call fcn.0041af88
mov eax, dword [0x4420d0]
cmp dword [esi + 0xc8], eax
jne 0x40b060
mov ecx, dword [esi + 0xcc]
cmp ecx, dword [0x440f48]
je 0x40b12a
mov dword [esi + 0xc8], eax
mov eax, dword [0x440f48]
push str.Set_Img_n
mov dword [esi + 0xcc], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
cmp dword [0x4420d0], ebx
push ebx
sete al
push eax
push 0xf1
push dword [esi + 0x18b8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 0xcc], ebx
jne 0x40b0af
cmp dword [esi + 0xc8], ebx
je 0x40b0af
push 1
pop eax
jmp 0x40b0b1
xor eax, eax
push eax
lea ecx, [esi + 0xe0]
call fcn.00413491
cmp dword [esi + 0xcc], 1
jne 0x40b0d3
cmp dword [esi + 0xc8], ebx
je 0x40b0d3
push 1
pop eax
jmp 0x40b0d5
xor eax, eax
push eax
lea ecx, [esi + 0xf78]
call fcn.00403944
cmp dword [esi + 0xc8], ebx
je 0x40b0f5
cmp dword [esi + 0x628], ebx
je 0x40b0f5
xor eax, eax
jmp 0x40b0f8
push 2
pop eax
push edi
push eax
lea edi, [esi + 0x1858]
push ebx
mov ecx, edi
call fcn.00415a29
cmp dword [esi + 0xc8], ebx
je 0x40b11c
cmp dword [esi + 0xfdc], ebx
je 0x40b11c
push 1
jmp 0x40b11e
push 3
pop eax
push eax
push 1
mov ecx, edi
call fcn.00415a29
pop edi
pop esi
pop ebx
ret
Function at 0x40b810
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.00409714
test eax, eax
je 0x40b8ac
cmp dword [esp + 8], 0x204
jne 0x40b842
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [esi + 0x20]
call fcn.00418614
pop ecx
mov ecx, esi
call fcn.0040b8b0
jmp 0x40b8ac
cmp dword [esp + 8], 0x201
jne 0x40b8ac
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40b8a1
push ebx
push edi
push 5
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
xor edi, edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0x20]
call ebx
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0x20]
call ebx
push 3
push edi
push edi
push edi
push edi
push edi
push dword [esi + 0x20]
call ebx
push dword [esi + 0x20]
call fcn.00418614
pop ecx
pop edi
pop ebx
jmp 0x40b8ac
push 0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4
Function at 0x40d18d
Capabilities:
Create thread

Disassembly:
mov eax, 0x4204c9
call fcn.0041ef90
sub esp, 0x18
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
mov eax, dword [esi]
call dword [eax + 4]
mov ebx, dword [esi + 0x54c]
mov edi, dword [esi + 0x548]
cmp edi, ebx
je 0x40d1cf
push dword [ebp + 0xc]
push edi
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
test al, al
pop ecx
pop ecx
jne 0x40d1cf
add edi, 0x10
jmp 0x40d1b6
mov eax, dword [esi + 0x54c]
xor ebx, ebx
cmp edi, eax
jne 0x40d222
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea eax, [ebp - 0x24]
push eax
lea ecx, [esi + 0x544]
mov dword [ebp - 4], ebx
call fcn.0040df92
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [esi + 0x4e4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edi, [esi + 0x508]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 8
call sub.MFC42u.DLL_operatornew
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
lea ecx, [ebp + 0x10]
push ecx
push ebx
push eax
push 0x40d9ac
push ebx
push ebx
mov dword [eax], esi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x1c
cmp eax, ebx
je 0x40d28a
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x4cc]
lea ecx, [esi + 0x4c8]
lea edx, [ebp - 0x14]
push edx
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0040dfa3
jmp 0x40d2a8
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
mov ecx, esi
push str.AddClient
push str._beginthreadex_...__failure
push str.UMServer.log
call fcn.0040e3da
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc