joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30083c20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
cmp edx, 0x40
jb 0x30083c8a
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x30083c8a
mov eax, dword [ecx + 0x3c]
test eax, eax
js 0x30083c8a
lea esi, [eax + 0x18]
cmp edx, esi
jb 0x30083c8a
add eax, ecx
add esi, 0xe0
cmp dword [eax], 0x4550
jne 0x30083c8a
movzx edi, word [eax + 4]
mov ebx, 0x14c
cmp di, bx
je 0x30083c6b
mov ebx, 0x8664
cmp di, bx
jne 0x30083c8a
cmp edx, esi
jbe 0x30083c8a
mov esi, 0x2000
test word [eax + 0x16], si
jne 0x30083c8a
mov eax, dword [eax + 0x28]
xor edx, edx
add eax, dword [ebp + 8]
pop edi
adc edx, dword [ebp + 0xc]
pop esi
pop ebx
pop ebp
ret
cmp edx, 0x10
jb 0x30083cb1
cmp dword [ecx], 0x464c457f
jne 0x30083cb1
movzx eax, byte [ecx + 4]
mov esi, eax
sub esi, 1
je 0x30083cac
sub esi, 1
jne 0x30083cb1
cmp edx, 0x40
jmp 0x30083caf
cmp edx, 0x34
jae 0x30083cb3
xor eax, eax
sub eax, 1
je 0x30083ccf
sub eax, 1
jne 0x30083ce0
cmp word [ecx + 0x10], 2
jne 0x30083ce0
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x1c]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp word [ecx + 0x10], 2
jne 0x30083ce0
mov eax, dword [ecx + 0x18]
xor edx, edx
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 0xfabadaff
mov edx, 0xfffabada
pop ebx
pop ebp
ret
Function at 0x3008a6d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
xor edx, edx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ebx
movzx eax, word [ecx + 0x14]
lea esi, [ecx + 0x18]
add esi, eax
or eax, 0xffffffff
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov eax, dword [ebx + 8]
mov edx, ecx
movzx eax, word [eax + 6]
mov dword [ebp - 0x1c], eax
cmp ax, 0x60
mov dword [ebp - 0x18], ecx
movzx eax, ax
jb 0x3008a71e
mov eax, 0x60
cmp ecx, eax
jge 0x3008a810
mov eax, dword [ebx + 4]
cmp eax, 0x28
jb 0x3008a865
mov ecx, dword [ebx]
cmp esi, ecx
jb 0x3008a865
add eax, 0xffffffd8
add eax, ecx
cmp esi, eax
ja 0x3008a865
mov ecx, dword [esi + 0xc]
mov eax, ecx
cmp dword [ebp - 0xc], ecx
mov edx, dword [esi + 8]
cmovbe eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
test edx, edx
jne 0x3008a762
mov edx, dword [esi + 0x10]
cmp dword [ebp + 0xc], 0
jb 0x3008a7fe
mov eax, dword [ebp + 8]
ja 0x3008a779
cmp eax, ecx
jb 0x3008a7fe
mov ebx, eax
mov eax, dword [ebp + 0xc]
sub ebx, ecx
sbb eax, 0
test eax, eax
ja 0x3008a7fb
jb 0x3008a78d
cmp ebx, edx
jae 0x3008a7fb
mov edx, dword [ebp - 4]
cmp edx, ecx
ja 0x3008a7e9
mov eax, dword [ebp - 0x14]
mov ebx, 0x200
mov edi, dword [esi + 0x14]
mov edx, ecx
mov dword [ebp - 4], edx
mov eax, dword [eax + 0x3c]
cmp eax, ebx
cmovb ebx, eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x3008a7c5
xor edx, edx
mov eax, edi
div ebx
test edx, edx
je 0x3008a7c2
sub edi, edx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
cmp dword [eax + 0x38], 0x1000
jb 0x3008a801
mov ecx, dword [ebp - 0x18]
and edi, 0xfffffe00
mov eax, dword [ebp - 0x1c]
add esi, 0x28
inc ecx
jmp 0x3008a70d
mov ecx, dword [ebp - 0x18]
add esi, 0x28
mov ebx, dword [ebp - 8]
inc ecx
mov eax, dword [ebp - 0x1c]
jmp 0x3008a70d
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
add esi, 0x28
mov eax, dword [ebp - 0x1c]
inc ecx
jmp 0x3008a70d
cmp dword [ebp + 0xc], 0
ja 0x3008a82d
jb 0x3008a820
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 8], eax
jae 0x3008a82d
mov eax, dword [ebx + 4]
xor edx, edx
mov dword [ebp - 4], edx
xor edi, edi
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov eax, dword [ebp + 0xc]
sub ecx, edx
sbb eax, 0
test eax, eax
ja 0x3008a865
jb 0x3008a845
cmp ecx, dword [ebp - 0x10]
jae 0x3008a865
xor edx, edx
sub edi, dword [ebp - 4]
sbb edx, edx
add edi, esi
adc edx, dword [ebp + 0xc]
test edx, edx
jg 0x3008a865
jl 0x3008a85c
cmp edi, dword [ebx + 4]
jae 0x3008a865
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3008c820
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ecx + 8]
mov dword [ebp - 0x10], eax
lea ebx, [edx + 8]
mov eax, dword [ecx]
xor edx, edx
mov dword [ebp - 4], eax
mov ecx, 3
push edi
mov edi, dword [ebp + 8]
add eax, edi
mov dword [ebp - 8], eax
div ecx
mov eax, dword [ebp + 0xc]
mov esi, edx
sub ecx, esi
neg esi
sbb esi, esi
and esi, ecx
mov dword [eax], esi
mov eax, dword [ebp - 4]
lea ecx, [eax*4 + 3]
mov eax, 0xaaaaaaab
mul ecx
lea eax, [edi + 9]
shr edx, 1
add edx, esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
add eax, edx
push eax
push 8
push dword [0x3026d128]
call esi
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x3008c8af
push dword [ebp - 8]
push 8
push dword [0x3026d128]
call esi
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x3008c8b8
push edi
push eax
push dword [0x3026d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp + 0xc], eax
test ecx, ecx
jle 0x3008c8e1
mov dword [ebp + 0xc], ecx
mov eax, 0x41414141
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0xc]
mov eax, edx
push dword [ebp - 4]
add eax, esi
push dword [ebp - 0x10]
push eax
call fcn.301619b0
mov edx, esi
add esp, 0xc
lea esi, [edi + 8]
mov eax, edx
mov edi, dword [ebp + 0xc]
add edi, dword [ebp - 4]
add eax, edi
mov dword [ebp + 8], eax
cmp edi, 3
jl 0x3008c96e
nop dword [eax]
movzx eax, byte [edx]
sub edi, 3
shr eax, 2
movzx eax, byte [eax + ebx]
mov byte [esi], al
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + ebx]
mov byte [esi + 1], al
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
movzx eax, byte [ecx + ebx]
mov byte [esi + 2], al
movzx eax, byte [edx + 2]
add edx, 3
and eax, 0x3f
movzx eax, byte [eax + ebx]
mov byte [esi + 3], al
add esi, 4
cmp edi, 3
jge 0x3008c910
mov eax, dword [ebp + 8]
sub eax, edx
mov dword [ebp + 8], eax
je 0x3008c9bc
movzx eax, byte [edx]
shr eax, 2
mov al, byte [eax + ebx]
mov byte [esi], al
movzx ecx, byte [edx]
and ecx, 3
shl ecx, 4
cmp dword [ebp + 8], 1
jne 0x3008c999
mov al, byte [ecx + ebx]
mov cl, 0x3d
mov byte [esi + 1], al
jmp 0x3008c9b2
movzx eax, byte [edx + 1]
shr eax, 4
or eax, ecx
mov al, byte [eax + ebx]
mov byte [esi + 1], al
movzx eax, byte [edx + 1]
and eax, 0xf
mov cl, byte [ebx + eax*4]
mov byte [esi + 2], cl
mov byte [esi + 3], 0x3d
add esi, 4
push dword [ebp - 8]
push 0
push dword [0x3026d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
sub esi, eax
sub esi, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3008ea90
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x3021be88]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x4c]
push eax
push dword [0x3026d1a0]
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x14c], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.30186800
add esp, 8
test eax, eax
je 0x3008eb04
mov eax, 0x1f
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
push 8
push 8
push dword [0x3026d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [ebp - 0x178]
mov dword [esi], eax
test eax, eax
je 0x3008eb8d
mov dword [eax], 0
mov eax, dword [esi]
push 0x60
mov dword [eax + 4], 0
call fcn.301698df
mov edi, eax
add esp, 4
mov dword [ebp - 0x184], edi
test edi, edi
jne 0x3008eb52
call fcn.3016b560
mov dword [eax], 0xc
jmp 0x3008eb6a
push 0x60
push 0
push edi
call fcn.30162560
add esp, 0xc
mov ecx, edi
call fcn.300582a0
test eax, eax
je 0x3008eba3
mov edi, dword [esi]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x3008eb78
call fcn.300873f0
push edi
push 0
push dword [0x3026d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x17c]
mov edx, ecx
mov eax, dword [esi]
mov dword [edi], eax
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x3008ebb2
sub edx, ebx
push edi
call fcn.3008e610
add esp, 4
lea edx, [ebp - 0x174]
mov ecx, edi
call fcn.30091ee0
mov ecx, edi
call fcn.3008e780
mov ebx, dword [ebp - 0x150]
test ebx, ebx
je 0x3008ec4c
mov edi, dword [esi]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x3008ebf0
call fcn.300873f0
push edi
push 0
push dword [0x3026d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x180]
lea edx, [ebp - 0x14c]
mov dword [esi], 0
mov esi, 0x17f
mov al, byte [edx]
lea ecx, [ecx + 1]
inc edx
mov byte [ecx - 1], al
test al, al
je 0x3008ec28
sub esi, 1
jne 0x3008ec16
test esi, esi
jne 0x3008ec39
mov byte [ecx], 0
nop
mov cl, byte [edx]
lea edx, [edx + 1]
test cl, cl
jne 0x3008ec30
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
Function at 0x3008f810
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x3021be88]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x4c]
push eax
push dword [0x3026d1a0]
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x154], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.30186800
add esp, 8
test eax, eax
je 0x3008f885
mov eax, 0x1f
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
push 8
push 8
push dword [0x3026d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [ebp - 0x158]
mov dword [edi], eax
test eax, eax
je 0x3008f901
mov dword [eax], 0
mov eax, dword [edi]
push 0x60
mov dword [eax + 4], 0
mov eax, dword [edi]
or dword [eax], 2
mov eax, dword [edi]
or dword [eax], 0x80
call fcn.301698df
mov esi, eax
add esp, 4
mov dword [ebp - 0x164], esi
test esi, esi
jne 0x3008f916
call fcn.3016b560
mov dword [eax], 0xc
mov esi, dword [edi]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x3008f8ec
call fcn.300873f0
push esi
push 0
push dword [0x3026d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi], 0
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
push 0x60
push 0
push esi
call fcn.30162560
mov ecx, dword [ebp - 0x15c]
add esp, 0xc
mov edx, ecx
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [edi]
lea edi, [edx + 1]
mov dword [esi], eax
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x3008f980
sub edx, edi
push esi
call fcn.3008e610
add esp, 4
lea edx, [ebp - 0x154]
mov ecx, esi
call fcn.30093840
mov ecx, esi
call fcn.3008e780
mov edi, dword [ebp - 0x150]
test edi, edi
je 0x3008f9fb
mov ecx, dword [ebp - 0x160]
lea edx, [ebp - 0x14c]
mov esi, 0x17f
mov al, byte [edx]
lea ecx, [ecx + 1]
inc edx
mov byte [ecx - 1], al
test al, al
je 0x3008f9d3
sub esi, 1
jne 0x3008f9c1
test esi, esi
jne 0x3008f9e9
mov byte [ecx], 0
nop word [eax + eax]
mov cl, byte [edx]
lea edx, [edx + 1]
test cl, cl
jne 0x3008f9e0
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret
Function at 0x3009f660
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x3009f687
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x3009f676
pop edi
movzx eax, dl
pop esi
ret
Function at 0x300a1fc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x302385b8], 0
push esi
mov esi, dword [ebp + 8]
jne 0x300a20cd
mov eax, 1
lock xadd dword [0x302385bc], eax
inc eax
cmp eax, 1
jne 0x300a20bc
test esi, esi
jne 0x300a20b1
push ebx
push edi
push str.advapi32.dll
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x300a2091
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x300a2091
push str.CryptGenRandom
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x300a2091
push 0x3019e640
push esi
call edi
mov edi, eax
test edi, edi
je 0x300a2091
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp + 8]
push eax
call ebx
test eax, eax
je 0x300a2091
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 8]
call dword [ebp - 8]
push 0
push dword [ebp + 8]
mov esi, eax
call edi
test esi, esi
je 0x300a2091
mov eax, dword [ebp - 4]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
movzx eax, byte [ebp - 2]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 1]
shl esi, 8
or esi, eax
jmp 0x300a20a5
push 0
call fcn.30169fd3
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
test esi, esi
mov eax, 1
pop edi
cmove esi, eax
pop ebx
mov dword [0x302385b8], esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
call esi
cmp dword [0x302385b8], 0
je 0x300a20c2
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x300a20e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add ecx, 0xdeadbeef
push ebx
mov ebx, dword [ebp + 8]
add ecx, edx
push esi
mov esi, ecx
mov dword [ebp + 0x10], esi
push edi
mov edi, ecx
cmp edx, 0xc
jbe switch.0x300a21ec
add edx, 0xfffffff3
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
shr eax, 3
inc eax
mov dword [ebp - 4], eax
nop dword [eax + eax]
movzx esi, byte [ebx + 7]
movzx eax, byte [ebx + 6]
movzx edx, byte [ebx + 0xb]
shl esi, 8
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 5]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 4]
add edi, eax
shl esi, 8
movzx eax, byte [ebx + 0xa]
add edi, esi
movzx esi, byte [ebx + 8]
add edx, eax
movzx eax, byte [ebx + 9]
add esi, ecx
shl edx, 8
add edx, eax
shl edx, 8
add esi, edx
mov edx, dword [ebp + 8]
mov ebx, esi
rol ebx, 4
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx]
shl ecx, 8
add ecx, eax
sub ecx, esi
add esi, edi
add ecx, dword [ebp + 0x10]
xor ebx, ecx
sub edi, ebx
mov eax, ebx
add ebx, esi
rol eax, 6
xor eax, edi
sub esi, eax
mov edx, eax
rol edx, 8
add eax, ebx
xor edx, esi
sub ebx, edx
mov esi, edx
rol esi, 0x10
add edx, eax
xor esi, ebx
mov ebx, dword [ebp + 8]
mov edi, esi
sub eax, esi
ror edi, 0xd
add esi, edx
xor edi, eax
mov dword [ebp + 0x10], esi
sub edx, edi
mov ecx, edi
rol ecx, 4
add ebx, 0xc
xor ecx, edx
mov dword [ebp + 8], ebx
mov edx, dword [ebp + 0xc]
add edi, esi
sub edx, 0xc
sub dword [ebp - 4], 1
mov dword [ebp + 0xc], edx
jne 0x300a2120
cmp edx, 0xc
ja 0x300a2258
jmp dword [edx*4 + 0x300a22a8]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add ecx, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add ecx, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add ecx, eax
movzx eax, byte [ebx + 8]
add ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 4]
add edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add esi, eax
movzx eax, byte [ebx]
add esi, eax
mov dword [ebp + 0x10], esi
xor ecx, edi
mov eax, edi
rol eax, 0xe
sub ecx, eax
mov eax, ecx
mov esi, ecx
xor esi, dword [ebp + 0x10]
rol eax, 0xb
sub esi, eax
xor edi, esi
mov eax, esi
ror eax, 7
sub edi, eax
mov eax, edi
xor ecx, edi
rol eax, 0x10
sub ecx, eax
mov eax, ecx
mov edx, ecx
rol eax, 4
xor edx, esi
sub edx, eax
mov eax, edx
xor edi, edx
rol eax, 0xe
sub edi, eax
mov eax, edi
xor ecx, edi
ror eax, 8
sub ecx, eax
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x3010fbd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.301600d0
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0x10
lea eax, [edx + 0xf]
lea ecx, [esi + 0xf]
cmp esi, eax
ja 0x3010fc14
cmp ecx, edx
jb 0x3010fc14
push edi
mov ecx, esi
sub edx, esi
mov edi, 0x10
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x3010fc03
pop edi
jmp 0x3010fc21
movups xmm1, xmmword [esi]
movups xmm0, xmmword [edx]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
push 0x10
push esi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
push esi
push dword [eax + 4]
call fcn.300b6980
add esp, 0x14
pop esi
test eax, eax
je 0x3010fc4b
cmp dword [esp], 0x10
jne 0x3010fc4b
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x3010fd90
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x3010fdf3
mov edx, dword [esp + 0x10]
test edx, edx
je 0x3010fdf3
push ebx
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0xc]
cmp edx, eax
mov ebx, eax
cmovb ebx, edx
xor ecx, ecx
test ebx, ebx
je 0x3010fdc6
mov al, byte [ecx + esi]
xor byte [edi + ecx + 0x10], al
inc ecx
cmp ecx, ebx
jb 0x3010fdb7
mov eax, dword [edi + 0xc]
cmp edx, eax
jbe 0x3010fdf1
sub edx, eax
mov eax, 0x10
cmp edx, eax
cmova edx, eax
xor ecx, ecx
test edx, edx
je 0x3010fdf1
nop dword [eax]
mov eax, dword [edi + 0xc]
add eax, ecx
mov al, byte [eax + esi]
xor byte [edi + ecx + 0x30], al
inc ecx
cmp ecx, edx
jb 0x3010fde0
pop edi
pop ebx
pop esi
ret
Function at 0x30135440
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.301600d0
mov eax, dword [0x3021be88]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
shl ebx, 0x18
push esi
push edi
mov edi, dword [esp + 0x50]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
or ebx, eax
mov dword [esp + 0x14], edi
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x24], ebp
movzx eax, byte [edx + 6]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x2c]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x18], ebx
mov eax, ebx
mov byte [esp + 0x2f], bl
shr eax, 0x18
or edx, ecx
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x33], dl
test eax, eax
je 0x30135605
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
nop dword [eax]
dec eax
mov dword [esp + 0x44], eax
test esi, esi
jne 0x30135595
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
call fcn.30134e70
mov ebx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x30135530
test ebp, ebp
mov ebp, dword [esp + 0x24]
je 0x301355ec
mov ecx, dword [esp + 0x28]
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.3015f3bd
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.3015f3bd
add esp, 0x28
ret
Function at 0x30139240
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.301600d0
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x34]
mov edi, dword [edi]
mov dword [esp + 0x14], edi
test edi, edi
je 0x30139289
mov ecx, dword [esp + 0x30]
nop dword [eax]
test esi, esi
je 0x30139289
mov al, byte [edi + ecx]
dec esi
xor al, byte [ebp]
inc edi
mov byte [ebx], al
inc ebp
inc ebx
and edi, 0xf
mov dword [esp + 0x14], edi
jne 0x30139270
mov ecx, dword [esp + 0x2c]
movzx edx, byte [ecx + 0xc]
movzx eax, byte [ecx + 0xd]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xe]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xf]
shl edx, 8
or edx, eax
mov dword [esp + 0x24], edx
cmp esi, 0x10
jb 0x30139358
mov edi, ecx
nop dword [eax + eax]
mov ecx, esi
shr ecx, 4
push edi
push dword [esp + 0x2c]
lea eax, [ecx + edx]
neg edx
cmp eax, ecx
cmovae edx, ecx
mov dword [esp + 0x18], edx
xor edx, edx
push dword [esp + 0x18]
cmp eax, ecx
push ebx
cmovae edx, eax
push ebp
mov dword [esp + 0x38], edx
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, edx
mov byte [edi + 0xf], dl
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, edx
shr eax, 8
mov byte [edi + 0xe], al
test edx, edx
jne 0x30139336
mov edx, 0xc
mov eax, 1
nop dword [eax]
movzx ecx, byte [edx + edi - 1]
dec edx
add eax, ecx
mov byte [edx + edi], al
shr eax, 8
test edx, edx
jne 0x30139320
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
shl eax, 4
sub esi, eax
add ebx, eax
add ebp, eax
cmp esi, 0x10
jae 0x301392c0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
test esi, esi
je 0x301393c6
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
push ecx
push dword [esp + 0x2c]
push 1
push eax
push eax
movups xmmword [eax], xmm0
call dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, ecx
shr eax, 0x18
mov byte [edx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edx + 0xe], al
mov byte [edx + 0xf], cl
test ecx, ecx
jne 0x301393a7
push edx
call fcn.30139410
add esp, 4
mov eax, dword [esp + 0x30]
sub ebp, eax
sub ebx, eax
lea ecx, [edi + eax]
add edi, esi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub esi, 1
jne 0x301393b4
mov eax, dword [esp + 0x34]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret