joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d17
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x150], edi
je 0x408d72
mov eax, dword [esi + 0x154]
mov dword [esi + 0x158], 1
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x150]
push 0x1f4
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408d6c
mov edx, dword [esi + 0x150]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x150]
push eax
call ebx
mov dword [esi + 0x150], edi
mov eax, dword [esi + 0x14c]
cmp eax, 0xffffffff
je 0x408d8a
push eax
call ebx
mov dword [esi + 0x14c], 0xffffffff
mov eax, dword [esi + 0x154]
cmp eax, edi
je 0x408d9d
push eax
call ebx
mov dword [esi + 0x154], edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x44]
cmp eax, edi
je 0x408e3c
push ebp
mov ebx, dword [esi + 0x24]
add ebx, 4
dec eax
cmp eax, edi
mov dword [esi + 0x24], ebx
mov ecx, ebx
mov dword [esi + 0x44], eax
je 0x408dc8
cmp ecx, dword [esi + 0x20]
jne 0x408e30
mov eax, dword [esi + 0x28]
lea ecx, [eax + 4]
mov dword [esi + 0x28], ecx
mov edx, dword [eax]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esi + 0x44]
add esp, 4
cmp eax, edi
jne 0x408e14
lea ebx, [esi + 0x1c]
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
lea ebx, [esi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x3c]
push eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x408e30
mov eax, dword [esi + 0x28]
lea ebp, [esi + 0x1c]
mov ecx, dword [eax]
mov dword [ebp], ecx
mov ebx, ecx
lea edx, [ecx + 0x1000]
mov dword [ebp + 4], edx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x44]
cmp eax, edi
jne 0x408db0
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4092f0
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
cmp byte [esi + 1], 0x3a
jne 0x409312
push esi
push 0x41fc7c
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x409357
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 8]
push esi
push edx
push 0x41fc7c
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
pop edi
push 0x41fc7c
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop esi
jne 0x409373
push eax
push 0x41fc7c
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x104
ret
Function at 0x40af30
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41300b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
mov eax, dword [esp + 0x144]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, ecx
push ebx
push ebx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
call fcn.00405590
push ebx
push ebx
push ebx
push 0x41d6b0
lea ecx, [esp + 0x28]
mov dword [esp + 0x15c], ebx
call fcn.00405f90
mov esi, eax
mov eax, str.Success
cmp esi, ebx
jne 0x40af96
mov eax, str.Failed
push eax
push str.CNetSession::DownloadFile_SendRequest_Result_:__s_n
push 1
call fcn.00404a50
add esp, 0xc
cmp esi, ebx
je 0x40b098
lea ecx, [esp + 0x18]
call fcn.00405de0
mov esi, eax
cmp esi, 0xc8
jne 0x40b07c
lea ecx, [esp + 0x18]
call fcn.00405da0
mov edi, eax
push edi
push str.CNetSession::DownloadFile_Content_Len___d_n
push 1
call fcn.00404a50
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00405d90
cmp edi, ebx
mov ebp, eax
jbe 0x40b098
push ebx
push 0x80
push 2
push ebx
mov ebx, dword [esp + 0x168]
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b05e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ecx, dword [esp + 0x14]
push eax
push 0x41efac
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
call esi
push eax
push ebx
push str.CNetSession::DownloadFile
push 3
call fcn.00404a50
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x14c], 0xffffffff
call fcn.00405990
xor eax, eax
jmp 0x40b0ae
lea edx, [esp + 0x10]
push 0
push edx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
jmp 0x40b098
push esi
push str.CNetSession::DownloadFile_HTTP
push edi
call sub.MFC42.DLL_CString::Format
push esi
push str.CNetSession::DownloadFile_failed_with_status___d_n
push 1
call fcn.00404a50
add esp, 0x18
lea ecx, [esp + 0x18]
mov dword [esp + 0x14c], 0xffffffff
call fcn.00405990
mov eax, ebx
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret 8
Function at 0x40bea0
Capabilities:
Set current directory

Disassembly:
push 0x104
push 0x420280
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x420280
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x420280
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x420280
push 0x420384
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.config.ini
push 0x420384
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x420384
push str.ConfigPath_:__s_n
push 0
call fcn.00404a50
add esp, 0xc
ret

Function at 0x40bf00
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x420384
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40bfba
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x420384
push 0
push str.Enable
push str.SYSCONFIG
call esi
test eax, eax
mov dword [0x42027c], eax
je 0x40bf86
mov eax, dword [0x41f070]
push 0x420384
push eax
push str.Port
push str.SYSCONFIG
call esi
push 0x420384
push 0x40
push str.106.15.183.123
push str.106.15.183.123
push str.Server
push str.SYSCONFIG
mov dword [0x41f070], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [0x41f070]
push ecx
push str.106.15.183.123
push str.LoadServerConfig_Use_Server_Info_from_config_:__s:_d_n
jmp 0x40bf97
mov edx, dword [0x41f070]
push edx
push str.106.15.183.123
push str.LoadServerConfig_Use_Default_Server_Info__:__s:_d_n
push 1
call fcn.00404a50
add esp, 0x10
push 0x420384
push 0
push str.NoUpdate
push str.SYSCONFIG
call esi
mov dword [0x420488], eax
pop esi
ret
Function at 0x40c560
Capabilities:
Check if file exists
Create directory
Set current directory

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x170]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edi, [ebx + 0x274]
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push str._scripts
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push str.WorkDir___s_n
push 1
call fcn.00404a50
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40c5d9
push str.scripts
push 1
call fcn.00404a50
add esp, 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebp
lea ebp, [ebx + 0x378]
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x41f3f8
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
push str.ScriptPath___s_n
push 1
call fcn.00404a50
add esp, 0xc
lea edi, [ebx + 0x6c]
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x41d3b4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push str.DataDir___s_n
push 1
call fcn.00404a50
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop ebp
jne 0x40c659
push str.data
push 1
call fcn.00404a50
add esp, 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add ebx, 0x64
push edi
push str._slogo.bmp
push ebx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebx]
push eax
push str.LogoBitmap_Path___s_n
push 1
call fcn.00404a50
add esp, 0x18
pop edi
pop esi
pop ebx
ret
Function at 0x40c960
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, dword [esi + 0x68]
cmp ecx, edi
je 0x40c984
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esi + 0x68]
cmp ecx, edi
je 0x40c981
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x68], edi
mov eax, dword [esi + 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40c9dd
push str.CWBEClientDlg::LoadLogoBitmap_load_from_local_file._n
push edi
call fcn.00404a50
mov eax, dword [esi + 0x64]
add esp, 8
push 0x10
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
mov ebx, eax
cmp ebx, edi
je 0x40ca26
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, edi
je 0x40c9d5
mov ecx, eax
mov dword [eax + 4], edi
mov dword [eax], 0x418468
mov dword [esi + 0x68], ecx
push ebx
jmp 0x40ca1f
xor ecx, ecx
push ebx
mov dword [esi + 0x68], ecx
jmp 0x40ca1f
push str.CWBEClientDlg::LoadLogoBitmap_load_from_resource_n
push edi
call fcn.00404a50
push 8
call sub.MFC42.DLL_operatornew
add esp, 0xc
cmp eax, edi
je 0x40ca01
mov dword [eax + 4], edi
mov dword [eax], 0x418468
mov edi, eax
push 0x82
push 2
push 0x82
mov dword [esi + 0x68], edi
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, eax
push edi
push 0x41f460
push 1
call fcn.00404a50
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x40ca40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x413273
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push esi
mov esi, ecx
push 0x3ee
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x3ee
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
push eax
lea ecx, [esp + 0x40]
call fcn.0041218a
mov eax, dword [esi + 0x68]
lea ecx, [esp + 0x24]
push ecx
push 0x18
mov edx, dword [eax + 4]
mov dword [esp + 0xa0], 0
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 4]
call sub.MFC42.DLL_CDC::CDC
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
mov byte [esp + 0x98], 1
and eax, edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 8]
call sub.MFC42.DLL_CDC::Attach
test eax, eax
jne 0x40cb1c
lea ecx, [esp + 4]
mov byte [esp + 0x98], al
call fcn.004122da
lea ecx, [esp + 0x3c]
mov dword [esp + 0x98], 0xffffffff
call sub.MFC42.DLL_CPaintDC::CPaintDC
xor eax, eax
pop esi
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
add esp, 0x98
ret
mov esi, dword [esi + 0x68]
test esi, esi
jne 0x40cb27
xor eax, eax
jmp 0x40cb2a
mov eax, dword [esi + 4]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 8]
sub edx, eax
lea eax, [esp + 4]
neg eax
sbb eax, eax
push 0xcc0020
and eax, esi
mov esi, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x30]
push esi
push 0
push 0
push eax
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
lea ecx, [esp + 4]
mov byte [esp + 0x98], 0
call fcn.004122da
lea ecx, [esp + 0x3c]
mov dword [esp + 0x98], 0xffffffff
call sub.MFC42.DLL_CPaintDC::CPaintDC
mov ecx, dword [esp + 0x90]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x98
ret
Function at 0x40cbd8
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x413290
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x480]
mov dword [esp + 0x14], 0
mov ecx, dword [eax + 0x1e4]
push ecx
push str.Logo
push 1
call fcn.00404a50
add esp, 0xc
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esi + 0x6c]
lea eax, [esp + 4]
push edx
push str._slogo_new.bmp
push eax
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esi + 0x480]
mov edx, dword [esp + 0x10]
add esp, 0xc
mov eax, dword [ecx + 0x1e4]
push edx
push eax
call fcn.0040af30
test eax, eax
je 0x40cc93
mov eax, dword [esi + 0x64]
push 1
push eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, esi
call fcn.0040c960
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push 0x41f4e4
push 3
call fcn.00404a50
add esp, 8
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40ce90
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x40ce9d
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40ceb0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
ret
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40ceef
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, 1
pop esi
ret
Function at 0x40d9c0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x40da01
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d9f6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x40da14
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x40f3b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40f3bb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x40f4be
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x419dcc]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x419dcc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x419dcc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x419dcc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x419dcc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x419dcc]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x419dcc]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x419dcc]
xor eax, edx
inc ecx
dec edi
jne 0x40f3d6
pop edi
test esi, esi
je 0x40f4e0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x419dcc]
xor eax, edx
inc ecx
dec esi
jne 0x40f4c2
pop esi
pop ebx
not eax
ret
Function at 0x411950
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x118]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x104
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x124]
not ecx
dec ecx
sub edx, ecx
lea ecx, [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsnbcat]
mov al, byte [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x18
lea esi, [esp + 0xc]
test al, al
je 0x4119f7
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
cmp al, 0x5c
je 0x4119d4
cmp al, 0x2f
jne 0x4119ef
lea edx, [esp + 0xc]
mov byte [esi], 0
push edx
call edi
cmp eax, 0xffffffff
jne 0x4119ec
lea eax, [esp + 0xc]
push 0
push eax
call ebx
mov byte [esi], 0x5c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4119ca
lea ecx, [esp + 0xc]
push 0
push ecx
call ebx
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x42be44
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebx
mov ebx, dword [esp + 4]
lea ebx, [ebx + 0x3e]
xchg dword [esp + 4], ebx
mov dword [esp + 4], ebx
mov ebx, dword [esp]
lea esp, [esp + 4]
add dword [esp], 0x517f
xchg dword [esp], edx
push ebp
mov ebp, esp
leave
xchg dword [esp + 4], edx
push ebx
mov ebx, dword [esp + 4]
lea ebx, [ebx + 0x67]
xchg dword [esp + 4], ebx
mov dword [esp + 4], ebx
mov ebx, dword [esp]
lea esp, [esp + 4]
xchg dword [esp], edx
push esi
mov esi, dword [esp + 4]
lea esi, [esi + 3]
xchg dword [esp + 4], esi
mov dword [esp + 4], esi
mov esi, dword [esp]
lea esp, [esp + 4]
popfd
lea edx, [edx]
jmp 0x430fa0
call fcn.00448284
mov ecx, 0x767c4246
and ah, byte [ecx + 0x5d5a]
xchg edi, ebx
lea esp, [esp - 4]
mov dword [esp], edi
mov edi, ebx
mov ebx, dword [esp]
pushfd
push ebp
mov ebp, esp
leave
call 0x430fc8
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x69]
xchg dword [esp + 4], ecx
mov dword [esp + 4], ecx
mov ecx, dword [esp]
lea esp, [esp + 4]
add dword [esp], 0xffff968c
xchg dword [esp], edx
push eax
mov eax, ecx
pop eax
xchg dword [esp + 4], edx
pushfd
add ebp, 0x7b
popfd
lea ebp, [ebp - 0x7b]
xchg dword [esp], edx
push esi
mov esi, dword [esp + 4]
lea esi, [esi + 0x68]
xchg dword [esp + 4], esi
mov dword [esp + 4], esi
mov esi, dword [esp]
lea esp, [esp + 4]
popfd
pushfd
add ebp, 5
popfd
lea ebp, [ebp - 5]
jmp 0x4385a0

Function at 0x42f454
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
test eax, eax
jle 0x42f4af
push edi
mov edi, dword [ebp + 0x10]
sub dword [ebp + 0xc], edi
mov dword [ebp + 8], eax
mov edi, edi
inc bl
lea edi, [edi + 1]
movzx ebx, bl
mov dl, byte [esi + ebx + 8]
add cl, dl
movzx ecx, cl
mov al, byte [esi + ecx + 8]
mov byte [esi + ebx + 8], al
add al, dl
movzx eax, al
mov byte [esi + ecx + 8], dl
movzx edx, byte [eax + esi + 8]
mov eax, dword [ebp + 0xc]
xor dl, byte [eax + edi - 1]
sub dword [ebp + 8], 1
mov byte [edi - 1], dl
jne 0x42f474
mov eax, dword [ebp + 0x14]
pop edi
mov dword [esi], ebx
mov dword [esi + 4], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x4469ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 4]
lea ebx, [ebx + 0x55]
xchg dword [esp + 4], ebx
mov dword [esp + 4], ebx
mov ebx, dword [esp]
lea esp, [esp + 4]
add dword [esp], 0x5261
xchg dword [esp], ebx
push ebp
mov ebp, esp
leave
xchg dword [esp + 4], ebx
push edi
mov edi, dword [esp + 4]
lea edi, [edi + 0x3d]
xchg dword [esp + 4], edi
mov dword [esp + 4], edi
mov edi, dword [esp]
lea esp, [esp + 4]
xchg dword [esp], ebx
push eax
mov eax, dword [esp + 4]
lea eax, [eax + 0x6d]
xchg dword [esp + 4], eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea esp, [esp + 4]
popfd
mov eax, eax
jmp fcn.0042f454

Function at 0x44e510
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov dword [ebp - 0xc], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 2]
test edx, edx
je 0x44e540
mov eax, 1
jmp 0x44e574
mov eax, dword fs:[0x30]
mov cl, byte [eax + 2]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
je 0x44e55b
mov eax, 1
jmp 0x44e574
call fcn.0044e4c0
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
test eax, eax
je 0x44e572
mov eax, 1
jmp 0x44e574
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x44ee80
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 0x54], str.HARDWAREACPIDSDTVBOX__
mov dword [ebp - 0x50], str.HARDWAREACPIFADTVBOX__
mov dword [ebp - 0x4c], str.HARDWAREACPIRSDTVBOX__
mov dword [ebp - 0x48], str.SOFTWAREOracleVirtualBox_Guest_Additions
mov dword [ebp - 0x44], str.SYSTEMControlSet001ServicesVBoxGuest
mov dword [ebp - 0x40], str.SYSTEMControlSet001ServicesVBoxMouse
mov dword [ebp - 0x3c], str.SYSTEMControlSet001ServicesVBoxService
mov dword [ebp - 0x38], str.SYSTEMControlSet001ServicesVBoxSF
mov dword [ebp - 0x34], str.SYSTEMControlSet001ServicesVBoxVideo
mov dword [ebp - 0x30], str.SYSTEMControlSet001Services_vioscsi
mov dword [ebp - 0x2c], str.SYSTEMControlSet001Services_viostor
mov dword [ebp - 0x28], str.SYSTEMControlSet001ServicesVirtIO_FS_Service
mov dword [ebp - 0x24], str.SYSTEMControlSet001ServicesVirtioSerial
mov dword [ebp - 0x20], str.SYSTEMControlSet001ServicesBALLOON
mov dword [ebp - 0x1c], str.SYSTEMControlSet001ServicesBalloonService
mov dword [ebp - 0x18], str.SYSTEMControlSet001Services_netkvm
mov dword [ebp - 0x14], str.SOFTWAREMicrosoftVirtual_MachineGuestParameters
mov dword [ebp - 0x10], str.SOFTWAREVMware__Inc.VMware_Tools
mov dword [ebp - 0xc], str.SOFTWAREWine
mov dword [ebp - 8], 0x13
mov dword [ebp - 4], 0
jmp 0x44ef24
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jge 0x44ef4e
mov edx, dword [ebp - 4]
mov eax, dword [ebp + edx*4 - 0x54]
push eax
push 0x80000002
call fcn.0044ed10
add esp, 8
test eax, eax
je 0x44ef4c
mov eax, 1
jmp 0x44ef50
jmp 0x44ef1b
xor eax, eax
mov esp, ebp
pop ebp
ret