joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d9e70
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 0x4dc340
Capabilities:
Access the windows event log

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.00481a50
mov eax, dword [0x594aa4]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4dc3a5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4dc3a5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.0048aa3e
add eax, 0x40
push eax
call fcn.005391c6
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0047ff9f
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.0053908e
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4dc434
call fcn.004dc260
test eax, eax
je 0x4dc434
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0047ff9f
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0047ff9f
add esp, 0x108
ret

Function at 0x4dc880
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x4dc8c7
mov al, byte [edx]
test al, al
je 0x4dc8c7
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
inc edx
xor esi, ecx
test al, al
jne 0x4dc897
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4dd030
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 0x4dd07f
je 0x4dd063
cmp esi, 0xffffffff
jne 0x4dd07f
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 4
je 0x4dd079
cmp eax, 0xb
je 0x4dd079
cmp eax, 0x2733
jne 0x4dd07d
or dword [edi + 0x14], 0xa
mov eax, esi
pop edi
pop esi
ret
Function at 0x4e55b0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push ebx
call fcn.0053818d
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e5640
push 0x7a
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004ca150
push 0x55b4d0
push edi
push 0x55ff28
push ebx
push str.fopen_
push 5
call fcn.004c9d40
add esp, 0x2c
call fcn.00482ab2
cmp dword [eax], 2
jne 0x4e5625
push 0x7d
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004ca150
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x7f
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004ca150
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x59e770
call fcn.004c6d10
add esp, 4
mov edi, eax
push esi
test edi, edi
jne 0x4e5662
call fcn.0048012f
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 1
push 0x6a
push edi
call fcn.004c6b00
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4f1fb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x54
call fcn.00481a50
mov eax, dword [0x594aa4]
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.004e2000
lea edx, [esp + 0x18]
push edx
call fcn.004e2000
add esp, 8
xor ebx, ebx
test ebp, ebp
jg 0x4f2036
lea ecx, [esp + 0x38]
push 0x14
push ecx
call fcn.004dbd50
lea edx, [esp + 0x30]
push edx
call fcn.004e21d0
lea eax, [esp + 0x20]
push eax
call fcn.004e21d0
add esp, 0x10
pop edi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0047ff9f
add esp, 0x54
ret
mov edi, dword [esp + 0x24]
inc edi
mov dword [esp + 0x24], edi
cmp edi, 0x10
ja 0x4f216d
test edi, edi
jbe 0x4f205b
mov eax, dword [esp + 0x10]
push edi
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.004804c0
add esp, 0xc
inc byte [esp + 0x10]
push 0
call fcn.004e9710
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.004e2020
push edi
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004e2140
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.004e2140
mov ecx, dword [esi + 0x58]
push 0x20
add ecx, 0x98
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.004e2140
mov eax, dword [esi + 0x58]
push 0x20
add eax, 0xb8
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.004e2140
push 0
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.004e2150
add esp, 0x48
push 0
call fcn.004e2420
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004e2020
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.004e2140
push 0x14
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004e2140
add esp, 0x24
lea edi, [ebx + 0x10]
cmp edi, ebp
push 0
jle 0x4f2147
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004e2150
mov ecx, dword [esp + 0x18]
mov edx, ebp
sub edx, ebx
push edx
lea eax, [esp + 0x48]
push eax
push ecx
call fcn.00481e40
add esp, 0x18
jmp 0x4f2159
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.004e2150
add esp, 0xc
add dword [esp + 0xc], 0x10
mov ebx, edi
cmp ebx, ebp
jl 0x4f2032
jmp 0x4f1ff8
push 0x9c
push str.._ssl_s3_enc.c
push 0x44
push 0xee
push 0x14
call fcn.004ca150
mov ecx, dword [esp + 0x70]
add esp, 0x14
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0047ff9f
add esp, 0x54
ret
Function at 0x50d390
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc8
call fcn.00481a50
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 0x50d3c2
xor ecx, ecx
xor edx, edx
lea ecx, [ecx]
xor eax, eax
jmp 0x50d410
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 0x50d410
add ecx, edx
inc edx
and ecx, 0xff
cmp edx, 0x12
jl 0x50d400
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.004dbd50
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret
Function at 0x50db40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x30
call fcn.00481a50
mov eax, dword [0x594aa4]
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 0x50dcfc
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.0050e630
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 0x50dbe5
test ebp, ebp
jle 0x50dc32
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 0x50dbd0
jmp 0x50dc2e
xor esi, esi
test ebp, ebp
jle 0x50dc32
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 0x50dc14
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 0x50dc10
mov ebx, dword [esp + 0x4c]
mov ecx, ebx
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x50dc41
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 0x50dc84
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.0047ff9f
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 0x50dc96
pop esi
pop ebp
mov ecx, dword [esp + 0x34]
pop edi
pop ebx
xor ecx, esp
call fcn.0047ff9f
add esp, 0x30
ret
Function at 0x50e3e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebx
push eax
push ecx
call fcn.0050deb0
add esp, 0xc
test eax, eax
jl 0x50e628
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
push edi
test edx, edx
jle 0x50e45d
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea ebx, [ebx]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x50e420
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x50e624
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x56ce98]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x56ce98]
and esi, 0xff
mov esi, dword [esi*4 + 0x56da98]
and edi, 0xff
xor esi, dword [edi*4 + 0x56e298]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x56ce98]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x56e698]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x56ce98]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x56de98]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x56ce98]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x56ce98]
and esi, 0xff
mov esi, dword [esi*4 + 0x56da98]
and edi, 0xff
xor esi, dword [edi*4 + 0x56e298]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x56ce98]
and edi, 0xff
xor esi, dword [edi*4 + 0x56de98]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x56ce98]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x56e698]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x56ce98]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x56ce98]
and esi, 0xff
mov esi, dword [esi*4 + 0x56da98]
and edi, 0xff
xor esi, dword [edi*4 + 0x56e298]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x56ce98]
and edi, 0xff
xor esi, dword [edi*4 + 0x56de98]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x56ce98]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x56e698]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x56ce98]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x56ce98]
and esi, 0xff
mov esi, dword [esi*4 + 0x56da98]
and edi, 0xff
xor esi, dword [edi*4 + 0x56e298]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x56ce98]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x56ce98]
and edi, 0xff
xor esi, dword [edi*4 + 0x56de98]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x56e698]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x50e471
pop edi
xor eax, eax
pop esi
pop ebx
ret
Function at 0x50fbd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.00481a50
mov eax, dword [0x594aa4]
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 0x50fd9a
dec dword [esp + 0x18]
test esi, esi
jne 0x50fd0a
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0050f190
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 0x50fca8
cmp dword [esp + 0x10], 0
je 0x50fd81
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.0047ff9f
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.0047ff9f
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.0047ff9f
add esp, 0x28
ret
Function at 0x50fdc0
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 0x50fdda
mov eax, 0x80
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x50fdea
cmp ecx, 0x400
jle 0x50fdef
mov ecx, 0x400
test eax, eax
jle 0x50fe0c
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 0x50fe00
pop ebp
cmp eax, 0x80
movzx edx, byte [edi + eax - 1]
jge 0x50fe3e
mov esi, edi
sub esi, eax
lea esp, [esp]
movzx ebx, byte [esi + eax]
add ebx, edx
and ebx, 0xff
movzx edx, byte [ebx + 0x5a0c08]
mov byte [eax + edi], dl
inc eax
cmp eax, 0x80
jl 0x50fe20
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 + 0x5a0c08]
mov byte [esi], cl
test eax, eax
je 0x50fe86
lea esp, [esp]
movzx ebx, byte [esi + edx - 1]
dec esi
xor ebx, ecx
movzx ecx, byte [ebx + 0x5a0c08]
dec eax
mov byte [esi], cl
test eax, eax
jne 0x50fe70
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 0x50fe94
pop edi
pop esi
pop ebx
ret
Function at 0x5114c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.00481a50
mov eax, dword [0x594aa4]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
push ebx
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]
lea eax, [edi + 1]
mov dword [esp + 0x28], eax
inc eax
inc eax
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [eax - 1]
inc eax
movzx ebx, byte [eax + 1]
shl edx, 8
inc eax
or ecx, edx
movzx edx, byte [eax - 2]
or ecx, edx
movzx edx, byte [eax - 1]
inc eax
shl ebx, 0x10
shl edx, 0x18
or edx, ebx
movzx ebx, byte [eax]
movzx eax, byte [eax + 1]
shl ebx, 8
or ebx, eax
mov ebp, dword [esp + 0x40]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2d], al
or edx, ebx
mov eax, ecx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
cmp dword [esp + 0x44], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov byte [esp + 0x2f], cl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
je 0x51168c
mov ebx, dword [esp + 0x3c]
dec dword [esp + 0x18]
test esi, esi
jne 0x511604
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00510770
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x34], al
mov edx, ecx
shr edx, 0x10
mov eax, ecx
shr eax, 8
mov byte [esp + 0x36], al
mov byte [esp + 0x35], dl
mov edx, dword [esp + 0x28]
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x38], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x39], al
mov eax, edx
shr eax, 8
add esp, 8
inc dword [esp + 0x10]
mov byte [esp + 0x2f], cl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
xor al, byte [ebx]
inc esi
mov byte [ebp], al
inc ebp
inc ebx
and esi, 7
cmp dword [esp + 0x18], 0
jne 0x5115a0
cmp dword [esp + 0x10], 0
je 0x511673
mov eax, ecx
shr eax, 0x18
mov byte [edi], al
mov eax, dword [esp + 0x28]
mov ebx, ecx
shr ebx, 0x10
mov byte [eax], bl
mov ebx, ecx
inc eax
shr ebx, 8
mov byte [eax], bl
mov byte [eax + 1], cl
inc eax
inc eax
mov ecx, edx
shr ecx, 0x18
mov byte [eax], cl
mov ecx, edx
inc eax
shr ecx, 0x10
mov byte [eax], cl
inc eax
mov ecx, edx
shr ecx, 8
mov byte [eax], cl
mov byte [eax + 1], dl
mov edx, dword [esp + 0x14]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0047ff9f
add esp, 0x28
ret
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.0047ff9f
add esp, 0x28
ret
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
mov ecx, dword [esp + 0x30]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047ff9f
add esp, 0x28
ret