joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f010
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x74
call fcn.00526eb0
mov eax, dword [0x5af640]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x48f195
call fcn.0045f090
test eax, eax
je 0x48f195
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
mov ebx, eax
push edi
mov dword [esp + 0x48], ebx
call esi
push 0xa
push edi
mov dword [esp + 0x4c], eax
call esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
push 0x10
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
push esi
push ebx
mov dword [esp + 0x50], esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x50]
push ecx
push 0x18
push esi
mov dword [esp + 0x58], eax
call dword [sym.imp.GDI32.dll_GetObjectA]
movzx esi, word [esp + 0x60]
imul esi, dword [esp + 0x58]
imul esi, dword [esp + 0x5c]
push 0x2d5
push str..crypto_rand_rand_win.c
push esi
call fcn.0045ed30
add esp, 0xc
mov dword [esp + 0x3c], eax
test eax, eax
je 0x48f176
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
xor ebx, ebx
mov dword [esp + 0x38], ecx
test ecx, ecx
jle 0x48f169
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push 0xcc0020
push ebx
push 0
push edi
push 0x10
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
push ecx
push esi
push edx
call dword [sym.imp.GDI32.dll_GetBitmapBits]
push 0
call fcn.004a9d70
mov ecx, dword [esp + 0x40]
push eax
push 0
lea eax, [esp + 0x74]
push eax
push esi
push ecx
call fcn.004a45e0
add esp, 0x18
mov eax, 8
call fcn.00526eb0
fldz
fstp qword [esp]
lea edx, [esp + 0x70]
push 0x14
push edx
call fcn.00489d50
add ebx, 0x10
add esp, 0x10
cmp ebx, dword [esp + 0x38]
jl 0x48f0f1
mov eax, dword [esp + 0x3c]
push eax
call fcn.0045eee0
mov ebx, dword [esp + 0x44]
add esp, 4
mov eax, dword [esp + 0x4c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00522f5c
mov esp, ebp
pop ebp
ret
Function at 0x48f8f0
Capabilities:
Capture screenshot

Disassembly:
call fcn.0048f1b0
jmp fcn.0048f010

Function at 0x49a740
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.00524b07
add esp, 0x18
test eax, eax
je 0x49a763
cmp eax, 0xffffffff
jne 0x49a765
xor eax, eax
ret

Function at 0x49a7a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a4]
test esi, esi
jne 0x49a7b9
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.00486660
push edx
push eax
call fcn.00486690
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x49a806
mov eax, dword [ebx + 0xbc]
mov ecx, dword [ebx + 0xb8]
push eax
push ecx
call fcn.00486660
push edx
push eax
call fcn.00486690
mov ecx, dword [edi + 0x19c]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x49a808
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x49b150
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x59fe00]
mov edi, eax
add esp, 4
test edi, edi
jne 0x49b175
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x49b1bc
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x49b1c0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x49b21e
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x49b1e3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x49b261
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x561f04
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x561f05
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x49b230
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x49d340
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
lea eax, [ecx + 1]
ret
Function at 0x49fc70
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call sub.WS2_32.dll_WSASetLastError
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x1c]
push 0
push eax
push ecx
push edx
call sub.WS2_32.dll_send
and dword [edi + 0x14], 0xfffffff0
mov esi, eax
test esi, esi
jg 0x49fcbf
je 0x49fca3
cmp esi, 0xffffffff
jne 0x49fcbf
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 4
je 0x49fcb9
cmp eax, 0xb
je 0x49fcb9
cmp eax, 0x2733
jne 0x49fcbd
or dword [edi + 0x14], 0xa
mov eax, esi
pop edi
pop esi
ret
Function at 0x4b2610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x54
call fcn.00526eb0
mov eax, dword [0x5af640]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x58]
push ebx
push ebp
mov ebp, dword [esp + 0x64]
push edi
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], 0x41
xor edi, edi
call fcn.004a42a0
lea edx, [esp + 0x18]
push edx
call fcn.004a42a0
add esp, 8
xor ebx, ebx
test ebp, ebp
jg 0x4b2696
lea ecx, [esp + 0x38]
push 0x14
push ecx
call fcn.0046d9f0
lea edx, [esp + 0x30]
push edx
call fcn.004a4470
lea eax, [esp + 0x20]
push eax
call fcn.004a4470
add esp, 0x10
pop edi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00522f5c
add esp, 0x54
ret
mov edi, dword [esp + 0x24]
inc edi
mov dword [esp + 0x24], edi
cmp edi, 0x10
ja 0x4b27cd
test edi, edi
jbe 0x4b26bb
mov eax, dword [esp + 0x10]
push edi
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.00523080
add esp, 0xc
inc byte [esp + 0x10]
push 0
call fcn.004a9d70
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.004a42c0
push edi
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004a43e0
mov eax, dword [esi + 0xbc]
mov edx, dword [eax + 0x10]
push edx
add eax, 0x14
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004a43e0
mov ecx, dword [esi + 0x58]
push 0x20
add ecx, 0x98
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.004a43e0
mov eax, dword [esi + 0x58]
push 0x20
add eax, 0xb8
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.004a43e0
push 0
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.004a43f0
add esp, 0x48
push 0
call fcn.004a46c0
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004a42c0
mov eax, dword [esi + 0xbc]
mov edx, dword [eax + 0x10]
push edx
add eax, 0x14
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004a43e0
push 0x14
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004a43e0
add esp, 0x24
lea edi, [ebx + 0x10]
cmp edi, ebp
push 0
jle 0x4b27a7
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004a43f0
mov ecx, dword [esp + 0x18]
mov edx, ebp
sub edx, ebx
push edx
lea eax, [esp + 0x48]
push eax
push ecx
call fcn.00523990
add esp, 0x18
jmp 0x4b27b9
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.004a43f0
add esp, 0xc
add dword [esp + 0xc], 0x10
mov ebx, edi
cmp ebx, ebp
jl 0x4b2692
jmp 0x4b2658
push 0x9c
push str.._ssl_s3_enc.c
push 0x44
push 0xee
push 0x14
call fcn.004601b0
mov ecx, dword [esp + 0x70]
add esp, 0x14
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00522f5c
add esp, 0x54
ret
Function at 0x4cd280
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc8
call fcn.00526eb0
push ebx
push ebp
push esi
lea eax, [ecx + 0x54]
lea esi, [ecx + 0x14]
mov ecx, dword [esi + 0x3c]
push edi
lea ebp, [esp + 0x58]
lea edi, [esp + 0x98]
xor ebx, ebx
sub ebp, eax
sub edi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
sub esi, eax
mov edx, dword [eax]
mov ecx, dword [esp + 0xdc]
movzx ecx, byte [ebx + ecx]
mov dword [eax + ebp - 0x40], edx
xor edx, ecx
mov dword [eax + ebp], ecx
xor ecx, dword [esp + 0x10]
mov dword [edi + eax], edx
mov edx, dword [ecx*4 + str._.C]
xor dword [esi + eax], edx
mov ecx, dword [esi + eax]
inc ebx
add eax, 4
cmp ebx, 0x10
mov dword [esp + 0x10], ecx
jl 0x4cd2b2
xor ecx, ecx
xor edx, edx
lea ecx, [ecx]
xor eax, eax
jmp 0x4cd300
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x18], ecx
mov ecx, dword [esp + eax*4 + 0x18]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x1c], ecx
mov ecx, dword [esp + eax*4 + 0x1c]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x20], ecx
mov ecx, dword [esp + eax*4 + 0x20]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x24], ecx
mov ecx, dword [esp + eax*4 + 0x24]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x28], ecx
mov ecx, dword [esp + eax*4 + 0x28]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x2c], ecx
mov ecx, dword [esp + eax*4 + 0x2c]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x30], ecx
mov ecx, dword [esp + eax*4 + 0x30]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x34], ecx
mov ecx, dword [esp + eax*4 + 0x34]
add eax, 8
cmp eax, 0x30
jl 0x4cd300
add ecx, edx
inc edx
and ecx, 0xff
cmp edx, 0x12
jl 0x4cd2f0
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x18]
push 0xc0
mov ecx, 0x10
lea esi, [esp + 0x1c]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0046d9f0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret
Function at 0x4cda30
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x30
call fcn.00526eb0
mov eax, dword [0x5af640]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x40]
lea ecx, [ebx - 1]
push edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
cmp ecx, 0x7f
ja 0x4cdbec
mov edx, dword [edi]
mov ecx, dword [edi + 4]
push ebp
push esi
push eax
mov dword [esp + 0x20], edx
mov edx, dword [edi + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0xc]
push edi
push edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
call fcn.0045d600
lea eax, [ebx + 7]
cdq
and edx, 7
add eax, edx
mov ebp, eax
add esp, 0xc
sar ebp, 3
cmp dword [esp + 0x58], 0
je 0x4cdad5
test ebp, ebp
jle 0x4cdb22
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x14]
mov edx, edi
lea esi, [esp + 0x2c]
sub edx, ecx
sub esi, ecx
sub ebx, ecx
lea esp, [esp]
mov al, byte [edx + ecx]
xor al, byte [ecx]
inc ecx
sub ebp, 1
mov byte [esi + ecx - 1], al
mov byte [ebx + ecx - 1], al
jne 0x4cdac0
jmp 0x4cdb1e
xor esi, esi
test ebp, ebp
jle 0x4cdb22
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x2c]
mov ecx, eax
sub edx, eax
mov eax, dword [esp + 0x14]
mov ebx, edi
sub ebx, ecx
sub eax, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
jmp 0x4cdb04
mov ebx, dword [esp + 0x18]
lea ecx, [esp + esi + 0x2c]
mov al, byte [edx + ecx]
mov bl, byte [ebx + ecx]
xor bl, al
mov byte [ecx], al
mov eax, dword [esp + 0x14]
inc esi
cmp esi, ebp
mov byte [eax + ecx], bl
jl 0x4cdb00
mov ebx, dword [esp + 0x4c]
mov ecx, ebx
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x4cdb31
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x4cdb74
mov ecx, dword [esp + eax + 0x1c]
mov edx, dword [esp + eax + 0x20]
lea eax, [esp + eax + 0x1c]
mov dword [edi], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 4], edx
mov edx, dword [eax + 0xc]
pop esi
mov dword [edi + 8], ecx
pop ebp
mov dword [edi + 0xc], edx
pop edi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00522f5c
add esp, 0x30
ret
mov dl, 8
sub dl, cl
mov byte [esp + 0x13], dl
inc edi
lea esi, [esp + eax + 0x1d]
mov ebp, 4
movzx edx, byte [esi - 1]
mov al, byte [esi]
shl dl, cl
movzx ecx, byte [esp + 0x13]
mov bl, al
shr bl, cl
mov ecx, dword [esp + 0x14]
shl al, cl
movzx ecx, byte [esp + 0x13]
or dl, bl
mov byte [edi - 1], dl
mov dl, byte [esi + 1]
mov bl, dl
shr bl, cl
mov ecx, dword [esp + 0x14]
shl dl, cl
movzx ecx, byte [esp + 0x13]
or al, bl
mov byte [edi], al
mov al, byte [esi + 2]
mov bl, al
shr bl, cl
movzx ecx, byte [esp + 0x13]
or dl, bl
mov byte [edi + 1], dl
movzx edx, byte [esi + 3]
shr dl, cl
mov ecx, dword [esp + 0x14]
shl al, cl
add esi, 4
add edi, 4
or dl, al
sub ebp, 1
mov byte [edi - 2], dl
jne 0x4cdb86
pop esi
pop ebp
mov ecx, dword [esp + 0x34]
pop edi
pop ebx
xor ecx, esp
call fcn.00522f5c
add esp, 0x30
ret
Function at 0x4ce510
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 8
call fcn.00526eb0
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x20]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [eax]
push edi
je 0x4ce617
test ebp, ebp
je 0x4ce6f2
mov edi, dword [esp + 0x2c]
nop
dec ebp
test esi, esi
jne 0x4ce5e1
movzx ecx, byte [edi]
lea ebx, [edi + 1]
mov eax, ebx
movzx edx, byte [eax]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
shl edx, 0x18
or ecx, edx
inc eax
movzx edx, byte [eax + 1]
mov dword [esp + 0x10], ecx
movzx ecx, byte [eax]
inc eax
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
inc eax
movzx eax, byte [eax]
shl edx, 8
or edx, eax
shl edx, 0x10
or edx, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.004cdd90
mov ecx, dword [esp + 0x18]
mov byte [edi], cl
mov edx, ecx
shr edx, 8
mov eax, ebx
mov byte [eax], dl
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x1c]
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, ecx
inc eax
shr edx, 0x10
add esp, 8
shr ecx, 0x18
mov byte [eax], dl
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx]
xor al, byte [esi + edi]
inc ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
mov byte [ecx], al
mov byte [esi + edi], al
inc esi
inc ecx
and esi, 7
mov dword [esp + 0x20], ecx
test ebp, ebp
jne 0x4ce540
mov eax, dword [esp + 0x30]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
test ebp, ebp
je 0x4ce6f2
mov edi, dword [esp + 0x2c]
dec ebp
test esi, esi
jne 0x4ce6c4
movzx ecx, byte [edi]
lea ebx, [edi + 1]
mov eax, ebx
movzx edx, byte [eax]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
shl edx, 0x18
or ecx, edx
inc eax
movzx edx, byte [eax + 1]
mov dword [esp + 0x10], ecx
movzx ecx, byte [eax]
inc eax
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
inc eax
movzx eax, byte [eax]
shl edx, 8
or edx, eax
shl edx, 0x10
or edx, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.004cdd90
mov ecx, dword [esp + 0x18]
mov byte [edi], cl
mov edx, ecx
shr edx, 8
mov eax, ebx
mov byte [eax], dl
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x1c]
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, ecx
inc eax
shr edx, 0x10
add esp, 8
shr ecx, 0x18
mov byte [eax], dl
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx]
inc ecx
mov dword [esp + 0x1c], ecx
mov cl, byte [esi + edi]
mov byte [esi + edi], al
xor al, cl
mov ecx, dword [esp + 0x20]
inc esi
mov byte [ecx], al
inc ecx
and esi, 7
mov dword [esp + 0x20], ecx
test ebp, ebp
jne 0x4ce623
mov eax, dword [esp + 0x30]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4ce7d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.00526eb0
mov eax, dword [0x5af640]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x4c]
movzx edx, byte [edi + 1]
mov dword [esp + 0x18], ecx
movzx ecx, byte [edi]
shl edx, 8
or ecx, edx
lea eax, [edi + 1]
movzx edx, byte [eax + 1]
mov dword [esp + 0x28], eax
inc eax
inc eax
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax]
inc eax
movzx ebx, byte [eax + 1]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax]
inc eax
mov ebp, dword [esp + 0x40]
inc eax
shl ebx, 8
or edx, ebx
movzx ebx, byte [eax + 1]
movzx eax, byte [eax]
shl ebx, 8
or ebx, eax
mov eax, ecx
shr eax, 8
shl ebx, 0x10
or edx, ebx
mov byte [esp + 0x2d], al
mov eax, ecx
mov ebx, ecx
mov byte [esp + 0x2c], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], cl
mov ecx, edx
mov eax, edx
mov dword [esp + 0x20], edx
mov byte [esp + 0x30], dl
shr ecx, 8
shr eax, 0x10
shr edx, 0x18
cmp dword [esp + 0x44], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
je 0x4ce99a
dec dword [esp + 0x18]
test esi, esi
jne 0x4ce90a
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004cdd90
mov ebx, dword [esp + 0x24]
mov eax, ebx
shr eax, 8
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov byte [esp + 0x35], al
mov eax, dword [esp + 0x28]
mov byte [esp + 0x36], cl
mov byte [esp + 0x37], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0x38], al
shr ecx, 8
shr edx, 0x10
shr eax, 0x18
add esp, 8
inc dword [esp + 0x10]
mov byte [esp + 0x2c], bl
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], al
mov cl, byte [esp + esi + 0x2c]
mov eax, dword [esp + 0x3c]
xor cl, byte [eax]
inc esi
mov byte [ebp], cl
inc eax
inc ebp
and esi, 7
cmp dword [esp + 0x18], 0
mov dword [esp + 0x3c], eax
jne 0x4ce8a8
cmp dword [esp + 0x10], 0
je 0x4ce981
mov eax, dword [esp + 0x28]
mov byte [edi], bl
mov edx, ebx
shr edx, 8
mov byte [eax], dl
inc eax
mov ecx, ebx
shr ecx, 0x10
mov byte [eax], cl
mov ecx, dword [esp + 0x20]
inc eax
shr ebx, 0x18
mov byte [eax], bl
mov byte [eax + 1], cl
inc eax
inc eax
mov edx, ecx
shr edx, 8
mov byte [eax], dl
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
shr ecx, 0x18
mov byte [eax + 1], cl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00522f5c
add esp, 0x28
ret
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00522f5c
add esp, 0x28
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00522f5c
add esp, 0x28
ret
Function at 0x4ce9c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 0x80
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov byte [edi], 0
jle 0x4ce9da
mov eax, 0x80
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x4ce9ea
cmp ecx, 0x400
jle 0x4ce9ef
mov ecx, 0x400
test eax, eax
jle 0x4cea0c
mov esi, dword [esp + 0x18]
push ebp
mov edx, edi
sub esi, edi
mov ebp, eax
mov edi, edi
mov bl, byte [esi + edx]
mov byte [edx], bl
inc edx
sub ebp, 1
jne 0x4cea00
pop ebp
cmp eax, 0x80
movzx edx, byte [edi + eax - 1]
jge 0x4cea3e
mov esi, edi
sub esi, eax
lea esp, [esp]
movzx ebx, byte [esi + eax]
add ebx, edx
and ebx, 0xff
movzx edx, byte [ebx + 0x5aaca0]
mov byte [eax + edi], dl
inc eax
cmp eax, 0x80
jl 0x4cea20
lea edx, [ecx + 7]
neg ecx
sar edx, 3
mov eax, 0x80
and ecx, 7
sub eax, edx
lea esi, [eax + edi]
mov ebx, 0xff
sar ebx, cl
movzx ecx, byte [esi]
and ebx, ecx
movzx ecx, byte [ebx + 0x5aaca0]
mov byte [esi], cl
test eax, eax
je 0x4cea86
lea esp, [esp]
movzx ebx, byte [esi + edx - 1]
dec esi
xor ebx, ecx
movzx ecx, byte [ebx + 0x5aaca0]
dec eax
mov byte [esi], cl
test eax, eax
jne 0x4cea70
lea ecx, [edi + 0xfc]
lea eax, [edi + 0x7e]
mov edx, 0x40
movzx esi, byte [eax + 1]
movzx edi, byte [eax]
shl esi, 8
or esi, edi
and esi, 0xffff
mov dword [ecx], esi
sub ecx, 4
sub eax, 2
sub edx, 1
jne 0x4cea94
pop edi
pop esi
pop ebx
ret