joyce8/EMBER2024-capa huggingface dataset:
Function at 0x575a90
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov bl, 0xd
mov eax, dword [esi + 8]
push 0xa
push str.applytoall
push eax
call fcn.00632a1d
add esp, 0xc
test eax, eax
jne 0x575b0e
mov ecx, dword [esi + 8]
mov al, byte [ecx + 0xa]
cmp al, 0x3e
je 0x575ad0
cmp al, 0x3c
je 0x575ad0
cmp al, 0x21
je 0x575ad0
cmp al, 0x3d
je 0x575ad0
cmp al, 0x20
je 0x575ad0
cmp al, bl
je 0x575ad0
cmp al, 9
jne 0x575b0e
lea esp, [esp]
mov edx, dword [esi + 8]
inc edx
mov eax, edx
mov dword [esi + 8], edx
cmp byte [eax - 1], bl
je 0x575ae3
cmp eax, dword [esi + 0xc]
jb 0x575ad0
cmp eax, dword [esi + 0xc]
jae 0x575af1
cmp byte [eax], 0xa
jne 0x575af1
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.00576780
test al, al
jne 0x575b47
pop ebx
ret
mov ecx, dword [esi + 8]
push 6
push 0x659848
push ecx
call fcn.00632a1d
add esp, 0xc
test eax, eax
jne 0x575b47
mov edx, dword [esi + 8]
mov al, byte [edx + 6]
cmp al, 0x3e
je 0x575b7f
cmp al, 0x3c
je 0x575b7f
cmp al, 0x21
je 0x575b7f
cmp al, 0x3d
je 0x575b7f
cmp al, 0x20
je 0x575b7f
cmp al, bl
je 0x575b7f
cmp al, 9
je 0x575b7f
mov edx, dword [esi + 8]
inc edx
mov eax, edx
mov dword [esi + 8], edx
cmp byte [eax - 1], bl
je 0x575b5a
cmp eax, dword [esi + 0xc]
jb 0x575b47
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jae 0x575b6a
cmp byte [eax], 0xa
jne 0x575b6a
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 0x575a93
mov al, 1
pop ebx
ret
Function at 0x579970
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 0x5799c7
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x5799c7
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
je 0x5799c7
xor edx, edx
lea ebx, [ebx]
movzx ecx, word [eax]
add eax, 2
test ecx, ecx
je 0x5799be
cmp edx, esi
je 0x5799cc
inc edx
cmp edx, 0x10
lea eax, [eax + ecx*2]
jb 0x5799b0
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 0x5799c7
lea ecx, [ebx - 1]
cmp eax, ecx
jge 0x5799eb
mov ecx, eax
pop esi
mov byte [ecx + ebp], 0
pop ebp
ret

Function at 0x579a50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
mov ax, word [0x6997a0]
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 0x579a9b
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x579a9b
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
je 0x579a9b
push 0
push ebx
push ebp
push eax
push esi
call dword [sym.imp.user32.dll_DialogBoxIndirectParamA]
cmp eax, 0xffffffff
jne 0x579af2
cmp dword [0x6997a0], 0x409
je 0x579ae2
mov edx, dword [esp + 0xc]
push 0x409
push edx
push 5
push esi
call edi
test eax, eax
je 0x579ae2
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x579ae2
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
je 0x579ae2
push 0
push ebx
push ebp
push eax
push esi
call dword [sym.imp.user32.dll_DialogBoxIndirectParamA]
cmp eax, 0xffffffff
jne 0x579af2
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 0x57a0b0
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 [0x69ca98]
lea edx, [esp + 0x1c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x57a116
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57a127
sub eax, edx
cmp byte [esp + eax + 0x18], 0x2e
jne 0x57a17e
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57a140
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 0x57a155
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 0x57a170
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 0x57a198
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 0x57a1b3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x57a1c6
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 0x57a1df
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 0x57a222
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 0x57a210
sub eax, edx
inc eax
push eax
push str.bad_2
jmp 0x57a240
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 0x57a230
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 0x57a270
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 0x57a2a0
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 0x57ab00
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 [0x7147ec]
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 0x57ab76
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 0x57ab76
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 0x57ab85
push eax
call dword [sym.imp.advapi32.dll_CryptDestroyHash]
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x57ac50
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 [0x7147f0], 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 0x57acb9
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]
test eax, eax
jmp 0x57acc6
mov eax, 0x65016c
pop ebx
add esp, 0xc8
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [esp + 0x28], 0xa4
nop
nop
cmp word [esp + 0x2c], 3
nop
nop
cmp word [esp + 0x2e], bx
nop
nop
push edi
mov edi, dword [esp + 0x4c]
lea ebx, [esp + 0x34]
call fcn.0057abc0
push 0xf0000000
push 1
push 0
push 0
push 0x7147ec
mov ebx, eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
test eax, eax
jmp 0x57ad22
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x64]
push 0xf
push ecx
call fcn.0057ab00
add esp, 0xc
test al, al
nop
nop
push esi
lea esi, [esp + 0x10]
mov ecx, 0x14
lea edx, [esp + 0x1c]
call fcn.0057ab90
test eax, eax
pop esi
nop
nop
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 0x7147f0
call fcn.0061ed33
mov ecx, dword [0x7147ec]
add esp, 0x18
push 0
push ecx
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
pop edi
mov eax, 0x7147f0
pop ebx
add esp, 0xc8
ret
Function at 0x57f88c
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 0x57f8e3
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 0x57f8e3
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x57f8e3
xor eax, eax
inc eax
jmp 0x57f8e5
xor eax, eax
leave
ret 0x10

Function at 0x582000
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 0x582121
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 0x582105
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 0x582057
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 0x582035
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x5823ed
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 0x582534
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 0x58250f
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 0x582456
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 0x58242d
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x582661
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 0x5827a7
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 0x582782
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 0x5826ca
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 0x5826a1
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x5827b0
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 0x5828fa
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 0x5828d5
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 0x582819
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 0x5827f0
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x582903
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 0x582a39
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 0x582a14
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 0x582962
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 0x58293e
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
Function at 0x582add
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 0x582c21
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 0x582bfb
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 0x582b46
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 0x582b1d
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x582d4a
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 0x582e8e
push ebx
push esi
mov esi, 0xff00
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 0x582e68
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, 0xff
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 + 2]
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 + 0x200]
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 + 0x200]
shr eax, 2
and edx, 0xffff00ff
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 0x582db3
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 0x582d8a
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x24
ret