joyce8/EMBER2024-capa huggingface dataset:
Function at 0x541a40
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, 0x12345678
push ebp
mov ebp, dword [esp + 0x10]
mov edx, 0x34567890
push esi
push edi
xor edi, edi
mov esi, 0x23456789
test ebx, ebx
je 0x541a99
movzx ecx, byte [edi + ebp]
inc edi
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5b7100]
movzx ecx, al
add ecx, esi
imul esi, ecx, 0x8088405
inc esi
mov ecx, esi
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x5b7100]
cmp edi, ebx
jb 0x541a61
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx + 0x18], esi
pop esi
pop ebp
mov dword [ecx + 0x14], eax
xor eax, eax
mov dword [ecx + 0x1c], edx
pop ebx
ret 0xc

Function at 0x541be0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov ebx, dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
nop word [eax + eax]
mov ecx, eax
or ecx, 2
mov edx, ecx
xor edx, 1
imul edx, ecx
shr edx, 8
xor dl, byte [esi + ebp + 0x24]
movzx ecx, dl
xor ecx, ebx
shr ebx, 8
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x5b7100]
movzx ecx, bl
add ecx, edi
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
shr ecx, 0x18
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5b7100]
mov byte [esi + ebp + 0x24], dl
inc ebp
cmp ebp, 0xc
jb 0x541c00
mov dword [esi + 0x10], edi
pop edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], eax
pop esi
pop ebp
pop ebx
ret

Function at 0x541c80
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0xb
lea eax, [esp + 0x14]
mov edi, ecx
push eax
mov ecx, 0x5b2070
call fcn.00540230
mov eax, dword [esp + 0x24]
mov esi, dword [edi + 0x1c]
shr eax, 8
xor ebp, ebp
mov byte [esp + 0x1b], al
mov eax, dword [edi + 0x18]
mov dword [esp + 0x24], eax
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x20]
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], eax
nop dword [eax]
mov bl, byte [esp + ebp + 0x10]
mov ecx, eax
or ecx, 2
mov edx, ecx
xor edx, 1
imul edx, ecx
movzx ecx, bl
shr edx, 8
xor dl, bl
mov byte [esp + ebp + 0x10], dl
inc ebp
mov edx, dword [esp + 0x24]
xor ecx, edx
movzx ecx, cl
shr edx, 8
xor edx, dword [ecx*4 + 0x5b7100]
movzx ecx, dl
add ecx, esi
mov dword [esp + 0x24], edx
imul esi, ecx, 0x8088405
inc esi
mov ecx, esi
shr ecx, 0x18
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5b7100]
cmp ebp, 0xc
jb 0x541cc0
mov ecx, dword [esp + 0x20]
mov dword [edi + 0xc], edx
lea edx, [esp + 0x10]
push 0xc
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], eax
call fcn.00414b07
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x541e90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xcc
push esi
movzx eax, dl
mov esi, ecx
push 0x40
push eax
lea eax, [esp + 0x18]
push eax
call sub.msvcrt.dll_memset
movups xmm0, xmmword [esi]
add esp, 0xc
mov eax, 0x10
xorps xmm0, xmmword [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
mov cl, byte [esi + eax]
xor byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x14
jb 0x541ec4
lea ecx, [esp + 0x50]
call fcn.00565320
push 0x40
lea edx, [esp + 0x14]
lea ecx, [esp + 0x54]
call fcn.00565430
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x50]
call fcn.005651c0
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x546b90
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x546bc1
call fcn.00546e20
test eax, eax
je 0x546bc1
mov edx, 1
lea ecx, [esp]
call fcn.00546e00
mov eax, dword [esp + 8]
shr eax, 0x19
and eax, 1
add esp, 0x10
ret
xor eax, eax
shr eax, 0x19
and eax, 1
add esp, 0x10
ret

Function at 0x546c10
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
push 0x11
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x546c62
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x546c62
call fcn.00546e20
test eax, eax
je 0x546c62
mov edx, 1
lea ecx, [esp]
call fcn.00546e00
mov eax, dword [esp + 8]
and eax, 0x18000000
cmp eax, 0x18000000
jne 0x546c62
xor ecx, ecx
xgetbv
and eax, 6
cmp al, 6
sete cl
mov eax, ecx
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret

Function at 0x546cc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x546cf2
call fcn.00546e20
cmp eax, 7
jb 0x546cf2
mov edx, 7
lea ecx, [esp]
call fcn.00546e00
mov eax, dword [esp + 4]
shr eax, 0x1d
and eax, 1
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret

Function at 0x546d00
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x546d31
call fcn.00546e20
test eax, eax
je 0x546d31
mov edx, 1
lea ecx, [esp]
call fcn.00546e00
mov eax, dword [esp + 0xc]
shr eax, 0x1a
and eax, 1
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret

Function at 0x546d40
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x546d71
call fcn.00546e20
test eax, eax
je 0x546d71
mov edx, 1
lea ecx, [esp]
call fcn.00546e00
mov eax, dword [esp + 8]
shr eax, 0x13
and eax, 1
add esp, 0x10
ret
xor eax, eax
shr eax, 0x13
and eax, 1
add esp, 0x10
ret

Function at 0x546d80
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x546db1
call fcn.00546e20
test eax, eax
je 0x546db1
mov edx, 1
lea ecx, [esp]
call fcn.00546e00
mov eax, dword [esp + 8]
shr eax, 9
and eax, 1
add esp, 0x10
ret
xor eax, eax
shr eax, 9
and eax, 1
add esp, 0x10
ret
Function at 0x5478b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x34], edx
push edi
mov dword [esp + 0x34], esi
mov edi, dword [esi + 0x10]
cmp edi, 3
jae 0x5478d5
mov ecx, esi
call fcn.00549990
jmp 0x547a4e
mov ecx, dword [esi]
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
movzx edx, byte [ecx]
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 1]
movzx eax, word [esi + eax*4 + 0x60]
xor edx, eax
mov eax, dword [esi + 0x24]
mov ebx, dword [eax + edx*4]
lea ecx, [eax + edx*4]
mov eax, dword [esi + 4]
mov dword [ecx], eax
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x28]
mov ecx, dword [esi]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
lea edx, [edx + eax*8]
mov eax, ecx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x24]
lea ebp, [edx + 4]
sub eax, ecx
mov dword [esp + 0x18], ebp
cmp ecx, dword [esp + 0x20]
sbb ecx, ecx
and ecx, eax
mov dword [esp + 0x30], ecx
cmp ecx, ebx
mov ecx, dword [esp + 0x10]
jae 0x547a29
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
sub esi, ebx
cmp dword [esp + 0x3c], esi
sbb eax, eax
and eax, dword [esp + 0x24]
sub eax, esi
neg esi
add eax, dword [esp + 0x3c]
add ecx, esi
mov dword [esp + 0x44], ecx
lea ebp, [edx + eax*8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
cmp edx, eax
cmovb eax, edx
mov edx, dword [esp + 0x10]
mov cl, byte [eax + ecx]
cmp cl, byte [eax + edx]
mov edx, dword [esp + 0x14]
jne 0x5479d9
inc eax
cmp eax, edi
je 0x5479c1
mov edx, dword [esp + 0x10]
add edx, eax
mov cl, byte [edx + esi]
cmp cl, byte [edx]
jne 0x5479d5
inc eax
inc edx
cmp eax, edi
jne 0x5479b0
mov edx, dword [esp + 0x14]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
mov dword [edx], eax
mov eax, dword [ebp + 4]
mov dword [ecx], eax
jmp 0x547a36
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x10]
mov cl, byte [eax + ecx]
cmp cl, byte [eax + esi]
jae 0x5479fe
mov dword [edx], ebx
lea edx, [ebp + 4]
mov ebx, dword [edx]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
jmp 0x547a0f
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], eax
mov dword [ecx], ebx
mov ebx, dword [ebp]
sub dword [esp + 0x2c], 1
je 0x547a25
cmp dword [esp + 0x30], ebx
jae 0x547a25
mov ecx, dword [esp + 0x10]
jmp 0x547963
mov esi, dword [esp + 0x34]
mov dword [edx], 0
mov dword [ebp], 0
mov eax, dword [esi + 4]
inc dword [esi + 0x14]
inc eax
inc dword [esi]
mov dword [esi + 4], eax
cmp eax, dword [esi + 8]
jne 0x547a4e
mov ecx, esi
call fcn.00549210
sub dword [esp + 0x38], 1
jne 0x5478c1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x548760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, ecx
push edi
mov edi, edx
mov dword [esp + 0x20], ebp
mov ebx, dword [ebp + 0x10]
cmp ebx, 3
jae 0x548784
call fcn.00549990
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x28
ret
mov ecx, dword [ebp]
push esi
mov dword [esp + 0x10], 2
movzx edx, byte [ecx]
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 1]
movzx eax, word [ebp + eax*4 + 0x60]
xor edx, eax
mov eax, dword [ebp + 0x24]
mov esi, dword [eax + edx*4]
lea ecx, [eax + edx*4]
mov eax, dword [ebp + 4]
mov dword [ecx], eax
mov eax, dword [ebp + 0x30]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp]
add ebx, ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], ecx
mov dword [eax + edx*4], esi
mov eax, dword [esp + 0x14]
test esi, esi
je 0x54889b
mov edx, dword [esp + 0x2c]
sub edx, esi
cmp edx, eax
jae 0x54889b
cmp dword [esp + 0x30], edx
mov esi, dword [esp + 0x1c]
sbb eax, eax
mov ebp, dword [esp + 0x10]
and eax, dword [esp + 0x14]
sub eax, edx
add eax, dword [esp + 0x30]
mov eax, dword [esi + eax*4]
mov esi, edx
neg esi
mov dword [esp + 0x34], eax
lea eax, [esi + ecx]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov al, byte [ecx + eax]
mov ecx, dword [esp + 0x20]
cmp al, byte [ecx + ebp]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
jne 0x54887c
mov ebp, dword [esp + 0x20]
mov eax, ecx
mov cl, byte [ecx]
cmp cl, byte [ebp]
mov ebp, dword [esp + 0x24]
jne 0x548861
inc eax
cmp eax, ebx
je 0x54888c
mov cl, byte [eax]
cmp cl, byte [eax + esi]
je 0x548855
mov ecx, dword [esp + 0x18]
sub eax, ecx
cmp dword [esp + 0x10], eax
jae 0x54887c
mov dword [edi], eax
mov dword [esp + 0x10], eax
lea eax, [edx - 1]
mov dword [edi + 4], eax
add edi, 8
sub dword [esp + 0x28], 1
je 0x54889b
mov esi, dword [esp + 0x34]
jmp 0x5487e8
sub ebx, dword [esp + 0x18]
lea eax, [edx - 1]
mov dword [edi], ebx
mov dword [edi + 4], eax
add edi, 8
mov ecx, dword [ebp + 4]
inc dword [ebp + 0x14]
inc ecx
inc dword [ebp]
mov dword [ebp + 4], ecx
pop esi
cmp ecx, dword [ebp + 8]
jne 0x5488b5
mov ecx, ebp
call fcn.00549210
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x5488c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov esi, ecx
nop dword [eax + eax]
cmp dword [esi + 0x10], 3
jae 0x5488e0
mov ecx, esi
call fcn.00549990
dec ebx
jmp 0x54895d
mov ebp, dword [esi + 8]
mov edi, dword [esi + 4]
sub ebp, edi
mov ecx, dword [esi + 0x14]
cmp ebx, ebp
mov eax, dword [esi + 0x28]
cmovbe ebp, ebx
sub ebx, ebp
mov dword [esp + 0x14], ebx
mov ebx, dword [esi]
lea eax, [eax + ecx*4]
mov dword [esp + 0x10], eax
lea eax, [ecx + ebp]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], eax
nop
movzx eax, byte [ebx]
lea edx, [ebx + 1]
movzx ecx, byte [ebx + 2]
mov ebx, dword [esp + 0x18]
shl eax, 8
or ecx, eax
movzx eax, byte [edx]
movzx eax, word [esi + eax*4 + 0x60]
xor ecx, eax
mov eax, dword [ebx + ecx*4]
mov dword [ebx + ecx*4], edi
inc edi
mov ecx, dword [esp + 0x10]
mov ebx, edx
mov dword [ecx], eax
add ecx, 4
mov dword [esp + 0x10], ecx
sub ebp, 1
jne 0x548910
mov dword [esi], ebx
mov dword [esi + 4], edi
cmp edi, dword [esi + 8]
jne 0x548959
mov ecx, esi
call fcn.00549210
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x5488d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

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

Disassembly:
push esi
mov dword [ecx], 0
lea esi, [ecx + 0x60]
mov dword [ecx + 0x34], 0
xor edx, edx
mov word [ecx + 0x1e], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x468], 0xffffffff
mov dword [ecx + 0x46c], 0xffffffff
mov dword [ecx + 0x30], 0x20
mov byte [ecx + 0x1d], 1
mov dword [ecx + 0x48], 4
mov word [ecx + 0x58], 2
mov ecx, edx
lea esi, [esi + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
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 - 4], eax
cmp edx, 0x100
jb 0x549303
pop esi
ret
Function at 0x551da0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, ecx
mov ebx, edx
mov ecx, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x28]
movzx esi, word [ecx]
mov eax, esi
mov dword [esp + 0x14], ebx
xor eax, 0x7f0
shr esi, 4
shr eax, 4
mov dword [esp + 0x10], ebp
mov edx, dword [edi + esi*4]
mov eax, dword [edi + eax*4]
mov dword [esp + 0x28], eax
movzx eax, word [ecx + 0x10]
mov esi, dword [esp + 0x28]
shr eax, 4
mov dword [esp + 0x1c], edx
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x551e38
lea ebx, [ebp + 4]
mov esi, ecx
mov ebp, dword [esp + 0x14]
nop word [eax + eax]
push edi
push ebx
mov ecx, esi
call fcn.00553dd0
mov edx, dword [esp + 0x18]
lea eax, [ebx + 0x20]
push edi
push eax
lea ecx, [esi + 0x10]
call fcn.00553dd0
mov edx, dword [esp + 0x1c]
add ebx, 0x440
add esi, 0x20
sub ebp, 1
jne 0x551e00
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ebx, dword [ebp]
cmp ebx, 0x10
jbe 0x551f12
lea eax, [ebp + 0x44]
add ebx, 0xfffffff1
mov dword [esp + 0x18], eax
movzx eax, word [ecx + 0x10]
xor eax, 0x7f0
shr ebx, 1
shr eax, 4
lea ebp, [ebx + 0x180]
add esi, dword [edi + eax*4]
lea ebp, [ecx + ebp*2]
mov dword [esp + 0x28], esi
nop dword [eax]
dec ebx
lea ebp, [ebp - 2]
mov dword [esp + 0x1c], ebx
lea eax, [ebx + 0x80]
mov ebx, dword [esp + 0x24]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x200]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
add esi, dword [edi + ecx*4]
cmp eax, 2
jae 0x551e82
movzx ecx, word [ebp]
mov ebx, dword [esp + 0x1c]
mov eax, ecx
mov edx, dword [esp + 0x18]
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [edx + ebx*8], eax
mov eax, dword [edi + ecx*4]
add eax, esi
mov esi, dword [esp + 0x28]
mov dword [edx + ebx*8 + 4], eax
test ebx, ebx
jne 0x551e70
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
lea ebx, [eax*4 - 0x40]
mov eax, dword [esp + 0x14]
cmp eax, 1
jbe 0x551f12
add esi, 0x484
lea edi, [eax - 1]
push ebx
push edx
push esi
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x24]
add esp, 0xc
add esi, 0x440
sub edi, 1
jne 0x551ef8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x551fe0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
xor eax, eax
push esi
push edi
mov edi, ecx
or edx, 0x100
mov esi, edx
shr edx, 1
and esi, 1
neg esi
shr esi, 4
movzx ecx, word [edi + edx*2]
and esi, 0x7f
shr ecx, 4
xor ecx, esi
add eax, dword [ebx + ecx*4]
cmp edx, 2
jae 0x551ff1
pop edi
pop esi
pop ebx
ret 4
Function at 0x552020
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, 0x100
xor ebx, ebx
push edi
mov edi, dword [esp + 0x14]
mov ebp, ecx
or edx, esi
add edi, edi
mov ecx, esi
and ecx, edi
mov eax, edx
shr eax, 8
add ecx, esi
add eax, ecx
movzx ecx, word [ebp + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
shr eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [esp + 0x18]
add ebx, dword [eax + ecx*4]
mov ecx, edx
xor ecx, edi
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x552033
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 8
Function at 0x553490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movaps xmm0, xmmword [0x58d0f0]
push ebx
push esi
mov esi, ecx
mov ebx, 0x400
push edi
mov edi, 0xc
mov eax, dword [esi + 0x78]
lea edx, [esi + 0x1e68]
mov dword [esi + 0x70], eax
lea eax, [esi + 0x2030]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x40], 1
mov dword [esi + 0x3c], 1
mov dword [esi + 0x38], 1
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
movups xmmword [esi + 0x1e30], xmm0
movups xmmword [esi + 0x1e40], xmm0
mov ecx, 0x10
nop word [eax + eax]
mov word [eax - 0x180], bx
mov word [eax], bx
add eax, 2
sub ecx, 1
jne 0x553540
mov word [edx - 0x18], bx
mov word [edx], bx
mov word [edx + 0x18], bx
mov word [edx + 0x30], bx
add edx, 2
sub edi, 1
jne 0x553531
mov eax, 0x4000400
lea edi, [esi + 0x21b0]
mov ecx, 0x80
rep stosd dword es:[edi], eax
lea edi, [esi + 0x23b0]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x98]
mov eax, 0x300
add ecx, dword [esi + 0x94]
shl eax, cl
test eax, eax
je 0x5535b2
mov edi, dword [esi + 0x50]
mov ecx, eax
shr ecx, 1
mov eax, 0x4000400
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, 0x4000400
lea edi, [esi + 0x24b0]
mov ecx, 0x80
rep stosd dword es:[edi], eax
lea edi, [esi + 0x26b0]
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esi + 0x28b0]
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2ab0]
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov dword [esi + 0x1c], 0
lea eax, [esi + 0xbcb8]
mov dword [esi + 0x18], 0
mov ecx, 0x800
mov dword [eax], 0x40000000
lea eax, [eax + 0x20]
sub ecx, 1
jne 0x553604
mov dword [esi + 0x34], ecx
mov eax, 1
mov ecx, dword [esi + 0x9c]
mov edx, 0x100
shl eax, cl
mov ecx, dword [esi + 0x98]
dec eax
mov dword [esi + 0x4c], eax
mov eax, edx
shl eax, cl
mov ecx, dword [esi + 0x94]
shr edx, cl
sub eax, edx
pop edi
mov dword [esi + 0x48], eax
pop esi
pop ebx
ret

Function at 0x553dd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0xc], edx
mov edx, ecx
push esi
push edi
mov dword [esp + 0x10], edx
mov edi, ebx
mov esi, ebx
shr esi, 2
shr edi, 1
mov eax, edi
and eax, 1
movzx ecx, word [edx + esi*2 + 4]
neg eax
shr eax, 4
neg esi
and eax, 0x7f
shr ecx, 4
xor ecx, eax
and esi, 0x7f0
movzx eax, word [edx + 2]
xor esi, eax
mov eax, dword [esp + 0x10]
shr esi, 4
mov edx, dword [ebp + ecx*4]
movzx ecx, word [eax + edi*2 + 8]
add edx, dword [ebp + esi*4]
mov eax, ecx
add edx, dword [esp + 0x14]
xor ecx, 0x7f0
mov esi, dword [esp + 0x1c]
shr eax, 4
shr ecx, 4
mov eax, dword [ebp + eax*4]
add eax, edx
mov dword [esi + ebx*4], eax
mov eax, dword [ebp + ecx*4]
add eax, edx
mov edx, dword [esp + 0x10]
mov dword [esi + ebx*4 + 4], eax
add ebx, 2
cmp ebx, 8
jb 0x553de7
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x5549a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, 0x20
mov eax, dword [edi + 4]
cmp eax, ecx
mov dword [edi + 0x78], 0
cmova eax, ecx
mov dword [edi + 0x7c], 0
mov dword [edi + 0x54], eax
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 0x30], 1
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 1
mov dword [edi + 0x70], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x90], 0xffffffff
mov dword [edi + 0x94], 0xffffffff
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x58], 0
cmp eax, dword [edi + 0x20]
je 0x554abc
lea ebx, [edi + 0xd0]
lea ebp, [ecx + 0x20]
mov edx, dword [ebx]
test edx, edx
je 0x554a95
mov dword [ebx], 0
nop
mov eax, dword [ebx - 8]
mov esi, dword [edx]
mov eax, dword [eax + 0x14]
mov ecx, eax
mov eax, dword [eax + 4]
call eax
mov edx, esi
test esi, esi
jne 0x554a80
add ebx, 0x28
sub ebp, 1
jne 0x554a72
mov edx, dword [edi + 0x5c]
mov ecx, dword [edi + 0x58]
test edx, edx
je 0x554ab7
mov eax, dword [edi + 0x14]
mov ecx, eax
mov eax, dword [eax + 4]
call eax
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x5c], ebp
mov eax, dword [edi]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x10]
mov dword [edi + 0x98], eax
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
mov dword [edi + 0x9c], 0
lea ebx, [edi + eax*8]
mov dword [edi + 0xa0], 0
lea eax, [ecx + 1]
mov dword [edi + 0xa4], 0
lea ecx, [ebx + 0x20]
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x58], eax
call fcn.0055a9d0
mov ebp, eax
test ebp, ebp
jne 0x554ba9
lea ecx, [ebx + 0x1c]
call fcn.0055a9d0
mov ebp, eax
test ebp, ebp
jne 0x554ba9
lea ecx, [ebx + 0x20]
call fcn.0055aad0
mov ebp, eax
test ebp, ebp
jne 0x554ba9
lea ecx, [ebx + 0x1c]
call fcn.0055aad0
mov ebp, eax
test ebp, ebp
jne 0x554ba9
push ebx
call fcn.00556260
mov ebp, eax
test ebp, ebp
je 0x554bbb
mov dword [edi + 0x44], 0
lea esi, [edi + 0xe4]
mov dword [esp + 0x10], 0x20
cmp dword [esi - 4], 0
je 0x554b8e
lea ecx, [esi + 4]
call fcn.0055aad0
mov ecx, esi
call fcn.0055aad0
lea ecx, [esi - 4]
call fcn.0055ad80
mov ecx, esi
call fcn.0055ab00
lea ecx, [esi + 4]
call fcn.0055ab00
add esi, 0x28
sub dword [esp + 0x10], 1
jne 0x554b71
test ebp, ebp
jle 0x554bb4
movzx ebp, bp
or ebp, 0x80070000
test ebp, ebp
je 0x554bbb
mov dword [edi + 0x40], ebp
cmp dword [edi + 0x38], 0
jne 0x554bd4
cmp dword [edi + 0x40], 0
jne 0x554bd4
cmp dword [edi + 0x3c], 0
jne 0x554bd4
mov dword [edi + 0x44], 0
xor eax, eax
cmp dword [edi + 0x44], eax
pop edi
cmovne ebp, eax
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret