joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d60
Capabilities:
Get disk information via ioctl
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4089a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0040809a
mov ebx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
movsx eax, bl
push eax
xor esi, esi
push str.__c:
push ecx
mov dword [esp + 0x38], esi
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or ebp, 0xffffffff
cmp edi, ebp
je 0x402e0c
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x20]
push 0xc
push ecx
push esi
push esi
push 0x2d1080
push edi
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x402df5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402e0c
cmp dword [esp + 0x14], 0xc
je 0x402e05
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402e0c
cmp dword [esp + 0x18], 7
je 0x402e2e
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], ebp
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
mov dword [esi], edx
mov dword [ebp], eax
mov ecx, dword [esi]
push ecx
call fcn.00401fa0
push ebx
call fcn.00401e20
mov edx, dword [esi]
push edx
push eax
call fcn.00401f30
mov esi, eax
add esp, 0x10
test esi, esi
je 0x402e71
push str.get_part_list_Succ.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x402eb0
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x4089cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0040809a
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
xor ebp, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x130], ebp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x24]
xor edi, edi
test al, al
lea esi, [esp + 0x24]
mov bl, 0x44
je 0x402f86
mov al, byte [esi]
cmp al, 0x43
je 0x402f78
movsx ecx, al
push ecx
lea edx, [esp + 0x14]
push 0x40d5c8
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x402f78
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp eax, 1
ja 0x402f84
jb 0x402f68
cmp ecx, 0x40000000
ja 0x402f84
cmp eax, ebp
jb 0x402f78
ja 0x402f72
cmp ecx, edi
jbe 0x402f78
mov bl, byte [esi]
mov edi, ecx
mov ebp, eax
mov al, byte [esi + 4]
add esi, 4
test al, al
jne 0x402f0e
jmp 0x402f86
mov bl, byte [esi]
lea ecx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x128]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret

Function at 0x402fc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [esp + 4]
pop edi
add esp, 0x104
ret

Function at 0x4030d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x4030ec
xor al, al
add esp, 0x94
ret
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 4]
cmp eax, 5
jae 0x403111
mov al, 1
add esp, 0x94
ret
jne 0x403137
mov eax, dword [esp + 8]
test eax, eax
jne 0x403124
mov al, 2
add esp, 0x94
ret
cmp eax, 1
je 0x403148
cmp eax, 2
jne 0x403148
mov al, 4
add esp, 0x94
ret
cmp eax, 6
jb 0x403148
call fcn.004030c0
add esp, 0x94
ret
mov al, 3
add esp, 0x94
ret
Function at 0x403170
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov eax, dword [esp + 0x14]
and eax, 0xffff
push str.SETUPFILES
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4031d5
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
lea edx, [esp + 0xc]
push 0
push edx
push ebx
push eax
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, ebx
pop edi
pop esi
pop ebx
sete al
pop ecx
ret
Function at 0x403250
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4089eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0
push eax
push str.CLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp]
test edx, edx
je 0x4033e1
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
lea eax, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0x40dc8c
push edx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0
call sub.MFC42.DLL_CString::MakeLower
push str.http:__
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x403335
lea eax, [esp + eax + 0x14]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
mov edx, dword [esp + 4]
mov word [eax], 0
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push eax
push 0x40dc8c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
jmp 0x4033c6
push str.www.
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40337e
lea ecx, [esp + eax + 0x14]
lea edi, [esp + 0x14]
xor eax, eax
lea edx, [esp + 0x14]
mov word [ecx], 0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x14]
push 0x40dc8c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
jmp 0x4033c6
push str.about:wz
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x4033cc
lea edx, [esp + eax + 0x14]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov word [edx], 0
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [esp + 8]
push eax
push 1
push 0
push 0x40dc8c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x404de0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x408d4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call fcn.0040809a
mov esi, dword [esi + 4]
lea ecx, [esp + 4]
push esi
push 0x400
push 0x400
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov esi, dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
Function at 0x405110
Capabilities:
Get common file path
Get session user name
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408e2b
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov ecx, 0xd
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
mov edi, str._USERPROFILE_
mov esi, ebp
repe cmpsb byte [esi], byte es:[edi]
jne 0x40529e
mov ecx, 0x41
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov bl, byte [esp + 0x24]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x128]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x128]
push edx
push eax
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push 0x80000002
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x14]
cmp edx, esi
je 0x40529e
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x18], 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push ecx
push eax
push esi
push str.ProfilesDirectory
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
call fcn.0040809a
lea ecx, [esp + 0x128]
lea edx, [esp + 0x31]
movsx eax, bl
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str._c:_s_s
push ecx
mov dword [esp + 0x248], esi
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0xd]
push ecx
push edx
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x234], 0xffffffff
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x4056c0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408e70
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, ecx
push edi
push ebp
lea ebx, [esi + 0x70]
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
lea edi, [esi + 0x74]
push ebp
mov ecx, edi
call sub.MFC42.DLL_CString::operator_1
push 1
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
mov cl, byte [esp + 0x20]
lea ebp, [esi + 0x98]
mov byte [eax], cl
push 5
mov ecx, ebp
call sub.MFC42.DLL_CWnd::ShowWindow
push str..
lea edx, [esp + 0x24]
push ebx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov ecx, esi
push eax
mov dword [esp + 0x1c], 0
call fcn.00405df0
lea ecx, [esp + 0x20]
mov edi, eax
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call fcn.0040809a
mov eax, dword [ebx]
push edi
push eax
lea ecx, [esp + 0x2c]
push str.Dir:__s__Count:_d
push ecx
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x34]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xb8]
and edi, 0xffff
shl edi, 0x10
push edi
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov ecx, esi
mov dword [esi + 0x80], 0
call fcn.00405f00
push 0x40dc8c
push 0x3f5
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push 0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::ShowWindow
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x405bb0
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x968
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x97c]
lea eax, [esp + 0x18]
push eax
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x405dd6
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x770]
push edi
push ecx
call ebp
mov edx, dword [esp + 0x980]
lea eax, [esp + 0x568]
push edx
push eax
call ebp
mov edi, dword [sym.imp.MSVCRT.dll__mbsrchr]
lea ecx, [esp + 0x770]
push 0x5c
push ecx
call edi
lea edx, [esp + 0x570]
push 0x5c
push edx
mov byte [eax + 1], 0
call edi
mov byte [eax + 1], 0
add esp, 0xc
lea eax, [esp + 0x56c]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00406040
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
test byte [esp + 0x18], 0x10
je 0x405d34
lea ecx, [esp + 0x44]
push 0x40db78
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x405da1
lea edx, [esp + 0x44]
push 0x40db74
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x405da1
lea eax, [esp + 0x770]
lea ecx, [esp + 0x360]
push eax
push ecx
call ebp
lea edx, [esp + 0x44]
lea eax, [esp + 0x360]
push edx
push eax
call edi
lea ecx, [esp + 0x360]
push str..
push ecx
call edi
lea edx, [esp + 0x568]
lea eax, [esp + 0x158]
push edx
push eax
call ebp
lea ecx, [esp + 0x44]
lea edx, [esp + 0x158]
push ecx
push edx
call edi
push ecx
lea eax, [esp + 0x15c]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00406040
test eax, eax
je 0x405d0c
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x158]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x158]
push str..
push eax
call edi
lea ecx, [esp + 0x158]
lea edx, [esp + 0x360]
push ecx
push edx
mov ecx, esi
call fcn.00405bb0
jmp 0x405da1
lea eax, [esp + 0x770]
lea ecx, [esp + 0x360]
push eax
push ecx
call ebp
lea edx, [esp + 0x44]
lea eax, [esp + 0x360]
push edx
push eax
call edi
lea ecx, [esp + 0x568]
lea edx, [esp + 0x158]
push ecx
push edx
call ebp
lea eax, [esp + 0x44]
lea ecx, [esp + 0x158]
push eax
push ecx
call edi
lea edx, [esp + 0x158]
push 0
lea eax, [esp + 0x364]
push edx
push eax
call ebx
mov edx, dword [esi + 0x80]
mov ecx, esi
inc edx
mov eax, edx
mov dword [esi + 0x80], edx
push eax
call fcn.00406000
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405c4e
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x968
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x968
ret 8
Function at 0x405df0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x554
push ebp
push esi
mov esi, dword [esp + 0x560]
lea eax, [esp + 0xc]
push edi
push eax
mov ebp, ecx
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x405ef1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x35c]
push esi
push ecx
call ebx
lea edx, [esp + 0x35c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 8
mov byte [eax + 1], 0
test byte [esp + 0x14], 0x10
je 0x405ebe
lea eax, [esp + 0x40]
push 0x40db78
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x405ebf
lea ecx, [esp + 0x40]
push 0x40db74
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x405ebf
lea edx, [esp + 0x35c]
lea eax, [esp + 0x154]
push edx
push eax
call ebx
lea ecx, [esp + 0x40]
lea edx, [esp + 0x154]
push ecx
push edx
call esi
lea eax, [esp + 0x154]
push str..
push eax
call esi
lea ecx, [esp + 0x154]
push ecx
mov ecx, ebp
call fcn.00405df0
add edi, eax
jmp 0x405ebf
inc edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405e4c
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x554
ret 4
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x554
ret 4
Function at 0x406040
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x408ef3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], ebx
call fcn.0040809a
mov edx, dword [esp + 0x234]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1c]
mov ebp, dword [edx - 8]
lea esi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
mov byte [esp + 0x234], 1
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call esi
cmp eax, 1
jne 0x4060fb
lea ecx, [esp + 0x10]
mov byte [esp + 0x22c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x234]
mov dword [esp + 0x22c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x4061a8
sub ebp, 2
cmp ebp, ebx
jle 0x406114
cmp byte [esp + ebp + 0x1c], 0x5c
je 0x406112
mov byte [esp + ebp + 0x1c], bl
dec ebp
cmp ebp, ebx
jg 0x406102
cmp ebp, ebx
je 0x40617f
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x1c]
call fcn.00406040
cmp eax, ebx
je 0x40617f
mov eax, dword [esp + 0x234]
push ebx
push eax
call esi
test eax, eax
mov byte [esp + 0x22c], bl
lea ecx, [esp + 0x10]
je 0x40618a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x234]
mov dword [esp + 0x22c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x4061a8
mov byte [esp + 0x22c], bl
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x234]
mov dword [esp + 0x22c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x220
ret 4
Function at 0x4044f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x427020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push 0x42373c
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40453d
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d409
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x423734
push 0x80
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d409
mov esp, ebp
pop ebp
ret
Function at 0x404a50
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ecx
lea ecx, [ebp - 4]
call fcn.00401130
mov eax, dword [eax]
test eax, eax
je 0x404a69
mov eax, dword [eax]
jmp 0x404a6b
xor eax, eax
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [ebp - 4]
mov ebx, eax
test esi, esi
je 0x404ac1
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
jne 0x404ac1
test esi, esi
je 0x404ac1
mov eax, dword [esi]
test eax, eax
je 0x404aa1
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x404ab8
push eax
call fcn.0040d418
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.0040d418
add esp, 4
test ebx, ebx
jns 0x404acd
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
not bl
movzx eax, bl
shr eax, 4
pop esi
and eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405920
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x427020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x40596f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager___Faild__d____n
call fcn.0040e145
add esp, 8
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d409
mov esp, ebp
pop ebp
ret
push edi
push str.OpenSCManager___ok____n
call fcn.0040e145
add esp, 4
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4059ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService___Faild__d____n
call fcn.0040e145
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
xor edi, edi
jmp 0x405a29
push str.OpenService___ok____n
call fcn.0040e145
add esp, 4
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4059e4
call edi
push eax
push str.ControlService___Faild__d___n
call fcn.0040e145
add esp, 8
jmp 0x4059f1
push str.ControlService___ok___n
call fcn.0040e145
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x405a0e
call edi
push eax
push str.DeleteSrevice___Faild__d___n
call fcn.0040e145
add esp, 8
jmp 0x405a1b
push str.DelServer:eleteSrevice___ok___n
call fcn.0040e145
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, 1
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d409
mov esp, ebp
pop ebp
ret