joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10059d20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x438], ebx
test edi, edi
jne 0x10059d56
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x434]
push eax
push edi
call fcn.100e82e5
add esp, 8
test eax, eax
js 0x10059d44
fldz
lea eax, [ebp - 0x434]
push esi
sub esp, 8
fstp qword [esp]
push 0x30
push eax
call fcn.10052fc0
mov esi, dword [ebp + 0xc]
add esp, 0x10
test esi, esi
jne 0x10059d9e
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
push 0x1012d074
push edi
call fcn.100397e9
add esp, 8
mov dword [ebp - 0x43c], eax
test eax, eax
je 0x10059e50
lea ebx, [ebx]
mov edi, 0x400
test esi, esi
jle 0x10059dce
cmp esi, edi
cmovl edi, esi
push eax
push edi
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.1003bd09
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x440], ebx
test ebx, ebx
jle 0x10059e2b
fild dword [ebp - 0x440]
sub esp, 8
lea eax, [ebp - 0x404]
fstp qword [ebp - 0x444]
fld qword [ebp - 0x444]
fstp qword [esp]
push edi
push eax
call fcn.10052fc0
add dword [ebp - 0x438], ebx
add esp, 0x10
mov eax, dword [ebp - 0x43c]
test esi, esi
jle 0x10059dc0
sub esi, edi
test esi, esi
jg 0x10059dc0
push dword [ebp - 0x43c]
call fcn.10039d78
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.100012d0
mov ebx, dword [ebp - 0x438]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x10061700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor dl, dl
test esi, esi
je 0x10061725
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
dec esi
jne 0x10061716
pop edi
movzx eax, dl
pop esi
pop ebp
ret

Function at 0x10061920
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10061970
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x10061970
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.1003b587
add eax, 0x40
push eax
call fcn.100e832b
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0xff
push eax
call fcn.100e8459
add esp, 0x10
mov byte [ebp - 5], 0
call fcn.100617e0
test eax, eax
jle 0x100619e6
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x108]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003890f
mov esp, ebp
pop ebp
ret

Function at 0x100635a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor edx, edx
test esi, esi
je 0x100635f0
mov al, byte [esi]
test al, al
je 0x100635f0
push edi
mov edi, 0x100
lea esp, [esp]
movsx eax, al
lea esi, [esi + 1]
or eax, edi
add edi, 0x100
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol edx, cl
xor edx, eax
mov al, byte [esi]
test al, al
jne 0x100635c0
mov eax, edx
shr eax, 0x10
pop edi
xor eax, edx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100651b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100651d0
push 0
sub ecx, edx
mov dword [ebp - 0x18], 8
push 0
lea eax, [ecx + 1]
push eax
push edi
push 8
push 0xfde9
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x1006523e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x1006522e
push 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x1006523e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jmp 0x100652bc
lea eax, [esi + esi]
call fcn.1003e7f0
mov eax, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push edi
push dword [ebp - 0x18]
push 0xfde9
call esi
test eax, eax
je 0x1006531b
mov ecx, ebx
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10065270
push 8
sub ecx, edx
lea eax, [ebp - 0x14]
push eax
lea eax, [ecx + 1]
push eax
push ebx
push 0
push 0xfde9
call esi
test eax, eax
je 0x1006531b
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call fcn.100e8617
mov esi, eax
add esp, 8
test esi, esi
jne 0x100652ce
call fcn.1003c17c
cmp dword [eax], 2
je 0x100652be
call fcn.1003c17c
cmp dword [eax], 9
jne 0x1006531b
push ebx
push edi
call fcn.100397e9
mov esi, eax
add esp, 8
test esi, esi
je 0x1006531b
push 0x1013b8d4
call fcn.100554f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x100652ef
push esi
call fcn.10039d78
add esp, 4
jmp 0x10065383
push 0
push edi
call fcn.10055130
push esi
push 1
push 0x6a
push edi
call fcn.10055160
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
push 0xa9
push str.bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.10054d40
push 0x1010339c
push ebx
push 0x101033a0
push edi
push str.fopen_
push 5
call fcn.100543b0
add esp, 0x2c
call fcn.1003c17c
cmp dword [eax], 2
jne 0x1006536b
push 0xac
push str.bio_bss_file.c
push 0x80
jmp 0x10065377
push 0xae
push str.bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.10054d40
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x10076000
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1013ba9c], 0
je 0x10076043
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x10076024
mov dword [0x1013ba9c], eax
jmp 0x10076043
fldz
lea eax, [ebp - 0xc]
sub esp, 8
fstp qword [esp]
push 8
push eax
call fcn.10052fc0
add esp, 0x10
cmp dword [0x1013ba9c], 0
jne 0x10076062
call dword [sym.imp.KERNEL32.dll_GetTickCount]
fldz
sub esp, 8
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
fstp qword [esp]
push 4
push eax
call fcn.10052fc0
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x1007df80
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.1003e9c0
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov eax, 1
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
pop esi
pop ebp
ret

Function at 0x1007e2c0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.1003e9c0
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov eax, 1
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
pop esi
pop ebp
ret
Function at 0x1007f3d0
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x30
mov eax, 1
pop ebp
ret
Function at 0x1007fa10
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x40
mov eax, 1
pop ebp
ret
Function at 0x10084bc0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
test esi, esi
jle 0x10084cad
push edi
mov edi, dword [ebp + 0xc]
inc edi
lea ebx, [ebx]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x10084c3e
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10109498]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10109498]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + 0x10109498]
mov byte [eax + 2], cl
movzx ecx, byte [edx + 0x10109498]
mov byte [eax + 3], cl
jmp 0x10084c8f
shl edx, 0x10
cmp esi, 2
jne 0x10084c4e
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10109498]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10109498]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x10084c7b
lea ecx, [esi + 0x3c]
jmp 0x10084c88
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + 0x10109498]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x10084be0
pop edi
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
mov byte [eax], bl
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x10096990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1013a420]
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 0x10096b17
mov edi, dword [ebp + 8]
sub dword [ebp - 0x10], edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x10096aae
push 1
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.10074b70
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 0x10096a56
test ecx, ecx
je 0x10096b01
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.1003890f
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.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x10097570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x14], eax
push ebx
movzx ebx, byte [ecx]
push esi
mov esi, dword [eax]
push edi
lea edi, [ecx + 1]
mov dword [ebp - 0x28], 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 0x100976fd
mov ecx, dword [ebp + 8]
sub dword [ebp - 0x18], ecx
xor edi, edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x100976a5
push dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x34]
push eax
call fcn.10075140
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 - 0x18]
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 0x10097645
test edi, edi
mov edi, dword [ebp - 0x30]
je 0x100976fd
mov eax, dword [ebp - 0x28]
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 - 0x14]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax], esi
pop esi
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x10099340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1013a420]
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 0x100994c9
mov edi, dword [ebp + 8]
sub dword [ebp - 0x10], edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x1009945c
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.10098910
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 0x10099406
test ecx, ecx
je 0x100994b3
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.1003890f
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.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x100994e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0x80
cmp eax, edi
mov byte [ebx], 0
cmovg eax, edi
test ecx, ecx
jg 0x10099507
mov ecx, 0x400
jmp 0x10099511
mov edx, 0x400
cmp ecx, edx
cmovg ecx, edx
mov dword [ebp + 0x14], ecx
test eax, eax
jle 0x10099531
sub dword [ebp + 0x10], ebx
mov edx, ebx
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov cl, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [edx - 1], cl
dec esi
jne 0x10099522
mov ebx, dword [ebp + 8]
movzx edx, byte [ebx + eax - 1]
cmp eax, 0x80
jge 0x1009955f
mov esi, ebx
sub esi, eax
movzx ecx, byte [esi + eax]
add ecx, edx
and ecx, 0xff
movzx edx, byte [ecx + 0x1010f4b8]
mov byte [eax + ebx], dl
inc eax
cmp eax, 0x80
jl 0x10099541
mov eax, dword [ebp + 0x14]
mov edx, 0xff
lea ecx, [eax + 7]
neg eax
sar ecx, 3
and eax, 7
sub edi, ecx
mov dword [ebp + 0x14], ecx
mov ecx, eax
lea esi, [edi + ebx]
movzx eax, byte [esi]
sar edx, cl
and edx, eax
movzx ecx, byte [edx + 0x1010f4b8]
mov byte [esi], cl
test edi, edi
je 0x100995a9
mov edx, dword [ebp + 0x14]
movzx eax, byte [esi + edx - 1]
lea esi, [esi - 1]
xor eax, ecx
movzx ecx, byte [eax + 0x1010f4b8]
mov byte [esi], cl
dec edi
jne 0x10099593
lea esi, [ebx + 0xfc]
mov edi, 0x40
lea edx, [ebx + 0x7e]
jmp 0x100995c0
movzx ecx, byte [edx + 1]
lea esi, [esi - 4]
movzx eax, byte [edx]
lea edx, [edx - 2]
shl ecx, 8
or ecx, eax
and ecx, 0xffff
mov dword [esi + 4], ecx
dec edi
jne 0x100995c0
pop edi
pop esi
pop ebx
pop ebp
ret