joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d5364
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4d536d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040685c
xor eax, eax
push ebp
push 0x4d556d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x4d558c
call fcn.004068c8
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00406900
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4d5545
mov eax, edi
xor edx, edx
call fcn.00406874
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00406874
mov eax, dword [ebp - 0x18]
call fcn.004041cc
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4d553c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
push esi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
jne 0x4d5415
call fcn.00405984
jmp 0x4d5545
lea eax, [ebp - 8]
mov edx, 0x4d559c
call fcn.004068c8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
call fcn.00406900
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
jne 0x4d544a
call fcn.00405984
jmp 0x4d5545
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
shr eax, 0x10
movzx eax, ax
mov edx, 4
call fcn.00412e4c
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
movzx eax, word [eax]
mov edx, 4
call fcn.00412e4c
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
pop ecx
call fcn.00406d30
push 0x4d55dc
push dword [ebp - 0xc]
push 0x4d558c
lea eax, [ebp - 8]
mov edx, 3
call fcn.00406e14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
mov ecx, 0x4d560c
mov edx, dword [ebp - 8]
call fcn.00406d30
mov eax, dword [ebp - 0x2c]
call fcn.00406900
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4d54e3
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x20]
call fcn.00413c10
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x10]
call fcn.00406874
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x34]
mov ecx, 0x4d5638
mov edx, dword [ebp - 8]
call fcn.00406d30
mov eax, dword [ebp - 0x34]
call fcn.00406900
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4d5526
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x20]
call fcn.00413c10
mov edx, dword [ebp - 0x38]
mov eax, edi
call fcn.00406874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5543
mov eax, dword [ebp - 0x1c]
call fcn.00404200
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5574
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.0040686c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040686c
ret
Function at 0x4d69b4
Capabilities:
Shutdown system

Disassembly:
push ebx
add esp, 0xffffffd8
mov ebx, 6
mov eax, dword [0x4e5e2c]
cmp dword [eax], 2
jne 0x4d6a31
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4d6a31
lea eax, [esp + 0xc]
push eax
push 0x4d6a44
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
cmp eax, 1
sbb eax, eax
inc eax
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
mov edx, 0x10
xor ecx, ecx
mov dword [esp + 4], ecx
test al, al
je 0x4d6a31
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x1c]
push eax
push edx
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push ebx
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x28
pop ebx
ret

Function at 0x4d845c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff99c
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040685c
xor eax, eax
push ebp
push 0x4d856b
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 1
xor eax, eax
push ebp
push 0x4d8549
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x40e]
mov edx, dword [ebp - 4]
call fcn.00413980
lea edx, [ebp - 8]
xor eax, eax
call fcn.00407300
lea eax, [ebp - 0x60e]
mov edx, dword [ebp - 8]
call fcn.00413980
lea eax, [ebp - 0x654]
xor ecx, ecx
mov edx, 0x44
call fcn.0040477c
mov dword [ebp - 0x654], 0x44
mov dword [ebp - 0x628], 1
mov word [ebp - 0x624], bx
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x654]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x40e]
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4d851d
call fcn.00405984
jmp 0x4d8550
push 0xffffffffffffffff
mov eax, dword [ebp - 0x664]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x664]
push eax
call sub.kernel32.dll_GetExitCodeProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8550
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8572
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040686c
ret

Function at 0x4d8d84
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathW
mov edx, ebx
mov eax, esp
call fcn.00413c10
add esp, 0x20c
pop ebx
ret
Function at 0x4d8dac
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d8e68
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.004d8d84
push dword [ebp - 8]
push dword [ebx + 0x3b0]
push 0x4d8e84
lea eax, [ebp - 4]
mov edx, 3
call fcn.00406e14
mov edx, dword [ebx + 0x394]
mov eax, ebx
call fcn.004d8578
mov eax, dword [ebp - 4]
call fcn.00413380
test al, al
je 0x4d8e0e
mov eax, dword [ebp - 4]
call fcn.00406900
push eax
call sub.kernel32.dll_DeleteFileW
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3bc]
call fcn.004d2a84
mov eax, dword [ebp - 4]
call fcn.004d845c
mov eax, dword [ebp - 4]
call fcn.00413380
test al, al
je 0x4d8e3e
mov eax, dword [ebp - 4]
call fcn.00406900
push eax
call sub.kernel32.dll_DeleteFileW
mov edx, dword [ebx + 0x394]
mov eax, ebx
call fcn.004d85b0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8e6f
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040686c
ret
Function at 0x44a948
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x450bb0]
cmp dword [eax + 0x30], 0
je 0x44a9f2
cmp dword [ebx + 0x94], 0
jne 0x44a9ec
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a8d8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44a9ec
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44a9b2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44a9ec
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413b84
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a9c1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44b550
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44b585
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004042d0
jmp 0x44b592
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404234
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44c624
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44c665
mov eax, esi
call fcn.00432ec0
test al, al
je 0x44c665
mov eax, dword [ebx + 0x84]
call fcn.00432c60
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44c665
push 0
mov eax, dword [ebx + 0x84]
call fcn.00432c60
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x44d140
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x44cf60
call fcn.00406064
xor eax, eax
push ebp
push 0x44d198
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x44efb8]
mov eax, dword [eax]
call fcn.0044b90c
mov eax, dword [0x44efb8]
mov eax, dword [eax]
call fcn.0044b924
push 5
push 0
push 0
push 0x44d1a4
push 0
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d19f
ret
Function at 0x401f8a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edi
lea eax, [ebp - 0xc]
push eax
xor esi, esi
lea eax, [ebp - 8]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomains95599.cn
push SysReAllocStringLen
mov dword [ebp - 0xc], esi
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40207c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push str.easyabc
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x40201e
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push str.http
push dword [ebp - 4]
mov dword [ebp - 0x10], 2
call edi
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push str.https
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x465fd0
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x402073
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push str.http
push dword [ebp - 4]
mov dword [ebp - 0x10], 2
call edi
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push str.https
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomains_abchina.com
push SysReAllocStringLen
call ebx
test eax, eax
jne 0x4020fa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x465fd0
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x4020f1
push 4
pop ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push str.http
push dword [ebp - 4]
mov dword [ebp - 0x10], 2
call edi
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push str.https
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4036a9
Capabilities:
Check if file exists
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp dword [eax - 0xc], esi
jne 0x4036ce
lea ecx, [eax - 0x10]
call fcn.004010f6
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004010f6
xor eax, eax
jmp 0x40374c
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 0xc], esi
je 0x4036b7
push ebx
push edi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x403702
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, esi
je 0x403771
cmp eax, 0x80004004
je 0x403751
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 3
jl 0x4036e7
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010f6
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004010f6
mov eax, esi
pop edi
pop ebx
pop esi
pop ebp
ret 8
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010f6
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004010f6
xor eax, eax
jmp 0x40374a
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x403732
xor esi, esi
inc esi
jmp 0x403732
Function at 0x403f74
Capabilities:
Read .ini file

Disassembly:
push 0x20c
mov eax, 0x4604a6
call fcn.004469c9
mov ebx, ecx
xor edi, edi
push 0x207
lea eax, [ebp - 0x217]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebx + 0xd0], edi
mov byte [ebp - 0x218], 0
call fcn.00446500
mov esi, 0x208
push esi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00446500
add esp, 0x18
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push esi
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, str.version
push eax
push eax
call edi
lea ecx, [ebx + 0xc8]
test eax, eax
jne 0x404005
push 0x465c28
call fcn.004017f7
xor esi, esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010f6
mov eax, esi
call fcn.00446a4c
ret 4
lea eax, [ebp - 0x218]
push eax
call fcn.004017f7
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00446500
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push esi
push eax
push 0
push str.Updatetime
push str.update
call edi
test eax, eax
jne 0x40404e
and dword [ebx + 0xd0], eax
and dword [ebx + 0xcc], eax
jmp 0x40406b
lea eax, [ebp - 0x218]
push eax
mov dword [ebx + 0xd0], 1
call fcn.004489ea
pop ecx
mov dword [ebx + 0xcc], eax
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00446500
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push esi
push eax
push 0
push str.Adr1
push str.update
call edi
lea ecx, [ebx + 0xbc]
test eax, eax
jne 0x4040a7
push 0x465c28
jmp 0x4040ae
lea eax, [ebp - 0x218]
push eax
call fcn.004017f7
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00446500
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push esi
push eax
push 0
push str.Adr2
push str.update
call edi
lea ecx, [ebx + 0xc0]
test eax, eax
jne 0x4040ef
push 0x465c28
jmp 0x4040f6
lea eax, [ebp - 0x218]
push eax
call fcn.004017f7
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00446500
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push esi
push eax
push 0
push str.Adr3
push str.update
call edi
lea ecx, [ebx + 0xc4]
test eax, eax
jne 0x404137
push 0x465c28
jmp 0x40413e
lea eax, [ebp - 0x218]
push eax
call fcn.004017f7
xor esi, esi
inc esi
jmp 0x403ff0
Function at 0x404223
Capabilities:
Check mutex on windows

