joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100415c
Capabilities:
Get disk information
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
call fcn.010039ab
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x100417b
xor eax, eax
jmp 0x10042cd
push ebx
call fcn.010058c4
test eax, eax
je 0x1004174
push esi
push ebx
call fcn.01005920
test eax, eax
je 0x1004174
push edi
push ebx
mov ebx, 0x104
push ebx
lea edi, [esi + 8]
push edi
call fcn.01002fb5
test eax, eax
jl 0x100421b
push ebx
lea eax, [esi + 0x418]
push eax
xor eax, eax
push eax
push eax
push eax
push ebx
lea eax, [esi + 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1004214
test byte [ebp + 0xc], 1
je 0x10041db
push 0x68
push dword [0x1008034]
call dword [sym.imp.USER32.dll_LoadIconW]
jmp 0x10041e4
push 0
push dword [esi]
call fcn.010059d7
mov dword [esi + 4], eax
lea eax, [esi + 0x620]
push eax
push dword [esi]
call fcn.01005a3d
test eax, eax
je 0x1004214
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x1004222
mov ecx, esi
call fcn.010039ab
xor eax, eax
jmp 0x10042cc
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
imul ebx, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jb 0x1004239
sub eax, dword [ebp + 8]
mov dword [ebp + 0xc], eax
jmp 0x100423d
and dword [ebp + 0xc], 0
xor eax, eax
push eax
push ebx
push eax
push dword [ebp + 8]
call fcn.01006360
mov dword [ebp - 0x14], eax
xor eax, eax
push eax
push ebx
push eax
push dword [ebp + 0xc]
mov edi, edx
call fcn.01006360
mov ebx, eax
add eax, dword [ebp - 0x14]
mov ecx, edx
mov dword [ebp - 0x18], ecx
adc ecx, edi
push ecx
push eax
movzx eax, word [esi]
push eax
call fcn.010059ba
mov dword [esi + 0x640], eax
mov dword [esi + 0x644], edx
cmp edx, edi
jb 0x1004296
ja 0x100428a
cmp eax, dword [ebp - 0x14]
jb 0x1004296
mov dword [esi + 0x664], 1
jmp 0x100429d
and dword [esi + 0x664], 0
mov eax, dword [ebp - 0x14]
and dword [esi + 0x638], 0
and dword [esi + 0x63c], 0
mov dword [esi + 0x628], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x634], eax
xor eax, eax
mov dword [esi + 0x62c], edi
mov dword [esi + 0x630], ebx
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10042d8
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x1008010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov word [ebp - 0x84], ax
mov eax, dword [esi + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x90], ebx
cmp eax, ebx
je 0x100432c
mov ecx, dword [eax]
lea edx, [ebp - 0x90]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x14], ebx
cmp dword [esi + 0x18], ebx
je 0x100446b
mov eax, dword [edi + 0x65c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jns 0x100441a
test al, 1
je 0x1004379
mov eax, dword [ebp - 0x88]
push 2
pop edi
push dword [eax + 0x660]
lea eax, [ebp - 0x84]
push 0x1001690
push 0x1001680
push 0x40
push eax
call fcn.01001ee4
add esp, 0x14
jmp 0x100438f
push 0x1001690
push 0x40
lea eax, [ebp - 0x84]
xor edi, edi
push eax
inc edi
call fcn.01002fb5
lea ecx, [ebp - 0x94]
push ecx
xor eax, eax
lea ecx, [ebp - 0x8c]
push ecx
push eax
push eax
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x84]
push eax
push dword [esi + 0x18]
mov dword [ebp - 0x94], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esi + 0x244], 0
je 0x10043d2
or dword [ebp - 0x8c], edi
jmp 0x10043da
not edi
and dword [ebp - 0x8c], edi
lea eax, [ebp - 0x88]
push eax
push 0x20006
push dword [esi + 0x18]
call fcn.01003e78
test eax, eax
jl 0x100441a
push 4
lea eax, [ebp - 0x8c]
push eax
push 4
push 0
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x88]
call ebx
push dword [esi + 0x18]
call ebx
test byte [ebp - 0x90], 4
je 0x100446b
cmp dword [esi + 0x244], 0
je 0x100446b
lea eax, [ebp - 0x88]
push eax
push 0x3001f
push 0
push 0x1001600
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100446b
lea eax, [esi + 0x1c]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp - 0x88]
call ebx
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
lea edi, [esi + 0x228]
mov eax, dword [edi]
test eax, eax
je 0x1004483
push eax
call ebx
and dword [edi], 0
add esi, 0x224
mov eax, dword [esi]
test eax, eax
je 0x1004495
push eax
call ebx
and dword [esi], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100663c
leave
ret 4
Function at 0x10044ab
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1008010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
xor edi, edi
xor eax, eax
mov dword [ebp - 0x20c], 1
mov word [ebp - 0x204], ax
mov dword [esi + 0x690], edi
mov dword [esi + 0x694], edi
mov dword [esi + 0x6b4], edi
mov dword [esi + 0x67c], edi
call fcn.010039d6
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x684], eax
cmp eax, edi
je 0x1004544
lea eax, [esi + 0x688]
push eax
push edi
push esi
push 0x1003db7
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x67c], eax
cmp eax, edi
je 0x1004538
push 0xffffffffffffffff
push dword [esi + 0x684]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x684]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x6a8]
cmp ecx, edi
je 0x1004554
push esi
call fcn.01005c94
cmp dword [esi + 0x6a0], edi
mov dword [ebp - 0x208], edi
jle 0x100469c
push ebx
xor ebx, ebx
mov eax, dword [esi + 0x6a4]
add eax, ebx
cmp dword [eax + 0x240], edi
je 0x100466b
cmp dword [eax + 0x244], edi
je 0x100466b
mov eax, dword [eax + 0x228]
cmp eax, edi
je 0x10045be
push eax
push 0x100
lea eax, [ebp - 0x204]
push eax
call fcn.01002fb5
lea eax, [ebp - 0x204]
push eax
push edi
push 0x402
push dword [esi + 0x680]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x6a4]
add eax, ebx
mov dword [esi + 0x698], edi
mov dword [esi + 0x69c], edi
cmp dword [eax + 0x14], edi
je 0x1004618
mov ecx, dword [esi + 0x6a8]
cmp ecx, edi
je 0x1004618
push eax
call fcn.01005cae
push dword [esi + 0x6ac]
mov eax, dword [esi + 0x6a4]
add eax, ebx
push dword [eax + 0x23c]
mov ecx, dword [eax + 0x14]
push dword [eax + 0x238]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
test eax, eax
jge 0x1004618
mov dword [esi + 0x658], 2
mov eax, dword [esi + 0x6a4]
mov ecx, dword [ebx + eax + 0x238]
add dword [esi + 0x690], ecx
mov eax, dword [ebx + eax + 0x23c]
push edi
adc dword [esi + 0x694], eax
push edi
push 0x401
push dword [esi + 0x680]
mov dword [esi + 0x698], edi
mov dword [esi + 0x69c], edi
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esi + 0x6b4], 1
je 0x100468b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x208]
mov eax, dword [ebp - 0x208]
add ebx, 0x248
cmp eax, dword [esi + 0x6a0]
jl 0x1004569
jmp 0x100469b
mov dword [esi + 0x658], 4
mov dword [ebp - 0x20c], edi
pop ebx
cmp dword [esi + 0x6b4], edi
jne 0x10046d9
mov eax, dword [esi + 0x67c]
mov dword [esi + 0x6b4], 1
cmp eax, edi
je 0x10046d3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x67c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x67c], edi
mov dword [esi + 0x6b4], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20c]
pop edi
xor ecx, ebp
pop esi
call fcn.0100663c
leave
ret
Function at 0x10046f2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x1008010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
xor ecx, ecx
xor edi, edi
inc ebx
mov word [ebp - 0x20c], cx
push eax
cmp dword [ebp + 0xc], edi
je 0x1004739
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01002fb5
mov esi, eax
jmp 0x10047c5
push 0x10016a8
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.01001ee4
mov esi, eax
add esp, 0x10
cmp esi, edi
jl 0x1004876
lea eax, [ebp - 0x624]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x61c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10047c5
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x628]
push eax
push edi
push edi
push dword [ebp - 0x624]
mov dword [ebp - 0x628], ebx
mov dword [ebp - 0x630], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10047b9
mov dword [ebp + 0xc], ebx
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jl 0x1004876
cmp dword [ebp + 0xc], edi
je 0x1004876
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
call edi
test eax, eax
jle 0x100480f
movzx eax, word [ebp + esi*2 - 0x20c]
cmp ax, 0x2c
je 0x100480f
mov word [ebp + esi*2 - 0x414], ax
lea eax, [ebp - 0x20c]
push eax
inc esi
call edi
cmp esi, eax
jl 0x10047eb
lea eax, [esi + esi]
xor ecx, ecx
mov word [ebp + eax - 0x414], cx
lea eax, [ebp + eax - 0x20a]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
push ebx
lea ecx, [ebp - 0x62c]
push ecx
lea ecx, [ebp - 0x620]
push ecx
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x1004876
mov esi, dword [ebp - 0x62c]
test esi, esi
je 0x100486c
cmp dword [ebp - 0x620], 0
je 0x1004872
push dword [ebp - 0x620]
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x1004872
mov esi, dword [ebp - 0x620]
test esi, esi
jne 0x1004886
push 0x6f
push dword [0x100803c]
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100663c
leave
ret 8
Function at 0x1005684
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push ebx
push ebx
mov esi, ecx
push ebx
push ebx
mov dword [ebp - 0xc], 1
mov dword [esi + 0x638], ebx
mov dword [esi + 0x63c], ebx
mov dword [esi + 0x6b0], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x674], eax
cmp eax, ebx
je 0x10056f9
lea eax, [esi + 0x678]
push eax
push ebx
push esi
push 0x1003bb0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x66c], eax
cmp eax, ebx
je 0x10056ed
push 0xffffffffffffffff
push dword [esi + 0x674]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x674]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x6a8]
cmp ecx, ebx
je 0x1005709
push esi
call fcn.01005c94
cmp dword [esi + 0x6a0], ebx
mov dword [ebp - 4], ebx
jle 0x100580e
push edi
xor edi, edi
mov eax, dword [esi + 0x6a4]
mov eax, dword [edi + eax + 0x228]
mov dword [ebp - 8], ebx
cmp eax, ebx
je 0x1005739
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.01005615
push dword [ebp - 8]
push dword [ebp - 4]
push 0x401
push dword [esi + 0x670]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x6a4]
add eax, edi
cmp dword [eax + 0x14], ebx
je 0x1005798
mov ecx, dword [esi + 0x6a8]
cmp ecx, ebx
je 0x1005798
push eax
call fcn.01005cae
mov eax, dword [esi + 0x6a4]
push dword [esi + 0x6ac]
add eax, edi
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx]
add eax, 0x238
push eax
push ecx
call dword [edx + 0x10]
test eax, eax
jge 0x1005798
mov dword [esi + 0x658], 2
mov eax, dword [esi + 0x6a4]
add eax, edi
mov ecx, dword [eax + 0x238]
or ecx, dword [eax + 0x23c]
jne 0x10057bd
test byte [eax + 0x230], 0x10
je 0x10057bd
mov dword [eax + 0x240], ebx
mov eax, dword [esi + 0x6a4]
mov ecx, dword [edi + eax + 0x238]
add dword [esi + 0x638], ecx
mov eax, dword [edi + eax + 0x23c]
adc dword [esi + 0x63c], eax
cmp dword [esi + 0x6b0], 1
je 0x1005800
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 0x248
cmp eax, dword [esi + 0x6a0]
jl 0x100571b
jmp 0x100580d
mov dword [esi + 0x658], 3
mov dword [ebp - 0xc], ebx
pop edi
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret

Function at 0x10059d7
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x1008010]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xa
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.01005972
xor eax, eax
lea ecx, [ebp - 0x2cc]
cmp dword [ebp + 0xc], eax
je 0x1005a0e
push 0x301
jmp 0x1005a13
push 0x300
push 0x2b4
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2cc]
xor ecx, ebp
call fcn.0100663c
leave
ret 8
Function at 0x1005a3d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1008010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor edi, edi
inc edi
mov dword [esi], edi
call fcn.01005972
test eax, eax
je 0x1005abd
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
sub eax, ecx
je 0x1005abb
dec eax
je 0x1005ab7
dec eax
je 0x1005aad
dec eax
je 0x1005aa5
dec eax
je 0x1005a9d
dec eax
je 0x1005a95
dec eax
jne 0x1005abb
mov dword [esi], 6
jmp 0x1005ab3
mov dword [esi], 5
jmp 0x1005abd
mov dword [esi], 4
jmp 0x1005abd
mov dword [esi], 3
jmp 0x1005ab3
mov dword [esi], 2
mov eax, edi
jmp 0x1005abf
mov dword [esi], edi
jmp 0x1005abd
mov dword [esi], ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100663c
leave
ret 8

Function at 0x1005ad4
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1008010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
mov word [ebp - 0x20c], ax
mov edx, 0x104
push edx
lea eax, [ebp - 0x414]
push eax
push ebx
mov dword [ebp - 0x418], 1
call fcn.01005972
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push edx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
add ebx, 0x41
movzx eax, bx
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x6a
call fcn.01005b85
add esp, 0xc
mov ebx, eax
push ebx
push dword [ebp + 0x10]
push edi
call fcn.01002fb5
test eax, eax
jge 0x1005b62
mov dword [ebp - 0x418], esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100663c
leave
ret 0xc
Function at 0x100662d
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1006d08
call fcn.01006814
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10083ac
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1006442
cmp eax, esi
jne 0x1006435
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1006445
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100641c
xor esi, esi
inc esi
mov eax, dword [0x10083a8]
cmp eax, esi
jne 0x1006458
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1006493
mov eax, dword [0x10083a8]
test eax, eax
jne 0x100648d
mov dword [0x10083a8], esi
push 0x1001284
push 0x1001278
call fcn.01006399
pop ecx
pop ecx
test eax, eax
je 0x1006493
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100655d
mov dword [0x100806c], esi
mov eax, dword [0x10083a8]
cmp eax, esi
jne 0x10064b7
push 0x1001274
push 0x100126c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10083a8], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10064c4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10083b0], ebx
je 0x10064e5
push 0x10083b0
call fcn.01006789
pop ecx
test eax, eax
je 0x10064e5
push ebx
push 2
push ebx
call dword [0x10083b0]
push dword [0x1008054]
push dword [0x1008058]
push dword [0x1008050]
call fcn.0100264c
add esp, 0xc
mov dword [0x1008068], eax
cmp dword [0x100805c], ebx
jne 0x1006543
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100806c], ebx
jne 0x1006551
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1008068]
call fcn.01006859
ret
call fcn.01006961
jmp 0x10063fa
Function at 0x4563a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x47000]
push edi
jmp 0x4563ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4563c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4563b0
mov eax, 1
add ebx, ebx
jne 0x4563d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4563e4
jne 0x456403
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x456403
dec eax
add ebx, ebx
jne 0x4563f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4563c8
add ebx, ebx
jne 0x4563ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x456455
xor ecx, ecx
sub eax, 3
jb 0x45641b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45648a
sar eax, 1
mov ebp, eax
jmp 0x456426
add ebx, ebx
jne 0x456426
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4563f4
inc ecx
add ebx, ebx
jne 0x456434
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4563f4
add ebx, ebx
jne 0x456441
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x456436
jne 0x456452
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x456436
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x456474
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x456466
jmp 0x4563b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x456474
add edi, ecx
jmp 0x4563b6
pop esi
mov edi, esi
mov ecx, 0x1a05
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x456492
cmp byte [edi], 4
jne 0x456492
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 0x456497
lea edi, [esi + 0x53000]
mov eax, dword [edi]
or eax, eax
je 0x45650f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x56000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x56118]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4564c4
mov ecx, edi
jns 0x4564f3
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 + 0x5611c]
or eax, eax
je 0x456509
mov dword [ebx], eax
add ebx, 4
jmp 0x4564e1
call dword [esi + 0x5612c]
mov ebp, dword [esi + 0x56120]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x456543
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x405ac0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ebx - 0x7a07ba77]
div byte [ebp - 0x43]
mov ebx, dword [ebp - 0x39a1a00c]
add al, byte [eax]
pop ebx
mov ebx, dword [edi + ebp*4 - 0x6fb26f3d]
nop
nop
push ebp
mov ebp, esp
sub esp, 8
mov cx, word [0x40f3c8]
mov eax, dword [str.KMGTPE]
mov dl, byte [0x65404aca]
push ebx
and eax, 0x660c758b
mov al, 0x4d
cld
mov ecx, dword [ebp + 8]
in al, 0xf6
push edi
mov dword [ebp - 0x19], eax
mov byte [ebp - 2], dl
lea ebx, [ebp - 0x80]
jg 0x4059c8
jl 0x405978
test ecx, ecx
jae 0x405997
mov eax, dword [ebp + 0x10]
fst st(2)
xchg esp, eax
add byte [eax], al
mov ecx, eax
rcl byte [ebx + esi*8 - 0x37750000], cl
pop edi
pop esi
salc
mov dword [ecx], edx
jo 0x405966
ror byte [ecx], 0x6b
and al, 0x88
push ecx
add al, 0x8b
cmp eax, 0xcc25d
idiv byte fs:[edi + 0x2d]
jl 0x4059ab
cmp ecx, 0x9000a273
jae 0x4059c8
mov ecx, dword [eax + edx - 0xc4b97af]
inc eax
inc eax
add byte [edx + 5], ch
push esi
call fcn.00408680
jge 0x40597c
mov bh, 0x98
sar byte [esi + eax*8 + 0xf], 0x8d
in eax, 0
add byte [eax], al
js 0x405992
add byte [eax], al
das
mov esp, esi
xor eax, ecx
mov edx, esi
mov ecx, 0xa
and edi, 0x3ff
call 0xb340b810
mov esi, edx
mov edi, dword [ecx + 0x7061f685]
xlatb
xor al, 0x81
stc
int 3
add byte [eax], al
jb 0x4059f3
add eax, dword [eax]
add byte [edx + 3], dh
inc ebx
sbb ah, byte [eax + 0x78]
div byte [esi + 0x5f]
js 0x4059eb
jbe 0x405a56
jg 0x4059f9
cmp ecx, 9
jb 0x405a56
or dword [edx + 0x58], esi
adc ebp, 9
push ecx
or al, 0x7b
div byte [ebp + 8]
or dword [ecx + 0xc], edx
jnp 0x4059fb
jne 0x405a0f
cmp edi, 0x3cd
jl 0x405a00
cmp edi, 0x200
jl 0x405a1d
rol dword ss:[ecx], 0x83
salc
add byte [edi], cl
mov esi, 0x7faf8b03
push eax
scasb al, byte es:[edi]
push str._3d_c
push 5
movsx eax, byte [ebx]
mov ebp, dword [edi + 0x68ae507f]
lodsb al, byte [esi]
inc eax
add byte [edx + 5], ch
push esi
jp 0x405a7d
sub al, 0
add byte [ebx - 0x777a053c], al
jge 0x405aa6
mov edx, dword [0x40e6a4]
ficom dword [edi]
pop edi
mov dword [ecx], edx
mov ebp, 0x40f3a8
inc ecx
sub ecx, dword [ebx + 0x5b5b5ec6]
in eax, 0x4a
ret 0xc
lea eax, [edi + edi*4 + 0x100]
cdq
and edx, 0x770001fd
add eax, edx
sar eax, 9
cmp eax, 0xffffff9a
in al, dx
or byte [ebx - 0x297cfe3f], al
add byte [ebx + 0x13be0fc0], bh
mov ebx, 0x13be0fc0
mov esi, dword [ebp + 0x10]
push edx
push eax
pop ss
push str._d._d_c
push 5
push esi
call 0x12c85bd
add esp, 0x18
inc esp
sar byte [ebp + 0x13], 0x8b
invalid
mov eax, esi
fistp dword [esi + 0x5b]
out 0xe5, al
pop ebp
aaa
or al, 0
xor cl, byte [eax]
nop
nop
jecxz 0x405a69
nop
nop
nop
nop
nop
loopne 0x405a64
nop
nop
push ebp
mov ebp, esp
push ebx
push esi
add esi, dword [ebp + 0xc]
push edi
push 0x30
push esi
call 0xff9f4a60
mov ebx, dword [ebp + 8]
mov edx, dword [0x40df80]
mov edi, dword [ebp + 0x10]
aas
jnp 0x405a74
and byte [ebx + 0x5840c703], cl
add byte [eax], al
and eax, dword [eax]
mov ecx, dword [ebx]
push cx
cwde
mov eax, dword [0x40c00f]
mov ecx, dword [ebx]
add eax, 0xffffff88
mov dword [ecx + 8], eax
mov edx, dword [ebx]
imul edi, dword [ecx - 0x43], 0x5904