joyce8/EMBER2024-capa huggingface dataset:
Function at 0x577ae0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push edi
xor eax, eax
mov ecx, 0x10
mov edi, 0x6ef890
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftMicrosoft_GamesHalo
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x1c], 0x3f
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
je 0x577b2b
mov byte [0x6ef890], 0
mov eax, 0x6ef890
add esp, 8
ret
mov edx, dword [esp]
lea ecx, [esp + 4]
push ecx
push 0x6ef890
push 0
push 0
push str.Version
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x577b53
mov byte [0x6ef890], 0
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x6ef890
add esp, 8
ret

Function at 0x577b70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftMicrosoft_GamesHalo
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x577bd5
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 4]
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.DistID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x577bca
mov dword [esp], 0
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0xc
ret
Function at 0x57a630
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov bl, 0xd
mov eax, dword [esi + 8]
push 0xa
push str.applytoall
push eax
call fcn.0063781a
add esp, 0xc
test eax, eax
jne 0x57a6ae
mov ecx, dword [esi + 8]
mov al, byte [ecx + 0xa]
cmp al, 0x3e
je 0x57a670
cmp al, 0x3c
je 0x57a670
cmp al, 0x21
je 0x57a670
cmp al, 0x3d
je 0x57a670
cmp al, 0x20
je 0x57a670
cmp al, bl
je 0x57a670
cmp al, 9
jne 0x57a6ae
lea esp, [esp]
mov edx, dword [esi + 8]
inc edx
mov eax, edx
mov dword [esi + 8], edx
cmp byte [eax - 1], bl
je 0x57a683
cmp eax, dword [esi + 0xc]
jb 0x57a670
cmp eax, dword [esi + 0xc]
jae 0x57a691
cmp byte [eax], 0xa
jne 0x57a691
inc eax
mov dword [esi + 8], eax
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x10], edx
mov edx, dword [esi + 0x14]
push eax
inc edx
push esi
mov dword [esi + 0x14], edx
call fcn.0057b320
test al, al
jne 0x57a6e7
pop ebx
ret
mov ecx, dword [esi + 8]
push 6
push 0x65e9e8
push ecx
call fcn.0063781a
add esp, 0xc
test eax, eax
jne 0x57a6e7
mov edx, dword [esi + 8]
mov al, byte [edx + 6]
cmp al, 0x3e
je 0x57a71f
cmp al, 0x3c
je 0x57a71f
cmp al, 0x21
je 0x57a71f
cmp al, 0x3d
je 0x57a71f
cmp al, 0x20
je 0x57a71f
cmp al, bl
je 0x57a71f
cmp al, 9
je 0x57a71f
mov edx, dword [esi + 8]
inc edx
mov eax, edx
mov dword [esi + 8], edx
cmp byte [eax - 1], bl
je 0x57a6fa
cmp eax, dword [esi + 0xc]
jb 0x57a6e7
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jae 0x57a70a
cmp byte [eax], 0xa
jne 0x57a70a
inc eax
mov dword [esi + 8], eax
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 8]
inc edx
cmp eax, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
jb 0x57a633
mov al, 1
pop ebx
ret
Function at 0x57e540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push ecx
movzx edx, ax
push edx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x57e597
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x57e597
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x57e597
xor edx, edx
lea ebx, [ebx]
movzx ecx, word [eax]
add eax, 2
test ecx, ecx
je 0x57e58e
cmp edx, esi
je 0x57e59c
inc edx
cmp edx, 0x10
lea eax, [eax + ecx*2]
jb 0x57e580
pop esi
xor eax, eax
pop ebp
ret
push 0
push 0
push ebx
push ebp
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x57e597
lea ecx, [ebx - 1]
cmp eax, ecx
jge 0x57e5bb
mov ecx, eax
pop esi
mov byte [ecx + ebp], 0
pop ebp
ret

Function at 0x57e620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
mov ax, word [0x69ff30]
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push eax
push ecx
push 5
push esi
call edi
test eax, eax
je 0x57e66b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x57e66b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x57e66b
push 0
push ebx
push ebp
push eax
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
cmp eax, 0xffffffff
jne 0x57e6c2
cmp dword [0x69ff30], 0x409
je 0x57e6b2
mov edx, dword [esp + 0xc]
push 0x409
push edx
push 5
push esi
call edi
test eax, eax
je 0x57e6b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x57e6b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x57e6b2
push 0
push ebx
push ebp
push eax
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
cmp eax, 0xffffffff
jne 0x57e6c2
mov eax, dword [esp + 0xc]
push 0
push ebx
push ebp
push eax
push esi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop edi
pop ebp
ret
Function at 0x57ec80
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x11c
push ebx
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftMicrosoft_GamesHalo
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0
push str.ExitFlag
push eax
mov dword [esp + 0x20], 0x10
mov byte [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebx
mov eax, dword [0x6a3218]
lea edx, [esp + 0x1c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x57ece6
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57ecf7
sub eax, edx
cmp byte [esp + eax + 0x18], 0x2e
jne 0x57ed4e
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57ed10
sub eax, edx
mov byte [esp + eax + 0x19], 0x70
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57ed25
sub eax, edx
mov byte [esp + eax + 0x1a], 0x64
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57ed40
sub eax, edx
mov byte [esp + eax + 0x1b], 0x62
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x57ed68
xor eax, eax
pop ebx
add esp, 0x11c
ret
push esi
push edi
mov edi, str.bad_2
lea esi, [esp + 0x14]
mov ecx, 6
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x57ed83
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x57ed96
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x11c
ret
mov edi, str.bad_1
lea esi, [esp + 0x14]
mov ecx, 6
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x57edaf
sbb eax, eax
sbb eax, 0xffffffff
push 0
test eax, eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftMicrosoft_GamesHalo
push closesocket
jne 0x57edf2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, str.bad_2
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57ede0
sub eax, edx
inc eax
push eax
push str.bad_2
jmp 0x57ee10
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, str.bad_1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57ee00
sub eax, edx
inc eax
push eax
push str.bad_1
mov ecx, dword [esp + 0x14]
push 1
push 0
push str.ExitFlag
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x11c
ret
Function at 0x57ee40
Capabilities:
Set registry value

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftMicrosoft_GamesHalo
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, str.clean
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57ee70
mov ecx, dword [esp]
sub eax, edx
inc eax
push eax
push str.clean
push 1
push 0
push str.ExitFlag
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x57f6d0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 8
mov ecx, dword [0x722af4]
push ebx
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x8004
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
setne bl
test bl, bl
je 0x57f746
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
setne bl
test bl, bl
je 0x57f746
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 4]
push 0
lea edx, [esp + 0xc]
push edx
push eax
push 2
push ecx
mov dword [esp + 0x1c], 0x14
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
setne bl
mov eax, dword [esp + 4]
test eax, eax
je 0x57f755
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x57f820
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc8
push ebx
lea eax, [esp + 4]
push eax
xor ebx, ebx
push 0x20019
push ebx
push str.SoftwareMicrosoftMicrosoft_GamesHalo
push reloc.WSOCK32.dll_bind
mov byte [0x722b00], bl
mov dword [esp + 0x24], 0x400
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x57f88b
mov eax, dword [esp + 4]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push ebx
push str.DigitalProductID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop eax
test eax, eax
je 0x57f8a1
mov dword [esp + 0x28], 0xa4
mov dword [esp + 0x2c], 3
jmp 0x57f8ba
cmp dword [esp + 0x28], 0xa4
jne 0x57f88b
cmp word [esp + 0x2c], 3
jne 0x57f88b
cmp word [esp + 0x2e], bx
jne 0x57f88b
push edi
mov edi, dword [esp + 0x4c]
lea ebx, [esp + 0x34]
call fcn.0057f790
push 0xf0000000
push 1
push 0
push 0
push 0x722af4
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
jmp 0x57f8f2
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x64]
push 0xf
push ecx
call fcn.0057f6d0
add esp, 0xc
jmp 0x57f90a
push esi
lea esi, [esp + 0x10]
mov ecx, 0x14
lea edx, [esp + 0x1c]
call fcn.0057f760
pop esi
jmp 0x57f922
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
push ebx
push edi
push str._05d__09d_0___19.19I64d
push 0x722b00
call fcn.006238e3
mov ecx, dword [0x722af4]
add esp, 0x18
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, 0x722b00
pop ebx
add esp, 0xc8
ret
Function at 0x58445f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x5844b6
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x5844b6
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x5844b6
xor eax, eax
inc eax
jmp 0x5844b8
xor eax, eax
leave
ret 0x10