Disassembly:
push 0x110
mov eax, 0x46052a
call fcn.004469c9
mov esi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.00401484
mov edi, str.7CA774A0_0E38_4ae3_BB76_InterPass_ABC
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00403c08
push str._certreg_single_instance_msgid
lea ecx, [ebp - 0x2c]
call fcn.00403c25
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x404270
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [esi + 0xe0], eax
cmp eax, ebx
jne 0x404293
push ebx
push 0x10
push str.Can_not_initialize.
call fcn.00431fd8
jmp 0x4043df
lea ecx, [ebp - 0x118]
call fcn.00425d0f
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.004258af
test al, al
je 0x4042ca
push dword [esi + 0xe0]
mov ecx, esi
call fcn.0040250a
push 0x40c
mov ecx, esi
call fcn.0040250a
push edi
lea ecx, [ebp - 0x2c]
call fcn.00403c08
push str._certreg_single_instance
lea ecx, [ebp - 0x2c]
call fcn.00403c25
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4042ec
lea eax, [ebp - 0x28]
push eax
push ebx
mov ecx, 0x47f98c
call fcn.00425f28
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0xec], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404344
cmp byte [esi + 0xe8], bl
jne 0x40434c
mov eax, dword [esi + 0xec]
cmp eax, ebx
je 0x40432b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 2
push dword [esi + 0xe0]
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4043d1
cmp byte [esi + 0xe8], bl
je 0x404351
push ebx
push 1
jmp 0x40432e
push ebx
call fcn.00434455
mov dword [esp], 0x784
call fcn.00429336
pop ecx
mov ecx, eax
mov dword [ebp - 0x11c], ecx
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x404384
push ebx
push dword [esi + 0xe0]
call fcn.0040ce4f
mov edi, eax
jmp 0x404386
xor edi, edi
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x4043d1
push ebx
mov dword [esi + 0x20], edi
mov eax, dword [edi]
push 0x66
mov ecx, edi
call dword [eax + 0x13c]
cmp eax, ebx
je 0x4043d1
cmp byte [esi + 0xdc], bl
je 0x4043be
push ebx
push 3
push dword [esi + 0xe0]
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
mov dword [esi + 0x20], ebx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], bl
call fcn.004258cd
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004014e8
xor eax, eax
call fcn.00446a4c
ret
Function at 0x405a28
Capabilities:
Extract resource via kernel32 functions
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x47d550]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
mov ecx, 0x47f8a0
mov dword [ebp - 0x7c], eax
call fcn.00425888
test al, al
je 0x405b07
push ebx
push esi
push str.hotplug.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x405b05
push 5
push 0x14a
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x405afe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x405afe
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
push 0x103
mov edi, eax
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.00446500
add esp, 0xc
push 0x104
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
mov dword [ebp - 0x80], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x80]
pop edi
cmp eax, ebx
je 0x405afe
cmp eax, dword [ebp + 0x9c]
jg 0x405afe
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x9c]
push dword [ebp - 0x7c]
call fcn.0044a29d
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
xor eax, eax
call fcn.004464e5
add ebp, 0x90
leave
ret

Function at 0x405b1e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x47d550]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x77]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x78], bl
call fcn.00446500
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 1
push ebx
push str.SoftwareEnterSafeInterPass_ABChina
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ba6
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405b9d
xor al, al
jmp 0x405be2
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov edi, dword [ebp + 0x9c]
lea eax, [ebp - 0x78]
push eax
push edi
push esi
call fcn.0044a29d
push esi
call fcn.00446130
add esp, 0x10
cmp eax, 8
jbe 0x405bdf
push 6
lea eax, [esi + 3]
push eax
add edi, 0xfffffffe
lea eax, [esi + 2]
push edi
push eax
call fcn.0044604f
add esp, 0x10
mov byte [esi + 8], bl
mov al, 1
pop edi
mov ecx, dword [ebp + 0x8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004464e5
add ebp, 0x90
leave
ret
Function at 0x405e52
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x47d550]
xor eax, ebp
mov dword [ebp + 0x190], eax
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
xor edi, edi
call fcn.00446500
and dword [ebp - 0x7c], edi
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x405ec2
lea eax, [ebp - 0x7c]
push eax
push 1
lea eax, [ebp - 0x78]
push eax
push edi
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
jne 0x405ec2
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0xc], 2
jne 0x405ec2
inc edi
cmp dword [ebp - 0x7c], 0
je 0x405ed0
push dword [ebp - 0x7c]
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, dword [ebp + 0x190]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.004464e5
add ebp, 0x194
leave
ret

Function at 0x405ee8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 4
pop eax
mov ecx, 0x47f8a0
xor esi, esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.004258af
test al, al
je 0x405f56
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405f56
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405f4d
cmp dword [ebp - 0x10], esi
setne al
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x406c38
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x6b6], 0
je 0x406c5f
call fcn.00406443
push 0
push dword [esi + 0x248]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
pop esi
jmp fcn.004314a8
pop esi
ret