joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44acee
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x18]
push ebp
push esi
mov esi, dword [ecx]
mov ebp, dword [esi + 0x105c]
push edi
mov edi, dword [esi + 0x1050]
imul ebp, edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x18]
add ebp, eax
cmp eax, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ebp
jae 0x44ae38
mov edx, 0xf0f0
push ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esi + 0x1058]
lea esi, [eax + esi*2]
mov dword [esp + 0x10], ebx
add edi, eax
cmp eax, esi
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], esi
jae 0x44ae13
movzx ecx, word [ebx]
movzx esi, word [ebx + 2]
movzx eax, word [edi + 2]
movzx edi, word [edi]
mov ebp, ecx
mov ebx, eax
and bx, dx
and bp, dx
mov dword [esp + 0x24], ecx
and ecx, 0xffff0f0f
add ebx, ebp
mov ebp, edi
and bp, dx
add ebx, ebp
mov ebp, esi
and bp, dx
lea ebx, [ebx + ebp + 0x2020]
mov ebp, eax
and ebp, 0xffff0f0f
add ebp, ecx
mov ecx, edi
and ecx, 0xffff0f0f
add ebp, ecx
mov ecx, esi
and ecx, 0xffff0f0f
shr ebx, 2
lea ecx, [ecx + ebp + 0x202]
shr ecx, 2
xor ebx, ecx
mov ecx, dword [esp + 0x24]
and eax, edx
and ecx, edx
add eax, ecx
and edi, edx
add eax, edi
mov edi, dword [esp + 0x1c]
and esi, edx
and ebx, 0xffff0f0f
lea eax, [eax + esi + 0x2020]
shr eax, 2
xor ebx, eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 2
mov word [eax], bx
mov ebx, dword [esp + 0x18]
add ebx, 4
add edi, 4
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
jb 0x44ad57
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
mov esi, dword [ecx + 4]
mov esi, dword [esi + 0x1050]
add dword [esp + 0x14], esi
mov esi, dword [ecx]
mov edi, dword [esi + 0x1050]
lea eax, [eax + edi*2]
cmp eax, ebp
mov dword [esp + 0x20], eax
jb 0x44ad2e
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x44ae41
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
push ebp
mov ebp, dword [eax + 0x18]
mov eax, dword [edx + 0x18]
push esi
mov esi, dword [edx + 0x105c]
push edi
mov edi, dword [edx + 0x1050]
imul esi, edi
add esi, eax
cmp eax, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
jae 0x44af77
push ebx
mov edx, dword [edx + 0x1058]
add edx, eax
add edi, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edx
jae 0x44af52
movzx ebp, byte [ebx]
movzx esi, byte [ebx + 1]
movzx eax, byte [edi + 1]
movzx edi, byte [edi]
mov edx, eax
push 0x1c
pop ecx
and edx, ecx
mov ebx, ebp
and ebx, ecx
add edx, ebx
mov ebx, edi
and ebx, ecx
add edx, ebx
mov ebx, esi
and ebx, ecx
lea edx, [edx + ebx + 8]
mov ecx, eax
and ecx, 0xffff00e3
mov ebx, ebp
and ebx, 0xffff00e3
add ecx, ebx
mov ebx, edi
and ebx, 0xffff00e3
add ecx, ebx
mov ebx, esi
and ebx, 0xffff00e3
shr edx, 2
lea ecx, [ecx + ebx + 0x42]
mov ebx, dword [esp + 0x14]
shr ecx, 2
xor dl, cl
mov ecx, 0xe3
and ax, cx
and bp, cx
and di, cx
and si, cx
and dl, 0x1c
add eax, ebp
add eax, edi
mov edi, dword [esp + 0x18]
lea eax, [eax + esi + 0x42]
shr eax, 2
xor dl, al
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
inc ebx
inc ebx
inc edi
inc edi
cmp ebx, dword [esp + 0x24]
mov byte [eax], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jb 0x44aea0
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
add ebp, dword [edx + 0x1050]
mov edx, dword [ecx]
mov edi, dword [edx + 0x1050]
lea eax, [eax + edi*2]
cmp eax, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
jb 0x44ae7c
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
Function at 0x44b01b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x18]
push ebp
mov ebp, dword [edx + 0x1050]
push edi
mov edi, dword [edx + 0x105c]
imul edi, ebp
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x18]
add edi, eax
cmp eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edi
jae 0x44b15f
push ebx
push esi
mov esi, 0xff1c
mov ebx, dword [esp + 0x14]
mov edx, dword [edx + 0x1058]
lea edx, [eax + edx*2]
mov dword [esp + 0x10], ebx
add ebp, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], edx
jae 0x44b139
movzx edx, word [ebx]
movzx edi, word [ebx + 2]
movzx eax, word [ebp + 2]
movzx ebp, word [ebp]
mov dword [esp + 0x18], edx
mov ebx, eax
mov ecx, 0xe3
and bx, cx
and dx, cx
add ebx, edx
mov edx, ebp
and dx, cx
add ebx, edx
mov edx, edi
and dx, cx
mov ecx, eax
and cx, si
and eax, esi
lea edx, [ebx + edx + 0x42]
mov ebx, dword [esp + 0x18]
and bx, si
shr edx, 2
add ecx, ebx
mov ebx, ebp
and bx, si
and ebp, esi
add ecx, ebx
mov ebx, edi
and bx, si
and edi, esi
lea ecx, [ecx + ebx + 0x208]
mov ebx, dword [esp + 0x1c]
shr ecx, 2
xor dl, cl
mov ecx, dword [esp + 0x18]
and ecx, esi
add eax, ecx
add eax, ebp
mov ebp, dword [esp + 0x20]
lea eax, [eax + edi + 0x208]
shr eax, 2
and edx, 0xffff00e3
xor edx, eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 2
add ebx, 4
add ebp, 4
cmp ebx, dword [esp + 0x28]
mov word [eax], dx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
jb 0x44b084
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
mov edx, dword [ecx + 4]
mov edx, dword [edx + 0x1050]
add dword [esp + 0x14], edx
mov edx, dword [ecx]
mov ebp, dword [edx + 0x1050]
lea eax, [eax + ebp*2]
cmp eax, edi
mov dword [esp + 0x24], eax
jb 0x44b05b
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x44b288
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x18]
push ebp
mov ebp, dword [edx + 0x1050]
push edi
mov edi, dword [edx + 0x105c]
imul edi, ebp
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x18]
add edi, eax
cmp eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edi
jae 0x44b3cc
push ebx
push esi
mov esi, 0xff00
mov ebx, dword [esp + 0x14]
mov edx, dword [edx + 0x1058]
lea edx, [eax + edx*2]
mov dword [esp + 0x10], ebx
add ebp, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], edx
jae 0x44b3a6
movzx edx, word [ebx]
movzx edi, word [ebx + 2]
movzx eax, word [ebp + 2]
movzx ebp, word [ebp]
mov dword [esp + 0x18], edx
mov ebx, eax
mov ecx, 0xff
and bx, cx
and dx, cx
add ebx, edx
mov edx, ebp
and dx, cx
add ebx, edx
mov edx, edi
and dx, cx
mov ecx, eax
and cx, si
and eax, esi
lea edx, [ebx + edx + 2]
mov ebx, dword [esp + 0x18]
and bx, si
shr edx, 2
add ecx, ebx
mov ebx, ebp
and bx, si
and ebp, esi
add ecx, ebx
mov ebx, edi
and bx, si
and edi, esi
lea ecx, [ecx + ebx + 0x200]
mov ebx, dword [esp + 0x1c]
shr ecx, 2
xor dl, cl
mov ecx, dword [esp + 0x18]
and ecx, esi
add eax, ecx
add eax, ebp
mov ebp, dword [esp + 0x20]
lea eax, [eax + edi + 0x200]
shr eax, 2
and edx, 0xffff00ff
xor edx, eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 2
add ebx, 4
add ebp, 4
cmp ebx, dword [esp + 0x28]
mov word [eax], dx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
jb 0x44b2f1
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
mov edx, dword [ecx + 4]
mov edx, dword [edx + 0x1050]
add dword [esp + 0x14], edx
mov edx, dword [ecx]
mov ebp, dword [edx + 0x1050]
lea eax, [eax + ebp*2]
cmp eax, edi
mov dword [esp + 0x24], eax
jb 0x44b2c8
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x44b3d4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
push ebp
mov ebp, dword [eax + 0x18]
mov eax, dword [edx + 0x18]
push esi
mov esi, dword [edx + 0x105c]
push edi
mov edi, dword [edx + 0x1050]
imul esi, edi
add esi, eax
cmp eax, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
jae 0x44b50a
push ebx
mov edx, dword [edx + 0x1058]
add edx, eax
add edi, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edx
jae 0x44b4e5
movzx ebp, byte [ebx]
movzx esi, byte [ebx + 1]
movzx eax, byte [edi + 1]
movzx edi, byte [edi]
mov edx, eax
push 0xf
pop ecx
and edx, ecx
mov ebx, ebp
and ebx, ecx
add edx, ebx
mov ebx, edi
and ebx, ecx
add edx, ebx
mov ebx, esi
and ebx, ecx
lea edx, [edx + ebx + 2]
mov ecx, eax
and ecx, 0xffff00f0
mov ebx, ebp
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, edi
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, esi
and ebx, 0xffff00f0
shr edx, 2
lea ecx, [ecx + ebx + 0x20]
mov ebx, dword [esp + 0x14]
shr ecx, 2
xor dl, cl
mov ecx, 0xf0
and ax, cx
and bp, cx
and di, cx
and si, cx
and dl, 0xf
add eax, ebp
add eax, edi
mov edi, dword [esp + 0x18]
lea eax, [eax + esi + 0x20]
shr eax, 2
xor dl, al
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
inc ebx
inc ebx
inc edi
inc edi
cmp ebx, dword [esp + 0x24]
mov byte [eax], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jb 0x44b433
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
add ebp, dword [edx + 0x1050]
mov edx, dword [ecx]
mov edi, dword [edx + 0x1050]
lea eax, [eax + edi*2]
cmp eax, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
jb 0x44b40f
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
Function at 0x452b85
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x452ba6
mov eax, 0x8876086c
jmp 0x452c88
cmp dword [ebp + 0x7c], esi
je 0x452c20
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x452c00
mov ebx, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push esi
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.0042e4a0
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push esi
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x452c20
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
jmp 0x452c39
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x452c79
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x452c79
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
je 0x452c79
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
jne 0x452c86
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, 0x88760b59
jmp 0x452c88
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8

Function at 0x453c6c
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x453c99
push esi
call fcn.00463769
cmp byte [esi + 0x40], 0
pop ecx
je 0x453c92
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x453d08
mov eax, dword [esi + 0x18c]
cmp byte [eax + 0x10], 0
je 0x453cfd
mov eax, dword [esi + 8]
test eax, eax
je 0x453cba
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x18c]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x453cf9
cmp eax, 2
je 0x453cfd
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x453caf
cmp eax, 3
je 0x453cde
cmp eax, 1
jne 0x453caf
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x453caf
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x453caf
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x453d26
cmp eax, 0xcc
je 0x453d26
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.00453b3f
pop esi
ret
Function at 0x465073
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x465081
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 8
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x465155
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 3
push edi
xor ebx, ebx
mov bl, byte [edx]
mov edi, esi
shr edi, 8
sub dword [ebp + 0x10], 8
xor ebx, esi
and ebx, ecx
mov esi, dword [ebx*4 + 0x4df698]
xor ebx, ebx
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x4df698]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x4df698]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x4df698]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x4df698]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x4df698]
shr esi, 8
xor edi, esi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x4df698]
shr edi, 8
xor esi, edi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x4df698]
shr esi, 8
xor esi, edi
inc edx
dec eax
jne 0x46509e
pop edi
pop ebx
cmp dword [ebp + 0x10], 0
je 0x465175
xor eax, eax
mov al, byte [edx]
xor eax, esi
and eax, ecx
mov eax, dword [eax*4 + 0x4df698]
shr esi, 8
xor esi, eax
inc edx
dec dword [ebp + 0x10]
jne 0x46515b
mov eax, esi
not eax
pop esi
pop ebp
ret
Function at 0x47d0c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x47d0c7
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.0047cde0
Function at 0x47fb90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
mov bl, byte [ecx + 8]
push esi
mov esi, dword [esp + 0x20]
cmp bl, 3
je 0x47fd2f
push ebp
mov ebp, dword [ecx]
push edi
mov dword [esp + 0x10], 0
test bl, 2
je 0x47fbe6
movzx eax, byte [ecx + 9]
movzx esi, byte [edx]
mov edi, eax
sub edi, esi
movzx esi, byte [edx + 1]
mov dword [esp + 0x14], edi
mov edi, eax
sub edi, esi
movzx esi, byte [edx + 2]
sub eax, esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov edi, 3
jmp 0x47fbf9
movzx eax, byte [edx + 3]
movzx edi, byte [ecx + 9]
sub edi, eax
mov dword [esp + 0x14], edi
mov edi, 1
test bl, 4
je 0x47fc0d
movzx edx, byte [edx + 4]
movzx eax, byte [ecx + 9]
sub eax, edx
mov dword [esp + edi*4 + 0x14], eax
inc edi
xor edx, edx
xor eax, eax
cmp edi, edx
jle case.0x47fc5b.3
lea esp, [esp]
cmp dword [esp + eax*4 + 0x14], edx
jg 0x47fc2c
mov dword [esp + eax*4 + 0x14], edx
jmp 0x47fc34
mov dword [esp + 0x10], 1
inc eax
cmp eax, edi
jl 0x47fc20
cmp word [esp + 0x10], dx
je case.0x47fc5b.3
movzx eax, byte [ecx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x47fc5b.3
movzx eax, byte [eax + 0x47fd4c]
jmp dword [eax*4 + 0x47fd38]
mov ecx, dword [ecx + 4]
mov eax, esi
cmp ecx, edx
jbe case.0x47fc5b.3
nop
mov dl, byte [eax]
shr dl, 1
and dl, 0x55
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x47fc70
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
mov edi, dword [ecx + 4]
mov edx, dword [esp + 0x14]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x47fc5b.3
lea ebx, [ebx]
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x47fcb0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x47fc5b.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x14]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x47fcd2
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x47fc5b.3
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x14]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x47fcf6
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x494ca0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x494cc7
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x494cd3
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0x14], ecx
jle 0x494de6
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x494d18
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x494d39
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x494d8f
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x494d70
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
inc ebx
mov edx, eax
cmp esi, edx
jg 0x494d70
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x494d56
cmp dword [esp + 0x10], 0
je 0x494dcd
mov eax, 1
lea edx, [ebp - 1]
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
inc eax
dec edx
cmp eax, 0xff
jle 0x494db0
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
inc ecx
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x494d10
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x49ba00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x49ba51
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push 0x1c
push 1
push esi
call ecx
mov dword [esi + 0x180], eax
mov dword [eax], 0x49e090
mov dword [eax + 4], 0x49e060
mov byte [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.0049e590
cmp byte [esi + 0x40], 0
je 0x49ba4a
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 0x49bacb
mov edx, dword [esi + 0x190]
cmp byte [edx + 0x10], 0
je 0x49babb
mov eax, dword [esi + 8]
test eax, eax
je 0x49ba76
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov ecx, dword [esi + 0x190]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
test eax, eax
je 0x49bab7
cmp eax, 2
je 0x49babb
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x49ba67
cmp eax, 3
je 0x49ba9e
cmp eax, 1
jne 0x49ba67
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x49ba67
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x49ba67
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.0049b930
pop esi
ret
cmp eax, 0xcc
je 0x49baed
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.0049b930
pop esi
ret
Function at 0x4a3760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [edi + 0xf868], eax
mov edx, 1
shl edx, cl
mov dword [edi + 0xf864], ecx
mov dword [edi + 0xf858], ecx
dec ecx
mov eax, 1
shl eax, cl
sub esp, 0xc
push ebx
push ebp
mov dword [edi + 0xf86c], eax
inc eax
mov dword [edi + 0xf870], eax
mov ax, word [edi + 0xf86c]
add ax, 2
xor ebp, ebp
mov word [edi + 0xf85e], ax
mov eax, dword [edi + 0x1d4]
dec edx
push esi
mov dword [edi + 0xf860], ebp
mov dword [edi + 0x1dc], ebp
mov dword [edi + 0x1d8], ebp
mov word [edi + 0xf85c], dx
mov dword [edi + 0xf874], ebp
cmp eax, ebp
jne 0x4a37dc
mov dword [esp + 0xc], 0xffffffff
jmp 0x4a381a
mov ebx, dword [edi + 0x1cc]
mov esi, dword [edi + 0x1d0]
dec eax
mov dword [edi + 0x1d4], eax
mov ecx, ebx
mov eax, edi
call fcn.004a20c0
movzx ecx, al
lea eax, [ebx + 1]
mov dword [edi + 0x1cc], eax
cmp eax, dword [edi + 0xc]
jne 0x4a3816
dec esi
mov dword [edi + 0x1cc], ebp
mov dword [edi + 0x1d0], esi
mov dword [esp + 0xc], ecx
xor ecx, ecx
mov eax, 0x138b
add eax, eax
inc ecx
cmp eax, 0x10000
jl 0x4a3821
mov eax, 8
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, edi
call fcn.004a2c20
mov esi, edi
mov dx, word [edi + 0xf86c]
call fcn.004a2c80
jmp 0x4a3850
mov eax, dword [edi + 0x1d4]
test eax, eax
je 0x4a3995
mov ebx, dword [edi + 0x1cc]
mov esi, dword [edi + 0x1d0]
dec eax
mov dword [edi + 0x1d4], eax
mov ecx, ebx
mov eax, edi
call fcn.004a20c0
movzx eax, al
inc ebx
mov dword [esp + 0x14], eax
mov dword [edi + 0x1cc], ebx
cmp ebx, dword [edi + 0xc]
jne 0x4a389e
dec esi
mov dword [edi + 0x1cc], 0
mov dword [edi + 0x1d0], esi
cmp eax, 0xffffffff
je 0x4a3995
mov ecx, dword [esp + 0x10]
movsx ebx, ax
shl ebx, cl
mov ebp, eax
shl ebp, 0xc
add ebp, dword [esp + 0xc]
xor ebx, dword [esp + 0xc]
mov ecx, dword [edi + ebx*4 + 0x8314]
lea eax, [edi + ebx*4 + 0x8314]
cmp ecx, ebp
jne 0x4a38e0
movzx ecx, word [edi + ebx*2 + 0xd140]
mov dword [esp + 0xc], ecx
jmp 0x4a3850
test ecx, ecx
jl 0x4a391d
mov ecx, 0x138b
sub ecx, ebx
test ebx, ebx
jne 0x4a38f4
mov ecx, 1
lea edx, [ecx*4]
jmp 0x4a3900
sub ebx, ecx
sub eax, edx
test ebx, ebx
jge 0x4a3913
add ebx, 0x138b
add eax, 0x4e2c
mov esi, dword [eax]
cmp esi, ebp
je 0x4a395c
test esi, esi
jg 0x4a3900
mov edx, dword [esp + 0xc]
mov esi, edi
call fcn.004a2c80
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
movzx eax, word [edi + 0xf85e]
mov ecx, 0x1000
cmp ax, cx
jge 0x4a396d
mov word [edi + ebx*2 + 0xd140], ax
inc word [edi + 0xf85e]
mov dword [edi + ebx*4 + 0x8314], ebp
jmp 0x4a3850
movzx edx, word [edi + ebx*2 + 0xd140]
mov dword [esp + 0xc], edx
jmp 0x4a3850
mov eax, edi
call fcn.004a2c20
movzx edx, word [edi + 0xf86c]
add dx, 2
mov word [edi + 0xf85e], dx
mov dword [edi + 0xf860], 1
jmp 0x4a383f
mov edx, dword [esp + 0xc]
mov esi, edi
call fcn.004a2c80
mov dx, word [edi + 0xf870]
call fcn.004a2c80
pop esi
pop ebp
pop ebx
add esp, 0xc
ret