joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ebdc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x78418b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cb8
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ec17
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ec30
lea eax, [ebp - 0x10]
mov edx, dword [0x79a194]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d18
jmp 0x41ec43
lea eax, [ebp - 0x10]
mov edx, dword [0x79a194]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d18
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ec4f
adc edx, 0
mov edx, dword [edx*4 + 0x798cac]
call fcn.00404f08
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404eec
push eax
call fcn.00406adc
mov esi, eax
cmp esi, 0xffffffff
je 0x41ed5d
mov eax, 0x40
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d24
test eax, eax
je 0x41ed50
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ed50
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d7c
mov eax, edi
call fcn.00403270
mov eax, 0x18
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d24
test eax, eax
je 0x41ed50
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ed50
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ed50
cmp dx, 0x150
ja 0x41ed50
mov eax, edi
call fcn.00403270
mov eax, 0xe0
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d24
test eax, eax
je 0x41ed50
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ed50
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404cf4
mov eax, edi
call fcn.00403270
push esi
call fcn.00406a94
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00405014
jne 0x41ed75
inc ebx
cmp ebx, 0x19
jne 0x41ec09
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x784192
lea eax, [ebp - 0x10]
call fcn.00404cb8
ret
Function at 0x401360
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x410482
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x4152d8]
xor eax, esp
mov dword [esp + 0x418], eax
push esi
push edi
mov eax, dword [0x4152d8]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x10], esi
mov word [esi + 4], di
lea eax, [esp + 0x21c]
push eax
mov dword [esp + 0x434], edi
push 0x104
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x40141a
lea ecx, [esp + 0x14]
push ecx
push edi
push 0x4133d8
lea edx, [esp + 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, edi
jbe 0x40141a
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401400
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00401f40
mov eax, esi
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00404209
add esp, 0x428
ret

Function at 0x4015b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4104b8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4152d8]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x4152d8]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
lea eax, [esp + 0x20]
push eax
mov esi, ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ecx, esi
lea edi, [esp + 0x64]
call fcn.00401450
mov dword [esp + 0x8c], ebx
mov eax, dword [esp + 0x78]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040373a
add esp, 4
cmp dword [esp + 0x7c], 8
mov esi, eax
mov eax, dword [esp + 0x68]
jae 0x401636
lea eax, [esp + 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401684
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov bl, 1
push esi
call fcn.00404424
add esp, 4
cmp dword [esp + 0x7c], 8
jb 0x4016a1
mov edx, dword [esp + 0x68]
push edx
call fcn.00403c1c
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00404209
add esp, 0x80
ret
Function at 0x401780
Capabilities:
Delete file
Extract resource via kernel32 functions
Get system information on windows
Write file on windows

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4152d8]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
mov esi, dword [esp + 0x34]
push edi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor ecx, ecx
cmp word [esp + 0xc], cx
push str.INSTEXE
setne cl
add ecx, 0x65
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401883
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401882
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401882
lea ecx, [esp + 0x10]
call fcn.00401360
cmp dword [esp + 0x24], 0
je 0x40186e
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x40180e
lea eax, [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40186e
push 0
lea edx, [esp + 0x10]
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401858
cmp dword [esp + 0xc], ebx
jne 0x401858
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.004015b0
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x401867
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x28], 8
jb 0x401882
mov eax, dword [esp + 0x14]
push eax
call fcn.00403c1c
add esp, 4
pop ebx
cmp dword [0x415e7c], 0
pop edi
pop esi
je 0x401893
call fcn.004016d0
mov ecx, dword [esp + 0x28]
xor ecx, esp
xor eax, eax
call fcn.00404209
add esp, 0x2c
ret 0x10

Function at 0x404209
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4152d8]
jne 0x404213
repz ret
jmp fcn.00407d1c
Function at 0x406f81
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4153f0]
je 0x406f9c
inc edi
cmp edi, 0x17
jb 0x406f8d
cmp edi, 0x17
jae 0x40711c
push ebp
push 3
call fcn.0040e725
cmp eax, 1
pop ecx
je 0x4070e8
push 3
call fcn.0040e725
test eax, eax
pop ecx
jne 0x406fd0
cmp dword [0x41515c], 1
je 0x4070e8
cmp ebx, 0xfc
je 0x40711b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x416160
push ebp
call fcn.00406e0a
add esp, 0xc
test eax, eax
je 0x407006
push esi
push esi
push esi
push esi
push esi
call fcn.00403c51
add esp, 0x14
push 0x104
mov esi, 0x416179
push esi
push 0
mov byte [0x41627d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40704a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00406e0a
add esp, 0xc
test eax, eax
je 0x40704a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00403c51
add esp, 0x14
push esi
call fcn.00404950
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40708f
push esi
call fcn.00404950
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x416474
push 0x4121bc
sub ecx, eax
push ecx
push eax
call fcn.0040bb26
add esp, 0x14
test eax, eax
je 0x40708f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00403c51
add esp, 0x14
jmp 0x407091
xor esi, esi
push 0x4121b8
push ebx
push ebp
call fcn.0040ba68
add esp, 0xc
test eax, eax
je 0x4070b1
push esi
push esi
push esi
push esi
push esi
call fcn.00403c51
add esp, 0x14
push dword [edi*8 + 0x4153f4]
push ebx
push ebp
call fcn.0040ba68
add esp, 0xc
test eax, eax
je 0x4070d3
push esi
push esi
push esi
push esi
push esi
call fcn.00403c51
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040e568
add esp, 0xc
jmp 0x40711b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40711b
cmp ebp, 0xffffffff
je 0x40711b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4153f4]
push dword [esi]
call fcn.00404950
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40e568
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00406898
xor ebx, ebx
cmp dword [0x416b68], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40e63e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40e71e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40e71e
push eax
call fcn.0040682a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x416b68], eax
call esi
push eax
call fcn.0040682a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x416b6c], eax
call esi
push eax
call fcn.0040682a
mov dword [0x416b70], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403f96
test eax, eax
pop ecx
pop ecx
je 0x40e60c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c51
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40e63e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040682a
cmp eax, ebx
pop ecx
mov dword [0x416b78], eax
je 0x40e63e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040682a
pop ecx
mov dword [0x416b74], eax
mov eax, dword [0x416b74]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40e6c3
cmp dword [0x416b78], ecx
je 0x40e6c3
push eax
call fcn.004068a1
push dword [0x416b78]
mov esi, eax
call fcn.004068a1
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40e6c3
cmp edi, ebx
je 0x40e6c3
call esi
cmp eax, ebx
je 0x40e690
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40e690
test byte [ebp - 0x18], 1
jne 0x40e6c3
lea eax, [ebp - 0x10]
push eax
call fcn.00403fcd
test eax, eax
pop ecx
je 0x40e6ab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c51
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40e6ba
or dword [ebp + 0x10], 0x200000
jmp 0x40e6fe
or dword [ebp + 0x10], 0x40000
jmp 0x40e6fe
mov eax, dword [0x416b6c]
cmp eax, dword [ebp - 8]
je 0x40e6fe
push eax
call fcn.004068a1
cmp eax, ebx
pop ecx
je 0x40e6fe
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40e6fe
mov eax, dword [0x416b70]
cmp eax, dword [ebp - 8]
je 0x40e6fe
push eax
call fcn.004068a1
cmp eax, ebx
pop ecx
je 0x40e6fe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x416b68]
call fcn.004068a1
cmp eax, ebx
pop ecx
je 0x40e71e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40e720
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
pushal
cmp dword [ebp + 0xc], 1
jne 0x4011e0
mov eax, dword [ebp + 8]
mov dword [0x409549], eax
push 0x4e4941
push 0x4d5f3031
push 0x46434d4d
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.USER32.DLL_FindWindowA]
add esp, 0xc
cmp eax, 0
je 0x4011e0
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.DLL_GetWindowLongA]
cmp eax, 0
je 0x4011e0
mov ebx, eax
cmp dword [ebx + 4], 0x2710
jne 0x4011e0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x128], 0x4011ea
mov dword [ebp - 0x124], fcn.00401590
mov dword [ebp - 0x120], 0x4017fc
push 0x20
push 0x29333030
push 0x28343920
push 0x24454c55
push 0x444f4d24
push esp
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
add esp, 0x14
push 0x118
lea edx, [ebp - 0x130]
push edx
lea edx, [ebx + 0x8c]
push edx
call fcn.0040660b
push 0
push 0x696b6173
push 0x6177614b
push esp
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
lea edx, [ebx + 0xa4]
push edx
call fcn.004024ba
add esp, 0xc
mov dword [ebp - 0x10], eax
push 0xa
push 0x3e8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x40114d
mov dword [ebp - 0x18], eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x401144
mov dword [ebp - 0x14], eax
push 0x19e6
lea edx, [eax + 0x14]
push edx
push 0x409559
call dword [sym.imp.NTDLL.DLL_memcpy]
add esp, 0xc
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
push 0x6e6163
push 0x5f303136
push 0x38686d5f
push 0x696b6173
push 0x6177616b
mov dword [ebp - 8], esp
push 0x3230
push 0x302e3031
mov dword [ebp - 4], esp
push 0
push 0x79726576
push 0x6f636552
push 0x204e4143
push 0x205d6b38
push 0x3430325b
push 0x30313638
push 0x484d2430
push 0x31363877
push 0x616b3439
push 0x646f6d24
push esp
push dword [ebp - 4]
push dword [ebp - 8]
push 0x19e6
push 0x409559
push 0
push 0x203
push dword [ebp + 8]
push dword [ebp - 0x10]
lea edx, [ebx + 0xa4]
push edx
call fcn.004024ba
add esp, 0x2c
add esp, 8
add esp, 0x14
mov dword [ebp - 0xc], eax
popal
mov eax, 1
leave
ret 0xc
Function at 0x4075e1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push 0
push 0
push eax
lea edx, [ebp - 0x698]
push edx
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
jne 0x40768e
push 0xa0d
push 0x7325203a
push 0x24454c49
push 0x465f474e
push 0x494e4550
push 0x4f5f524f
push 0x52524524
mov dword [ebp - 8], esp
lea edx, [ebp - 0x698]
push edx
push dword [ebp - 8]
lea edx, [ebp - 0x594]
push edx
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x594]
push edx
call dword [ebx + 0x30]
add esp, 0x1c
jmp 0x4077e6
mov dword [ebp - 0x6a0], eax
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [esi + 0x58], eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [esi + 0x54], eax
push 0
lea edx, [ebp - 0x69c]
push edx
push dword [esi + 0x58]
push eax
push dword [ebp - 0x6a0]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [ebp - 0x6a0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0xa
push 0xd732520
push 0x3a244445
push 0x5443454c
push 0x45535f45
push 0x4c494624
mov dword [ebp - 4], esp
lea edx, [ebp - 0x698]
push edx
push dword [ebp - 4]
lea edx, [ebp - 0x594]
push edx
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x594]
push edx
call dword [ebx + 0x30]
add esp, 0x18
push 1
call dword [ebx + 0x44]
call dword [ebx + 0x3c]
cmp eax, 1
jne 0x4077e1
mov byte [ebp - 0x184], 0x2d
mov byte [ebp - 0x183], 0x82
push pe_nt_image_headers32
push dword [esi + 0x54]
lea edx, [ebp - 0x182]
push edx
call dword [sym.imp.NTDLL.DLL_memcpy]
add esp, 0xc
push 0xfa
lea edx, [ebp - 0x102]
push edx
push 0x82
lea edx, [ebp - 0x184]
push edx
call dword [ebx + 0x40]
cmp eax, 0x14
je 0x4077b4
push 0
push 0xa0d2452
push 0x45424d55
push 0x4e5f4553
push 0x4e454349
push 0x4c5f4449
push 0x4c41564e
push 0x495f524f
push 0x5252455f
push 0x534e4f49
push 0x54434e55
push 0x46524554
push 0x53414d24
push esp
call dword [ebx + 0x30]
add esp, 0x34
jmp 0x4077e1
mov eax, dword [ebp - 0x102]
bswap eax
mov dword [esi + 0x14], eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [esi + 0x20], eax
push 0x10
lea edx, [ebp - 0xfe]
push edx
lea edx, [esi + 0x5c]
push edx
call dword [sym.imp.NTDLL.DLL_memcpy]
add esp, 0xc
push 0
call dword [ebx + 0x44]
leave
ret 4
Function at 0x407a8c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov byte [ebp - 1], 0
jmp 0x407a9f
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
cmp ecx, 4
jge 0x407b0c
mov byte [ebp - 2], 0
jmp 0x407ab7
mov dl, byte [ebp - 2]
add dl, 1
mov byte [ebp - 2], dl
movzx eax, byte [ebp - 2]
cmp eax, 4
jge 0x407b0a
movzx ecx, byte [ebp - 1]
mov edx, dword [0x409545]
lea eax, [edx + ecx*4]
movzx ecx, byte [ebp - 2]
movzx edx, byte [ebp + 8]
shl edx, 2
movzx esi, byte [ebp - 1]
shl esi, 2
lea edx, [esi + edx*4]
movzx esi, byte [ebp - 2]
movzx edx, byte [edx + esi + 0x409494]
movzx eax, byte [eax + ecx]
xor eax, edx
movzx ecx, byte [ebp - 2]
movzx edx, byte [ebp - 1]
mov esi, dword [0x409545]
lea edx, [esi + edx*4]
mov byte [edx + ecx], al
jmp 0x407aae
jmp 0x407a97
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40840f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 1], 0
jmp 0x408421
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
cmp ecx, 0x10
jge 0x408451
movzx edx, byte [ebp - 1]
movzx eax, byte [ebp - 1]
mov ecx, dword [0x40948c]
movzx eax, byte [ecx + eax]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
xor edx, eax
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 8]
mov byte [ecx + eax], dl
jmp 0x408419
mov esp, ebp
pop ebp
ret 4
Function at 0x4bee70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7c000]
push edi
jmp 0x4bee8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4bee91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bee80
mov eax, 1
add ebx, ebx
jne 0x4beea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4beeb4
jne 0x4beed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4beed3
dec eax
add ebx, ebx
jne 0x4beec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4bee98
add ebx, ebx
jne 0x4beecf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4bef25
xor ecx, ecx
sub eax, 3
jb 0x4beeeb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4bef5a
sar eax, 1
mov ebp, eax
jmp 0x4beef6
add ebx, ebx
jne 0x4beef6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4beec4
inc ecx
add ebx, ebx
jne 0x4bef04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4beec4
add ebx, ebx
jne 0x4bef11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4bef06
jne 0x4bef22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4bef06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4bef44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4bef36
jmp 0x4bee86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4bef44
add edi, ecx
jmp 0x4bee86
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4bef62
cmp byte [edi], 0x13
jne 0x4bef62
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 0x4bef67
lea edi, [esi + 0xba000]
mov eax, dword [edi]
or eax, eax
je 0x4befdf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xccc70]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xccdc4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4bef94
mov ecx, edi
jns 0x4befc3
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 + 0xccdc8]
or eax, eax
je 0x4befd9
mov dword [ebx], eax
add ebx, 4
jmp 0x4befb1
call dword [esi + 0xccdd8]
mov ebp, dword [esi + 0xccdcc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4bf013
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x4042c0
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4ac8fc], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x4042d8
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x404325
cmp ebx, 0xffffffff
jne 0x4042f2
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4042e7
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x404325
push edi
lea edi, [ebx + 1]
mov esi, 0x4ac8f0
call fcn.00404340
pop edi
test eax, eax
jne 0x40430f
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4ac8fc]
push ebx
push ebp
push eax
mov esi, eax
call fcn.004880f0
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4ac8f0
jmp fcn.004043b0

