joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7fdbd5
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
sub esp, 0x204
mov eax, dword [0x12021210]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
push esi
xor ecx, ecx
mov al, 1
push edi
lea esp, [esp]
movzx edx, al
mov byte [esp + edx + 0x10], cl
mov dl, al
and dl, 0x80
mov byte [esp + ecx + 0x110], al
add ecx, 1
neg dl
sbb dl, dl
mov bl, al
add bl, bl
and edx, 0x1b
xor dl, bl
xor al, dl
cmp ecx, 0x100
jl 0x7fdbf5
mov al, 1
mov ecx, 0x12023d08
movzx edx, al
shl edx, 0x18
mov dword [ecx], edx
mov dl, al
and dl, 0x80
add ecx, 4
neg dl
sbb dl, dl
add al, al
and edx, 0x1b
xor al, dl
cmp ecx, 0x12023d30
jl 0x7fdc29
mov dword [0x12023108], 0x63
mov dword [0x120262bc], 0
mov edx, 1
movzx eax, byte [esp + edx + 0x10]
lea ecx, [esp + 0x20f]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor al, cl
xor al, 0x63
movzx eax, al
mov dword [edx*4 + 0x12023108], eax
mov dword [eax*4 + 0x12026130], edx
add edx, 1
cmp edx, 0x100
jl 0x7fdc65
xor ecx, ecx
mov dl, byte [ecx + 0x12023108]
mov al, dl
and al, 0x80
neg al
sbb al, al
mov bl, dl
add bl, bl
movzx edx, dl
and eax, 0x1b
xor al, bl
movzx esi, al
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx + 0x12025d30], eax
ror eax, 8
mov dword [ecx + 0x12025930], eax
ror eax, 8
mov dword [ecx + 0x12025530], eax
ror eax, 8
mov dword [ecx + 0x12025130], eax
mov al, byte [ecx + 0x12026130]
test al, al
je 0x7fdd5e
movzx edx, al
movzx esi, byte [esp + edx + 0x10]
movzx eax, byte [esp + 0x1b]
add eax, esi
cdq
mov edi, 0xff
idiv edi
movzx eax, byte [esp + 0x1d]
add eax, esi
movzx ebp, byte [esp + edx + 0x110]
cdq
idiv edi
movzx eax, byte [esp + 0x19]
add eax, esi
movzx ebx, byte [esp + edx + 0x110]
cdq
idiv edi
movzx eax, byte [esp + 0x1e]
add eax, esi
mov esi, 0xff
movzx edi, byte [esp + edx + 0x110]
cdq
idiv esi
movzx eax, byte [esp + edx + 0x110]
jmp 0x7fdd66
xor ebp, ebp
xor ebx, ebx
xor edi, edi
xor eax, eax
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, ebp
mov dword [ecx + 0x12024d30], eax
ror eax, 8
mov dword [ecx + 0x12024930], eax
ror eax, 8
mov dword [ecx + 0x12023908], eax
ror eax, 8
mov dword [ecx + 0x12023508], eax
add ecx, 4
cmp ecx, 0x400
jl 0x7fdca7
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00805091
add esp, 0x204
ret
Function at 0x7ff565
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
ret
Function at 0x40407d
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
cmp dword [0x40f6b8], 2
push esi
push edi
jne 0x40416e
push str.advapi32.dll
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
je 0x4040b6
push str.GetUserNameW
push eax
call fcn.0078e870
nop
mov esi, eax
cmp esi, edi
mov dword [ebp - 4], 0x208
je 0x40416e
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
test eax, eax
je 0x40416e
cmp word [ebp - 0x21c], di
lea eax, [ebp - 0x21c]
je 0x404163
push ebx
jmp 0x4040ef
mov eax, dword [ebp - 8]
movzx ebx, word [eax]
inc eax
inc eax
cmp ebx, 0x20
mov dword [ebp - 8], eax
jne 0x404102
push 0x5f
pop ebx
cmp ebx, 0x20
jl 0x404126
cmp ebx, 0x7e
jg 0x404126
push ebx
push str._:___
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
test eax, eax
pop ecx
jne 0x404126
and byte [ebp - 0x13], al
push 1
mov byte [ebp - 0x14], bl
pop eax
jmp 0x404139
push ebx
lea eax, [ebp - 0x14]
push str.__x_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea esi, [eax + edi]
lea ecx, [esi + 1]
cmp ecx, dword [ebp + 0xc]
jae 0x404159
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
add edi, eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edi, esi
mov eax, dword [ebp - 8]
cmp word [eax], 0
jne 0x4040ec
pop ebx
mov eax, dword [ebp + 8]
and byte [edi + eax], 0
mov eax, edi
jmp 0x40418f
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x404188
and byte [esi], al
push esi
call sub.MSVCRT.dll_strlen
pop ecx
pop edi
pop esi
leave
ret
Function at 0x79105c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
test eax, eax
jle 0x7910b7
push edi
mov edi, dword [ebp + 0x10]
sub dword [ebp + 0xc], edi
mov dword [ebp + 8], eax
mov edi, edi
inc bl
lea edi, [edi + 1]
movzx ebx, bl
mov dl, byte [esi + ebx + 8]
add cl, dl
movzx ecx, cl
mov al, byte [esi + ecx + 8]
mov byte [esi + ebx + 8], al
add al, dl
movzx eax, al
mov byte [esi + ecx + 8], dl
movzx edx, byte [eax + esi + 8]
mov eax, dword [ebp + 0xc]
xor dl, byte [eax + edi - 1]
sub dword [ebp + 8], 1
mov byte [edi - 1], dl
jne 0x79107c
mov eax, dword [ebp + 0x14]
pop edi
mov dword [esi], ebx
mov dword [esi + 4], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x79bac8
Capabilities:
Execute anti-debugging instructions

Disassembly:
call fcn.00799368
mov es, word [edi + edi*4 + 0x43]
test byte [ebx + edi*4 + 0x53], dh
push edx
or bl, byte [esp + esi - 0x28]
inc esi
imul esp, dword [ebx + 0x20], 0x57
invalid
push ebp
mov ebp, esp
leave
add dword [esp], 0xfffff868
xchg dword [esp], edx
pushfd
add ebp, 0x6a
popfd
lea ebp, [ebp - 0x6a]
xchg dword [esp + 4], edx
push eax
mov eax, dword [esp + 4]
lea eax, [eax + 0x6b]
xchg dword [esp + 4], eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea esp, [esp + 4]
xchg dword [esp], edx
push edx
mov edx, dword [esp + 4]
lea edx, [edx + 0x2b]
xchg dword [esp + 4], edx
mov dword [esp + 4], edx
mov edx, dword [esp]
lea esp, [esp + 4]
popfd
push ecx
mov ecx, eax
pop ecx
jmp 0x798364
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x479646
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x47965a
xor eax, eax
jmp 0x479728
cmp dword [ebp + 8], edi
jne 0x47966b
push dword [ebp + 0xc]
call dword [0x1000403c]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], edi
push esi
mov esi, dword [ebp + 0x10]
jle 0x479724
push ebx
push 1
pop edi
mov eax, dword [ebp + 0xc]
and byte [ebp - 1], 0
and byte [ebp - 2], 0
cmp edi, dword [ebp + 8]
mov bl, byte [eax + edi - 1]
jge 0x479696
mov al, byte [edi + eax]
mov byte [ebp - 1], al
lea eax, [edi + 1]
cmp eax, dword [ebp + 8]
jge 0x4796a8
mov eax, dword [ebp + 0xc]
mov al, byte [edi + eax + 1]
mov byte [ebp - 2], al
mov al, byte [ebp - 2]
and al, 0x3f
mov byte [ebp - 8], al
mov al, bl
shr al, 2
push eax
call fcn.0047972b
mov byte [esi], al
mov al, byte [ebp - 1]
and bl, 3
inc esi
shl bl, 4
shr al, 4
or bl, al
push ebx
call fcn.0047972b
mov byte [esi], al
pop ecx
inc esi
cmp edi, dword [ebp + 8]
pop ecx
jge 0x4796f7
mov al, byte [ebp - 1]
mov cl, byte [ebp - 2]
and al, 0xf
shl al, 2
shr cl, 6
or al, cl
push eax
call fcn.0047972b
pop ecx
mov byte [esi], al
jmp 0x4796fa
mov byte [esi], 0x3d
lea eax, [edi + 1]
inc esi
cmp eax, dword [ebp + 8]
jge 0x479710
push dword [ebp - 8]
call fcn.0047972b
pop ecx
mov byte [esi], al
jmp 0x479713
mov byte [esi], 0x3d
add edi, 3
inc esi
lea eax, [edi - 1]
cmp eax, dword [ebp + 8]
jl 0x47967c
pop ebx
mov eax, dword [ebp + 0x10]
pop esi
pop edi
leave
ret
Function at 0x10004820
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, 0x55555556
imul ecx
push esi
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [ebp + 0xc]
lea eax, [esi + esi*2]
sub ecx, eax
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], eax
test esi, esi
jle 0x100048d2
lea eax, [esi*4]
mov dword [ebp + 8], esi
mov dword [ebp - 8], eax
push ebx
mov edi, edi
mov bl, byte [edx]
movzx eax, byte [edx + 1]
movzx esi, bl
mov byte [ebp + 0xf], al
mov al, byte [edx + 2]
mov edi, esi
shr edi, 2
movzx ebx, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, byte [ebp + 0xf]
mov byte [ecx], bl
mov ebx, edi
shr ebx, 4
shl esi, 4
or ebx, esi
movzx esi, al
mov eax, esi
shr eax, 6
add edi, edi
and ebx, 0x3f
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add edi, edi
or eax, edi
mov byte [ecx + 1], bl
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
and esi, 0x3f
movzx eax, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], al
add edx, 3
add ecx, 4
dec dword [ebp + 8]
jne 0x10004860
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
pop ebx
cmp eax, 1
jne 0x10004905
movzx edx, byte [edx]
mov eax, edx
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and edx, 3
mov byte [ecx], al
shl edx, 4
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
lea eax, [edi + 4]
pop edi
mov byte [ecx + 1], dl
mov word [ecx + 2], 0x3d3d
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10004955
mov al, byte [edx]
mov dl, byte [edx + 1]
movzx esi, al
mov eax, esi
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, dl
mov eax, edx
shr eax, 4
shl esi, 4
or eax, esi
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
and edx, 0xf
movzx edx, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
lea eax, [edi + 4]
pop edi
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000487b
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, 0x55555556
imul ecx
push esi
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [ebp + 0xc]
lea eax, [esi + esi*2]
sub ecx, eax
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], eax
test esi, esi
jle 0x100048d2
lea eax, [esi*4]
mov dword [ebp + 8], esi
mov dword [ebp - 8], eax
push ebx
mov edi, edi
mov bl, byte [edx]
movzx eax, byte [edx + 1]
movzx esi, bl
mov byte [ebp + 0xf], al
mov al, byte [edx + 2]
mov edi, esi
shr edi, 2
movzx ebx, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, byte [ebp + 0xf]
mov byte [ecx], bl
mov ebx, edi
shr ebx, 4
shl esi, 4
or ebx, esi
movzx esi, al
mov eax, esi
shr eax, 6
add edi, edi
and ebx, 0x3f
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add edi, edi
or eax, edi
mov byte [ecx + 1], bl
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
and esi, 0x3f
movzx eax, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], al
add edx, 3
add ecx, 4
dec dword [ebp + 8]
jne 0x10004860
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
pop ebx
cmp eax, 1
jne 0x10004905
movzx edx, byte [edx]
mov eax, edx
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and edx, 3
mov byte [ecx], al
shl edx, 4
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
lea eax, [edi + 4]
pop edi
mov byte [ecx + 1], dl
mov word [ecx + 2], 0x3d3d
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10004955
mov al, byte [edx]
mov dl, byte [edx + 1]
movzx esi, al
mov eax, esi
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, dl
mov eax, edx
shr eax, 4
shl esi, 4
or eax, esi
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
and edx, 0xf
movzx edx, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
lea eax, [edi + 4]
pop edi
mov byte [ecx + 2], dl
mov byte [ecx + 3], 0x3d
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10009f90
Capabilities:
Create thread

Disassembly:
push ecx
push 0
push 0
push 0x10093d10
push 0x10009e90
push 0
push 0
call fcn.100515f6
add esp, 0x18
mov dword [0x10093d44], eax
test eax, eax
jne 0x10009ff8
call fcn.1001ef70
push ebx
call fcn.1017c794
push eax
push 0
push 0x1fffff
push esi
call fcn.101eaf42
test eax, eax
je 0x10009fe1
push 0
push eax
push eax
call fcn.101d5d84
push 0
call fcn.1005238b
call fcn.100e68ab
or dword [edx], ebp
push eax
push edx
call fcn.101d2bc9
push 0
call fcn.101a6e0b
mov ds, word [ecx - 0x3d]
int3
pop ecx
ret
Function at 0x1001a9c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e0d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1008dc90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x1001aae1
cmp byte [edi + 0x49], bl
je 0x1001aae1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x1001aad5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x1001aa35
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x1001aa4d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x1001aa76
dec eax
je 0x1001aa7a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x1001aad0
jmp 0x1001aadc
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x1001aa8a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x1001aab3
cmp ebx, 0x10
jae 0x1001aa99
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.10050e0e
add esp, 0x10
cmp esi, eax
jne 0x1001aacd
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x1001aad9
test esi, esi
jne 0x1001aa41
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.10019850
jmp 0x1001aa3b
lea ecx, [ebp - 0x2c]
call fcn.10006160
xor al, al
jmp 0x1001aae3
lea ecx, [ebp - 0x2c]
call fcn.10006160
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004f9e8
mov esp, ebp
pop ebp
ret

Function at 0x1001f3d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push esi
mov esi, dword [eax + 0x104]
push edi
mov edi, ecx
mov ecx, dword [eax + 0x100]
jbe 0x1001f431
sub edx, edi
mov dword [ebp - 4], edx
push ebx
inc ecx
and ecx, 0xff
mov dl, byte [ecx + eax]
movzx ebx, dl
add esi, ebx
and esi, 0xff
mov bl, byte [esi + eax]
mov byte [ecx + eax], bl
mov byte [esi + eax], dl
movzx ebx, byte [ecx + eax]
movzx edx, dl
add ebx, edx
and ebx, 0xff
movzx edx, byte [ebx + eax]
mov ebx, dword [ebp - 4]
xor dl, byte [ebx + edi]
inc edi
dec dword [ebp + 8]
mov byte [edi - 1], dl
jne 0x1001f3f0
pop ebx
pop edi
mov dword [eax + 0x104], esi
mov dword [eax + 0x100], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10027760
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0x10]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebx
lea edx, [eax + eax*2]
sub ecx, edx
push esi
xor esi, esi
mov edx, ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], edx
test eax, eax
jle 0x10027854
mov edx, dword [ebp + 0x14]
add edx, 0xfffffffc
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
movzx edx, byte [ecx]
mov byte [ebp + 0xf], dl
movzx edx, byte [ecx + 1]
movzx esi, byte [ebp + 0xf]
mov byte [ebp + 0x13], dl
movzx edx, byte [ecx + 2]
movzx edi, byte [ebp + 0x13]
mov byte [ebp + 0xb], dl
mov edx, esi
shr edx, 2
movzx edx, word [edx*2 + 0x1007cca0]
mov word [eax], dx
shl esi, 4
mov edx, edi
shr edx, 4
or edx, esi
add dword [ebp - 4], 4
and edx, 0x3f
movzx edx, word [edx*2 + 0x1007cca0]
mov word [eax + 2], dx
movzx edx, byte [ebp + 0xb]
mov esi, edx
shr esi, 6
add edi, edi
add edi, edi
or esi, edi
and esi, 0x3f
mov si, word [esi*2 + 0x1007cca0]
mov word [eax + 4], si
and edx, 0x3f
movzx edx, word [edx*2 + 0x1007cca0]
mov word [eax + 6], dx
add ebx, 4
add ecx, 3
add eax, 8
cmp ebx, dword [ebp - 0xc]
jle 0x10027843
mov edx, 0xd
mov word [eax], dx
mov edx, 0xa
mov word [eax + 2], dx
add eax, 4
xor ebx, ebx
add dword [ebp - 4], 2
dec dword [ebp - 8]
jne 0x100277a5
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
jmp 0x10027857
mov eax, dword [ebp + 0xc]
cmp edx, 1
jne 0x1002789b
movzx ecx, byte [ecx]
mov edx, ecx
shr edx, 2
mov dx, word [edx*2 + 0x1007cca0]
mov word [eax], dx
and ecx, 3
shl ecx, 5
mov cx, word [ecx + 0x1007cca0]
mov word [eax + 2], cx
mov dword [eax + 4], 0x3d003d
add eax, 8
add esi, 4
xor ecx, ecx
pop edi
mov word [eax], cx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, 2
jne 0x100278f2
mov dl, byte [ecx]
mov cl, byte [ecx + 1]
movzx edx, dl
mov edi, edx
shr edi, 2
mov di, word [edi*2 + 0x1007cca0]
mov word [eax], di
movzx ecx, cl
and edx, 3
mov edi, ecx
shl edx, 4
shr edi, 4
or edi, edx
mov dx, word [edi*2 + 0x1007cca0]
mov word [eax + 2], dx
and ecx, 0xf
mov cx, word [ecx*8 + 0x1007cca0]
mov word [eax + 4], cx
mov edx, 0x3d
mov word [eax + 6], dx
add eax, 8
add esi, 4
xor ecx, ecx
pop edi
mov word [eax], cx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10028010
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10085fd8
push 0x10053bd0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [0x1008dc90]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 0x1c], 0
je 0x10028150
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x20], 0
je 0x10028150
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0xc]
and eax, 0xffff0000
jne 0x100280de
movzx ecx, word [ebp + 0xc]
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + 0x10]
sub ecx, eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x2d], 1
mov dword [ebp - 0x20], 0
jmp 0x100280f0
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
movzx edx, byte [ebp - 0x2d]
test edx, edx
jne 0x10028150
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x18]
jae 0x10028150
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov cx, word [eax + edx*2]
mov word [ebp - 0x48], cx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 0
je 0x1002814e
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10067b73
add esp, 8
test eax, eax
jne 0x1002814e
movzx ecx, word [ebp - 0x48]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x2d], 1
jmp 0x100280e7
mov dword [ebp - 4], 0xfffffffe
jmp 0x10028169
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret