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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xa8], eax
mov esi, dword [esi + 4]
mov dword [ebp - 0x98], esi
sub esi, edi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x88], ebx
cmp dword [ebp + 0x14], edi
jae 0x10108c3a
push str.orig_len___md_size
push 0xf8
push str.g:copenssl_1.0.2e_ssl_s3_cbc.c
call fcn.100a5db0
add esp, 0xc
cmp edi, 0x40
jbe 0x10108c56
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.g:copenssl_1.0.2e_ssl_s3_cbc.c
call fcn.100a5db0
add esp, 0xc
mov edx, dword [ebp + 0x14]
lea eax, [ebp - 0x84]
neg eax
lea ecx, [ebp - 0x84]
and eax, 0x3f
add ecx, eax
lea eax, [edi + 0x100]
mov dword [ebp - 0x9c], ecx
cmp edx, eax
jbe 0x10108c8c
mov ebx, edx
sub ebx, edi
sub ebx, 0x100
mov dword [ebp - 0x88], ebx
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebx
add eax, esi
div edi
push edi
mov esi, edx
push 0
push ecx
mov dword [ebp - 0xa4], esi
call fcn.10155de0
add esp, 0xc
mov dword [ebp - 0x8c], 0
cmp ebx, dword [ebp + 0x14]
jae 0x10108d94
mov ecx, dword [ebp - 0x98]
mov eax, ecx
mov edx, dword [ebp - 0x90]
mov esi, dword [ebp - 0x88]
shr eax, 0x1f
sub esi, ecx
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0xc]
shr edx, 0x1f
mov dword [ebp - 0x90], edx
mov eax, dword [eax + 0xc]
add eax, ecx
mov dword [ebp - 0x88], eax
nop dword [eax]
mov eax, dword [ebp - 0x88]
lea ebx, [esi + ecx]
shr ebx, 0x1f
lea ecx, [edi + esi]
shr ecx, 0x1f
xor cl, dl
xor dl, bl
or cl, dl
mov edx, esi
xor cl, bl
shr edx, 0x1f
xor dl, byte [ebp - 0x94]
dec cl
mov dword [ebp - 0xa0], ecx
mov cl, byte [eax + esi]
mov al, bl
xor al, byte [ebp - 0x94]
inc esi
or dl, al
mov eax, dword [ebp - 0x8c]
xor dl, bl
mov ebx, dword [ebp - 0x9c]
neg dl
and dl, cl
and dl, byte [ebp - 0xa0]
or byte [eax + ebx], dl
mov edx, eax
inc edx
mov ecx, edx
mov eax, edx
sub ecx, edi
xor eax, edi
xor ecx, edi
or ecx, eax
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x8c], edx
mov edx, dword [ebp - 0x90]
lea eax, [esi + ecx]
cmp eax, dword [ebp + 0x14]
jb 0x10108d00
mov esi, dword [ebp - 0xa4]
jmp 0x10108d9a
mov ebx, dword [ebp - 0x9c]
xor edx, edx
test edi, edi
je 0x10108dd0
mov ecx, dword [ebp - 0xa8]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebx]
movzx eax, byte [esi + ebx]
inc esi
mov byte [ecx + edx], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, edi
jb 0x10108da0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10153588
mov esp, ebp
pop ebp
ret
Function at 0x101099e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
inc ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x14], ebx
mov eax, dword [esi + 8]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 1
je 0x10109aa0
mov edx, dword [ebp + 0x10]
lea eax, [ebx + edx]
cmp eax, ecx
ja 0x10109aa8
add dword [edi + 0xc], edx
add dword [edi + 0x10], edx
sub ecx, edx
mov dword [edi + 4], ecx
test dword [esi + 0x100], 0x200
mov eax, dword [edi + 0xc]
movzx ebx, byte [eax + ecx - 1]
je 0x10109a71
cmp dword [esi + 0x88], 0
jne 0x10109a71
mov eax, dword [esi + 0x58]
push 8
add eax, 8
push 0x101b4890
push eax
call fcn.100a58d0
add esp, 0xc
test eax, eax
jne 0x10109a64
test bl, 1
jne 0x10109a64
mov eax, dword [esi + 0x58]
or dword [eax], 8
mov eax, dword [esi + 0x58]
test byte [eax], 8
je 0x10109a71
test ebx, ebx
je 0x10109a71
dec ebx
mov eax, dword [esi + 0x80]
push dword [eax]
call fcn.10089b70
mov edx, dword [edi + 4]
add esp, 4
mov dword [ebp - 0xc], edx
and eax, 0x200000
je 0x10109ab1
sub edx, ebx
mov eax, 1
dec edx
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, ecx
jbe 0x10109a22
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov eax, edx
add ecx, ebx
mov esi, 0xff
sub eax, ecx
xor eax, ecx
mov dword [ebp + 0x14], eax
mov eax, edx
xor eax, ecx
mov ecx, dword [ebp + 0x14]
or ecx, eax
lea eax, [edx - 1]
xor ecx, edx
shr ecx, 0x1f
dec ecx
cmp eax, esi
mov dword [ebp + 0x14], ecx
cmovb esi, eax
mov dword [ebp - 8], esi
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10109b41
mov eax, ebx
shr eax, 0x1f
mov dword [ebp + 8], eax
mov eax, dword [edi + 0xc]
mov edi, ecx
dec eax
add eax, edx
mov dword [ebp - 4], eax
nop dword [eax + eax]
mov al, byte [ebp + 8]
mov edx, ebx
sub edx, esi
mov ecx, esi
shr edx, 0x1f
inc esi
shr ecx, 0x1f
xor dl, cl
xor al, cl
or dl, al
xor dl, byte [ebp + 8]
dec dl
movzx ecx, dl
mov edx, dword [ebp - 4]
movzx eax, byte [edx]
dec edx
xor eax, ebx
mov dword [ebp - 4], edx
and ecx, eax
not ecx
and edi, ecx
cmp esi, dword [ebp - 8]
jb 0x10109b00
mov edx, dword [ebp - 0xc]
mov dword [ebp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
not ecx
lea eax, [ebx + 1]
movzx ecx, cl
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub edx, eax
shl eax, 8
or dword [edi], eax
mov eax, ecx
mov dword [edi + 4], edx
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1010bf20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x8c], ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esi]
test ebx, ebx
je 0x1010bf76
cmp ebx, eax
je 0x1010bf6d
test ecx, ecx
je 0x1010c122
test edi, edi
js 0x1010c122
mov edx, 1
mov dword [esi], ebx
jmp 0x1010bf80
test eax, eax
je 0x1010c122
mov ebx, eax
test ecx, ecx
je 0x1010c054
push ebx
call fcn.100a9f70
add esp, 4
mov dword [ebp - 0x90], eax
cmp eax, 0x80
jle 0x1010bfb8
push str.j____int_sizeof_ctx__key_
push 0x74
push str.g:copenssl_1.0.2ecryptohmachmac.c
call fcn.100a5db0
mov eax, dword [ebp - 0x90]
add esp, 0xc
cmp eax, edi
jge 0x1010c010
push dword [ebp - 0x88]
lea eax, [esi + 4]
push ebx
push eax
call fcn.10084280
add esp, 0xc
test eax, eax
je 0x1010c122
push edi
push dword [ebp - 0x8c]
lea edi, [esi + 4]
push edi
call fcn.10084420
add esp, 0xc
test eax, eax
je 0x1010c122
lea eax, [esi + 0x4c]
push eax
lea eax, [esi + 0x50]
push eax
push edi
call fcn.100841d0
add esp, 0xc
test eax, eax
je 0x1010c122
mov edi, dword [esi + 0x4c]
jmp 0x1010c032
cmp edi, 0x80
ja 0x1010c122
push edi
push dword [ebp - 0x8c]
lea eax, [esi + 0x50]
push eax
call fcn.10155f40
add esp, 0xc
mov dword [esi + 0x4c], edi
cmp edi, 0x80
je 0x1010c05c
mov eax, 0x80
sub eax, edi
push eax
lea eax, [esi + 0x50]
add eax, edi
push 0
push eax
call fcn.10155de0
add esp, 0xc
jmp 0x1010c05c
test edx, edx
je 0x1010c0f8
xor ecx, ecx
nop
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [ebp + ecx - 0x84], al
inc ecx
cmp ecx, 0x80
jl 0x1010c060
push dword [ebp - 0x88]
lea edi, [esi + 0x1c]
push ebx
push edi
call fcn.10084280
add esp, 0xc
test eax, eax
je 0x1010c122
push ebx
call fcn.100a9f70
push eax
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.10084420
add esp, 0x10
test eax, eax
je 0x1010c122
xor ecx, ecx
nop
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [ebp + ecx - 0x84], al
inc ecx
cmp ecx, 0x80
jl 0x1010c0b0
push dword [ebp - 0x88]
lea edi, [esi + 0x34]
push ebx
push edi
call fcn.10084280
add esp, 0xc
test eax, eax
je 0x1010c122
push ebx
call fcn.100a9f70
push eax
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.10084420
add esp, 0x10
test eax, eax
je 0x1010c122
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.10084630
add esp, 8
test eax, eax
je 0x1010c122
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10153588
mov esp, ebp
pop ebp
ret
Function at 0x1010ca90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x18], eax
mov edi, eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
xor esi, esi
movsx edx, byte [edi]
lea edi, [edi + 1]
lea eax, [edx - 0x30]
cmp eax, 9
ja 0x1010cb4f
mov eax, dword [ebp + ecx*4 - 0x14]
mov esi, 1
lea eax, [eax + eax*4]
lea eax, [eax - 0x18]
lea eax, [edx + eax*2]
mov dword [ebp + ecx*4 - 0x14], eax
cmp eax, 0xff
jbe 0x1010cac5
xor esi, esi
call fcn.1010cf50
cmp eax, 1
jne 0x1010cc3e
test esi, esi
jne 0x1010cc51
push 0x8e
push str.g:copenssl_1.0.2ecrypto_bio_b_sock.c
push 0x16
push 9
call fcn.100a5740
mov esi, dword [ebp - 0x18]
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x1010cbbc
push 0x92
push str.g:copenssl_1.0.2ecrypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.10099cb0
add esp, 0x14
jmp 0x1010cc12
cmp edx, 0x2e
jne 0x1010cb80
test esi, esi
je 0x1010cb63
cmp ecx, 3
je 0x1010caf0
inc ecx
jmp 0x1010cac3
push 0x7b
push str.g:copenssl_1.0.2ecrypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.10099cb0
mov esi, dword [ebp - 0x18]
add esp, 0x14
jmp 0x1010cc2e
test edx, edx
jne 0x1010caf0
cmp ecx, 3
jne 0x1010caf0
test esi, esi
je 0x1010caf0
movzx eax, byte [ebp - 0x14]
lea esi, [edx + 1]
mov byte [ebx], al
movzx eax, byte [ebp - 0x10]
mov byte [ebx + 1], al
movzx eax, byte [ebp - 0xc]
mov byte [ebx + 2], al
movzx eax, byte [ebp - 8]
mov byte [ebx + 3], al
jmp 0x1010caf2
cmp word [ecx + 8], 2
je 0x1010cbdd
push 0x99
push str.g:copenssl_1.0.2ecrypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.10099cb0
add esp, 0x14
jmp 0x1010cc12
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x1c], 0
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebx], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [ebx + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [ebx + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [ebx + 3], al
push 0xa2
push str.g:copenssl_1.0.2ecrypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.100a5740
add esp, 0x10
cmp dword [ebp - 0x1c], 0
je 0x1010cc51
push esi
push str.host
push 2
call fcn.10099080
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10153588
mov esp, ebp
pop ebp
ret
Function at 0x1010cfe0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0x8004667e
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x1010d01f
push 0x233
push str.g:copenssl_1.0.2ecrypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.10099cb0
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
pop ebp
ret
Function at 0x10117490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
lea edx, [eax + 1]
mov dword [ebp - 0x28], eax
movzx ecx, byte [edx + 3]
movzx ebx, byte [eax]
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
mov dword [ebp - 0x14], 0
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x20], ebx
movzx eax, byte [edx + 5]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp - 8]
shl ecx, 8
or ecx, eax
mov byte [ebp - 0xc], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
mov edi, dword [ebp + 0x1c]
mov byte [ebp - 5], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
mov esi, dword [edi]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 8], dl
test eax, eax
je 0x10117617
mov edi, dword [ebp + 8]
sub dword [ebp - 0x10], edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x101175ae
push 1
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.10116110
mov ebx, dword [ebp - 0x20]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
inc dword [ebp - 0x14]
mov byte [ebp - 0xc], bl
mov byte [ebp - 8], dl
mov byte [ebp - 5], al
mov al, byte [ebp + esi - 0xc]
inc esi
mov ecx, dword [ebp - 0x10]
and esi, 7
xor al, byte [edi]
mov byte [ecx + edi], al
inc edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
test eax, eax
jne 0x10117556
test ecx, ecx
je 0x10117601
mov edi, dword [ebp - 0x28]
mov eax, ebx
shr eax, 8
mov byte [edi], bl
mov byte [edi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edx
shr ebx, 0x18
mov byte [edi + 3], bl
shr eax, 8
mov byte [edi + 4], dl
mov byte [edi + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [edi + 6], al
mov byte [edi + 7], dl
mov eax, dword [ebp - 0x18]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [edi], esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10153588
mov esp, ebp
pop ebp
ret
Function at 0x10118040
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x18], eax
push ebx
movzx ebx, byte [ecx]
push esi
mov esi, dword [eax]
push edi
lea edi, [ecx + 1]
mov dword [ebp - 0x34], ecx
mov edx, edi
mov dword [ebp - 0x30], edi
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x20], ebx
movzx eax, byte [edx + 5]
mov dword [ebp - 0x10], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [ebp - 0x10]
shl ecx, 8
or ecx, eax
mov byte [ebp - 0xc], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 5], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], edx
mov byte [ebp - 8], dl
test eax, eax
je 0x101181cd
mov ecx, dword [ebp + 8]
sub dword [ebp - 0x14], ecx
xor edi, edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x10118175
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
call fcn.101166e0
mov ebx, dword [ebp - 0x20]
add esp, 0x10
mov edx, dword [ebp - 0x1c]
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, ebx
mov ecx, dword [ebp + 8]
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 9], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
mov eax, edx
shr eax, 0x18
inc edi
mov dword [ebp - 0x10], edx
mov byte [ebp - 0xc], bl
mov byte [ebp - 8], dl
mov byte [ebp - 5], al
mov al, byte [ebp + esi - 0xc]
inc esi
mov edx, dword [ebp - 0x14]
and esi, 7
xor al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
test eax, eax
jne 0x10118115
test edi, edi
mov edi, dword [ebp - 0x30]
je 0x101181cd
mov eax, dword [ebp - 0x34]
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr ebx, 0x18
mov byte [edi + 2], bl
shr eax, 8
mov byte [edi + 3], dl
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [edi + 5], al
mov byte [edi + 6], dl
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax], esi
pop esi
pop ebx
call fcn.10153588
mov esp, ebp
pop ebp
ret
Function at 0x101198c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
lea edx, [eax + 1]
mov dword [ebp - 0x28], eax
movzx ecx, byte [edx + 3]
movzx ebx, byte [eax]
movzx eax, byte [edx]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov dword [ebp - 0x14], 0
movzx eax, byte [edx + 2]
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x20], ebx
movzx eax, byte [edx + 6]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [ebp - 8]
shl ecx, 8
or ecx, eax
mov byte [ebp - 9], bl
mov eax, ebx
or edx, ecx
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, edx
shr eax, 8
mov edi, dword [ebp + 0x1c]
mov byte [ebp - 6], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
mov esi, dword [edi]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 5], dl
test eax, eax
je 0x10119a49
mov edi, dword [ebp + 8]
sub dword [ebp - 0x10], edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x101199dc
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.10118f20
mov ebx, dword [ebp - 0x20]
add esp, 8
mov edx, dword [ebp - 0x1c]
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, edx
shr eax, 8
inc dword [ebp - 0x14]
mov byte [ebp - 9], bl
mov byte [ebp - 6], al
mov byte [ebp - 5], dl
mov al, byte [ebp + esi - 0xc]
inc esi
mov ecx, dword [ebp - 0x10]
and esi, 7
xor al, byte [edi]
mov byte [ecx + edi], al
inc edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
test eax, eax
jne 0x10119986
test ecx, ecx
je 0x10119a33
mov edi, dword [ebp - 0x28]
mov eax, ebx
shr eax, 0x18
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, ebx
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 3], bl
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, edx
shr eax, 8
mov byte [edi + 6], al
mov byte [edi + 7], dl
mov eax, dword [ebp - 0x18]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10153588
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [edi], esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10153588
mov esp, ebp
pop ebp
ret
Function at 0x10119a60
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0x80
mov esi, 0x400
mov edx, edi
mov byte [ebx], 0
cmp dword [ebp + 0xc], edx
mov ecx, esi
cmovle edx, dword [ebp + 0xc]
test eax, eax
cmovg ecx, eax
cmp ecx, esi
cmovg ecx, esi
mov dword [ebp + 0xc], ecx
test edx, edx
jle 0x10119ab1
sub dword [ebp + 0x10], ebx
mov ecx, ebx
mov ebx, dword [ebp + 0x10]
mov esi, edx
nop
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub esi, 1
jne 0x10119aa0
mov ebx, dword [ebp + 8]
movzx esi, byte [edx + ebx - 1]
cmp edx, edi
jge 0x10119adc
mov ecx, ebx
nop dword [eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
add eax, esi
movzx eax, al
mov al, byte [eax + 0x101bed80]
mov byte [edx + ebx], al
inc edx
movzx esi, al
cmp edx, edi
jl 0x10119ac0
mov ecx, dword [ebp + 0xc]
mov edx, 0xff
lea eax, [ecx + 7]
neg ecx
sar eax, 3
and ecx, 7
sub edi, eax
mov dword [ebp + 8], eax
movzx eax, byte [edi + ebx]
lea esi, [edi + ebx]
sar edx, cl
and edx, eax
mov al, byte [edx + 0x101bed80]
movzx ecx, al
mov byte [esi], al
test edi, edi
je 0x10119b2b
mov edx, dword [ebp + 8]
movzx eax, byte [esi + edx - 1]
lea esi, [esi - 1]
xor eax, ecx
mov al, byte [eax + 0x101bed80]
movzx ecx, al
mov byte [esi], al
sub edi, 1
jne 0x10119b11
lea esi, [ebx + 0xfc]
mov edi, 0x40
lea edx, [ebx + 0x7e]
nop dword [eax]
movzx ecx, byte [edx + 1]
lea esi, [esi - 4]
movzx eax, byte [edx]
lea edx, [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [esi + 4], ecx
sub edi, 1
jne 0x10119b40
pop edi
pop esi
pop ebx
pop ebp
ret