Function at 0x4043b0
Capabilities:
Write clipboard data

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x4043d4
push esi
call fcn.00404690
test eax, eax
jne 0x4043d4
push str.Cant_open_clipboard_for_writing.
call fcn.004044c0
pop edi
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40440e
cmp dword [esi + 0x18], edi
je 0x4043ff
cmp dword [esi + 8], edi
je 0x4043f4
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x4989fc
call fcn.004044c0
pop edi
pop esi
ret 4
mov ecx, dword [esi + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp ecx, edi
je 0x404451
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x404479
cmp dword [esp + 0x10], 0xd
push ebx
jne 0x404430
cmp word [eax], di
jmp 0x404433
cmp byte [eax], 0
push ecx
sete bl
call ebp
test bl, bl
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
pop ebx
je 0x404479
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], edi
je 0x40446e
cmp dword [esi + 8], edi
je 0x404463
mov edx, dword [esi]
push edx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
pop ebp
pop edi
mov eax, 1
pop esi
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x404491
mov dword [esi + 4], edi
jmp 0x404451
cmp dword [esi + 0x18], edi
je 0x4044ae
cmp dword [esi + 8], edi
je 0x4044a3
mov ecx, dword [esi]
push ecx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x498a0c
call fcn.004044c0
pop ebp
pop edi
pop esi
ret 4