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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
mov ecx, dword [eax + 0x200c]
mov ebx, dword [eax + 0x2004]
lea esi, [edx + 1]
mov dword [ebp - 4], ecx
mov ecx, edx
sub ecx, esi
mov dword [ebp - 8], 4
mov dword [ebp - 0x10], ecx
mov ecx, edx
sub ecx, esi
add ecx, 2
sub edx, esi
mov dword [ebp - 0x14], ecx
push edi
mov edi, dword [eax + 0x2000]
lea ecx, [edx + 3]
mov edx, dword [eax + 0x2008]
mov dword [ebp - 0x18], ecx
lea ecx, [ecx]
mov ecx, dword [ebp - 0x10]
lea esi, [esi + 4]
movzx ecx, byte [ecx + esi - 4]
xor edi, dword [eax + ecx*4]
mov dword [eax + 0x2000], edi
movzx ecx, byte [esi - 4]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 4]
xor ebx, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x2004], ebx
movzx ecx, byte [ecx + esi - 4]
xor edx, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x2008], edx
movzx ecx, byte [ecx + esi - 4]
xor edi, dword [eax + ecx*4]
dec dword [ebp - 8]
mov ecx, edi
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0xc]
mov dword [eax + 0x200c], ecx
jne 0x1002ff90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10030b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x103c4120]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x13]
mov eax, dword [ebp + 0xc]
add ecx, 4
push esi
mov dword [ebp - 0x24], eax
mov esi, 4
movzx eax, byte [ecx - 4]
lea ecx, [ecx + 1]
mov byte [edx - 1], al
lea edx, [edx + 4]
movzx eax, byte [ecx - 1]
mov byte [edx - 4], al
movzx eax, byte [ecx + 3]
mov byte [edx - 3], al
movzx eax, byte [ecx + 7]
mov byte [edx - 2], al
dec esi
jne 0x10030b55
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x100]
sub eax, 0x80
je 0x10030ba4
sub eax, 0x40
je 0x10030b9d
sub eax, 0x40
jne 0x10030ce9
lea eax, [esi + 0xe]
jmp 0x10030ba9
mov eax, 0xc
jmp 0x10030ba9
mov eax, 0xa
push ebx
mov esi, eax
mov dword [ebp - 0x18], eax
push edi
shl esi, 4
xor edi, edi
add esi, ecx
mov ebx, dword [esi]
lea esi, [esi + 4]
xor byte [ebp + edi - 8], bl
mov edx, ebx
mov ecx, ebx
shr edx, 0x18
xor byte [ebp + edi - 0x14], dl
mov eax, ebx
shr ecx, 0x10
xor byte [ebp + edi - 0x10], cl
shr eax, 8
xor byte [ebp + edi - 0xc], al
inc edi
cmp edi, 4
jl 0x10030bb7
mov eax, dword [ebp - 0x18]
xor edi, edi
test eax, eax
jle 0x10030cb5
mov ebx, dword [ebp + 0x10]
lea ecx, [eax - 1]
shl eax, 4
add ebx, 0xfffffff0
add ebx, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ebx
movzx eax, byte [ebp - 0xe]
movzx ecx, byte [ebp - 0xd]
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xf]
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 0x10]
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 0xb]
mov byte [ebp - 0x10], cl
movzx ecx, byte [ebp - 9]
mov byte [ebp - 9], al
movzx eax, byte [ebp - 0xc]
mov byte [ebp - 0xb], cl
movzx ecx, byte [ebp - 0xa]
mov byte [ebp - 0xa], al
movzx eax, byte [ebp - 8]
mov byte [ebp - 0xc], cl
movzx ecx, byte [ebp - 5]
mov byte [ebp - 5], al
movzx eax, byte [ebp - 7]
mov byte [ebp - 8], al
movzx eax, byte [ebp - 6]
mov byte [ebp - 7], al
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 6], cl
call fcn.10030fe0
add esp, 4
mov esi, ebx
xor eax, eax
mov ecx, dword [esi]
lea esi, [esi + 4]
mov ebx, ecx
mov edx, ecx
shr ecx, 8
xor byte [ebp + eax - 0xc], cl
mov ecx, dword [esi - 4]
xor byte [ebp + eax - 8], cl
shr ebx, 0x18
xor byte [ebp + eax - 0x14], bl
shr edx, 0x10
xor byte [ebp + eax - 0x10], dl
inc eax
cmp eax, 4
jl 0x10030c66
cmp edi, dword [ebp - 0x20]
je 0x10030ca2
lea eax, [ebp - 0x14]
push eax
call fcn.10030ec0
add esp, 4
mov ebx, dword [ebp - 0x1c]
inc edi
sub ebx, 0x10
mov dword [ebp - 0x1c], ebx
cmp edi, dword [ebp - 0x18]
jl 0x10030c02
mov ecx, dword [ebp - 0x24]
xor edx, edx
pop edi
add ecx, 2
pop ebx
nop
movzx eax, byte [ebp + edx - 0x14]
lea ecx, [ecx + 4]
mov byte [ecx - 6], al
movzx eax, byte [ebp + edx - 0x10]
mov byte [ecx - 5], al
movzx eax, byte [ebp + edx - 0xc]
mov byte [ecx - 4], al
movzx eax, byte [ebp + edx - 8]
inc edx
mov byte [ecx - 3], al
cmp edx, 4
jl 0x10030cc0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.101c6a5b
mov esp, ebp
pop ebp
ret
Function at 0x10030d00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x103c4120]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x13]
mov eax, dword [ebp + 0xc]
add ecx, 4
push ebx
push esi
push edi
mov dword [ebp - 0x20], eax
mov esi, 4
jmp 0x10030d30
movzx eax, byte [ecx - 4]
lea ecx, [ecx + 1]
mov byte [edx - 1], al
lea edx, [edx + 4]
movzx eax, byte [ecx - 1]
mov byte [edx - 4], al
movzx eax, byte [ecx + 3]
mov byte [edx - 3], al
movzx eax, byte [ecx + 7]
mov byte [edx - 2], al
dec esi
jne 0x10030d30
mov edi, dword [ebp + 0x10]
jmp 0x10030d60
mov ebx, dword [edi + esi*4]
mov edx, ebx
xor byte [ebp + esi - 8], bl
mov ecx, ebx
mov eax, ebx
shr edx, 0x18
xor byte [ebp + esi - 0x14], dl
shr ecx, 0x10
xor byte [ebp + esi - 0x10], cl
shr eax, 8
xor byte [ebp + esi - 0xc], al
inc esi
cmp esi, 4
jl 0x10030d60
mov ecx, edi
mov eax, dword [ecx + 0x100]
sub eax, 0x80
je 0x10030db3
sub eax, 0x40
je 0x10030dac
sub eax, 0x40
jne 0x10030ea9
mov eax, 0xe
jmp 0x10030db8
mov eax, 0xc
jmp 0x10030db8
mov eax, 0xa
lea ebx, [eax - 1]
mov dword [ebp - 0x18], eax
xor edi, edi
mov dword [ebp - 0x1c], ebx
lea esi, [ecx + 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.10031320
movzx eax, byte [ebp - 0xf]
add esp, 4
movzx ecx, byte [ebp - 0x10]
mov byte [ebp - 0x10], al
movzx eax, byte [ebp - 0xe]
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 0xd]
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 0xa]
mov byte [ebp - 0xd], cl
movzx ecx, byte [ebp - 0xc]
mov byte [ebp - 0xc], al
movzx eax, byte [ebp - 9]
mov byte [ebp - 0xa], cl
movzx ecx, byte [ebp - 0xb]
mov byte [ebp - 0xb], al
movzx eax, byte [ebp - 5]
mov byte [ebp - 9], cl
movzx ecx, byte [ebp - 8]
mov byte [ebp - 8], al
movzx eax, byte [ebp - 6]
mov byte [ebp - 5], al
movzx eax, byte [ebp - 7]
mov byte [ebp - 6], al
mov byte [ebp - 7], cl
cmp edi, ebx
jge 0x10030e36
lea eax, [ebp - 0x14]
push eax
call fcn.10031270
add esp, 4
xor eax, eax
mov ecx, dword [esi + eax*4]
mov ebx, ecx
mov edx, ecx
shr ebx, 0x18
xor byte [ebp + eax - 0x14], bl
shr ecx, 8
xor byte [ebp + eax - 0xc], cl
mov ecx, dword [esi + eax*4]
xor byte [ebp + eax - 8], cl
shr edx, 0x10
xor byte [ebp + eax - 0x10], dl
inc eax
cmp eax, 4
jl 0x10030e38
mov ebx, dword [ebp - 0x1c]
inc edi
add esi, 0x10
cmp edi, dword [ebp - 0x18]
jl 0x10030dc6
mov ecx, dword [ebp - 0x20]
xor edx, edx
add ecx, 2
lea esp, [esp]
movzx eax, byte [ebp + edx - 0x14]
lea ecx, [ecx + 4]
mov byte [ecx - 6], al
movzx eax, byte [ebp + edx - 0x10]
mov byte [ecx - 5], al
movzx eax, byte [ebp + edx - 0xc]
mov byte [ecx - 4], al
movzx eax, byte [ebp + edx - 8]
inc edx
mov byte [ecx - 3], al
cmp edx, 4
jl 0x10030e80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101c6a5b
mov esp, ebp
pop ebp
ret
Function at 0x10030ec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
add eax, 4
mov dword [ebp - 0xc], 4
push edi
movzx ecx, byte [eax - 4]
lea eax, [eax + 1]
lea ecx, [ecx + ecx*2]
add ecx, ecx
mov dword [ebp - 4], ecx
mov dl, byte [ecx + 0x1029fccd]
mov byte [eax - 5], dl
movzx ecx, byte [eax - 1]
lea ecx, [ecx + ecx*2]
add ecx, ecx
mov dword [ebp - 8], ecx
mov bl, byte [ecx + 0x1029fccb]
xor bl, dl
mov byte [eax - 5], bl
movzx ecx, byte [eax + 3]
lea edi, [ecx + ecx*2]
mov dl, byte [edi*2 + 0x1029fccc]
xor dl, bl
mov byte [eax - 5], dl
movzx ecx, byte [eax + 7]
lea esi, [ecx + ecx*2]
movzx ecx, byte [esi*2 + 0x1029fcca]
xor cl, dl
mov edx, dword [ebp - 8]
mov byte [eax - 5], cl
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + 0x1029fcca]
mov byte [eax - 1], cl
mov dl, byte [edx + 0x1029fccd]
xor dl, cl
mov byte [eax - 1], dl
mov bl, byte [edi*2 + 0x1029fccb]
xor bl, dl
mov edx, dword [ebp - 8]
mov byte [eax - 1], bl
movzx ecx, byte [esi*2 + 0x1029fccc]
xor cl, bl
mov byte [eax - 1], cl
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + 0x1029fccc]
mov byte [eax + 3], cl
mov dl, byte [edx + 0x1029fcca]
xor dl, cl
mov byte [eax + 3], dl
mov bl, byte [edi*2 + 0x1029fccd]
xor bl, dl
mov edx, dword [ebp - 8]
mov byte [eax + 3], bl
movzx ecx, byte [esi*2 + 0x1029fccb]
xor cl, bl
mov byte [eax + 3], cl
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + 0x1029fccb]
mov byte [eax + 7], cl
mov dl, byte [edx + 0x1029fccc]
xor dl, cl
mov byte [eax + 7], dl
mov bl, byte [edi*2 + 0x1029fcca]
xor bl, dl
mov byte [eax + 7], bl
movzx ecx, byte [esi*2 + 0x1029fccd]
xor cl, bl
dec dword [ebp - 0xc]
mov byte [eax + 7], cl
jne 0x10030ed6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10031060
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x103c4120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x4c], ebx
mov dword [ebx + 0x100], eax
mov dword [ebp - 0x40], 0x1000000
mov dword [ebp - 0x3c], 0x2000000
mov dword [ebp - 0x38], 0x4000000
mov dword [ebp - 0x34], 0x8000000
mov dword [ebp - 0x30], 0x10000000
mov dword [ebp - 0x2c], 0x20000000
mov dword [ebp - 0x28], 0x40000000
mov dword [ebp - 0x24], 0x80000000
mov dword [ebp - 0x20], 0x1b000000
mov dword [ebp - 0x1c], 0x36000000
mov dword [ebp - 0x18], 0x6c000000
mov dword [ebp - 0x14], 0xd8000000
mov dword [ebp - 0x10], 0xab000000
mov dword [ebp - 0xc], 0x4d000000
mov dword [ebp - 8], 0x9a000000
sub eax, 0x80
je 0x1003111a
sub eax, 0x40
je 0x1003110c
sub eax, 0x40
jne 0x10031254
mov dword [ebp - 0x44], 0xe
lea edi, [eax + 8]
jmp 0x10031126
mov dword [ebp - 0x44], 0xc
mov edi, 6
jmp 0x10031126
mov dword [ebp - 0x44], 0xa
mov edi, 4
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x48], edi
add edx, 2
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
shl eax, 0x18
or dword [ebx + esi*4], eax
movzx eax, byte [edx - 5]
shl eax, 0x10
or eax, dword [ebx + esi*4]
mov dword [ebx + esi*4], eax
movzx ecx, byte [edx - 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + esi*4], ecx
movzx eax, byte [edx - 3]
or eax, ecx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jl 0x10031131
mov eax, dword [ebp - 0x44]
mov ebx, edi
lea eax, [eax*4 + 4]
cmp edi, eax
jge 0x10031254
mov eax, dword [ebp - 0x4c]
mov esi, eax
mov dword [ebp - 0x50], eax
mov ecx, dword [eax + ebx*4 - 4]
mov eax, ebx
cdq
idiv edi
test edx, edx
jne 0x10031219
rol ecx, 8
mov edx, ecx
mov eax, ecx
and eax, 0xf
shr edx, 4
and edx, 0xf
add edx, edx
movzx edi, byte [eax + edx*8 + 0x101e1a20]
mov edx, ecx
shr edx, 0x1c
mov eax, ecx
shr eax, 0x18
add edx, edx
and eax, 0xf
movzx esi, byte [eax + edx*8 + 0x101e1a20]
mov edx, ecx
shr edx, 0x14
mov eax, ecx
shr eax, 0x10
and edx, 0xf
and eax, 0xf
shl esi, 8
add edx, edx
movzx eax, byte [eax + edx*8 + 0x101e1a20]
add esi, eax
mov eax, ecx
shr eax, 0xc
and eax, 0xf
shr ecx, 8
add eax, eax
shl esi, 8
and ecx, 0xf
movzx eax, byte [ecx + eax*8 + 0x101e1a20]
add esi, eax
lea eax, [ebx - 1]
cdq
idiv dword [ebp - 0x48]
shl esi, 8
add edi, esi
mov esi, dword [ebp - 0x50]
mov ecx, dword [ebp + eax*4 - 0x40]
xor ecx, edi
mov edi, dword [ebp - 0x48]
jmp 0x1003122e
cmp edi, 6
jle 0x1003122e
cmp edx, 4
jne 0x1003122e
push ecx
call fcn.100313a0
add esp, 4
mov ecx, eax
mov eax, dword [esi]
add esi, 4
xor eax, ecx
mov dword [ebp - 0x50], esi
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + ebx*4], eax
inc ebx
mov ecx, dword [ebp - 0x44]
lea eax, [ecx*4 + 4]
cmp ebx, eax
mov eax, dword [ebp - 0x4c]
jl 0x10031181
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101c6a5b
mov esp, ebp
pop ebp
ret
Function at 0x10031270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
add eax, 4
mov dword [ebp - 8], 4
push edi
mov bh, byte [eax - 4]
lea eax, [eax + 1]
mov cl, byte [eax + 3]
mov dl, byte [eax - 1]
mov bl, byte [eax + 7]
mov byte [ebp - 1], cl
movzx ecx, bh
mov byte [ebp - 2], dl
lea edi, [ecx + ecx*2]
movzx ecx, dl
lea edx, [ecx + ecx*2]
mov cl, byte [edx*2 + 0x101e1b21]
xor cl, byte [edi*2 + 0x101e1b20]
xor cl, bl
xor cl, byte [ebp - 1]
mov byte [eax - 5], cl
movzx ecx, byte [ebp - 1]
lea esi, [ecx + ecx*2]
mov cl, byte [esi*2 + 0x101e1b21]
xor cl, byte [edx*2 + 0x101e1b20]
xor cl, bl
xor cl, bh
mov byte [eax - 1], cl
movzx ecx, bl
lea edx, [ecx + ecx*2]
mov cl, byte [edx*2 + 0x101e1b21]
xor cl, byte [esi*2 + 0x101e1b20]
xor cl, byte [ebp - 2]
xor cl, bh
mov byte [eax + 3], cl
mov cl, byte [edx*2 + 0x101e1b20]
xor cl, byte [edi*2 + 0x101e1b21]
xor cl, byte [ebp - 1]
xor cl, byte [ebp - 2]
dec dword [ebp - 8]
mov byte [eax + 7], cl
jne 0x10031286
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10031500
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, 0xc6ef3720
mov dword [ebp + 0xc], 0x20
lea ebx, [ebx]
mov ebx, dword [ebp + 0x10]
mov edx, esi
shr edx, 5
mov ecx, esi
shl ecx, 4
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
add ecx, eax
add eax, 0x61c88647
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
add ecx, eax
xor edx, ecx
sub esi, edx
dec dword [ebp + 0xc]
jne 0x10031520
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret

Function at 0x10031580
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, dword [eax]
mov edi, dword [eax + 4]
xor eax, eax
mov dword [ebp + 0xc], 0x20
mov ebx, dword [ebp + 0x10]
mov edx, edi
shr edx, 5
mov ecx, edi
shl ecx, 4
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
add ecx, eax
sub eax, 0x61c88647
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
add ecx, eax
xor edx, ecx
add edi, edx
dec dword [ebp + 0xc]
jne 0x10031597
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret
Function at 0x10031650
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x103c4120]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 4]
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ecx]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x24], eax
mov eax, 0xabcc3e40
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], 0x20
lea esp, [esp]
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, edi
and ecx, 3
mov ecx, dword [esi + ecx*4 + 0x200c]
add ecx, eax
sub eax, 0x7d5e61f2
xor edx, ecx
sub ebx, edx
mov edx, ebx
mov ecx, ebx
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, ebx
mov ecx, dword [esi + ecx*4 + 0x200c]
add ecx, eax
add eax, 0x7d5e61f2
xor edx, ecx
mov ecx, dword [ebp - 0x1c]
sub edi, edx
mov edx, ecx
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
add edx, dword [ebp - 0x1c]
shr ecx, 0xb
and ecx, 7
mov ecx, dword [esi + ecx*4 + 0x200c]
add ecx, eax
sub eax, 0x7d5e61f2
xor edx, ecx
mov ecx, dword [ebp - 0x18]
sub ecx, edx
mov edx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ecx
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
add edx, dword [ebp - 0x18]
and ecx, 7
mov ecx, dword [esi + ecx*4 + 0x200c]
add ecx, eax
xor edx, ecx
mov ecx, dword [ebp - 0x1c]
sub ecx, edx
dec dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ecx
jne 0x10031690
mov eax, dword [esi + 0x2000]
mov edx, eax
mov ecx, dword [esi + 0x2004]
mov dword [ebp - 0x14], edi
mov edi, dword [esi + 0x2008]
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], 0
lea ecx, [ecx]
mov eax, edi
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [ebp - 0x18]
shr ecx, 8
xor cl, byte [ebp + eax - 0x14]
movzx eax, cl
xor eax, edx
shr edx, 8
and eax, 0xff
xor edx, dword [esi + eax*4]
movzx eax, dl
add eax, ebx
mov dword [esi + 0x2000], edx
imul ebx, eax, 0x8088405
inc ebx
mov eax, ebx
mov dword [esi + 0x2004], ebx
shr eax, 0x18
xor eax, edi
shr edi, 8
and eax, 0xff
xor edi, dword [esi + eax*4]
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x2008], edi
mov byte [ebp + eax - 0x14], cl
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0x10
jb 0x10031770
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
xor esi, eax
add eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x14]
xor ecx, eax
mov eax, dword [ebp - 0x24]
xor edi, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
xor edx, dword [ebp - 0x28]
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101c6a5b
mov esp, ebp
pop ebp
ret
Function at 0x10031820
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x103c4120]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x28], esi
mov ebx, dword [edi + 0x2000]
xor eax, ebx
mov edx, dword [edi + 0x2004]
mov esi, dword [edi + 0x2008]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 4]
xor eax, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 8]
xor eax, esi
mov dword [ebp - 0xc], eax
lea eax, [esi + edx]
add eax, ebx
xor eax, dword [ecx + 0xc]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dl, byte [ebp + eax - 0x14]
mov eax, esi
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [ebp - 0x18]
shr ecx, 8
xor cl, dl
mov byte [ebp + eax - 0x14], cl
movzx eax, dl
xor eax, ebx
shr ebx, 8
and eax, 0xff
xor ebx, dword [edi + eax*4]
movzx eax, bl
add eax, dword [ebp - 0x1c]
imul eax, eax, 0x8088405
mov dword [edi + 0x2000], ebx
inc eax
mov dword [edi + 0x2004], eax
mov dword [ebp - 0x1c], eax
shr eax, 0x18
xor eax, esi
shr esi, 8
and eax, 0xff
xor esi, dword [edi + eax*4]
mov eax, dword [ebp - 0x18]
inc eax
mov dword [edi + 0x2008], esi
mov dword [ebp - 0x18], eax
cmp eax, 0x10
jb 0x10031880
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
jmp 0x10031913
mov eax, dword [ebp - 0x1c]
mov ecx, eax
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
add ecx, dword [ebp - 0x1c]
and eax, 3
mov eax, dword [edi + eax*4 + 0x200c]
add eax, esi
add esi, 0x7d5e61f2
xor ecx, eax
mov eax, dword [ebp - 0x18]
add eax, ecx
mov ecx, eax
mov dword [ebp - 0x18], eax
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
add ecx, dword [ebp - 0x18]
shr eax, 0xb
and eax, 3
mov eax, dword [edi + eax*4 + 0x200c]
add eax, esi
sub esi, 0x7d5e61f2
xor ecx, eax
mov eax, edx
add dword [ebp - 0x1c], ecx
mov ecx, edx
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
and eax, 7
add ecx, edx
mov eax, dword [edi + eax*4 + 0x200c]
add eax, esi
add esi, 0x7d5e61f2
xor ecx, eax
add ebx, ecx
mov ecx, ebx
mov eax, ebx
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
shr eax, 0xb
add ecx, ebx
and eax, 7
mov eax, dword [edi + eax*4 + 0x200c]
add eax, esi
xor ecx, eax
add edx, ecx
dec dword [ebp - 0x20]
jne 0x10031910
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.101c6a5b
mov esp, ebp
pop ebp
ret
Function at 0x100319e0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, 0xca76e291
push edi
mov edi, 0xa9c654ef
xor edx, edx
mov dword [ebp - 4], edi
lea esp, [esp]
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [esi + edx*4], eax
inc edx
cmp edx, 0x100
jb 0x10031a00
mov eax, esi
mov edi, 0x1c0
lea ecx, [ecx]
mov edx, dword [eax]
lea eax, [eax + 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [esi + ecx*4]
mov dword [eax + 0x3f0], edx
mov edx, dword [eax - 0xc]
movzx ecx, dl
shr edx, 8
xor edx, dword [esi + ecx*4]
mov dword [eax + 0x3f4], edx
mov edx, dword [eax - 8]
movzx ecx, dl
shr edx, 8
xor edx, dword [esi + ecx*4]
mov dword [eax + 0x3f8], edx
mov edx, dword [eax - 4]
movzx ecx, dl
shr edx, 8
xor edx, dword [esi + ecx*4]
mov dword [eax + 0x3fc], edx
dec edi
jne 0x10031aa0
mov edi, dword [ebp - 4]
xor ecx, ecx
mov edx, 0x58bd7429
mov eax, dword [ebp + 8]
movzx eax, byte [ecx + eax]
inc ecx
xor eax, ebx
shr ebx, 8
and eax, 0xff
xor ebx, dword [esi + eax*4]
movzx eax, bl
add eax, edx
imul edx, eax, 0x8088405
inc edx
mov eax, edx
shr eax, 0x18
xor eax, edi
shr edi, 8
and eax, 0xff
xor edi, dword [esi + eax*4]
cmp ecx, 0x20
jb 0x10031af7
lea ecx, [esi + 0x200c]
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
mov edi, 0x20
sub esi, ecx
mov byte [ecx], 0
lea ecx, [ecx + 1]
mov al, byte [esi + ecx - 1]
neg al
mov byte [ecx - 1], al
dec edi
jne 0x10031b42
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
mov dword [esi + 0x2008], edi
pop edi
mov dword [esi + 0x2000], ebx
mov dword [esi + 0x2004], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret