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

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
lea eax, [edi + 0x24]
mov esi, 0x10
lea ecx, [ecx]
mov dl, byte [eax + 0x20]
mov cl, byte [eax - 0x10]
xor cl, dl
mov byte [eax], dl
mov byte [eax + 0x10], cl
add eax, 1
sub esi, 1
jne 0x491ff0
xor dl, dl
xor ebx, ebx
lea esi, [edi + 0x15]
lea esp, [esp]
mov eax, esi
mov ecx, 8
jmp 0x492020
movzx edx, dl
movzx edx, byte [edx + str._.C]
xor byte [eax - 1], dl
movzx edx, byte [eax - 1]
movzx edx, byte [edx + str._.C]
xor byte [eax], dl
movzx edx, byte [eax]
movzx edx, byte [edx + str._.C]
xor byte [eax + 1], dl
movzx edx, byte [eax + 1]
movzx edx, byte [edx + str._.C]
xor byte [eax + 2], dl
movzx edx, byte [eax + 2]
movzx edx, byte [edx + str._.C]
xor byte [eax + 3], dl
movzx edx, byte [eax + 3]
movzx edx, byte [edx + str._.C]
xor byte [eax + 4], dl
mov dl, byte [eax + 4]
add eax, 6
sub ecx, 1
jne 0x492020
add dl, bl
add ebx, 1
cmp ebx, 0x12
jl 0x492010
pop edi
pop esi
pop ebx
ret

Function at 0x492090
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov dl, byte [ecx + 0x13]
push esi
lea eax, [ecx + 4]
mov esi, 4
lea esp, [esp]
movzx ecx, byte [eax + 0x40]
movzx edx, dl
xor ecx, edx
movzx ecx, byte [ecx + str._.C]
xor byte [eax], cl
mov cl, byte [eax]
movzx edx, byte [eax + 0x41]
movzx ecx, cl
xor edx, ecx
movzx edx, byte [edx + str._.C]
xor byte [eax + 1], dl
mov cl, byte [eax + 1]
movzx edx, byte [eax + 0x42]
movzx ecx, cl
xor edx, ecx
movzx edx, byte [edx + str._.C]
xor byte [eax + 2], dl
mov cl, byte [eax + 2]
movzx edx, byte [eax + 0x43]
movzx ecx, cl
xor edx, ecx
movzx edx, byte [edx + str._.C]
xor byte [eax + 3], dl
mov dl, byte [eax + 3]
add eax, 4
sub esi, 1
jne 0x4920a0
pop esi
ret
Function at 0x494180
Capabilities:
Hash data using ripemd320
Hash data using sha1

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push 0x4e28
mov dword [esi + 0x54], 0x67452301
mov dword [esi + 0x58], 0xefcdab89
mov dword [esi + 0x5c], 0x98badcfe
mov dword [esi + 0x60], 0x10325476
mov dword [esi + 0x64], 0xc3d2e1f0
mov dword [esi + 0x68], 0x76543210
mov dword [esi + 0x6c], 0xfedcba98
mov dword [esi + 0x70], 0x89abcdef
mov dword [esi + 0x74], 0x1234567
mov dword [esi + 0x78], 0x3c2d1e0f
mov dword [esi + 0x50], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.004eceb1
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x4941f7
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret 0x14
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
mov dword [esp + 0x14], ebx
mov byte [esp + 0x13], 1
call edx
test al, al
jne 0x4942a8
mov ebx, dword [esp + 0x20]
jmp 0x494220
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp]
mov eax, dword [eax + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x4e20
push edi
mov ecx, ebp
call eax
test al, al
je 0x4942a8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x494283
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x494259
push eax
push edi
call fcn.004050c0
mov eax, dword [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.00493e70
test ebx, ebx
je 0x494283
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x12]
push ecx
push edx
mov ecx, ebx
mov byte [esp + 0x1a], 0
call fcn.0044eb10
cmp byte [esp + 0x12], 0
jne 0x494293
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
call edx
test al, al
je 0x494220
jmp 0x4942a8
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push str.RIPEMD128_aborted_by_application
call edx
mov byte [esp + 0x13], 0
push edi
call fcn.004ecd7b
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
mov ecx, esi
call fcn.00493f20
mov al, byte [esp + 0x13]
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0x14
Function at 0x495410
Capabilities:
Hash data using ripemd256
Hash data with md5

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push 0x4e28
mov dword [esi + 0x54], 0x67452301
mov dword [esi + 0x58], 0xefcdab89
mov dword [esi + 0x5c], 0x98badcfe
mov dword [esi + 0x60], 0x10325476
mov dword [esi + 0x64], 0x76543210
mov dword [esi + 0x68], 0xfedcba98
mov dword [esi + 0x6c], 0x89abcdef
mov dword [esi + 0x70], 0x1234567
mov dword [esi + 0x50], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.004eceb1
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x495479
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret 0x14
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
mov dword [esp + 0x14], ebx
mov byte [esp + 0x13], 1
call edx
test al, al
jne 0x495528
mov ebx, dword [esp + 0x20]
lea ecx, [ecx]
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp]
mov eax, dword [eax + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x4e20
push edi
mov ecx, ebp
call eax
test al, al
je 0x495528
mov eax, dword [esp + 0x14]
test eax, eax
je 0x495503
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4954d9
push eax
push edi
call fcn.004050c0
mov eax, dword [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.00495140
test ebx, ebx
je 0x495503
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x12]
push ecx
push edx
mov ecx, ebx
mov byte [esp + 0x1a], 0
call fcn.0044eb10
cmp byte [esp + 0x12], 0
jne 0x495513
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
call edx
test al, al
je 0x4954a0
jmp 0x495528
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push str.RIPEMD128_aborted_by_application
call edx
mov byte [esp + 0x13], 0
push edi
call fcn.004ecd7b
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
mov ecx, esi
call fcn.004951f0
mov al, byte [esp + 0x13]
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0x14
Function at 0x496f20
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push 0x4e28
mov dword [esi + 0x54], 0x67452301
mov dword [esi + 0x58], 0xefcdab89
mov dword [esi + 0x5c], 0x98badcfe
mov dword [esi + 0x60], 0x10325476
mov dword [esi + 0x64], 0xc3d2e1f0
mov dword [esi + 0x50], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.004eceb1
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x496f74
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret 0x14
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
mov dword [esp + 0x14], ebx
mov byte [esp + 0x13], 1
call edx
test al, al
jne 0x497028
mov ebx, dword [esp + 0x20]
jmp 0x496fa0
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp]
mov eax, dword [eax + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x4e20
push edi
mov ecx, ebp
call eax
test al, al
je 0x497028
mov eax, dword [esp + 0x14]
test eax, eax
je 0x497003
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x496fd9
push eax
push edi
call fcn.004050c0
mov eax, dword [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.00496cb0
test ebx, ebx
je 0x497003
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x12]
push ecx
push edx
mov ecx, ebx
mov byte [esp + 0x1a], 0
call fcn.0044eb10
cmp byte [esp + 0x12], 0
jne 0x497013
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
call edx
test al, al
je 0x496fa0
jmp 0x497028
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push str.RIPEMD128_aborted_by_application
call edx
mov byte [esp + 0x13], 0
push edi
call fcn.004ecd7b
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
mov ecx, esi
call fcn.00496d60
mov al, byte [esp + 0x13]
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0x14
Function at 0x498060
Capabilities:
Hash data with md5

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x4e28
mov dword [edi + 0x54], 0x67452301
mov dword [edi + 0x58], 0xefcdab89
mov dword [edi + 0x5c], 0x98badcfe
mov dword [edi + 0x60], 0x10325476
mov dword [edi + 0x50], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.004eceb1
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4980ad
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret 0x14
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
mov dword [esp + 0x14], ebx
mov byte [esp + 0x13], 1
call edx
test al, al
jne 0x498159
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp]
mov eax, dword [eax + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x4e20
push esi
mov ecx, ebp
call eax
test al, al
je 0x498159
mov eax, dword [esp + 0x14]
test eax, eax
je 0x498134
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x49810a
push eax
push esi
call fcn.004050c0
mov eax, dword [esp + 0x14]
push eax
push esi
mov ecx, edi
call fcn.00497e10
test ebx, ebx
je 0x498134
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x12]
push ecx
push edx
mov ecx, ebx
mov byte [esp + 0x1a], 0
call fcn.0044eb10
cmp byte [esp + 0x12], 0
jne 0x498144
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
call edx
test al, al
je 0x4980d1
jmp 0x498159
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push str.RIPEMD128_aborted_by_application
call edx
mov byte [esp + 0x13], 0
push esi
call fcn.004ecd7b
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
mov ecx, edi
call fcn.00497ec0
mov al, byte [esp + 0x13]
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0x14

Function at 0x498200
Capabilities:
Hash data with md5

Disassembly:
mov eax, ecx
xor ecx, ecx
mov dword [eax], 0x554fec
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 4], 0x67452301
mov dword [eax + 8], 0xefcdab89
mov dword [eax + 0xc], 0x98badcfe
mov dword [eax + 0x10], 0x10325476
ret
Function at 0x498880
Capabilities:
Hash data with md5

Disassembly:
sub esp, 8
push ebx
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
push edi
mov edi, ecx
jne 0x498899
pop edi
xor al, al
pop ebx
add esp, 8
ret 0x14
push esi
push 0x4e28
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 4], 0x67452301
mov dword [edi + 8], 0xefcdab89
mov dword [edi + 0xc], 0x98badcfe
mov dword [edi + 0x10], 0x10325476
call fcn.004eceb1
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4988da
pop esi
pop edi
xor al, al
pop ebx
add esp, 8
ret 0x14
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
mov dword [esp + 0x14], ebx
mov byte [esp + 0x13], 1
call edx
test al, al
jne 0x498988
mov ebx, dword [esp + 0x20]
mov edi, edi
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp]
mov eax, dword [eax + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x4e20
push esi
mov ecx, ebp
call eax
test al, al
je 0x498988
mov eax, dword [esp + 0x14]
test eax, eax
je 0x498963
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x498939
push eax
push esi
call fcn.004050c0
mov eax, dword [esp + 0x14]
push eax
push esi
mov ecx, edi
call fcn.004986f0
test ebx, ebx
je 0x498963
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x12]
push ecx
push edx
mov ecx, ebx
mov byte [esp + 0x1a], 0
call fcn.0044eb10
cmp byte [esp + 0x12], 0
jne 0x498973
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
call edx
test al, al
je 0x498900
jmp 0x498988
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push str.MD4_aborted_by_application
call edx
mov byte [esp + 0x13], 0
push esi
call fcn.004ecd7b
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
mov ecx, edi
call fcn.004987b0
mov al, byte [esp + 0x13]
pop ebp
pop esi
pop edi
pop ebx
add esp, 8
ret 0x14

Function at 0x4989b0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x14
mov eax, dword [0x5894dc]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov esi, ecx
mov ecx, edi
call fcn.00402c00
mov ebp, eax
xor eax, eax
mov ecx, edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
call fcn.00403760
push eax
push ebp
mov ecx, esi
call fcn.004986f0
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004987b0
push 0x10
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.004050c0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ec47e
add esp, 0x14
ret 8

Function at 0x498a40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50b07b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 8]
mov dword [esi], 0x555158
call fcn.00408020
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], 0
call fcn.00422c60
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x498aa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x50b0b6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], 0x555158
lea edi, [esi + 0x30]
mov ecx, edi
mov dword [esp + 0x18], 1
call fcn.00422ff0
mov ecx, edi
mov byte [esp + 0x18], 0
call fcn.00423050
lea ecx, [esi + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.00408310
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x499380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
add ecx, 4
call fcn.00422c80
test eax, eax
je 0x499395
mov ecx, eax
jmp 0x4c1d10
ret 4
push 0xffffffffffffffff
push 0x50d9a0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [esi + 0x14]
cmp al, 0x45
jne 0x4c1d6d
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x4c1ed8
push esi
lea ecx, [esp + 0x18]
call fcn.004080f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], 0
call fcn.00408e00
lea eax, [esp + 0x14]
push eax
jmp 0x4c1dcd
cmp al, 0x49
jne 0x4c1d9e
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x4c1ed8
push esi
lea ecx, [esp + 0x18]
call fcn.004080f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], 1
call fcn.00408e00
lea ecx, [esp + 0x14]
push ecx
jmp 0x4c1dcd
cmp al, 0x58
jne 0x4c1dfa
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x4c1ed8
push esi
lea ecx, [esp + 0x18]
call fcn.004080f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], 2
call fcn.00408e00
lea edx, [esp + 0x14]
push edx
mov esi, dword [esp + 0x78]
mov ecx, esi
call fcn.00409110
push str._br__r_n
mov ecx, esi
call fcn.00407b70
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00408310
jmp 0x4c1ed8
cmp al, 0x54
jne 0x4c1e74
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4c1ed8
cmp dword [esi + 0x18], 0
je 0x4c1ed8
push eax
lea ecx, [esp + 0x40]
call fcn.004080f0
mov eax, dword [esi + 0x18]
mov esi, dword [esp + 0x74]
push eax
mov ecx, esi
mov dword [esp + 0x70], 3
call fcn.00409110
push 0x5106f4
mov ecx, esi
call fcn.00407b70
lea ecx, [esp + 0x3c]
call fcn.00408e00
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.00409110
push str._br__r_n
mov ecx, esi
call fcn.00407b70
lea ecx, [esp + 0x3c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00408310
jmp 0x4c1ed8
cmp dword [esi + 0x10], 0
je 0x4c1ed8
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4c1ed8
mov ebp, dword [esp + 0x74]
push eax
mov ecx, ebp
call fcn.00409110
push str.:_blockquote__r_n
mov ecx, ebp
call fcn.00407b70
mov ecx, dword [esi + 0x10]
call fcn.004508c0
mov ebx, eax
xor edi, edi
test ebx, ebx
jle 0x4c1ecc
lea esp, [esp]
mov ecx, dword [esi + 0x10]
push edi
call fcn.00422c80
test eax, eax
je 0x4c1ec5
push ebp
mov ecx, eax
call 0x4c1d10
add edi, 1
cmp edi, ebx
jl 0x4c1eb0
push str.__blockquote__r_n
mov ecx, ebp
call fcn.00407b70
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 4
Function at 0x49d1a0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x28
mov eax, dword [0x5894dc]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebp, ecx
mov edx, dword [ebp + 0x48]
sub edx, 6
test edx, edx
push esi
push edi
jle 0x49d1ca
mov esi, dword [esp + 0x3c]
mov ecx, edx
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
xor ecx, ecx
xor eax, eax
test edx, edx
jle 0x49d209
cmp esi, dword [ebp + 0x48]
jg 0x49d351
cmp eax, edx
jge 0x49d1fb
cmp ecx, 4
jge 0x49d1fe
mov ebx, dword [esp + eax*4 + 0x14]
lea edi, [ecx + esi*4]
add eax, 1
add ecx, 1
cmp eax, edx
mov dword [ebp + edi*4 + 0x4c], ebx
jl 0x49d1e1
cmp ecx, 4
jne 0x49d205
add esi, 1
xor ecx, ecx
cmp eax, edx
jl 0x49d1d4
cmp esi, dword [ebp + 0x48]
jg 0x49d351
mov dword [esp + 0x10], 0x585518
lea ebx, [ebx]
movzx edi, byte [esp + edx*4 + 0x11]
mov al, byte [esp + 0x14]
xor al, byte [edi + 0x582318]
mov byte [esp + 0x14], al
movzx edi, byte [esp + edx*4 + 0x12]
movzx ebx, byte [edi + 0x582318]
xor byte [esp + 0x15], bl
movzx edi, byte [esp + edx*4 + 0x13]
movzx ebx, byte [edi + 0x582318]
xor byte [esp + 0x16], bl
movzx edi, byte [esp + edx*4 + 0x10]
movzx ebx, byte [edi + 0x582318]
mov edi, dword [esp + 0x10]
xor al, byte [edi]
xor byte [esp + 0x17], bl
add edi, 4
cmp edx, 8
mov byte [esp + 0x14], al
mov dword [esp + 0x10], edi
mov eax, 1
je 0x49d2a1
cmp edx, eax
jle 0x49d310
jmp 0x49d290
mov edi, dword [esp + eax*4 + 0x10]
xor dword [esp + eax*4 + 0x14], edi
add eax, 1
cmp eax, edx
jl 0x49d290
jmp 0x49d310
mov edi, dword [esp + eax*4 + 0x10]
xor dword [esp + eax*4 + 0x14], edi
add eax, 1
cmp eax, 4
jl 0x49d2a1
movzx eax, byte [esp + 0x20]
movzx eax, byte [eax + 0x582318]
xor byte [esp + 0x24], al
movzx eax, byte [esp + 0x21]
movzx eax, byte [eax + 0x582318]
xor byte [esp + 0x25], al
movzx eax, byte [esp + 0x22]
movzx eax, byte [eax + 0x582318]
xor byte [esp + 0x26], al
movzx eax, byte [esp + 0x23]
movzx eax, byte [eax + 0x582318]
xor byte [esp + 0x27], al
mov eax, 5
jmp 0x49d300
mov edi, dword [esp + eax*4 + 0x10]
xor dword [esp + eax*4 + 0x14], edi
add eax, 1
cmp eax, 8
jl 0x49d300
xor eax, eax
test edx, edx
jle 0x49d348
cmp esi, dword [ebp + 0x48]
jg 0x49d351
cmp eax, edx
jge 0x49d33a
nop
cmp ecx, 4
jge 0x49d33d
mov ebx, dword [esp + eax*4 + 0x14]
lea edi, [ecx + esi*4]
add eax, 1
add ecx, 1
cmp eax, edx
mov dword [ebp + edi*4 + 0x4c], ebx
jl 0x49d320
cmp ecx, 4
jne 0x49d344
add esi, 1
xor ecx, ecx
cmp eax, edx
jl 0x49d316
cmp esi, dword [ebp + 0x48]
jle 0x49d220
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ec47e
add esp, 0x28
ret 4
Function at 0x49d370
Capabilities:
Encode data using xor

Disassembly:
mov edx, 1
cmp dword [ecx + 0x48], edx
jle 0x49d45c
push esi
lea eax, [ecx + 0x5e]
push edi
jmp 0x49d390
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x585118]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x584918]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x584d18]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x584518]
add edx, 1
mov dword [eax - 2], esi
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x585118]
movzx edi, byte [eax + 4]
xor esi, dword [edi*4 + 0x584d18]
movzx edi, byte [eax + 3]
xor esi, dword [edi*4 + 0x584918]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x584518]
add eax, 0x10
mov dword [eax - 0xe], esi
movzx esi, byte [eax - 7]
mov esi, dword [esi*4 + 0x585118]
movzx edi, byte [eax - 8]
xor esi, dword [edi*4 + 0x584d18]
movzx edi, byte [eax - 9]
xor esi, dword [edi*4 + 0x584918]
movzx edi, byte [eax - 0xa]
xor esi, dword [edi*4 + 0x584518]
mov dword [eax - 0xa], esi
movzx esi, byte [eax - 3]
movzx edi, byte [eax - 4]
mov esi, dword [esi*4 + 0x585118]
xor esi, dword [edi*4 + 0x584d18]
movzx edi, byte [eax - 5]
xor esi, dword [edi*4 + 0x584918]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x584518]
mov dword [eax - 6], esi
cmp edx, dword [ecx + 0x48]
jl 0x49d390
pop edi
pop esi
ret
Function at 0x49de50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x5894dc]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
mov ebx, ecx
push edi
mov edi, dword [esp + 0x34]
mov ecx, esi
call fcn.0046fb70
cmp eax, 0x10
jae 0x49de8e
mov ebp, 0x10
lea ecx, [ecx]
push 0
mov ecx, esi
call fcn.00404de0
sub ebp, 1
jne 0x49de80
cmp byte [esp + 0x3c], 0
jne 0x49deb7
mov ecx, esi
call fcn.004e81e0
test eax, eax
je 0x49deb7
mov ecx, dword [eax]
mov dword [ebx + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x3c], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x40], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x44], edx
cmp dword [ebx + 0x2c], 0
je 0x49ded7
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004ec47e
add esp, 0x18
ret 0x14
cmp dword [ebx + 0x34], 0
je 0x49def7
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004ec47e
add esp, 0x18
ret 0x14
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x49e022
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x49e022
mov ecx, dword [ebx + 0x30]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
sub ecx, 0
mov dword [esp + 0x10], eax
je 0x49dfe3
sub ecx, 1
je 0x49df45
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004ec47e
add esp, 0x18
ret 0x14
mov eax, dword [ebx + 0x38]
xor eax, dword [esi]
mov ecx, dword [ebx + 0x3c]
xor ecx, dword [esi + 4]
mov edx, dword [ebx + 0x40]
xor edx, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x44]
xor eax, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
push edi
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.0049d460
mov ebp, dword [esp + 0x10]
add ebp, 0xffffffff
add esi, 0x10
test ebp, ebp
jle 0x49e006
mov edx, dword [esi]
xor edx, dword [edi]
mov eax, dword [edi + 4]
xor eax, dword [esi + 4]
mov ecx, dword [edi + 8]
xor ecx, dword [esi + 8]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0xc]
xor edx, dword [esi + 0xc]
mov dword [esp + 0x18], eax
add edi, 0x10
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x28], edx
call fcn.0049d460
sub ebp, 1
add esi, 0x10
test ebp, ebp
jg 0x49df87
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
shl eax, 7
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004ec47e
add esp, 0x18
ret 0x14
test eax, eax
mov ebp, eax
jle 0x49e00a
lea esp, [esp]
push edi
push esi
mov ecx, ebx
call fcn.0049d460
sub ebp, 1
add esi, 0x10
add edi, 0x10
test ebp, ebp
jg 0x49dff0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
shl eax, 7
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004ec47e
add esp, 0x18
ret 0x14
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004ec47e
add esp, 0x18
ret 0x14