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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], edx
push ebx
push esi
mov esi, ecx
push edi
test eax, eax
jne 0x49db2d
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov eax, esi
mov dword [esi], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.0049da93
test eax, eax
je 0x49db5b
mov dword [esi], eax
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
lea eax, [edi + 2]
push eax
call fcn.0051b5b6
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x49db85
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov eax, esi
mov dword [esi], 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
push edi
push 1
push ebx
call fcn.0051cae4
add esp, 0x10
cmp eax, edi
je 0x49dbbe
push ebx
call fcn.0051b5c1
add esp, 4
mov dword [esi + 8], 0
mov dword [esi], 2
mov eax, esi
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, ebx
push edi
call fcn.0049b263
mov ecx, eax
add esp, 4
cmp ecx, 2
je 0x49dbd8
cmp ecx, 3
jne 0x49dbe6
shr edi, 1
xor edx, edx
lea eax, [edi + edi]
mov word [eax + ebx], dx
lea edi, [eax + 2]
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov edx, eax
push 1
push 1
push ecx
push ecx
push edi
push ebx
push eax
mov ecx, esi
call fcn.0049d893
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49f4f3
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10127f40
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x101badf4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0049f153
mov ecx, ebx
call fcn.0049f2a3
mov esi, dword [ebx + 0x40]
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x40]
push dword [esi + 4]
call fcn.0041c5f3
mov eax, dword [ebx + 0x40]
push 0x2c
mov dword [eax + 4], esi
mov eax, dword [ebx + 0x40]
mov dword [eax], esi
mov eax, dword [ebx + 0x40]
mov dword [eax + 8], esi
mov dword [ebx + 0x44], 0
push dword [ebx + 0x40]
call fcn.0050d7d8
mov esi, dword [ebx + 0x38]
add esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebx + 0x38]
push dword [esi + 4]
call fcn.0041c5f3
mov eax, dword [ebx + 0x38]
push 0x2c
mov dword [eax + 4], esi
mov eax, dword [ebx + 0x38]
mov dword [eax], esi
mov eax, dword [ebx + 0x38]
mov dword [eax + 8], esi
mov dword [ebx + 0x3c], 0
push dword [ebx + 0x38]
call fcn.0050d7d8
mov esi, dword [ebx + 0x30]
add esp, 8
mov dword [ebp - 4], 2
lea ecx, [ebx + 0x30]
push dword [esi + 4]
call fcn.0041c5f3
mov eax, dword [ebx + 0x30]
push 0x2c
mov dword [eax + 4], esi
mov eax, dword [ebx + 0x30]
mov dword [eax], esi
mov eax, dword [ebx + 0x30]
mov dword [eax + 8], esi
mov dword [ebx + 0x34], 0
push dword [ebx + 0x30]
call fcn.0050d7d8
mov esi, dword [ebx + 0x28]
add esp, 8
mov dword [ebp - 4], 3
lea ecx, [ebx + 0x28]
push dword [esi + 4]
call fcn.0041c5f3
mov eax, dword [ebx + 0x28]
push 0x2c
mov dword [eax + 4], esi
mov eax, dword [ebx + 0x28]
mov dword [eax], esi
mov eax, dword [ebx + 0x28]
mov dword [eax + 8], esi
mov dword [ebx + 0x2c], 0
push dword [ebx + 0x28]
call fcn.0050d7d8
add esp, 8
lea ecx, [ebx + 0x20]
call fcn.00417823
lea ecx, [ebx + 0x18]
call fcn.0044e343
mov ecx, ebx
call fcn.0040be83
push 0x48
push ebx
call fcn.0050d7d8
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b1063
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101282e2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x101badf4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.004bb983
mov dword [ebp - 4], 0
lea esi, [edi + 0x1d8]
mov dword [edi], 0x1019978c
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 3
push 0x24
mov dword [esi + 0x24], 0xc
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 1
call fcn.0050d7e6
mov ecx, eax
add esp, 4
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 0x24]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x14], eax
je 0x4b11a3
mov dword [eax], ecx
add dword [esi + 0x10], 4
jmp 0x4b11b0
lea ecx, [ebp - 0x10]
push ecx
push eax
lea ecx, [esi + 0xc]
call fcn.0040b933
xor eax, eax
mov dword [edi + 0x2a8], 0
mov dword [edi + 0x2ac], 7
mov word [edi + 0x298], ax
mov byte [ebp - 4], 5
lea ecx, [edi + 0x14]
mov dword [edi + 8], 0x17
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], 0x17
cmp dword [ecx + 8], eax
je 0x4b11f6
mov dword [eax], 0x17
add dword [ecx + 4], 4
jmp 0x4b1200
lea edx, [ebp - 0x10]
push edx
push eax
call fcn.0040b933
mov dword [edi + 0x22c], 0
mov eax, edi
mov dword [edi + 0x230], 0
mov dword [edi + 0x234], 0
mov dword [edi + 0x204], edi
mov dword [edi + 0x274], 0
mov dword [edi + 0x278], 0
mov dword [edi + 0x27c], 0
mov dword [edi + 0x228], 0
mov dword [edi + 0x26c], 0
mov dword [edi + 0x270], 0
mov dword [edi + 0x24c], 0
mov dword [edi + 0x250], 0
mov dword [edi + 0x254], 0
mov dword [edi + 0x258], 0
mov dword [edi + 0x25c], 0
mov dword [edi + 0x260], 0
mov dword [edi + 0x264], 0xffff9933
mov dword [edi + 0x288], 0
mov dword [edi + 0x28c], 1
mov dword [edi + 0x290], 0
mov dword [edi + 0x238], 0
mov dword [edi + 0x294], 0
mov dword [edi + 0x280], 0
mov dword [edi + 0x240], 0
mov dword [edi + 0x23c], 1
mov dword [edi + 0x244], 0
mov dword [edi + 0x2b0], 0xff808080
mov dword [edi + 0x268], 0xff000000
mov dword [edi + 0x248], 0x1000000
mov dword [edi + 0x2b4], 0
mov dword [edi + 0x284], 0x2a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f0a43
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [eax], 0x12345678
mov dword [eax + 4], 0x23456789
mov dword [eax + 8], 0x34567890
mov cl, byte [ebx]
test cl, cl
je 0x4f0abd
push esi
push edi
mov edi, dword [eax + 4]
mov esi, 0x34567890
nop
mov edx, dword [eax]
lea ebx, [ebx + 1]
movsx ecx, cl
xor ecx, dword [eax]
mov eax, dword [ebp + 0x10]
movzx ecx, cl
shr edx, 8
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp + 0xc]
xor ecx, edx
mov edx, dword [ebp + 0x10]
mov dword [eax], ecx
movzx ecx, cl
add ecx, edi
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [eax + 4], edi
shr ecx, 0x18
xor ecx, esi
shr esi, 8
movzx ecx, cl
xor esi, dword [edx + ecx*4]
mov dword [eax + 8], esi
mov cl, byte [ebx]
test cl, cl
jne 0x4f0a73
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4f0b03
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, ecx
xor eax, dword [ebp + 0x10]
mov edx, dword [edi + 8]
movzx eax, al
shr ecx, 8
mov eax, dword [esi + eax*4]
xor eax, ecx
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx ecx, al
mov al, byte [ebp + 0x10]
xor edx, dword [esi + ecx*4]
mov dword [edi + 8], edx
pop edi
pop esi
pop ebp
ret
Function at 0x4f3343
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0xb0]
cmp eax, 0xffffffff
je 0x4f33f1
cmp eax, dword [edi + 0xa8]
jbe 0x4f337d
lea eax, [edi + 0x4c]
push eax
lea eax, [edi + 0xc]
push eax
mov eax, dword [edi + 8]
call eax
mov eax, dword [edi + 0xac]
add esp, 8
mov dword [edi + 0xb0], eax
mov ecx, dword [edi + 0xb0]
mov eax, dword [edi + 0xa8]
sub eax, ecx
push eax
lea eax, [edi + 0xc]
add eax, ecx
push 0
push eax
call fcn.0050fcc3
add esp, 0xc
xor edx, edx
test dword [edi + 0xa8], 0xfffffffc
jbe 0x4f33ca
lea ecx, [edi + 0xc]
nop word [eax + eax]
xor dword [ecx], 0x36363636
lea ecx, [ecx + 4]
mov eax, dword [edi + 0xa8]
inc edx
shr eax, 2
cmp edx, eax
jb 0x4f33b3
mov eax, dword [edi]
push esi
lea esi, [edi + 0x4c]
push esi
call eax
push esi
push dword [edi + 0xa8]
lea eax, [edi + 0xc]
push eax
mov eax, dword [edi + 4]
call eax
add esp, 0x10
mov dword [edi + 0xb0], 0xffffffff
pop esi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4f3408
lea eax, [edi + 0x4c]
push eax
mov eax, dword [edi + 4]
push ecx
push dword [ebp + 8]
call eax
add esp, 0xc
pop edi
pop ebp
ret

Function at 0x4f3413
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101badf4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0xb0], 0xffffffff
je 0x4f3441
push esi
push 0
push 0
call fcn.004f3343
add esp, 0xc
push edi
lea edi, [esi + 0x4c]
lea eax, [ebp - 0x18]
push edi
push eax
mov eax, dword [esi + 8]
call eax
add esp, 8
xor edx, edx
test dword [esi + 0xa8], 0xfffffffc
jbe 0x4f347a
lea eax, [esi + 0xc]
xor dword [eax], 0x6a6a6a6a
lea eax, [eax + 4]
mov ecx, dword [esi + 0xa8]
inc edx
shr ecx, 2
cmp edx, ecx
jb 0x4f3463
mov eax, dword [esi]
push edi
call eax
push edi
push dword [esi + 0xa8]
lea eax, [esi + 0xc]
push eax
mov eax, dword [esi + 4]
call eax
push edi
push dword [esi + 0xac]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esi + 4]
call eax
lea eax, [ebp - 0x18]
push edi
push eax
mov eax, dword [esi + 8]
call eax
mov eax, dword [ebp + 0xc]
add esp, 0x24
pop edi
test eax, eax
je 0x4f34c2
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0050fe93
add esp, 0xc
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0050d7a4
mov esp, ebp
pop ebp
ret
Function at 0x4f3563
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x101badf4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0xe0]
push edi
push eax
push 0
call fcn.004f32f3
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0xe0]
push eax
push dword [ebp + 0xc]
push esi
call fcn.004f34d3
lea eax, [ebp - 0x248]
mov ecx, 0x2d
push eax
push dword [ebp + 0x14]
lea esi, [ebp - 0xe0]
lea edi, [ebp - 0x248]
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.004f3343
mov eax, dword [ebp + 0x20]
xor edx, edx
mov ebx, dword [ebp - 0x24c]
dec eax
div ebx
add esp, 0x20
add eax, 1
mov dword [ebp - 0x264], eax
je 0x4f3766
mov eax, 1
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], eax
mov eax, ebx
neg eax
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x258], eax
push ebx
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.0050fcc3
mov ecx, 0x2d
lea esi, [ebp - 0x248]
lea edi, [ebp - 0x194]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x250]
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0x18], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x17], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0x15], cl
mov ecx, dword [ebp + 0x18]
mov byte [ebp - 0x16], al
mov eax, 4
test ecx, ecx
je 0x4f3711
mov dword [ebp - 0x24c], ecx
nop dword [eax]
lea ecx, [ebp - 0x194]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004f3343
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.004f3413
add esp, 0x18
xor eax, eax
test ebx, ebx
je 0x4f36f1
cmp ebx, 0x20
jb 0x4f36e0
mov ecx, ebx
mov edx, ebx
and ecx, 0x1f
sub edx, ecx
nop dword [eax]
movups xmm0, xmmword [ebp + eax - 0x2c]
movups xmm1, xmmword [ebp + eax - 0x18]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x2c], xmm1
movups xmm0, xmmword [ebp + eax - 0x1c]
movups xmm1, xmmword [ebp + eax - 8]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x1c], xmm1
add eax, 0x20
cmp eax, edx
jb 0x4f36b3
cmp eax, ebx
jae 0x4f36f1
mov cl, byte [ebp + eax - 0x18]
xor byte [ebp + eax - 0x2c], cl
inc eax
cmp eax, ebx
jb 0x4f36e4
sub dword [ebp - 0x24c], 1
lea esi, [ebp - 0xe0]
mov ecx, 0x2d
lea edi, [ebp - 0x194]
rep movsd dword es:[edi], dword [esi]
jne 0x4f3673
xor edx, edx
test ebx, ebx
je 0x4f373a
mov ecx, dword [ebp - 0x254]
mov esi, dword [ebp - 0x258]
mov edi, dword [ebp - 0x25c]
cmp ecx, dword [ebp + 0x20]
jae 0x4f373a
mov al, byte [esi + ecx]
inc edx
mov byte [ecx + edi], al
inc ecx
cmp edx, ebx
jb 0x4f3729
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x260]
inc eax
add dword [ebp - 0x254], ebx
add dword [ebp - 0x258], ecx
mov dword [ebp - 0x250], eax
dec eax
cmp eax, dword [ebp - 0x264]
jb 0x4f3617
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050d7a4
mov esp, ebp
pop ebp
ret
Function at 0x4f3e13
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0x38]
mov bl, byte [eax + 0x34]
test esi, esi
jle 0x4f3e50
mov edx, dword [eax + 0x260]
push edi
movzx edi, bl
nop dword [eax]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, edi
xor edx, dword [ecx*4 + 0x101ba9b0]
mov dword [eax + 0x260], edx
sub esi, 1
jne 0x4f3e33
pop edi
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], 1
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, 1
je 0x4f3ea7
sub ecx, 1
je 0x4f3edf
sub ecx, 1
je 0x4f3eb7
mov byte [edx + eax + 0x54], 1
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x44]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov bl, byte [eax + 0x38]
sub bl, 4
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
pop ebp
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
pop ebp
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
pop ebp
ret
Function at 0x4fcc13
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebx], 0x4000400
test edx, edx
je 0x4fcc54
lea eax, [ebx + 0x104]
mov ecx, edx
movaps xmm0, xmmword [0x10130780]
lea eax, [eax + 0x10]
movups xmmword [eax - 0x110], xmm0
movaps xmm0, xmmword [0x10130780]
movups xmmword [eax - 0x10], xmm0
sub ecx, 1
jne 0x4fcc33
cmp byte [ebp + 0x10], 0
lea edi, [ebx + 0x204]
mov ecx, 0x80
mov eax, 0x4000400
rep stosd dword es:[edi], eax
jne 0x4fce17
mov dword [ebp - 4], 0
test edx, edx
je 0x4fce17
lea eax, [ebx + 0x404]
lea ecx, [ebx + 0x4808]
mov dword [ebp + 0x10], eax
mov dword [ebp - 0xc], ecx
push esi
nop
mov edi, dword [ebx + 0x4804]
xor esi, esi
mov dword [ecx], edi
movzx ecx, word [ebx]
mov eax, ecx
mov dword [ebp - 8], edi
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
mov dword [ebp + 8], esi
movzx eax, byte [eax + 0x101307f0]
movzx edx, byte [ecx + 0x101307f0]
movzx ecx, word [ebx + 2]
mov dword [ebp - 0x10], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
movzx eax, byte [eax + 0x101307f0]
add eax, edx
mov dword [ebp - 0x14], eax
movzx eax, byte [ecx + 0x101307f0]
add eax, edx
mov dword [ebp - 0x18], eax
test edi, edi
je 0x4fcdf6
cmp esi, 8
jae 0x4fcd4c
lea edx, [esi + 8]
xor edi, edi
mov esi, dword [ebp - 4]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + esi*8]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 4]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x101307f0]
add edi, eax
cmp edx, 1
jne 0x4fcd04
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
add eax, edi
mov edi, dword [ebp - 8]
mov dword [ecx + esi*4], eax
inc esi
mov dword [ebp + 8], esi
cmp esi, edi
jb 0x4fccf7
jmp 0x4fcdf6
cmp esi, edi
jae 0x4fcdf6
cmp esi, 0x10
jae 0x4fcdab
mov edx, esi
xor edi, edi
mov esi, dword [ebp - 4]
nop dword [eax]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + esi*8]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 0x104]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x101307f0]
add edi, eax
cmp edx, 1
jne 0x4fcd63
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
add eax, edi
mov edi, dword [ebp - 8]
mov dword [ecx + esi*4], eax
inc esi
mov dword [ebp + 8], esi
cmp esi, edi
jb 0x4fcd54
jmp 0x4fcdf6
cmp esi, edi
jae 0x4fcdf6
nop dword [eax]
xor edi, edi
lea eax, [esi + 0xf0]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x204]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
movzx ecx, byte [ecx + 0x101307f0]
add edi, ecx
cmp eax, 1
jne 0x4fcdbb
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 8]
jb 0x4fcdb3
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc eax
add dword [ebp + 0x10], 0x440
add ecx, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
cmp eax, dword [ebp + 0xc]
jb 0x4fcc93
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fce23
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebx + 0x4804]
mov dword [ebp - 8], edi
mov dword [ebx + esi*4 + 0x4808], edi
movzx ecx, word [ebx]
mov eax, ecx
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
movzx eax, byte [eax + 0x101307f0]
movzx edx, byte [ecx + 0x101307f0]
movzx ecx, word [ebx + 2]
mov dword [ebp - 0xc], eax
mov eax, ecx
shr eax, 4
xor ecx, 0x7f0
shr ecx, 4
movzx eax, byte [eax + 0x101307f0]
add eax, edx
mov dword [ebp - 0x10], eax
movzx eax, byte [ecx + 0x101307f0]
add eax, edx
mov dword [ebp - 0x14], eax
imul eax, esi, 0x440
xor esi, esi
mov dword [ebp + 8], esi
add eax, 0x404
add eax, ebx
mov dword [ebp - 4], eax
test edi, edi
je 0x4fcfae
cmp esi, 8
jae 0x4fcf02
lea edx, [esi + 8]
xor edi, edi
mov esi, dword [ebp + 0xc]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + esi*8]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 4]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x101307f0]
add edi, eax
cmp edx, 1
jne 0x4fceb8
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, edi
mov edi, dword [ebp - 8]
mov dword [ecx + esi*4], eax
inc esi
mov dword [ebp + 8], esi
cmp esi, edi
jb 0x4fceab
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, edi
jae 0x4fcfae
cmp esi, 0x10
jae 0x4fcf63
mov edx, esi
xor edi, edi
mov esi, dword [ebp + 0xc]
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
shr ecx, 4
lea eax, [edx + esi*8]
and ecx, 0x7f
movzx eax, word [ebx + eax*2 + 0x104]
shr eax, 4
xor eax, ecx
movzx eax, byte [eax + 0x101307f0]
add edi, eax
cmp edx, 1
jne 0x4fcf16
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add eax, edi
mov edi, dword [ebp - 8]
mov dword [ecx + esi*4], eax
inc esi
mov dword [ebp + 8], esi
cmp esi, edi
jb 0x4fcf0a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, edi
jae 0x4fcfae
xor edi, edi
lea eax, [esi + 0xf0]
nop dword [eax]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x204]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
movzx ecx, byte [ecx + 0x101307f0]
add edi, ecx
cmp eax, 1
jne 0x4fcf73
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
add eax, edi
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 8]
jb 0x4fcf67
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4fd093
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x100
add eax, edi
mov ecx, dword [esi + 0x18]
mov edx, eax
shr edx, 7
add ebx, ebx
and edx, 1
mov dword [esi + ecx*4 + 0x20], edx
mov edx, edi
and edx, ebx
mov ecx, eax
shr ecx, 8
add edx, edi
add ecx, edx
add eax, eax
mov edx, dword [ebp + 0xc]
lea edx, [edx + ecx*2]
mov ecx, dword [esi + 0x18]
mov dword [esi + ecx*4 + 0x108], edx
mov ecx, ebx
inc dword [esi + 0x18]
xor ecx, eax
not ecx
and edi, ecx
cmp eax, 0x10000
jb 0x4fd0a9
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x504713
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
mov dword [ebp - 8], eax
lea ecx, [edx + 0x10da8]
mov dword [ebp - 0xc], ecx
push edi
nop word [eax + eax]
mov edi, eax
mov dword [ebp - 4], 4
xor ebx, ebx
mov eax, 1
movzx edx, word [edx + eax*2 + 0x70f0]
mov esi, edi
and esi, 1
shr edx, 4
mov ecx, esi
shr edi, 1
neg ecx
shr ecx, 4
and ecx, 0x7f
lea eax, [esi + eax*2]
xor edx, ecx
movzx ecx, byte [edx + 0x101307f0]
mov edx, dword [ebp + 8]
add ebx, ecx
sub dword [ebp - 4], 1
jne 0x504743
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov dword [ecx], ebx
add ecx, 4
mov dword [ebp - 0xc], ecx
cmp eax, 0x10
jb 0x504733
mov eax, edx
pop edi
pop esi
pop ebx
mov dword [eax + 0x10de8], 0
mov esp, ebp
pop ebp
ret