Function at 0x586bd4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x586cf5
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x586cd9
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x586c2b
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x586c09
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x586fc1
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x20]
push ebp
push esi
mov esi, dword [ecx]
mov ebp, dword [esi + 0x1064]
push edi
mov edi, dword [esi + 0x1058]
imul ebp, edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x20]
add ebp, eax
cmp eax, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ebp
jae 0x587108
mov edx, 0xf81f
push ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esi + 0x1060]
lea esi, [eax + esi*2]
mov dword [esp + 0x10], ebx
add edi, eax
cmp eax, esi
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], esi
jae 0x5870e3
movzx ecx, word [ebx]
movzx esi, word [ebx + 2]
movzx eax, word [edi + 2]
movzx edi, word [edi]
mov ebp, ecx
mov ebx, eax
and bx, dx
and bp, dx
mov dword [esp + 0x24], ecx
and ecx, 0xffff07e0
add ebx, ebp
mov ebp, edi
and bp, dx
add ebx, ebp
mov ebp, esi
and bp, dx
lea ebx, [ebx + ebp + 0x1002]
mov ebp, eax
and ebp, 0xffff07e0
add ebp, ecx
mov ecx, edi
and ecx, 0xffff07e0
add ebp, ecx
mov ecx, esi
and ecx, 0xffff07e0
shr ebx, 2
lea ecx, [ecx + ebp + 0x40]
shr ecx, 2
xor ebx, ecx
mov ecx, dword [esp + 0x24]
and eax, edx
and ecx, edx
add eax, ecx
and edi, edx
add eax, edi
mov edi, dword [esp + 0x1c]
and esi, edx
and ebx, 0xffff07e0
lea eax, [eax + esi + 0x1002]
shr eax, 2
xor ebx, eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 2
mov word [eax], bx
mov ebx, dword [esp + 0x18]
add ebx, 4
add edi, 4
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
jb 0x58702a
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
mov esi, dword [ecx + 4]
mov esi, dword [esi + 0x1058]
add dword [esp + 0x14], esi
mov esi, dword [ecx]
mov edi, dword [esi + 0x1058]
lea eax, [eax + edi*2]
cmp eax, ebp
mov dword [esp + 0x20], eax
jb 0x587001
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x587235
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x20]
push ebp
push esi
mov esi, dword [ecx]
mov ebp, dword [esi + 0x1064]
mov edx, dword [esi + 0x20]
push edi
mov edi, dword [esi + 0x1058]
imul ebp, edi
add ebp, edx
cmp edx, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], ebp
jae 0x58737b
mov eax, 0x83e0
push ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esi + 0x1060]
lea esi, [edx + esi*2]
mov dword [esp + 0x10], ebx
add edi, edx
cmp edx, esi
mov ebx, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], esi
jae 0x587356
movzx ecx, word [ebx]
movzx esi, word [ebx + 2]
movzx edx, word [edi + 2]
movzx edi, word [edi]
mov ebp, ecx
and ebp, eax
mov ebx, edx
and ebx, eax
add ebx, ebp
mov ebp, edi
and ebp, eax
add ebx, ebp
mov dword [esp + 0x24], ecx
and ecx, 0x7c1f
mov ebp, esi
and ebp, eax
lea ebx, [ebx + ebp + 0x10040]
mov ebp, edx
and ebp, 0x7c1f
add ebp, ecx
mov ecx, edi
and ecx, 0x7c1f
add ebp, ecx
mov ecx, esi
and ecx, 0x7c1f
lea ecx, [ecx + ebp + 0x802]
shr ecx, 2
shr ebx, 2
xor ebx, ecx
mov ecx, dword [esp + 0x24]
and ecx, eax
and edx, eax
add edx, ecx
and edi, eax
add edx, edi
mov edi, dword [esp + 0x1c]
and esi, eax
and ebx, 0xffff7c1f
lea ecx, [edx + esi + 0x10040]
shr ecx, 2
xor ebx, ecx
mov ecx, dword [esp + 0x10]
add dword [esp + 0x10], 2
mov word [ecx], bx
mov ebx, dword [esp + 0x18]
add ebx, 4
add edi, 4
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
jb 0x58729e
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
mov esi, dword [ecx + 4]
mov esi, dword [esi + 0x1058]
add dword [esp + 0x14], esi
mov esi, dword [ecx]
mov edi, dword [esi + 0x1058]
lea edx, [edx + edi*2]
cmp edx, ebp
mov dword [esp + 0x20], edx
jb 0x587275
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x587384
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x20]
push ebp
push esi
mov esi, dword [ecx]
mov ebp, dword [esi + 0x1064]
push edi
mov edi, dword [esi + 0x1058]
imul ebp, edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x20]
add ebp, eax
cmp eax, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ebp
jae 0x5874ce
mov edx, 0xf0f0
push ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esi + 0x1060]
lea esi, [eax + esi*2]
mov dword [esp + 0x10], ebx
add edi, eax
cmp eax, esi
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], esi
jae 0x5874a9
movzx ecx, word [ebx]
movzx esi, word [ebx + 2]
movzx eax, word [edi + 2]
movzx edi, word [edi]
mov ebp, ecx
mov ebx, eax
and bx, dx
and bp, dx
mov dword [esp + 0x24], ecx
and ecx, 0xffff0f0f
add ebx, ebp
mov ebp, edi
and bp, dx
add ebx, ebp
mov ebp, esi
and bp, dx
lea ebx, [ebx + ebp + 0x2020]
mov ebp, eax
and ebp, 0xffff0f0f
add ebp, ecx
mov ecx, edi
and ecx, 0xffff0f0f
add ebp, ecx
mov ecx, esi
and ecx, 0xffff0f0f
shr ebx, 2
lea ecx, [ecx + ebp + 0x202]
shr ecx, 2
xor ebx, ecx
mov ecx, dword [esp + 0x24]
and eax, edx
and ecx, edx
add eax, ecx
and edi, edx
add eax, edi
mov edi, dword [esp + 0x1c]
and esi, edx
and ebx, 0xffff0f0f
lea eax, [eax + esi + 0x2020]
shr eax, 2
xor ebx, eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 2
mov word [eax], bx
mov ebx, dword [esp + 0x18]
add ebx, 4
add edi, 4
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
jb 0x5873ed
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
mov esi, dword [ecx + 4]
mov esi, dword [esi + 0x1058]
add dword [esp + 0x14], esi
mov esi, dword [ecx]
mov edi, dword [esi + 0x1058]
lea eax, [eax + edi*2]
cmp eax, ebp
mov dword [esp + 0x20], eax
jb 0x5873c4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x5874d7
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
push ebp
mov ebp, dword [eax + 0x20]
mov eax, dword [edx + 0x20]
push esi
mov esi, dword [edx + 0x1064]
push edi
mov edi, dword [edx + 0x1058]
imul esi, edi
add esi, eax
cmp eax, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
jae 0x58760d
push ebx
mov edx, dword [edx + 0x1060]
add edx, eax
add edi, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edx
jae 0x5875e8
movzx ebp, byte [ebx]
movzx esi, byte [ebx + 1]
movzx eax, byte [edi + 1]
movzx edi, byte [edi]
mov edx, eax
push 0x1c
pop ecx
and edx, ecx
mov ebx, ebp
and ebx, ecx
add edx, ebx
mov ebx, edi
and ebx, ecx
add edx, ebx
mov ebx, esi
and ebx, ecx
lea edx, [edx + ebx + 8]
mov ecx, eax
and ecx, 0xffff00e3
mov ebx, ebp
and ebx, 0xffff00e3
add ecx, ebx
mov ebx, edi
and ebx, 0xffff00e3
add ecx, ebx
mov ebx, esi
and ebx, 0xffff00e3
shr edx, 2
lea ecx, [ecx + ebx + 0x42]
mov ebx, dword [esp + 0x14]
shr ecx, 2
xor dl, cl
mov ecx, 0xe3
and ax, cx
and bp, cx
and di, cx
and si, cx
and dl, 0x1c
add eax, ebp
add eax, edi
mov edi, dword [esp + 0x18]
lea eax, [eax + esi + 0x42]
shr eax, 2
xor dl, al
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
inc ebx
inc ebx
inc edi
inc edi
cmp ebx, dword [esp + 0x24]
mov byte [eax], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jb 0x587536
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
add ebp, dword [edx + 0x1058]
mov edx, dword [ecx]
mov edi, dword [edx + 0x1058]
lea eax, [eax + edi*2]
cmp eax, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
jb 0x587512
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
Function at 0x5876b1
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x20]
push ebp
mov ebp, dword [edx + 0x1058]
push edi
mov edi, dword [edx + 0x1064]
imul edi, ebp
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x20]
add edi, eax
cmp eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edi
jae 0x5877f5
push ebx
push esi
mov esi, 0xff1c
mov ebx, dword [esp + 0x14]
mov edx, dword [edx + 0x1060]
lea edx, [eax + edx*2]
mov dword [esp + 0x10], ebx
add ebp, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], edx
jae 0x5877cf
movzx edx, word [ebx]
movzx edi, word [ebx + 2]
movzx eax, word [ebp + 2]
movzx ebp, word [ebp]
mov dword [esp + 0x18], edx
mov ebx, eax
mov ecx, 0xe3
and bx, cx
and dx, cx
add ebx, edx
mov edx, ebp
and dx, cx
add ebx, edx
mov edx, edi
and dx, cx
mov ecx, eax
and cx, si
and eax, esi
lea edx, [ebx + edx + 0x42]
mov ebx, dword [esp + 0x18]
and bx, si
shr edx, 2
add ecx, ebx
mov ebx, ebp
and bx, si
and ebp, esi
add ecx, ebx
mov ebx, edi
and bx, si
and edi, esi
lea ecx, [ecx + ebx + 0x208]
mov ebx, dword [esp + 0x1c]
shr ecx, 2
xor dl, cl
mov ecx, dword [esp + 0x18]
and ecx, esi
add eax, ecx
add eax, ebp
mov ebp, dword [esp + 0x20]
lea eax, [eax + edi + 0x208]
shr eax, 2
and edx, 0xffff00e3
xor edx, eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 2
add ebx, 4
add ebp, 4
cmp ebx, dword [esp + 0x28]
mov word [eax], dx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
jb 0x58771a
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
mov edx, dword [ecx + 4]
mov edx, dword [edx + 0x1058]
add dword [esp + 0x14], edx
mov edx, dword [ecx]
mov ebp, dword [edx + 0x1058]
lea eax, [eax + ebp*2]
cmp eax, edi
mov dword [esp + 0x24], eax
jb 0x5876f1
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x24
ret