joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4abd10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bc778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], 2
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4abd7f
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 1
call fcn.0059885f
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.0059885f
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call fcn.0059885f
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x30]
push 0x614ea8
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00598af4
lea ecx, [esp + 0x2c]
lea edx, [esp + 0xc]
push ecx
push eax
push edx
mov byte [esp + 0x2c], 3
call fcn.00598a8e
push 0x60e1bc
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0x28], 4
push eax
call fcn.00598af4
lea ecx, [esp + 0x28]
lea edx, [esp + 4]
push ecx
push eax
push edx
mov byte [esp + 0x2c], 5
call fcn.00598a8e
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 6
call fcn.00598998
lea ecx, [esp + 4]
mov byte [esp + 0x20], 5
call fcn.0059885f
lea ecx, [esp + 8]
mov byte [esp + 0x20], 4
call fcn.0059885f
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.0059885f
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.0059885f
lea eax, [esp + 0x2c]
lea ecx, [esi + 0x2a7c]
push eax
call fcn.00598998
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.005985d4
lea ecx, [esi + 0x60]
call fcn.004a2270
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x20], 1
call fcn.0059885f
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.0059885f
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call fcn.0059885f
mov ecx, dword [esp + 0x18]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret 0xc

Function at 0x4ac140
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5bc7f8
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [ecx + 0x64]
push str._tblNotificationMessages
push esi
mov dword [esp + 0x14], 0
call fcn.005111b0
push 0xffffd8ef
push esi
call fcn.00511330
mov eax, dword [esp + 0x24]
push eax
push esi
call fcn.005111b0
mov ecx, dword [esp + 0x30]
push ecx
push esi
call fcn.005111b0
push 0xfffffffffffffffd
push esi
call fcn.005114f0
push 0xfffffffffffffffe
push esi
call fcn.00510b80
add esp, 0x30
lea ecx, [esp + 0x14]
call fcn.0059885f
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call fcn.0059885f
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret 8
Function at 0x4ac1d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bc837
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov dword [esp + 8], 0
mov eax, dword [0x633828]
mov esi, dword [ecx + 0x64]
mov dword [esp + 0x14], 1
mov dword [esp + 4], eax
push str._tblNotificationMessages
push esi
mov byte [esp + 0x1c], 2
call fcn.005111b0
push 0xffffd8ef
push esi
call fcn.00511330
mov ecx, dword [esp + 0x30]
push ecx
push esi
call fcn.005111b0
push 0xfffffffffffffffe
push esi
call fcn.00511330
push 0xffffffffffffffff
push esi
call fcn.00510f90
add esp, 0x28
lea ecx, [esp + 4]
push eax
call fcn.005989e8
push 0xfffffffffffffffe
push esi
call fcn.00510b80
push 0xfffffffffffffffe
push esi
call fcn.00510b80
mov esi, dword [esp + 0x2c]
add esp, 0x10
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.005985d4
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 1
call fcn.0059885f
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 0
call fcn.0059885f
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x4adfd0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5bca72
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
xor ebx, ebx
push 0x4b90
mov dword [edi], 0x64
mov dword [esp + 0x2c], ebx
mov dword [ebp], 0x32
call fcn.005985a0
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0x28], 1
je 0x4ae02c
mov ecx, eax
call fcn.004992c0
mov esi, eax
jmp 0x4ae02e
xor esi, esi
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x28], bl
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x44], eax
call fcn.0059e541
cmp eax, ebx
je 0x4ae04e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x4ae050
xor eax, eax
mov edx, dword [esi]
push ebx
push 0x270f
push eax
lea eax, [esp + 0x1c]
mov ecx, 0x64
push eax
push 0x40000000
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
push str.VideoWindow
push ebx
mov ecx, esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [edx + 0x54]
test eax, eax
je 0x4ae0ea
push ebx
mov ecx, esi
call fcn.0059bff8
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.005985d4
mov ecx, esi
call int.0049b100
mov ecx, dword [esi + 0x3c]
push ebx
call fcn.0059c03a
mov ecx, dword [esi + 0x3c]
lea eax, [esp + 0x10]
push eax
call int.0049d7d0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [edi], ecx
mov dword [ebp], edx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
cmp esi, ebx
je 0x4ae0de
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
cmp dword [esp + 0x3c], ebx
je 0x4ae0f7
add dword [ebp], 0x19
jmp 0x4ae0f7
cmp esi, ebx
je 0x4ae0f7
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.0059885f
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 0x24
Function at 0x4b4e60
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5bd3d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov eax, dword [0x633828]
push esi
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov edx, dword [esp + 0x12c]
lea ecx, [esp + 0xc]
push ecx
push edx
push 0
mov dword [esp + 0x12c], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4b4f17
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4b4f17
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x14]
push edx
call esi
cmp byte [esp + eax + 0x13], 0x5c
jne 0x4b4f09
lea eax, [esp + 0x14]
push eax
call esi
mov byte [esp + eax + 0x13], 0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 8]
call fcn.005989e8
mov esi, dword [esp + 0x128]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.005985d4
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x120], 0
call fcn.0059885f
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret 8

Function at 0x4b50e3
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x5bd3ea
call fcn.0057ffbc
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi]
mov dword [ebp - 0x14], ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], ebx
je 0x4b5185
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x4b5185
push 0x360
call fcn.005985a0
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x4b5134
call fcn.004b521e
jmp 0x4b5136
xor eax, eax
push eax
mov byte [ebp - 4], bl
push dword [esi]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x4b5160
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x6024d4
push eax
call fcn.0057f0b1
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esi + 4]
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ecx + 4]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004b51a1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4b93f1
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
xor edx, edx
mov al, 1
shl al, cl
inc ecx
dec edx
cmp edx, 0xfffffff8
mov byte [ecx + 0x6387df], al
mov byte [edx + 0x649820], al
not al
mov byte [ecx + 0x64880f], al
jg 0x4b93f5
xor ecx, ecx
mov dl, cl
mov al, cl
shl dl, 4
shr al, 4
xor al, dl
and al, 0xf
xor al, dl
mov dl, al
shl dl, 2
shr al, 2
xor al, dl
and al, 0x33
xor al, dl
mov dl, al
add dl, dl
shr al, 1
xor al, dl
and al, 0x55
xor al, dl
mov byte [ecx + 0x638680], al
inc ecx
cmp ecx, 0x100
jl 0x4b9416
push ebx
push ebp
push esi
push edi
push 7
mov esi, 0x6387a0
pop edi
mov edx, 0xff
mov ecx, edi
xor eax, eax
sar edx, cl
or bl, 0xff
mov ecx, eax
shl bl, cl
and bl, dl
mov byte [esi + eax], bl
inc eax
cmp eax, 8
jl 0x4b9466
dec edi
add esi, 8
cmp edi, 0xffffffff
jg 0x4b945b
xor esi, esi
mov eax, esi
xor ecx, ecx
shl eax, 3
lea edi, [eax + 0x64881f]
mov ebp, edi
xor edx, edx
inc edx
shl edx, cl
test esi, edx
setne dl
mov byte [ebp], dl
inc ecx
dec ebp
cmp ecx, 8
jl 0x4b9492
lea ecx, [eax + 0x64881a]
xor edx, edx
mov dh, byte [ecx + 1]
mov dl, byte [ecx]
movzx ebx, byte [ecx - 1]
movzx ecx, byte [ecx - 2]
shl edx, 8
or edx, ebx
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 0x64881e]
mov dword [eax + 0x649018], edx
mov ch, byte [edi]
movzx edx, byte [eax + 0x64881d]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0x64881c]
shl ecx, 8
or ecx, edx
inc esi
cmp esi, 0x100
mov dword [eax + 0x64901c], ecx
jl 0x4b9483
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4be00e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x10]
dec ecx
je 0x4be0ec
dec ecx
je 0x4be0ac
dec ecx
je 0x4be092
dec ecx
je 0x4be074
dec ecx
je 0x4be03a
xor eax, eax
jmp 0x4be0ff
test byte [eax + 0x14c], 1
je 0x4be033
mov edi, dword [ebp + 0xc]
push edi
push 0
push dword [ebp + 8]
call fcn.005803a0
mov eax, dword [esi + 4]
add esp, 0xc
add dword [eax + 0x1c], edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
cmp ecx, edx
ja 0x4be069
mov ecx, edx
mov dword [eax + 0x20], ecx
xor eax, eax
inc eax
jmp 0x4be0ff
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
push 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
jmp 0x4be0ff
mov ecx, dword [eax + 0x130]
test ecx, ecx
je 0x4be033
push dword [eax + 0x14c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call ecx
jmp 0x4be0ff
cmp byte [eax + 0x129], 0
mov edi, dword [ebp + 0xc]
mov edx, dword [eax + 0x1c]
je 0x4be0c0
mov ecx, dword [eax + 0x20]
jmp 0x4be0c3
mov ecx, dword [eax + 0x18]
sub ecx, edx
cmp ecx, edi
jae 0x4be0cb
mov edi, ecx
test edi, edi
jbe 0x4be0e8
mov eax, dword [eax + 0x14]
push edi
add eax, edx
push eax
push dword [ebp + 8]
call dword [0x63878c]
mov eax, dword [esi + 4]
add esp, 0xc
add dword [eax + 0x1c], edi
mov eax, edi
jmp 0x4be0ff
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0057ed86
add esp, 0x10
pop edi
pop esi
leave
ret 8
Function at 0x4be3d7
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esi], ebx
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x10]
dec ecx
je 0x4be449
dec ecx
je 0x4be437
dec ecx
je 0x4be41d
dec ecx
je 0x4be3fd
dec ecx
je 0x4be43f
xor al, al
jmp 0x4be46d
cmp byte [eax + 0x129], bl
je 0x4be40e
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [edi + 4]
push ebx
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x4be469
mov ecx, dword [eax + 0x140]
cmp ecx, ebx
je 0x4be3f9
push esi
push dword [eax + 0x14c]
call ecx
test eax, eax
setne al
jmp 0x4be46d
cmp byte [eax + 0x129], bl
je 0x4be444
mov eax, dword [eax + 0x20]
jmp 0x4be469
mov eax, dword [eax + 0x18]
jmp 0x4be469
cmp byte [eax + 0x129], bl
je 0x4be45a
push dword [eax + 8]
call fcn.00580b80
pop ecx
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push dword [eax + 0x10]
call fcn.00580af6
pop ecx
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
ret 4

Function at 0x4be485
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
cmp byte [eax + 0x129], 0
je 0x4be4b3
mov ecx, dword [eax + 0x10]
dec ecx
je 0x4be57f
dec ecx
je 0x4be53a
dec ecx
je 0x4be516
dec ecx
je 0x4be4db
dec ecx
je 0x4be4ba
xor al, al
jmp 0x4be59b
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
add dword [eax + 0x1c], ecx
mov edi, dword [edi + 4]
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
cmp eax, ecx
ja 0x4be4d3
mov eax, ecx
mov dword [edi + 0x20], eax
jmp 0x4be57b
mov esi, dword [ebp + 0xc]
and dword [ebp - 4], 0
imul esi, dword [ebp + 0x10]
lea ecx, [ebp - 4]
push 0
push ecx
push esi
push dword [ebp + 8]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
cmp dword [ebp - 4], esi
jne 0x4be50f
test al, al
je 0x4be50f
xor eax, eax
inc eax
jmp 0x4be59b
xor eax, eax
jmp 0x4be59b
mov ecx, dword [eax + 0x134]
test ecx, ecx
je 0x4be4b3
push dword [eax + 0x14c]
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call ecx
test eax, eax
setne al
jmp 0x4be59b
mov esi, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
imul esi, dword [ebp + 0x10]
lea edx, [ecx + esi]
cmp edx, dword [eax + 0x18]
jae 0x4be4b3
mov eax, dword [eax + 0x14]
push esi
push dword [ebp + 8]
add eax, ecx
push eax
call dword [0x63878c]
mov eax, dword [edi + 4]
add esp, 0xc
add dword [eax + 0x1c], esi
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
cmp ecx, edx
ja 0x4be578
mov ecx, edx
mov dword [eax + 0x20], ecx
mov al, 1
jmp 0x4be59b
push dword [eax + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00580ce6
sub eax, dword [ebp + 0x10]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc
Function at 0x4c861c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x140
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.004dddd0
add esp, 0x14
test eax, eax
je 0x4c8658
push 3
pop ecx
jmp 0x4c865b
mov ecx, dword [ebp + 0x10]
movzx eax, cx
cmp eax, ebx
jl 0x4c8761
xor edx, edx
inc edx
cmp eax, edx
jle 0x4c876a
cmp eax, 3
jne 0x4c8761
cmp dword [ebp - 4], ebx
je 0x4c8758
mov esi, dword [ebp - 0xc]
cmp esi, ebx
je 0x4c8758
mov edi, dword [ebp - 8]
cmp edi, ebx
je 0x4c8758
mov cl, byte [ebp + 0x14]
mov dword [ebp + 8], ebx
mov ebx, edx
shl ebx, cl
mov ecx, ebx
test ecx, ecx
jle 0x4c86da
mov edx, dword [ebp - 4]
lea eax, [esi + ecx*2]
sub edx, esi
sub edi, esi
dec ecx
dec eax
dec eax
cmp word [edx + eax], 0x100
jae 0x4c86d3
cmp word [eax], 0x100
jae 0x4c86d3
cmp word [edi + eax], 0x100
jae 0x4c86d3
test ecx, ecx
jg 0x4c86b3
jmp 0x4c86da
mov dword [ebp + 8], 1
test ebx, ebx
jle 0x4c87e8
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
sub edi, esi
mov dword [ebp + 0x14], ebx
lea ecx, [eax + 1]
mov eax, dword [ebp - 8]
sub eax, esi
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x4c8739
movzx eax, word [esi + edi]
imul eax, eax, 0xff
cdq
mov ebx, 0xffff
idiv ebx
mov byte [ecx + 1], al
movzx eax, word [esi]
imul eax, eax, 0xff
cdq
idiv ebx
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
movzx eax, word [esi + eax]
imul eax, eax, 0xff
cdq
idiv ebx
mov byte [ecx - 1], al
mov eax, dword [ebp + 0xc]
jmp 0x4c8749
mov dl, byte [esi + edi]
mov byte [ecx + 1], dl
mov dl, byte [esi]
mov byte [ecx], dl
mov dl, byte [esi + eax]
mov byte [ecx - 1], dl
inc esi
add ecx, 4
inc esi
dec dword [ebp + 0x14]
jne 0x4c86f8
jmp 0x4c87e8
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x14
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp word [ebp + 0x14], dx
mov eax, dword [ebp + 0xc]
jne 0x4c87aa
cmp cx, dx
jne 0x4c8791
and byte [eax], 0
and byte [eax + 1], 0
and byte [eax + 2], 0
or byte [eax + 4], 0xff
or byte [eax + 5], 0xff
or byte [eax + 6], 0xff
jmp 0x4c87e8
or byte [eax], 0xff
or byte [eax + 1], 0xff
or byte [eax + 2], 0xff
and byte [eax + 4], 0
and byte [eax + 5], 0
and byte [eax + 6], 0
jmp 0x4c87e8
cmp cx, dx
jne 0x4c87ca
xor ecx, ecx
add eax, 2
mov byte [eax - 2], cl
mov byte [eax - 1], cl
mov byte [eax], cl
inc ecx
add eax, 4
cmp ecx, 0x100
jl 0x4c87b4
jmp 0x4c87e8
xor edx, edx
add eax, 2
or cl, 0xff
sub cl, dl
inc edx
mov byte [eax - 2], cl
mov byte [eax - 1], cl
mov byte [eax], cl
add eax, 4
cmp edx, 0x100
jl 0x4c87cf
mov al, 1
jmp 0x4c8763
Function at 0x4ce031
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
cmp dword [ebp + 8], edx
jne 0x4ce042
xor eax, eax
jmp 0x4ce12f
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
imul esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
add esi, dword [ebp + 8]
push edi
mov edi, ebx
push 8
sub eax, ebx
and edi, 7
pop ecx
inc eax
sub ecx, edi
cmp ecx, eax
mov dword [ebp + 8], ecx
jb 0x4ce06c
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 8
jne 0x4ce075
mov dword [ebp + 8], edx
mov ecx, dword [ebp + 0x18]
and ecx, 7
inc ecx
cmp ecx, eax
mov dword [ebp + 0xc], ecx
jb 0x4ce086
mov dword [ebp + 0xc], eax
mov ecx, ebx
xor ecx, dword [ebp + 0x18]
test ecx, 0xfffffff8
jne 0x4ce096
mov dword [ebp + 0xc], edx
mov ecx, dword [ebp + 8]
add ecx, ebx
cmp ebx, ecx
mov dword [ebp + 0x10], ecx
jae 0x4ce0ca
mov edi, ebx
mov ecx, ebx
not edi
shr ecx, 3
and edi, 7
add ecx, esi
cmp dword [ebp + 0x1c], 0
mov dl, byte [edi + 0x6387e0]
je 0x4ce0c0
or byte [ecx], dl
jmp 0x4ce0c4
not dl
and byte [ecx], dl
inc ebx
cmp ebx, dword [ebp + 0x10]
jb 0x4ce0a2
xor edi, edi
cmp eax, 8
jbe 0x4ce0fc
sub eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
shr eax, 3
mov edi, eax
je 0x4ce0fc
mov eax, dword [ebp + 0x1c]
push edi
neg eax
sbb eax, eax
and eax, 0xff
push eax
mov eax, ebx
shr eax, 3
add eax, esi
push eax
call fcn.005803a0
add esp, 0xc
lea edx, [ebx + edi*8]
jmp 0x4ce124
mov ecx, edx
mov eax, edx
not ecx
shr eax, 3
and ecx, 7
add eax, esi
cmp dword [ebp + 0x1c], 0
mov cl, byte [ecx + 0x6387e0]
je 0x4ce11f
or byte [eax], cl
jmp 0x4ce123
not cl
and byte [eax], cl
inc edx
cmp edx, dword [ebp + 0x18]
jb 0x4ce101
xor eax, eax
pop edi
pop esi
inc eax
pop ebx
pop ebp
ret 0x18
Function at 0x4db6fb
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x120
cmp dword [esp + 0x10], esi
mov eax, dword [edi]
jae 0x4db71f
push eax
call fcn.004ec71e
push 2
call fcn.004ec6ae
pop ecx
mov dword [edi], eax
pop ecx
push esi
push 0
push eax
call fcn.005803a0
add esp, 0xc
pop edi
pop esi
ret

Function at 0x4ea1dc
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4ea209
push esi
call fcn.004e8175
cmp byte [esi + 0x40], 0
pop ecx
je 0x4ea202
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4ea278
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x4ea26d
mov eax, dword [esi + 8]
test eax, eax
je 0x4ea22a
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x4ea269
cmp eax, 2
je 0x4ea26d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4ea21f
cmp eax, 3
je 0x4ea24e
cmp eax, 1
jne 0x4ea21f
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x4ea21f
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4ea21f
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x4ea296
cmp eax, 0xcc
je 0x4ea296
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
call dword [eax]
pop ecx
push esi
call fcn.004ea29f
pop ecx
pop esi
ret

Function at 0x4f090c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [esp + 8], 0
jne 0x4f0916
xor eax, eax
ret
jmp fcn.004f091b
Function at 0x4fae48
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
lea ecx, [edi + ecx - 0x106]
sub ebx, eax
cmp eax, ecx
jb 0x4faed0
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00580060
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
mov dword [ebp + 8], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x4fae93
mov eax, dword [esi + 0x40]
mov dword [ebp + 8], edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x4faeb5
add ebx, edi
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x4faf2b
mov ecx, dword [esi + 0x74]
push ebx
add ecx, dword [esi + 0x6c]
add ecx, dword [esi + 0x38]
push ecx
push eax
call fcn.004faf30
add dword [esi + 0x74], eax
mov ebx, dword [esi + 0x74]
add esp, 0xc
cmp ebx, 3
jb 0x4faf17
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x4faf2b
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x4fae54
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x518960
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x518980
mov edx, dword [esp + 8]
push 1
mov dword [ecx + 0x44], edx
mov eax, dword [eax + 0x58]
add eax, 4
push eax
call fcn.00581328
mov ecx, dword [eax + 0x10]
push eax
call dword [ecx + 0x28]
add esp, 4
push 1
call fcn.0057fd76
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop