joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101031e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10133aa9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x101032ae
push 0
push 0
lea ecx, [ebp - 0x6c]
call fcn.100014c0
mov dword [ebp - 0xdc], str.Cannot_get_computer_name
mov edx, dword [ebp - 0xdc]
add edx, 1
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0xdc]
mov cl, byte [eax]
mov byte [ebp - 0xe1], cl
add dword [ebp - 0xdc], 1
cmp byte [ebp - 0xe1], 0
jne 0x10103247
mov edx, dword [ebp - 0xdc]
sub edx, dword [ebp - 0xe0]
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0xe8]
push eax
push str.Cannot_get_computer_name
lea ecx, [ebp - 0x6c]
call fcn.100020c0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x50]
call fcn.100f2200
push 0x1018d2b8
lea edx, [ebp - 0x50]
push edx
call fcn.10056f02
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.100014c0
lea eax, [ebp - 0x20]
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
add ecx, 1
mov dword [ebp - 0xf0], ecx
mov edx, dword [ebp - 0xec]
mov al, byte [edx]
mov byte [ebp - 0xf1], al
add dword [ebp - 0xec], 1
cmp byte [ebp - 0xf1], 0
jne 0x101032d2
mov ecx, dword [ebp - 0xec]
sub ecx, dword [ebp - 0xf0]
mov dword [ebp - 0xf8], ecx
mov edx, dword [ebp - 0xf8]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.100020c0
mov ecx, dword [ebp - 0x70]
or ecx, 1
mov dword [ebp - 0x70], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10105f97
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x10105fb3
call fcn.1005a508
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x10106025
push esi
push 0x8c
push 1
call fcn.1006530c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1010600b
push esi
call fcn.1005ccb5
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x10105f05
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x10106003
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10106022
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.100569b3
test ebx, ebx
pop ecx
je 0x1010601d
push ebx
call fcn.1005a51a
pop ecx
or eax, 0xffffffff
jmp 0x10106024
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x10107fc4
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x1016ea68
call fcn.1005aa8c
mov eax, dword [0x10194180]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x10108068
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.10057f70
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x10108055
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10108068
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x10108083
cmp byte [edi + 1], 0x3a
jne 0x10108083
movzx eax, byte [edi]
push eax
call fcn.10105ae3
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x10108093
push edi
call fcn.100569b3
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.100571c6
call fcn.1005aac7
ret

Function at 0x10109344
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x10109372
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x10109377
cmp eax, 1
je 0x10109377
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1010937b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10194180]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x101093f3
push ebx
call fcn.10109344
test eax, eax
pop ecx
jne 0x101093c2
call fcn.1005a511
mov dword [eax], 0xf
call fcn.1005a508
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.100571c6
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x10109405
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x101093b5
inc eax
cmp eax, 0x104
ja 0x101093b5
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x1010943d
cmp eax, dword [ebp + 0x10]
jg 0x10109420
mov eax, dword [ebp + 0x10]
push eax
call fcn.100567f4
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x10109452
call fcn.1005a508
mov dword [eax], 0xc
jmp 0x101093b5
cmp eax, dword [ebp + 0x10]
jle 0x10109452
call fcn.1005a508
mov dword [eax], 0x22
jmp 0x101093b5
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.1005a140
pop ecx
pop ecx
jmp 0x101093b7
Function at 0x10109cd0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [eax]
mov eax, dword [esp + 8]
mov ecx, dword [ecx + 0x8c]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
add ecx, 8
mov edi, 8
mov edi, edi
mov ebx, dword [ecx - 8]
mov eax, esi
ror eax, 4
xor eax, ebx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1016ece0]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1016eee0]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1016f0e0]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x1016f2e0]
mov eax, dword [ecx - 4]
xor edx, ebx
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1016ede0]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1016efe0]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1016f1e0]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x1016f3e0]
xor edx, ebx
mov ebx, dword [ecx]
mov eax, edx
ror eax, 4
xor eax, ebx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1016ece0]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1016eee0]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1016f0e0]
and eax, 0x3f
mov ebp, dword [eax*4 + 0x1016f2e0]
mov eax, dword [ecx + 4]
xor ebx, ebp
xor esi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1016ede0]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1016efe0]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1016f1e0]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x1016f3e0]
xor esi, ebx
add ecx, 0x10
dec edi
jne 0x10109cf0
mov ecx, dword [esp + 0x14]
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x1010ecd0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.10057f70
push ebx
mov ebx, dword [esp + 0x88]
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
test esi, esi
push edi
je 0x1010ecfb
mov eax, 1
mov dword [ebx], esi
jmp 0x1010ed06
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x1010ee6b
mov edi, dword [esi + 0x40]
cmp edi, 0x80
jle 0x1010ed34
push str.j____int_sizeof_ctx__key_
push 0x52
push str..cryptohmachmac.c
call fcn.1008de90
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x1010ed73
mov edx, dword [esp + 0xa4]
push edx
lea edi, [ebx + 4]
push esi
push edi
call fcn.1008c520
mov eax, dword [esp + 0xa4]
push ebp
push eax
push edi
call fcn.1008c640
lea esi, [ebx + 0x34]
push esi
lea ecx, [ebx + 0x38]
push ecx
push edi
call fcn.1008c650
add esp, 0x24
jmp 0x1010edb2
test ebp, ebp
jl 0x1010ed7f
cmp ebp, 0x80
jle 0x1010ed93
push str.len_0__len__int_sizeof_ctx__key_
push 0x5c
push str..cryptohmachmac.c
call fcn.1008de90
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x34]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x1010edd7
mov ecx, 0x80
sub ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
lea edi, [esi + ebx + 0x38]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x1010ede0
mov ebp, dword [esp + 0xa4]
push ebp
lea edi, [ebx + 0x14]
push esi
push edi
call fcn.1008c520
mov edx, dword [esi + 0x40]
push edx
lea eax, [esp + 0x20]
push eax
push edi
call fcn.1008c640
add esp, 0x18
xor eax, eax
lea esp, [esp]
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x1010ee20
push ebp
lea edi, [ebx + 0x24]
push esi
push edi
call fcn.1008c520
mov edx, dword [esi + 0x40]
push edx
lea eax, [esp + 0x20]
push eax
push edi
call fcn.1008c640
add esp, 0x18
lea ecx, [ebx + 0x14]
push ecx
add ebx, 4
push ebx
call fcn.1008c7a0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x1010ee50
jmp 0x1010edde
Function at 0x101105e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.10057f70
push ebx
mov ebx, dword [esp + 0x3c]
test ebx, ebx
jle 0x10110779
cmp ebx, 0x80
jg 0x10110779
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
mov eax, edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x4c]
push eax
push edi
push edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call fcn.10037cf0
lea eax, [ebx + 7]
cdq
and edx, 7
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x60]
add esp, 0xc
sar ebp, 3
test eax, eax
je 0x10110677
test ebp, ebp
jle 0x101106bf
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
lea esi, [esp + 0x2c]
sub edx, edi
sub esi, edi
mov ecx, edi
sub ebx, edi
mov al, byte [edx + ecx]
xor al, byte [ecx]
inc ecx
dec ebp
mov byte [esi + ecx - 1], al
mov byte [ebx + ecx - 1], al
jne 0x10110664
jmp 0x101106bb
xor esi, esi
test ebp, ebp
jle 0x101106bf
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x2c]
mov edx, ecx
sub eax, ecx
mov ecx, dword [esp + 0x44]
mov ebx, edi
sub ebx, edx
sub ecx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
jmp 0x101106a1
mov ebx, dword [esp + 0x14]
lea ecx, [esp + esi + 0x2c]
mov dl, byte [eax + ecx]
mov bl, byte [ebx + ecx]
xor bl, dl
mov byte [ecx], dl
mov edx, dword [esp + 0x18]
inc esi
cmp esi, ebp
mov byte [edx + ecx], bl
jl 0x1011069d
mov ebx, dword [esp + 0x48]
and ebx, reloc.WS2_32.dll_getsockopt
jns 0x101106cc
dec ebx
or ebx, 0xfffffff8
inc ebx
mov eax, dword [esp + 0x48]
cdq
and edx, 7
add eax, edx
sar eax, 3
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x10110703
lea eax, [esp + eax + 0x1c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [edi], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 4], edx
mov edx, dword [eax + 0xc]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov cl, 8
sub cl, bl
mov byte [esp + 0x48], cl
inc edi
lea esi, [esp + eax + 0x1d]
mov ebp, 4
mov al, byte [esi]
mov dl, byte [esi - 1]
mov ecx, ebx
shl dl, cl
mov cl, byte [esp + 0x48]
mov bl, al
shr bl, cl
mov ecx, dword [esp + 0x14]
shl al, cl
mov cl, byte [esp + 0x48]
or dl, bl
mov byte [edi - 1], dl
mov dl, byte [esi + 1]
mov bl, dl
shr bl, cl
add esi, 4
add edi, 4
or al, bl
mov ebx, dword [esp + 0x14]
mov byte [edi - 4], al
mov al, byte [esi - 2]
mov ecx, ebx
shl dl, cl
mov cl, byte [esp + 0x48]
mov byte [esp + 0x13], al
shr al, cl
or dl, al
mov al, byte [esp + 0x13]
mov byte [edi - 3], dl
mov dl, byte [esi - 1]
shr dl, cl
mov ecx, ebx
shl al, cl
or dl, al
dec ebp
mov byte [edi - 2], dl
jne 0x10110715
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x10111490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x14
call fcn.10057f70
mov eax, dword [esp + 0x2c]
push ebx
xor edx, edx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x38]
movzx ecx, byte [edi]
lea ebp, [edi + 1]
mov eax, ebp
mov dh, byte [eax]
xor ebx, ebx
mov dword [esp + 0x10], 0
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
movzx edx, byte [eax + 1]
inc eax
mov bh, byte [eax + 1]
inc eax
mov byte [esp + 0x14], cl
or edx, ebx
inc eax
xor ebx, ebx
mov bh, byte [eax + 1]
mov bl, byte [eax]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x15], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x16], al
shl ebx, 0x10
or edx, ebx
mov ebx, ecx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x17], cl
mov ecx, edx
mov byte [esp + 0x1a], al
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], edx
mov byte [esp + 0x18], dl
shr ecx, 8
shr edx, 0x18
test eax, eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x19], cl
mov byte [esp + 0x1b], dl
je 0x1011162e
mov dword [esp + 0x38], eax
test esi, esi
jne 0x101115a3
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.10110920
mov ebx, dword [esp + 0x24]
mov eax, ebx
shr eax, 8
mov byte [esp + 0x1d], al
mov eax, dword [esp + 0x28]
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov byte [esp + 0x1e], cl
mov ecx, eax
mov byte [esp + 0x1f], dl
mov edx, eax
mov byte [esp + 0x20], al
shr eax, 0x18
mov byte [esp + 0x23], al
mov eax, dword [esp + 0x18]
shr ecx, 8
shr edx, 0x10
add esp, 8
inc eax
mov byte [esp + 0x14], bl
mov byte [esp + 0x19], cl
mov byte [esp + 0x1a], dl
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x28]
mov al, byte [ecx]
mov dl, byte [esp + esi + 0x14]
xor dl, al
mov eax, dword [esp + 0x2c]
inc eax
mov byte [eax - 1], dl
inc ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
inc esi
and esi, 7
dec eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], eax
jne 0x10111540
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10111620
mov byte [edi], bl
mov ecx, ebx
shr ecx, 8
mov eax, ebp
mov byte [eax], cl
mov ecx, dword [esp + 0x20]
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax], dl
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 + 0x3c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov edx, dword [esp + 0x3c]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10111640
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 0x80
push esi
mov esi, dword [esp + 8]
mov byte [esi], 0
jle 0x10111658
mov eax, 0x80
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x10111668
cmp ecx, 0x400
jle 0x1011166d
mov ecx, 0x400
test eax, eax
push ebx
push edi
jle 0x1011168a
mov edi, dword [esp + 0x18]
push ebp
mov edx, esi
sub edi, esi
mov ebp, eax
mov edi, edi
mov bl, byte [edi + edx]
mov byte [edx], bl
inc edx
dec ebp
jne 0x10111680
pop ebp
cmp eax, 0x80
movzx edx, byte [esi + eax - 1]
jge 0x101116bf
mov edi, esi
sub edi, eax
lea ebx, [ebx]
xor ebx, ebx
mov bl, byte [edi + eax]
add ebx, edx
and ebx, 0xff
movzx edx, byte [ebx + 0x101a4e50]
mov byte [eax + esi], dl
inc eax
cmp eax, 0x80
jl 0x101116a0
lea edx, [ecx + 7]
neg ecx
sar edx, 3
mov eax, 0x80
and ecx, 7
sub eax, edx
lea edi, [eax + esi]
mov ebx, 0xff
sar ebx, cl
movzx ecx, byte [edi]
and ebx, ecx
test eax, eax
movzx ecx, byte [ebx + 0x101a4e50]
mov byte [edi], cl
je 0x10111704
lea ecx, [ecx]
movzx ebx, byte [edi + edx - 1]
dec edi
xor ebx, ecx
dec eax
movzx ecx, byte [ebx + 0x101a4e50]
mov byte [edi], cl
jne 0x101116f0
pop edi
lea ecx, [esi + 0xfc]
lea eax, [esi + 0x7e]
mov esi, 0x40
pop ebx
xor edx, edx
mov dh, byte [eax + 1]
sub ecx, 4
sub eax, 2
mov dl, byte [eax + 2]
and edx, 0xffff
dec esi
mov dword [ecx + 4], edx
jne 0x10111714
pop esi
ret
Function at 0x10112a30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x14
call fcn.10057f70
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x38]
movzx ecx, byte [edi]
shl ecx, 0x18
lea ebp, [edi + 1]
mov eax, ebp
movzx edx, byte [eax]
shl edx, 0x10
or ecx, edx
inc eax
xor edx, edx
mov dh, byte [eax]
mov dword [esp + 0x10], 0
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
movzx ebx, byte [eax + 1]
shl edx, 0x18
inc eax
shl ebx, 0x10
or edx, ebx
inc eax
xor ebx, ebx
mov bh, byte [eax]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x17], cl
mov bl, byte [eax + 1]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x14], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x15], al
or edx, ebx
mov eax, ecx
shr eax, 8
mov byte [esp + 0x16], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x18], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x19], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x1a], al
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x20], edx
mov byte [esp + 0x1b], dl
je 0x10112bd1
mov dword [esp + 0x38], eax
test esi, esi
jne 0x10112b48
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.10111c40
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x1c], al
mov edx, ecx
shr edx, 0x10
mov eax, ecx
shr eax, 8
mov byte [esp + 0x1e], al
mov byte [esp + 0x1d], dl
mov edx, dword [esp + 0x28]
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x20], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x21], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x22], al
mov eax, dword [esp + 0x18]
add esp, 8
inc eax
mov byte [esp + 0x17], cl
mov byte [esp + 0x1b], dl
mov dword [esp + 0x10], eax
mov bl, byte [esp + esi + 0x14]
mov eax, dword [esp + 0x28]
xor bl, byte [eax]
mov eax, dword [esp + 0x2c]
mov byte [eax], bl
inc eax
mov dword [esp + 0x2c], eax
inc dword [esp + 0x28]
mov eax, dword [esp + 0x38]
inc esi
and esi, 7
dec eax
mov dword [esp + 0x38], eax
jne 0x10112ae3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10112bc3
mov eax, ecx
shr eax, 0x18
mov byte [edi], al
mov ebx, ecx
shr ebx, 0x10
mov eax, ebp
mov byte [eax], bl
mov ebx, ecx
shr ebx, 8
mov byte [eax + 1], bl
inc eax
mov byte [eax + 1], cl
inc eax
inc eax
mov ecx, edx
shr ecx, 0x18
mov byte [eax], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 1], cl
inc eax
inc eax
mov ecx, edx
shr ecx, 8
mov byte [eax], cl
mov byte [eax + 1], dl
mov edx, dword [esp + 0x3c]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x3c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10113140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x14
call fcn.10057f70
mov ecx, dword [esp + 0x30]
movzx eax, byte [ecx]
push ebx
push ebp
push esi
lea esi, [ecx + 1]
movzx edx, byte [esi + 1]
xor ecx, ecx
mov ch, byte [esi]
shl edx, 0x10
xor ebp, ebp
mov dword [esp + 0xc], esi
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [ebx]
or eax, ecx
or eax, edx
inc esi
movzx ecx, byte [esi + 1]
xor edx, edx
inc esi
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
mov dh, byte [esi + 1]
inc esi
mov dword [esp + 0x1c], eax
mov byte [esp + 0x14], al
or ecx, edx
xor edx, edx
mov dh, byte [esi + 2]
inc esi
mov dl, byte [esi]
shl edx, 0x10
or ecx, edx
mov edx, eax
shr edx, 8
mov byte [esp + 0x15], dl
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x16], dl
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x17], dl
mov edx, ecx
shr edx, 8
mov byte [esp + 0x19], dl
mov edx, ecx
shr edx, 0x10
mov byte [esp + 0x1a], dl
mov edx, ecx
shr edx, 0x18
mov byte [esp + 0x1b], dl
mov edx, dword [esp + 0x30]
test edx, edx
mov dword [esp + 0x20], ecx
mov byte [esp + 0x18], cl
je 0x101132c9
mov dword [esp + 0x30], edx
mov edi, edi
test edi, edi
jne 0x1011325b
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
lea eax, [esp + 0x28]
push eax
call fcn.1011fda4
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov ebx, edx
shr ebx, 8
mov byte [esp + 0x25], bl
mov ebx, edx
shr ebx, 0x10
mov eax, edx
mov byte [esp + 0x24], dl
shr edx, 0x18
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], dl
mov edx, ecx
mov ebx, edx
shr ebx, 8
mov byte [esp + 0x29], bl
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x28], dl
shr edx, 0x18
add esp, 0x10
mov byte [esp + 0x1a], bl
mov ebx, dword [esp + 0x44]
mov byte [esp + 0x1b], dl
inc ebp
mov dl, byte [esp + edi + 0x14]
mov esi, dword [esp + 0x28]
xor dl, byte [esi]
mov esi, dword [esp + 0x2c]
mov byte [esi], dl
mov edx, dword [esp + 0x28]
inc esi
inc edx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x30]
inc edi
and edi, 7
dec edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edx
jne 0x101131f0
test ebp, ebp
je 0x101132c9
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x10]
mov byte [edx], al
mov edx, eax
shr edx, 8
mov byte [esi], dl
inc esi
mov edx, eax
shr edx, 0x10
mov byte [esi], dl
shr eax, 0x18
mov byte [esi + 1], al
inc esi
inc esi
mov byte [esi], cl
mov eax, ecx
inc esi
shr eax, 8
mov byte [esi], al
mov edx, ecx
inc esi
shr edx, 0x10
shr ecx, 0x18
mov byte [esi], dl
mov byte [esi + 1], cl
mov dword [ebx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret