joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103ae9a7
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.1039fcd0
mov eax, dword [0x10485d90]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.103a99de
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x103aeadc
push 2
push esi
push dword [ebp + 8]
call fcn.103a99de
add esp, 0xc
cmp eax, ebx
je 0x103aeadc
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x103aea7c
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.103a1db0
push 0x8000
push dword [ebp + 8]
call fcn.103a30de
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x103aea32
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.103a78e8
add esp, 0xc
cmp eax, 0xffffffff
je 0x103aea52
sub edi, eax
test edi, edi
jg 0x103aea2a
jmp 0x103aea6a
call fcn.103a0bdd
cmp dword [eax], 5
jne 0x103aea67
call fcn.103a0bd4
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.103a30de
pop ecx
pop ecx
jmp 0x103aeac4
jge 0x103aeac4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.103a99de
push dword [ebp + 8]
call fcn.103a0955
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x103aeac4
call fcn.103a0bd4
mov dword [eax], 0xd
call fcn.103a0bdd
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.103a99de
add esp, 0xc
mov eax, esi
pop edi
jmp 0x103aeade
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1039fd3e
leave
ret
Function at 0x103d1ed0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x4c
call fcn.1039fcd0
push ebx
push ebp
mov ebp, dword [esp + 0x58]
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov byte [esp + 0x17], 0x41
xor ebx, ebx
call fcn.100c2550
lea ecx, [esp + 0x1c]
push 8
push ecx
call fcn.100bf430
lea edx, [esp + 0x34]
push edx
call fcn.100c2550
mov edi, dword [esp + 0x78]
add esp, 0x10
xor esi, esi
test edi, edi
jg 0x103d1f50
lea edx, [esp + 0x48]
push 0x14
push edx
call fcn.100aea30
lea eax, [esp + 0x20]
push eax
call fcn.100c2730
lea ecx, [esp + 0x34]
push ecx
call fcn.100c2730
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4c
ret
mov ebx, dword [esp + 0x14]
lea ebx, [ebx]
inc ebx
cmp ebx, 0x10
mov dword [esp + 0x14], ebx
ja 0x103d20b7
test ebx, ebx
jbe 0x103d1f8c
mov al, byte [esp + 0x13]
mov ecx, ebx
mov bl, al
mov bh, bl
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x38]
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, edx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x68]
mov al, byte [esp + 0x13]
inc al
push 0
mov byte [esp + 0x17], al
call fcn.100c2980
push eax
lea eax, [esp + 0x30]
push eax
call fcn.100c2570
push ebx
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.100c26a0
mov eax, dword [ebp + 0xbc]
mov ecx, dword [eax + 0x10]
push ecx
add eax, 0x14
push eax
lea edx, [esp + 0x48]
push edx
call fcn.100c26a0
mov eax, dword [ebp + 0x58]
push 0x20
add eax, 0x98
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.100c26a0
mov edx, dword [ebp + 0x58]
push 0x20
add edx, 0xb8
push edx
lea eax, [esp + 0x60]
push eax
call fcn.100c26a0
push 0
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.100c26b0
add esp, 0x48
push 0
call fcn.100beff0
push eax
lea eax, [esp + 0x20]
push eax
call fcn.100c2570
mov eax, dword [ebp + 0xbc]
mov ecx, dword [eax + 0x10]
push ecx
add eax, 0x14
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.100c26a0
push 0x14
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.100c26a0
add esp, 0x24
lea ebx, [esi + 0x10]
cmp ebx, edi
push 0
jle 0x103d208b
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.100c26b0
mov ecx, edi
mov edi, dword [esp + 0x70]
sub ecx, esi
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 0xc
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x68]
jmp 0x103d209d
mov eax, dword [esp + 0x68]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.100c26b0
add esp, 0xc
mov ecx, dword [esp + 0x64]
add ecx, 0x10
mov esi, ebx
cmp esi, edi
mov dword [esp + 0x64], ecx
jl 0x103d1f46
jmp 0x103d1f16
push 0x9d
push str.._ssl_s3_enc.c
push 0x44
push 0xee
push 0x14
call fcn.100a52c0
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
Function at 0x103d4430
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [ebx + 0x20]
cmp dword [esi], 6
je 0x103d4447
call fcn.103d3e00
test eax, eax
jle 0x103d448e
push 0
call sub.WS2_32.dll_WSASetLastError
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x1c]
push 0
push eax
push ecx
push edx
call sub.WS2_32.dll_send
push 0xf
push ebx
mov esi, eax
call fcn.100a3a50
add esp, 8
test esi, esi
jg 0x103d448c
push esi
call fcn.103d4da0
add esp, 4
test eax, eax
je 0x103d448c
push 0xa
push ebx
call fcn.100a3a80
add esp, 8
mov eax, esi
pop esi
pop ebx
ret

Function at 0x103d4e40
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
push 0xf
push edi
mov esi, eax
call fcn.100a3a50
add esp, 8
test esi, esi
jg 0x103d4e9b
je 0x103d4e7a
cmp esi, 0xffffffff
jne 0x103d4e9b
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 4
je 0x103d4e90
cmp eax, 0xb
je 0x103d4e90
cmp eax, 0x2733
jne 0x103d4e9b
push 0xa
push edi
call fcn.100a3a80
add esp, 8
pop edi
mov eax, esi
pop esi
ret

Function at 0x103d8240
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x10490370]
test eax, eax
jne 0x103d82ab
push edi
push 0x104901d0
xor eax, eax
mov ecx, 0x64
mov edi, 0x104901d0
push 0x101
mov dword [0x10490370], 1
rep stosd dword es:[edi], eax
call sub.WS2_32.dll_WSAStartup
test eax, eax
pop edi
je 0x103d82ab
call sub.WS2_32.dll_WSAGetLastError
push 0x1d8
push str..crypto_bio_b_sock.c
push eax
push 9
push 2
call fcn.100a52c0
push 0x1d9
push str..crypto_bio_b_sock.c
push 0x7a
push 0x70
push 0x20
call fcn.100a52c0
add esp, 0x28
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x103d8370
Capabilities:
Set socket configuration

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push esi
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x18], eax
call sub.WS2_32.dll_ioctlsocket
mov esi, eax
test esi, esi
jge 0x103d83af
push 0x21b
push str..crypto_bio_b_sock.c
call sub.WS2_32.dll_WSAGetLastError
push eax
push 5
push 2
call fcn.100a52c0
add esp, 0x14
xor eax, eax
test esi, esi
sete al
pop esi
ret
Function at 0x103d83c0
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov ebx, 1
call fcn.103d82c0
mov esi, eax
test esi, esi
jge 0x103d83f8
push 0x79
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.100a52c0
add esp, 0x14
jmp 0x103d84af
call fcn.103d8240
cmp eax, 1
jne 0x103d84bf
test esi, esi
jg 0x103d84c6
push 0x87
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.100a8a70
add esp, 0x10
push ebp
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x103d8448
push 0x8c
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.100a52c0
add esp, 0x14
jmp 0x103d8495
cmp word [eax + 8], 2
je 0x103d8469
push 0x93
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.100a52c0
add esp, 0x14
jmp 0x103d8495
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov cl, byte [edx]
mov byte [edi], cl
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov dl, byte [ecx + 1]
mov byte [edi + 1], dl
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov cl, byte [edx + 2]
mov byte [edi + 2], cl
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov cl, byte [eax + 3]
mov byte [edi + 3], cl
xor ebx, ebx
push 0x9c
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.100a8a70
add esp, 0x10
test ebx, ebx
je 0x103d84c6
push ebp
push str.host
push 2
call fcn.100a4ea0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x103d94e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc8
call fcn.1039fcd0
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 [edi + eax], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ebp], ecx
xor ecx, edx
mov edx, dword [ecx*4 + str._.C]
mov ecx, dword [esi + eax]
xor ecx, edx
mov dword [esi + eax], ecx
inc ebx
add eax, 4
cmp ebx, 0x10
mov dword [esp + 0x10], ecx
jl 0x103d9512
xor ecx, ecx
xor edx, edx
xor eax, eax
jmp 0x103d9560
mov ecx, dword [ecx*4 + str._.C]
mov edi, dword [esp + eax*4 + 0x18]
mov esi, dword [esp + eax*4 + 0x1c]
mov ebp, dword [esp + eax*4 + 0x20]
xor edi, ecx
mov ebx, dword [esp + eax*4 + 0x24]
mov ecx, edi
mov ecx, dword [ecx*4 + str._.C]
xor esi, ecx
mov ecx, esi
mov ecx, dword [ecx*4 + str._.C]
xor ebp, ecx
mov ecx, ebp
mov ecx, dword [ecx*4 + str._.C]
xor ebx, ecx
mov ecx, ebx
mov ecx, dword [ecx*4 + str._.C]
mov dword [esp + eax*4 + 0x18], edi
mov edi, dword [esp + eax*4 + 0x28]
xor edi, ecx
mov dword [esp + eax*4 + 0x1c], esi
mov esi, dword [esp + eax*4 + 0x2c]
mov ecx, edi
mov ecx, dword [ecx*4 + str._.C]
xor esi, ecx
mov dword [esp + eax*4 + 0x20], ebp
mov ebp, dword [esp + eax*4 + 0x30]
mov ecx, esi
mov ecx, dword [ecx*4 + str._.C]
xor ebp, ecx
mov dword [esp + eax*4 + 0x24], ebx
mov ebx, dword [esp + eax*4 + 0x34]
mov ecx, ebp
mov ecx, dword [ecx*4 + str._.C]
xor ebx, ecx
mov dword [esp + eax*4 + 0x28], edi
mov dword [esp + eax*4 + 0x2c], esi
mov dword [esp + eax*4 + 0x30], ebp
mov dword [esp + eax*4 + 0x34], ebx
add eax, 8
cmp eax, 0x30
mov ecx, ebx
jl 0x103d9560
add ecx, edx
and ecx, 0xff
inc edx
cmp edx, 0x12
jl 0x103d9551
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.100aea30
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret
Function at 0x103d9890
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.1039fcd0
push ebx
mov ebx, dword [esp + 0x3c]
test ebx, ebx
jle 0x103d9a29
cmp ebx, 0x80
jg 0x103d9a29
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.103e6a80
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 0x103d9927
test ebp, ebp
jle 0x103d996f
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 0x103d9914
jmp 0x103d996b
xor esi, esi
test ebp, ebp
jle 0x103d996f
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 0x103d9951
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 0x103d994d
mov ebx, dword [esp + 0x48]
and ebx, reloc.WS2_32.dll_getsockopt
jns 0x103d997c
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 0x103d99b3
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 0x103d99c5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x103da740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x14
call fcn.1039fcd0
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 0x103da8de
mov dword [esp + 0x38], eax
test esi, esi
jne 0x103da853
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.103d9bd0
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 0x103da7f0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x103da8d0
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 0x103da8f0
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 0x103da908
mov eax, 0x80
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x103da918
cmp ecx, 0x400
jle 0x103da91d
mov ecx, 0x400
test eax, eax
push ebx
push edi
jle 0x103da93a
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 0x103da930
pop ebp
cmp eax, 0x80
movzx edx, byte [esi + eax - 1]
jge 0x103da96f
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 + 0x1048a200]
mov byte [eax + esi], dl
inc eax
cmp eax, 0x80
jl 0x103da950
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 + 0x1048a200]
mov byte [edi], cl
je 0x103da9b4
lea ecx, [ecx]
movzx ebx, byte [edi + edx - 1]
dec edi
xor ebx, ecx
dec eax
movzx ecx, byte [ebx + 0x1048a200]
mov byte [edi], cl
jne 0x103da9a0
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 0x103da9c4
pop esi
ret
Function at 0x103dbac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x14
call fcn.1039fcd0
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 0x103dbc61
mov dword [esp + 0x38], eax
test esi, esi
jne 0x103dbbd8
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.103dacd0
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 0x103dbb73
mov eax, dword [esp + 0x10]
test eax, eax
je 0x103dbc53
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 0x103dc1d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x14
call fcn.1039fcd0
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 0x103dc359
mov dword [esp + 0x30], edx
mov edi, edi
test edi, edi
jne 0x103dc2eb
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.103eada4
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 0x103dc280
test ebp, ebp
je 0x103dc359
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