joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b313
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x40b3b5
push 0x400
xor ebx, ebx
lea eax, [ebp - 0x404]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, ebx
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
push dword [esi + 0x415278]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x40b3ad
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b36f
sub ecx, edx
je 0x40b3ad
cmp byte [ebp + ecx - 0x405], 0x5c
jne 0x40b397
lea eax, [ecx - 1]
mov ecx, eax
cmp eax, 0x400
jae 0x40b3cb
mov byte [ebp + eax - 0x404], bl
push ecx
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x40b3c6
add esi, 4
cmp esi, 8
jb 0x40b34c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d990
leave
ret
xor eax, eax
inc eax
jmp 0x40b3b7
call fcn.0040dfae
int3

Function at 0x40b6a4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0xc30], esi
je 0x40b6d6
cmp dword [edi + 0xc34], esi
je 0x40b6d6
xor eax, eax
inc eax
jmp 0x40b805
cmp dword [ebp + 8], esi
jne 0x40b6e2
xor eax, eax
jmp 0x40b805
push 0x410
lea eax, [ebp - 0x418]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
pop ecx
pop ecx
push dword [ebp + 8]
mov edx, 0x82
push ecx
lea ecx, [ebp - 0x418]
call fcn.0040b42a
mov ebx, 0x104
lea ecx, [ebp - 0x418]
push 0x4147c4
mov edx, ebx
call fcn.0040b3d1
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
jne 0x40b74a
push str._CptShareAPIWrapper::Init__Failed_to_call_SetDllDirectory_to:
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x410
lea eax, [ebp - 0x828]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
pop ecx
pop ecx
lea eax, [ebp - 0x418]
mov edx, 0x82
push eax
push ecx
lea ecx, [ebp - 0x828]
call fcn.0040b42a
push str.ucrtbase.dll
mov edx, ebx
lea ecx, [ebp - 0x828]
call fcn.0040b3d1
push 8
push esi
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push str.CptShare.dll
mov edx, ebx
lea ecx, [ebp - 0x418]
call fcn.0040b3d1
push ecx
lea ecx, [ebp - 0x418]
call fcn.0040b4e4
mov ecx, eax
lea eax, [edi + 0xc34]
mov dword [edi + 0xc30], ecx
mov dword [eax], esi
test ecx, ecx
je 0x40b7f4
push str.cpt_create_helper
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
lea eax, [edi + 0xc34]
test ebx, ebx
je 0x40b7f4
push eax
mov ecx, ebx
call dword [0x411670]
call ebx
pop ecx
lea eax, [edi + 0xc34]
cmp dword [edi + 0xc30], esi
je 0x40b803
cmp dword [eax], esi
je 0x40b803
xor esi, esi
inc esi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d990
leave
ret 8
Function at 0x40b816
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40b8da
mov ecx, esi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40b83d
sub ecx, edx
sar ecx, 1
je 0x40b8da
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b8da
push 0x410
lea eax, [ebp - 0x414]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x207
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x414]
push eax
push edi
push 0x411cd4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40b8ce
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b8da
lea esi, [ebp - 0x414]
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40b8dd
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d990
leave
ret 4
Function at 0x40bb70
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x4104d0
call fcn.0040ec98
push ecx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_class_Cmm::CStringT_wchar_t__const__]
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push 0x4147c4
mov dword [ebp - 4], ebx
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_wchar_t_const__]
push str.Installer.exe
lea ecx, [ebp - 0x64]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_wchar_t_const__]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_class_Cmm::CStringT_wchar_t__const__]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
push str._upgrade
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_wchar_t_const__]
mov byte [ebp - 4], 2
call dword [sym.imp.Cmmlib.dll_public:_static_class_Cmm::CommandLine____cdecl_Cmm::CommandLine::ForCurrentProcess_void_]
mov esi, eax
test esi, esi
je 0x40bbf7
push str.___prevParam
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_wchar_t_const__]
push esi
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
call fcn.004010d0
test eax, eax
jne 0x40bc18
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public:_wchar_t_const____thiscall_Cmm::CStringT_wchar_t_::c_str_void_const]
push ebx
xor edx, edx
mov ecx, eax
call fcn.0040182c
pop ecx
test eax, eax
je 0x40bc3f
push 1
push ebx
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public:_wchar_t_const____thiscall_Cmm::CStringT_wchar_t_::c_str_void_const]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public:_wchar_t_const____thiscall_Cmm::CStringT_wchar_t_::operator_wchar_t_const__void_const]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
cmp eax, 0x20
setg bl
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
mov eax, ebx
call fcn.0040ec53
ret
Function at 0x40bc59
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x14]
mov word [ebp - 8], 0x500
push eax
mov esi, ecx
lea eax, [ebp - 0xc]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x220
push 0x20
push 2
push eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40bcbe
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop esi
call fcn.0040d990
leave
ret

Function at 0x40bcce
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0xf01ff
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40bcfb
xor al, al
jmp 0x40bd72
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0x12
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [ebp - 0xc], 3
jne 0x40bd41
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x13
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40bd50
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
jmp 0x40bd53
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40bd67
call fcn.0040bc59
push dword [ebp - 4]
mov bl, al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
leave
ret
Function at 0x40bd75
Capabilities:
Encode data using xor

Disassembly:
push 0x28
mov eax, 0x41050e
call fcn.0040ec98
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x30], edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], edi
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_void_]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.Cmmlib.dll_unsigned_char____cdecl_Cmm::base64Decode_class_Cmm::CStringT_wchar_t__const___unsigned_int__]
mov dword [ebp - 0x34], eax
pop ecx
pop ecx
test eax, eax
je 0x40bdfb
mov ecx, dword [ebp - 0x30]
test cl, 1
jne 0x40bdf3
xor esi, esi
mov bl, 1
mov edx, esi
test ecx, ecx
je 0x40bdd2
xor byte [edx + eax], bl
inc bl
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, dword [ebp - 0x34]
cmp edx, ecx
jb 0x40bdc2
shr ecx, 1
cmp word [eax + ecx*2 - 2], si
je 0x40bde7
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.Cmmlib.dll_void___cdecl_Cmm::base64FreeDecodeBuffer_unsigned_char___]
jmp 0x40bdfa
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_Cmm::CStringT_wchar_t_::assign_wchar_t_const__]
jmp 0x40bddb
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_class_Cmm::CStringT_wchar_t__const__]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
mov eax, edi
call fcn.0040ec53
ret

Function at 0x40be18
Capabilities:
Get common file path

Disassembly:
push 0x424
mov eax, 0x410568
call fcn.0040ec98
mov esi, ecx
mov dword [ebp - 0x42c], esi
xor ebx, ebx
lea eax, [ebp - 0x424]
push 0x412
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x430], esi
push eax
mov dword [ebp - 0x428], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x424]
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.system32msiexec.exe
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, 0x41540c
mov ecx, esi
push edi
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_wchar_t_const__]
lea eax, [ebp - 0x424]
mov dword [ebp - 4], ebx
push eax
mov ecx, esi
mov dword [ebp - 0x428], 1
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_wchar_t_const__]
push edi
mov ecx, esi
call dword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____thiscall_Cmm::CStringT_wchar_t_::operator_wchar_t_const__]
mov eax, esi
call fcn.0040ec53
ret
Function at 0x43903b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push str.open
lea esi, [ebp - 0x14]
mov edi, eax
call fcn.00416bfe
xor ebx, ebx
push 0x3c
xor esi, esi
lea eax, [ebp - 0x50]
push ebx
inc esi
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
call fcn.00449660
add esp, 0xc
cmp dword [ebp + 0x10], 2
jb 0x4390ad
cmp dword [edi + 0xc], esi
ja 0x43907d
lea esi, [edi + 0x18]
jmp 0x439083
mov eax, dword [edi + 8]
mov esi, dword [eax + 4]
call fcn.004184a9
cmp word [eax], 0
je 0x4390ad
cmp dword [edi + 0xc], 1
ja 0x439099
lea esi, [edi + 0x18]
jmp 0x43909f
mov eax, dword [edi + 8]
mov esi, dword [eax + 4]
call fcn.004184a9
push eax
call fcn.00416034
pop ecx
mov ebx, eax
cmp dword [ebp + 0x10], 3
jb 0x4390d3
cmp dword [edi + 0xc], 2
ja 0x4390be
lea esi, [edi + 0x18]
jmp 0x4390c4
mov eax, dword [edi + 8]
mov esi, dword [eax + 8]
call fcn.004184a9
push eax
call fcn.00416034
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 4
jb 0x439115
cmp dword [edi + 0xc], 3
ja 0x4390e4
lea esi, [edi + 0x18]
jmp 0x4390ea
mov eax, dword [edi + 8]
mov esi, dword [eax + 0xc]
call fcn.004184a9
cmp word [eax], 0
je 0x439115
cmp dword [edi + 0xc], 3
ja 0x439100
lea esi, [edi + 0x18]
jmp 0x439106
mov eax, dword [edi + 8]
mov esi, dword [eax + 0xc]
call fcn.004184a9
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00416d00
cmp dword [ebp + 0x10], 5
jb 0x439137
cmp dword [edi + 0xc], 4
ja 0x439126
lea eax, [edi + 0x18]
jmp 0x43912c
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x10]
call fcn.0041858e
movzx eax, ax
mov dword [ebp - 8], eax
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00449660
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp dword [edi + 0xc], 0
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], pe_nt_image_headers32
mov dword [ebp - 0x44], eax
ja 0x439168
lea esi, [edi + 0x18]
jmp 0x43916d
mov eax, dword [edi + 8]
mov esi, dword [eax]
call fcn.004184a9
mov edi, dword [ebp - 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test ebx, ebx
mov esi, eax
je 0x43919b
push ebx
call fcn.00449078
pop ecx
test edi, edi
je 0x4391a6
push edi
call fcn.00449078
pop ecx
test esi, esi
jne 0x4391ef
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x294], 1
jne 0x4391cb
push 0xffffffffffffffff
call fcn.0041fe6d
push eax
push 0x87
call fcn.0041fcd4
inc esi
jmp 0x4391e3
xor ecx, ecx
push 0
inc ecx
mov eax, ebx
call fcn.0042159c
mov esi, dword [ebp + 0x14]
push 0
call fcn.00418a14
xor esi, esi
push dword [ebp - 0x14]
call fcn.00449078
mov eax, esi
jmp 0x439226
cmp byte [ebp + 0xc], 0
je 0x439203
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x810], eax
jmp 0x43921c
mov esi, dword [ebp + 0x14]
push 1
call fcn.00418a14
cmp dword [ebp - 0x18], 0
je 0x43921c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x14]
call fcn.00449078
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x455edd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x467978], ebx
push esi
push edi
jne 0x455f5d
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x455f98
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x467978], eax
je 0x455f98
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x46797c], eax
call esi
cmp dword [0x4673cc], 2
mov dword [0x467980], eax
jne 0x455f5d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x467988], eax
je 0x455f5d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x467984], eax
mov eax, dword [0x467984]
test eax, eax
je 0x455fa2
call eax
test eax, eax
je 0x455f89
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x467988]
test eax, eax
je 0x455f89
test byte [ebp - 8], 1
jne 0x455fa2
cmp dword [0x4673d8], 4
jb 0x455f9c
or byte [ebp + 0x12], 0x20
jmp 0x455fc1
xor eax, eax
jmp 0x455fd1
or byte [ebp + 0x12], 4
jmp 0x455fc1
mov eax, dword [0x46797c]
test eax, eax
je 0x455fc1
call eax
mov ebx, eax
test ebx, ebx
je 0x455fc1
mov eax, dword [0x467980]
test eax, eax
je 0x455fc1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x467978]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012c0
Capabilities:
Get file attributes
Hide graphical window
Query or enumerate registry value

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_BeginPaint]
push edi
push 0
push 0
mov dword [esp + 0x18], 0
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push 0
call ebx
mov ebp, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push 0
call ebp
lea eax, [esp + 0x14]
push eax
push str.Software
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4013a8
lea ecx, [esp + 0x18]
push ecx
push 0x5f
push 0x405784
call fcn.0040372c
mov edx, dword [esp + 0x20]
add esp, 8
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40139d
push eax
push eax
mov dword [esp + 0x24], 4
call esi
push 0
push 0
call edi
push 0
call ebx
push 0
call ebp
mov eax, dword [esp + 0x128]
push eax
lea ecx, [esp + 0x24]
push 0x405780
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret

Function at 0x4013c0
Capabilities:
Get file attributes
Hide graphical window
Set registry value

Disassembly:
sub esp, 0x210
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [esp + 4]
push eax
push str.Software
push SysReAllocString
call esi
test eax, eax
jne 0x401477
lea ecx, [esp + 8]
push ecx
push 0x5f
push 0x405784
call fcn.0040372c
mov edx, dword [esp + 0x10]
add esp, 8
push eax
push edx
call esi
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x401470
push 0
push 0
call dword [sym.imp.USER32.dll_BeginPaint]
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [esp + 0x218]
push eax
lea ecx, [esp + 0x10]
push 0x405778
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x14]
add esp, 0xc
push 4
lea edx, [esp + 0x220]
push edx
push 4
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 8]
push edx
call esi
mov eax, dword [esp + 4]
push eax
call esi
pop esi
add esp, 0x210
ret
Function at 0x401480
Capabilities:
Get file attributes
Hide graphical window

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_BeginPaint]
push ebp
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push esi
push edi
xor esi, esi
mov edi, eax
mov dword [esp + 0x10], esi
add edi, 8
lea esp, [esp]
mov eax, dword [esi + 0x4057e8]
cmp eax, dword [esp + 0x18]
jne 0x40150a
mov ecx, dword [esi + 0x4057ec]
push 0
push 0
mov dword [edi - 8], ecx
call ebx
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov edx, dword [esi + 0x4057f0]
mov ecx, dword [esp + 0x10]
mov dword [edi - 4], edx
mov eax, dword [esi + 0x4057f4]
push 0
inc ecx
mov dword [edi], eax
push 0
mov dword [esp + 0x18], ecx
add edi, 0xc
call ebx
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
add esi, 0x10
cmp esi, 0x90
jb 0x4014a0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
cmp eax, 3
pop ebx
mov eax, 0x18
je 0x40152a
mov eax, dword [esp]
pop ecx
ret
Function at 0x401530
Capabilities:
Find taskbar
Get file attributes
Hide graphical window
Hide the windows taskbar

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x204
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_BeginPaint]
push edi
xor eax, eax
push eax
mov ecx, 0x7e
lea edi, [esp + 0x1c]
push eax
rep stosd dword es:[edi], eax
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [ebp + 8]
push 0
push 0
mov dword [esp + 0x20], 0x1e8
mov dword [esp + 0x28], 0x67
mov dword [esp + 0x34], eax
call esi
push 0
push 0
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov ecx, dword [0x409644]
push 0
push 0
mov dword [esp + 0x2c], 3
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c0], 0x1b7740
mov dword [esp + 0x30], 0x800
call esi
push 0
push 0
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp dword [ebp + 0xc], 3
je 0x4016b0
push 0
push 0
mov dword [esp + 0x204], 2
call esi
push 0
push 0
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [0x409638]
lea edx, [eax + eax*2]
mov ecx, dword [edx*4 + 0x407220]
test ecx, ecx
je 0x401638
push 0x3f
push ecx
lea eax, [esp + 0x1c4]
push eax
call fcn.004031d0
mov eax, dword [0x409638]
add esp, 0xc
lea ecx, [eax + eax*2]
mov eax, dword [ecx*4 + 0x407224]
test eax, eax
je 0x40165c
push 0xff
push eax
lea edx, [esp + 0xc0]
push edx
call fcn.004031d0
add esp, 0xc
push 0
push 0
call esi
push 0
push 0
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
test eax, eax
setne cl
cmp eax, 1
mov dword [esp + 0x10], ecx
je 0x4016b8
push 0
push 0
mov dword [0x409640], 0x7530
call esi
push 0
push 0
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
or dword [esp + 0x24], 0x10
jmp 0x4016b8
mov dword [esp + 0x10], 2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0
push 0
call esi
push 0
push 0
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
mov dword [esp + 0x14], eax
je 0x401740
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push str.RedrawWindow
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0
push 0
mov dword [esp + 0x18], eax
call esi
push 0
push 0
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401740
mov ecx, dword [esp + 0x14]
push 0x181
push 0
push 0
push ecx
call eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret