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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x93bf44]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x28]
mov esi, ecx
push eax
call fcn.006dbbb5
movups xmm0, xmmword [0x901fa4]
mov ax, word [0x901fbc]
add esp, 4
xor ecx, ecx
mov word [ebp - 8], ax
cmp dword [0x1816094], 2
movups xmmword [ebp - 0x20], xmm0
movq xmm0, qword [0x901fb4]
movq qword [ebp - 0x10], xmm0
jl 0x47c0d2
movaps xmm2, xmmword [0x9036b0]
mov eax, 4
movaps xmm4, xmmword [0x903740]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov ecx, 8
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
movd xmm5, eax
mov eax, 0x1f
psrad xmm1, xmm5
movaps xmm0, xmm1
movd xmm6, eax
mov eax, 0x901fa4
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x9036f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x9036c0]
paddd xmm2, xmmword [0x9036b0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
paddw xmm1, xmmword [0x903710]
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [ebp - 0x20], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x9036f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [ebp - 0x18]
paddw xmm1, xmmword [0x903710]
pxor xmm1, xmm0
movq qword [ebp - 0x18], xmm1
mov eax, 0x4bda12f7
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul eax, eax, 0x36
sub edx, eax
add edx, 0x38
xor word [ebp + ecx*2 - 0x20], dx
inc ecx
cmp ecx, 0xd
jl 0x47c0d2
push dword [ebp - 0x24]
lea eax, [esi + 0x414]
push dword [ebp - 0x28]
push eax
lea eax, [esi + 0x20c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [esi + 4]
push eax
call dword [0x83ca58]
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop esi
call fcn.005c22ca
mov esp, ebp
pop ebp
ret
Function at 0x483e30
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp dword [ebx + 4], eax
je 0x483fa3
cmp byte [ebx + 0x24], 0
je 0x483f99
mov eax, dword fs:[0x30]
push esi
push edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
movzx ebx, word [eax + 0x2c]
xor esi, esi
mov ecx, dword [eax + 0x30]
xor edi, edi
shr ebx, 1
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x811c9dc5
lea edx, [ecx + ebx*2]
cmp ecx, edx
cmova ebx, esi
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x483eba
mov eax, ebx
mov bl, byte [ecx]
lea ecx, [ecx + 2]
movsx esi, bl
sub bl, 0x41
mov edx, esi
or edx, 0x20
cmp bl, 0x19
cmova edx, esi
inc edi
xor edx, dword [ebp - 4]
imul edx, edx, 0x1000193
mov dword [ebp - 4], edx
cmp edi, eax
jne 0x483e88
mov eax, dword [ebp - 8]
cmp edx, 0x39794115
je 0x483ebe
mov eax, dword [eax]
jmp 0x483e60
mov ebx, dword [eax + 0x18]
mov eax, dword [0x181cbc0]
mov dword [ebp - 8], ebx
test eax, eax
jne 0x483f88
test ebx, ebx
je 0x483f81
mov eax, dword [ebx + 0x3c]
mov edx, dword [eax + ebx + 0x78]
mov eax, dword [eax + ebx + 0x7c]
add edx, ebx
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x10], edx
cmp edx, ebx
je 0x483f83
mov ecx, dword [edx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x483f81
mov edi, dword [edx + 0x20]
add edi, ebx
nop dword [eax + eax]
mov edx, dword [edi]
mov esi, 0x811c9dc5
add edx, ebx
mov bl, byte [edx]
inc edx
test bl, bl
je 0x483f51
movsx ecx, bl
lea edx, [edx + 1]
sub bl, 0x41
mov eax, ecx
or eax, 0x20
cmp bl, 0x19
mov bl, byte [edx - 1]
cmova eax, ecx
xor eax, esi
imul esi, eax, 0x1000193
test bl, bl
jne 0x483f20
cmp esi, 0x6b36a56a
je 0x483f61
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc eax
add edi, 4
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x483f81
mov ebx, dword [ebp - 8]
jmp 0x483f10
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x483f83
xor eax, eax
mov dword [0x181cbc0], eax
mov ebx, dword [ebp - 0x18]
push dword [ebx + 4]
call eax
mov eax, dword [ebp + 8]
pop edi
mov byte [ebx + 0x24], 0
pop esi
mov ecx, ebx
mov dword [ebx + 4], eax
call fcn.00483fb0
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x484480
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x824f8e
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x93bf44]
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 ebx, ecx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x13c], ebx
xor eax, eax
mov dword [ebx], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 7
mov word [ebx + 0xc], ax
mov dword [ebp - 4], eax
push 0x80000001
mov byte [ebx + 0x24], al
mov dword [ebx + 0x2c], eax
call fcn.00483e30
cmp byte [0x181cbf0], 0
mov dword [ebx + 0x28], 0xf003f
mov byte [ebx + 8], 1
jne 0x484679
mov eax, dword fs:[0x30]
mov dword [ebp - 0x124], 0x114
mov byte [0x181cbf0], 1
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
movzx edx, word [eax + 0x2c]
xor edi, edi
mov esi, dword [eax + 0x30]
and edx, 0xfffffffe
mov dword [ebp - 0x128], eax
mov ebx, 0x811c9dc5
lea ecx, [edx + esi]
inc edx
shr edx, 1
cmp esi, ecx
cmova edx, edi
mov dword [ebp - 0x12c], edx
test edx, edx
je 0x484580
mov eax, edx
mov dl, byte [esi]
lea ecx, [edx - 0x41]
cmp cl, 0x19
movsx ecx, dl
ja 0x484562
or ecx, 0x20
xor ecx, ebx
inc edi
imul ebx, ecx, 0x1000193
add esi, 2
cmp edi, eax
jne 0x484552
mov eax, dword [ebp - 0x128]
cmp ebx, 0xa3e6f6c3
je 0x484584
mov eax, dword [eax]
jmp 0x484524
mov esi, dword [eax + 0x18]
mov eax, dword [0x181d114]
mov dword [ebp - 0x128], esi
test eax, eax
jne 0x484668
test esi, esi
je 0x484661
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0x78]
mov eax, dword [eax + esi + 0x7c]
add ecx, esi
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x130], ecx
cmp ecx, esi
je 0x484661
mov eax, dword [ecx + 0x18]
xor ebx, ebx
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x484661
mov edi, dword [ecx + 0x20]
add edi, esi
nop dword [eax + eax]
mov edx, dword [edi]
add edx, esi
mov esi, 0x811c9dc5
mov cl, byte [edx]
inc edx
test cl, cl
je 0x48461a
lea eax, [ecx - 0x41]
cmp al, 0x19
movsx eax, cl
ja 0x4845fd
or eax, 0x20
mov cl, byte [edx]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
test cl, cl
jne 0x4845f0
cmp esi, 0x7cebab29
je 0x48462a
mov eax, dword [ebp - 0x12c]
inc ebx
add edi, 4
cmp ebx, eax
je 0x484661
mov esi, dword [ebp - 0x128]
jmp 0x4845e0
mov esi, dword [ebp - 0x130]
mov edx, dword [ebp - 0x128]
mov eax, dword [esi + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
lea ecx, [ebp - 0x124]
add eax, edx
push ecx
mov dword [0x181d114], eax
call eax
mov eax, dword [ebp - 0x138]
jmp 0x48467b
xor eax, eax
mov dword [0x181d114], eax
lea ecx, [ebp - 0x124]
push ecx
call eax
mov eax, dword [ebp - 0x138]
jmp 0x48467b
mov eax, ebx
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.005c22ca
mov esp, ebp
pop ebp
ret
Function at 0x4846a0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push ebx
push esi
movq qword [eax], xmm0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x1c], ecx
push edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
movzx ebx, word [eax + 0x2c]
xor esi, esi
mov ecx, dword [eax + 0x30]
xor edi, edi
shr ebx, 1
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x811c9dc5
lea edx, [ecx + ebx*2]
cmp ecx, edx
cmova ebx, esi
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x484723
mov eax, ebx
mov bl, byte [ecx]
lea ecx, [ecx + 2]
movsx esi, bl
sub bl, 0x41
mov edx, esi
or edx, 0x20
cmp bl, 0x19
cmova edx, esi
inc edi
xor edx, dword [ebp - 4]
imul edx, edx, 0x1000193
mov dword [ebp - 4], edx
cmp edi, eax
jne 0x4846f1
mov eax, dword [ebp - 8]
cmp edx, 0x39794115
je 0x484727
mov eax, dword [eax]
jmp 0x4846c9
mov ecx, dword [0x181d110]
mov ebx, dword [eax + 0x18]
mov dword [ebp - 8], ebx
test ecx, ecx
jne 0x4847eb
test ebx, ebx
je 0x4847e3
mov eax, dword [ebx + 0x3c]
mov edx, dword [eax + ebx + 0x78]
mov eax, dword [eax + ebx + 0x7c]
add edx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x10], edx
cmp edx, ebx
je 0x4847e3
mov ecx, dword [edx + 0x18]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x4847e3
mov edi, dword [edx + 0x20]
add edi, ebx
mov edx, dword [edi]
mov esi, 0x811c9dc5
add edx, ebx
mov bl, byte [edx]
inc edx
test bl, bl
je 0x4847b3
movsx ecx, bl
lea edx, [edx + 1]
sub bl, 0x41
mov eax, ecx
or eax, 0x20
cmp bl, 0x19
mov bl, byte [edx - 1]
cmova eax, ecx
xor eax, esi
imul esi, eax, 0x1000193
test bl, bl
jne 0x484782
cmp esi, 0xef3e6846
je 0x4847c3
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc eax
add edi, 4
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x4847e3
mov ebx, dword [ebp - 8]
jmp 0x484772
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + edx]
add ecx, edx
jmp 0x4847e5
xor ecx, ecx
mov dword [0x181d110], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x1c]
add eax, 4
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0x8ffeb8
push dword [esi]
call ecx
pop edi
mov dword [esi + 0x2c], eax
test eax, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x603089
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x6030b7
cmp eax, edi
jge 0x6030ab
push esi
call fcn.005fe6fb
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x6030da
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x6030c0
mov dword [esi + 8], edx
jmp 0x6030ef
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x6030e5
xor dl, dl
jmp 0x6030ea
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x6030da
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x603127
push str.zlib_corrupt
call fcn.005fe620
pop ecx
jmp 0x603167
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x603137
push str.read_past_buffer
jmp 0x60311f
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x603151
push edi
push ecx
push esi
call fcn.0060635a
add esp, 0xc
test eax, eax
je 0x603167
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.006cdf50
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x62b3fd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x1816a9b], 0
jne 0x62b4ac
push esi
push 0x875bb8
call fcn.0063590f
mov dword [esp], 0x875a34
call fcn.0063590f
mov dword [esp], 0x875cb0
call fcn.0063590f
mov dword [esp], 0x875cd4
call fcn.0063590f
mov dword [esp], 0x875bdc
call fcn.0063590f
mov esi, 0x875a98
push esi
call fcn.0063faa7
push esi
call fcn.0063faa7
push 0x875ab8
call fcn.0063faa7
push 0x875ad8
call fcn.0063faa7
push 0x875c00
call fcn.0063faa7
push 0x875a58
call fcn.0063faa7
push 0x875a78
call fcn.0063faa7
push 0x875c58
call fcn.0063faa7
push 0x875c78
call fcn.0063faa7
add esp, 0x28
mov byte [0x1816a9b], 1
pop esi
jmp 0x647df7
ret
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x647dff
mov dword [edx*4 + 0x181d180], ecx
inc edx
cmp edx, 0x100
jb 0x647dfa
mov esi, 0x800
jmp 0x647e47
mov ecx, dword [edx*4 + 0x181cd80]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x181d180]
mov dword [edx*4 + 0x181d180], ecx
inc edx
cmp edx, esi
jb 0x647e2b
mov eax, 0x81fb90
mov esi, 0x81fab0
mov dword [0x181d17c], eax
mov dword [0x181d174], eax
mov dword [0x181d178], esi
call fcn.0065f805
mov ecx, dword [0x181d174]
test eax, eax
cmove ecx, esi
mov dword [0x181d174], ecx
pop esi
ret
Function at 0x63b730
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x82655d
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x93bf44]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x30]
mov dword [esi], 0x877128
push 0x93c084
push eax
mov dword [esi + 4], 0x877140
mov dword [esi + 8], 0x877154
mov dword [esi + 0xc], 0x877168
mov dword [esi + 0x10], 0x877180
mov dword [esi + 0x14], 0x877198
mov dword [esi + 0x18], 0x8771ac
call fcn.00658cee
push dword [esi + 0x24]
call fcn.004263e0
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x63b7af
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x642679
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
and dword [edi + 0x2cb0], 0
cmp dword [edi + 0x2cb8], 2
jne 0x6426bf
push 1
lea ecx, [edi + 0x38]
call fcn.006425f3
test eax, eax
je 0x6426b8
push dword [edi + 0x80]
mov ecx, edi
push dword [edi + 0x7c]
call fcn.00641e66
jmp 0x64287d
and dword [edi + 0x2cb8], 0
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
push ebx
push 8
pop ecx
sub ecx, edx
mov dword [ebp - 0x10], edx
shr eax, cl
shr eax, 0x10
cmp dword [edi + 0x2ca0], 0x25
movzx eax, al
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x2cac]
jae 0x6426fb
test eax, eax
mov ebx, 0x877560
mov ecx, 0x877550
mov eax, 0x877590
jmp 0x64270c
test eax, eax
mov ebx, 0x877580
mov ecx, 0x877570
mov eax, 0x8775cc
cmove ebx, ecx
mov dword [ebp - 4], eax
mov eax, dword [eax]
mov edx, 0xff
xor eax, dword [ebp - 8]
push esi
mov cl, byte [ebx]
xor esi, esi
sar edx, cl
not edx
test eax, edx
je 0x642746
mov edi, dword [ebp - 4]
inc esi
mov edx, 0xff
mov cl, byte [esi + ebx]
mov eax, dword [edi + esi*4]
xor eax, dword [ebp - 8]
sar edx, cl
not edx
test eax, edx
jne 0x64272c
mov edi, dword [ebp - 0xc]
movzx eax, byte [esi + ebx]
lea ebx, [edi + 0x38]
add eax, dword [ebp - 0x10]
mov ecx, ebx
mov dword [ebx], eax
call fcn.00642568
cmp esi, 9
jb 0x6427fc
jne 0x642778
push dword [edi + 0x80]
inc dword [edi + 0x2cb8]
push dword [edi + 0x7c]
jmp 0x642874
and dword [edi + 0x2cb8], 0
mov ecx, edi
cmp esi, 0xe
jne 0x6427ab
push 0x87740c
call fcn.00641efe
push 0xf
mov ecx, ebx
lea esi, [eax + 5]
call fcn.006425f3
add eax, 0x7fff
push esi
mov dword [edi + 0x7c], eax
push eax
jmp 0x64286e
mov eax, dword [edi + 0x78]
sub eax, esi
inc eax
and eax, 3
push 0x8773d4
mov ebx, dword [edi + eax*4 + 0x68]
call fcn.00641efe
add eax, 2
cmp eax, 0x101
jne 0x6427df
cmp esi, 0xa
jne 0x6427df
xor dword [edi + 0x2cac], 1
xor eax, eax
jmp 0x64287b
cmp ebx, 0x100
lea ecx, [eax + 1]
cmovb ecx, eax
mov eax, dword [edi + 0x2cc8]
dec eax
cmp ebx, eax
lea esi, [ecx + 1]
cmovb esi, ecx
jmp 0x642858
mov ecx, dword [edi + 0x2ca0]
and dword [edi + 0x2cb8], 0
add ecx, esi
mov eax, ecx
shr eax, 4
sub ecx, eax
mov dword [edi + 0x2ca0], ecx
mov ecx, edi
push 0x8774b4
call fcn.00641efe
movzx ecx, al
mov ebx, dword [edi + ecx*4 + 0x494]
test al, al
je 0x642855
dec dword [edi + ebx*4 + 0x1494]
mov eax, dword [edi + ecx*4 + 0x490]
inc dword [edi + eax*4 + 0x1494]
mov dword [edi + ecx*4 + 0x494], eax
mov dword [edi + ecx*4 + 0x490], ebx
add esi, 2
mov eax, dword [edi + 0x78]
push esi
push ebx
mov dword [edi + eax*4 + 0x68], ebx
mov eax, dword [edi + 0x78]
inc eax
mov dword [edi + 0x7c], ebx
and eax, 3
mov dword [edi + 0x78], eax
mov dword [edi + 0x80], esi
mov ecx, edi
call fcn.00641e66
pop esi
pop ebx
pop edi
leave
ret
Function at 0x647f58
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
or dword [edi], 0xffffffff
cmp dword [eax], 0x23170f69
jne 0x648033
mov ecx, 0x40c1
cmp word [eax + 4], cx
jne 0x648033
mov ebx, dword [ebp + 0x14]
mov edx, 0x2790
mov byte [ebx], 1
movzx ecx, word [eax + 6]
cmp cx, dx
jne 0x647f9c
mov byte [ebx], 0
jmp 0x647faa
mov edx, 0x2791
cmp cx, dx
jne 0x648033
mov ecx, dword [eax + 8]
xor esi, esi
mov eax, dword [eax + 0xc]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
cmp dword [0x1816ed8], esi
jbe 0x648033
mov ch, byte [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [esi*4 + 0x1816ee0]
cmp eax, dword [edx + 8]
jne 0x648009
mov edi, dword [ebp - 4]
cmp edi, dword [edx + 0xc]
mov edi, dword [ebp + 0x18]
jne 0x648009
xor eax, eax
cmp byte [ebx], al
je 0x647fe8
cmp dword [edx + 4], eax
jmp 0x647fea
cmp dword [edx], eax
sete al
test eax, eax
jne 0x648006
mov cl, byte [edx + 0x18]
test ch, ch
je 0x647fff
test cl, cl
sete al
jmp 0x648002
movzx eax, cl
test eax, eax
je 0x648014
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [0x1816ed8]
jb 0x647fc6
jmp 0x648033
movzx eax, byte [ebp + 0xc]
movzx ecx, byte [ebp + 0xc]
xor eax, 1
cmp dword [edx + 0x14], 1
cmove eax, ecx
test eax, eax
je 0x648031
mov eax, 0x80004002
jmp 0x648035
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x649eeb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp esi, 8
jb 0x649f15
push edi
mov edi, esi
shr edi, 3
mov eax, dword [ecx + 4]
sub esi, 8
xor eax, dword [ecx]
add ecx, 8
xor edx, eax
sub edi, 1
jne 0x649f02
pop edi
cmp esi, 4
jb 0x649f1f
xor edx, dword [ecx]
add ecx, 4
and esi, 3
cmp esi, 2
jbe 0x649f30
movzx eax, byte [ecx]
shl eax, 0x10
xor edx, eax
inc ecx
cmp esi, 1
jbe 0x649f3e
movzx eax, byte [ecx]
shl eax, 8
xor edx, eax
inc ecx
test esi, esi
pop esi
je 0x649f48
movzx ecx, byte [ecx]
xor edx, ecx
mov eax, edx
pop ebp
ret

Function at 0x64b56e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov dword [ebp + 8], eax
cmp eax, 3
jae 0x64b58d
push edi
call fcn.0064c2e1
jmp 0x64b5e5
mov ecx, dword [edi]
movzx edx, byte [ecx]
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 1]
mov ecx, dword [edi + 0x24]
xor edx, dword [edi + eax*4 + 0x60]
mov eax, dword [edi + 4]
movzx edx, dx
mov esi, dword [ecx + edx*4]
mov dword [ecx + edx*4], eax
push dword [edi + 0x30]
push dword [edi + 0x18]
push dword [edi + 0x14]
push dword [edi + 0x28]
push dword [edi]
push dword [edi + 4]
push esi
push dword [ebp + 8]
call fcn.0064c460
add esp, 0x20
inc dword [edi + 0x14]
inc dword [edi]
inc dword [edi + 4]
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
jne 0x64b5e6
push edi
call fcn.0064bf6a
pop ecx
sub ebx, 1
jne 0x64b57a
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x64bfe4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
mov dword [eax + 0x34], ecx
lea esi, [eax + 0x60]
mov word [eax + 0x1e], cx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x30], 0x20
mov byte [eax + 0x1d], 1
mov dword [eax + 0x48], 4
push 8
mov edx, ecx
pop edi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub edi, 1
jne 0x64c012
mov dword [esi], edx
inc ecx
add esi, 4
cmp ecx, 0x100
jb 0x64c00d
pop edi
pop esi
pop ebp
ret

Function at 0x64c73f
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x64c775
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x64c768
cmp esi, ecx
jae 0x64c858
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x64c7ee
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
movzx eax, al
shr ecx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x877ac0]
xor ecx, eax
or ecx, edx
jmp 0x64c83e
cmp edi, 6
jbe 0x64c83e
cmp edx, 4
jne 0x64c83e
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x64c787
pop edi
pop esi
pop ebx
leave
ret 4