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

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00414990
mov eax, dword [esp + 0x4c]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x414a2f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret 0xc
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
push ebx
push ebx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea ecx, [esp + 0x10]
push ebx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
push ecx
lea edx, [esp + 0x24]
push 0x2c
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push str.RIFF
push edx
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov dword [esp + 0x1c], ecx
call fcn.004b3980
add esp, 8
test eax, eax
je 0x414aa6
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x414b55
push eax
call fcn.004b0eb8
add esp, 4
mov dword [esi + 8], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push str.WAVE
push ecx
mov dword [esp + 0x1c], eax
call fcn.004b3980
add esp, 8
test eax, eax
je 0x414ae7
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x414b55
push eax
call fcn.004b0eb8
add esp, 4
mov dword [esi + 8], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push str.fmt
push eax
mov dword [esp + 0x1c], edx
call fcn.004b3980
add esp, 8
test eax, eax
je 0x414b24
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x414b55
push eax
call fcn.004b0eb8
add esp, 4
mov dword [esi + 8], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x14]
push 0x4da0d8
push edx
mov dword [esp + 0x1c], ecx
call fcn.004b3980
add esp, 8
test eax, eax
je 0x414b61
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x414b55
push eax
call fcn.004b0eb8
add esp, 4
mov dword [esi + 8], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret 0xc
mov eax, dword [esp + 0x44]
add ebp, 0x2c
adc edi, ebx
mov dword [esi + 0x39a], ebp
mov dword [esi + 0x39e], edi
lea edi, [esi + 0x2e0]
mov ecx, edi
mov dword [esi + 0x3a6], eax
mov dword [esi + 0x3aa], eax
mov dword [esi + 0x3b0], ebx
mov dword [esi + 0x3a2], ebx
mov word [esi + 0x3ae], bx
mov dword [esi + 0x3b4], ebx
call fcn.004142b0
mov ecx, edi
call fcn.004142d0
push ebx
mov ecx, esi
call fcn.00414cb0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x38
ret 0xc
Function at 0x414bd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
call fcn.00414990
mov eax, dword [esp + 0x18]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x414c09
xor eax, eax
pop esi
add esp, 0x10
ret 0xc
push ebx
mov ebx, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x28]
push 0
push 0
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea ecx, [esp + 0xc]
push 0
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
push ecx
lea edx, [esp + 0x18]
push 9
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x11]
mov eax, dword [esp + 0x15]
add ebx, 9
mov dword [esi + 0x3a2], ecx
adc edi, 0
mov dword [esi + 0x39a], ebx
mov dword [esi + 0x39e], edi
lea edi, [esi + 0x2e0]
mov ecx, edi
mov dword [esi + 0x3a6], eax
mov dword [esi + 0x3aa], eax
mov dword [esi + 0x3b0], 0
mov word [esi + 0x3ae], 2
mov dword [esi + 0x3b4], 0
call fcn.004142b0
mov ecx, edi
call fcn.004142d0
push 0
mov ecx, esi
call fcn.00414cb0
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0x10
ret 0xc

Function at 0x414e10
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 2
cmp dword [esi + 0x3b4], edi
jne 0x414e4b
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, edx
xor eax, eax
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax], edx
mov eax, 1
ret 0xc
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x3aa]
sub ecx, eax
test ecx, ecx
mov dword [esi + 0x3aa], ecx
jle 0x414e88
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14]
push 0
push edx
mov dword [ecx], eax
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
mov eax, 1
pop esi
ret 0xc
jge 0x414e95
lea edx, [ecx + eax]
mov ecx, dword [esp + 0x14]
mov dword [ecx], edx
jmp 0x414e9b
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov ecx, dword [ecx]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esi + 0x3a2]
mov eax, dword [esi + 0x39a]
xor edx, edx
add eax, ecx
mov ecx, dword [esi + 0x39e]
push edx
adc ecx, edx
push edx
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [esi + 0x3a6]
mov edx, dword [esi + 0x3a2]
sub ecx, edx
mov eax, 1
mov dword [esi + 0x3aa], ecx
mov ecx, dword [esi + 0x3b4]
cmp ecx, eax
jne 0x414f03
mov dword [esi + 0x3b4], edi
pop edi
pop esi
ret 0xc
Function at 0x415150
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
test ebp, ebp
push edi
mov esi, ecx
jne 0x415167
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x41517c
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov ecx, esi
call fcn.00415230
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x415195
push ebp
mov ecx, esi
call fcn.00415260
mov ebx, eax
lea eax, [ebx + 4]
push eax
call fcn.004b099c
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x4151af
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push ebp
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4151e1
mov ecx, esi
call fcn.00415230
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
push 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0
push eax
add ecx, 4
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x10
Function at 0x42d8d0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebx
push ebp
push edi
test edx, edx
mov ebx, ecx
jne 0x42d8e7
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x10
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x42d8fc
pop edi
pop ebp
pop ebx
pop ecx
ret 0x10
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x42d90d
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x10
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x42d920
pop edi
pop ebp
pop ebx
pop ecx
ret 0x10
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x42d949
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push 0
push 0
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.0042dcb0
lea edx, [esp + 0x10]
push 0
lea edi, [ebx + 8]
push edx
push 4
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.004b099c
mov dword [ebx + 4], eax
mov eax, dword [edi]
add esp, 4
xor esi, esi
test eax, eax
mov dword [esp + 0x1c], 1
jle 0x42da7d
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x20]
push 2
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
and eax, 0xffff
mov ecx, eax
and ecx, 1
sub eax, ecx
add eax, 4
mov edi, eax
push edi
call fcn.004b099c
mov edx, dword [ebx + 4]
mov ecx, edi
add esp, 4
mov dword [edx + esi*4], eax
mov edx, dword [ebx + 4]
xor eax, eax
push 0
mov edi, dword [edx + esi*4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
and ecx, 0xffff
push eax
mov eax, dword [edx + esi*4]
add eax, 2
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebx + 4]
mov ax, word [esp + 0x18]
mov edx, dword [ecx + esi*4]
mov word [edx], ax
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 4]
and ecx, 0xffff
sub ecx, 4
mov eax, dword [edx + esi*4]
push ecx
add eax, 6
mov ecx, ebx
push eax
call fcn.0042dd00
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42da71
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + esi*4]
cmp dword [eax + 2], 0x140050
jne 0x42da71
xor edx, edx
mov dword [esp + 0x1c], 0
mov dx, word [eax + 6]
mov dword [ebx + 0x94], edx
mov eax, dword [ebx + 8]
inc esi
cmp esi, eax
jl 0x42d9a5
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edi
mov dword [ebx + 0x8c], 0
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x456320
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x400
sub eax, 0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x410]
push edi
mov edi, ecx
je 0x456385
dec eax
jne 0x4563c7
lea ebx, [edi + 0x2a9a62]
push esi
push ebx
lea eax, [esp + 0x18]
push str._sinheritdata._03d
push eax
call fcn.004b093f
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call ebp
push esi
push ebx
lea edx, [esp + 0x18]
push str._sinheritdata_03d.bmp
push edx
call fcn.004b093f
add esp, 0x10
lea eax, [esp + 0x10]
push eax
jmp 0x4563c5
lea ebx, [edi + 0x2a9a62]
push esi
push ebx
lea ecx, [esp + 0x18]
push str._ssavedata._03d
push ecx
call fcn.004b093f
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
call ebp
push esi
push ebx
lea eax, [esp + 0x18]
push str._ssavedata_03d.bmp
push eax
call fcn.004b093f
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call ebp
cmp esi, dword [edi + 0xadf435]
jne 0x4563d9
mov dword [edi + 0xadf435], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x400
ret 8
Function at 0x46a34d
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x4c2fec
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x46a3bb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46a3b2
cmp dword [ebp - 0xc], 4
jne 0x46a3b2
cmp dword [ebp - 0x10], edi
je 0x46a3b2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x4ddc30], edi
xor eax, eax
jmp 0x46a3fa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x4ddc30], edi
jge 0x46a3f5
lea eax, [ebp - 0x34]
push eax
mov dword [0x4ddc30], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x46a3f5
cmp word [ebp - 0x14], 5
jb 0x46a3f5
call fcn.0046a328
test eax, eax
je 0x46a3f5
emms
mov dword [0x4ddc30], 1
mov eax, dword [0x4ddc30]
pop edi
leave
ret

Function at 0x46a59e
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 0x4c2fec
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x46a5f5
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 0x46a5f5
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x46a5f5
xor eax, eax
inc eax
jmp 0x46a5f7
xor eax, eax
leave
ret 0x10
Function at 0x46cd20
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 0x46ce41
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 0x46ce25
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 0x46cd77
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 0x46cd55
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x46d10d
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 0x46d254
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 0x46d22f
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 0x46d176
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 0x46d14d
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x46d381
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 0x46d4c7
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 0x46d4a2
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 0x46d3ea
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 0x46d3c1
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x46d4d0
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 0x46d61a
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 0x46d5f5
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 0x46d539
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 0x46d510
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x46d623
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 0x46d759
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 0x46d734
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 0x46d682
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 0x46d65e
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret