joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4098d0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp + 0x104]
push ebx
push ebp
push esi
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
or ecx, 0xffffffff
mov edi, 0x438470
xor eax, eax
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x114]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.pack
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
and ecx, 3
lea eax, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.temp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.temp.gz
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x409a50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x42b7f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00423708
push 0
push 0x1001
push str.pack
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0
call fcn.0042381a
test eax, eax
jne 0x409acb
push 0x10
push str.Error
push str.Can_not_create_pack_engine_
mov ecx, esi
call fcn.00420e62
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0042375d
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push ebx
push edi
call fcn.00427da5
mov esi, dword [eax + 8]
push 0x438474
push 0x89
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [esp + 0x14]
call fcn.00423971
lea ecx, [esp + 0xc]
call fcn.00423a35
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.0042375d
mov ecx, dword [esp + 0x1c]
pop edi
pop ebx
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x409c10
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
sub esp, 0x158
push ebx
push esi
lea eax, [esp + 0x5c]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
or ecx, 0xffffffff
mov edi, 0x438470
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.pack
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x437bfc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x168]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x11
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov word [esp + 0x4c], ax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], eax
push ecx
push edx
push eax
push eax
push 0x10
push eax
push eax
mov dword [esp + 0x34], eax
push eax
lea eax, [esp + 0x80]
mov dword [esp + 0x3c], 0x44
push eax
push 0
mov dword [esp + 0x70], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
pop edi
pop esi
pop ebx
add esp, 0x158
ret 4
Function at 0x409d90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42b83b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.00423708
lea eax, [esp + 0x20]
xor ebp, ebp
push eax
push 0x104
mov dword [esp + 0x134], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x438470
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.temp.gz
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00409d60
push ebp
lea eax, [esp + 0x24]
push 0x30
push eax
lea ecx, [esp + 0x1c]
call fcn.0042381a
test eax, eax
jne 0x409e77
push 0x10
push str.Error
push str.Can_not_open_pack_file_
mov ecx, ebx
call fcn.00420e62
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0xffffffff
call fcn.0042375d
xor eax, eax
jmp 0x409efa
lea ecx, [esp + 0x10]
call fcn.00423b14
mov esi, eax
push esi
call fcn.00412af2
mov edi, eax
add esp, 4
test edi, edi
je 0x409eb3
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00423937
cmp esi, eax
jne 0x409ec8
mov ebp, 1
mov dword [ebx + 0x4a8], edi
mov dword [ebx + 0x4ac], esi
jmp 0x409ee4
push 0x10
push str.Error
push str.Can_not_allocate_memory_for_pack_buffer_
mov ecx, ebx
call fcn.00420e62
jmp 0x409ee4
push 0x10
push str.Error
push str.Read_Pack_file_error_
mov ecx, ebx
call fcn.00420e62
push edi
call fcn.00412a09
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0xffffffff
call fcn.0042375d
mov eax, ebp
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret

Function at 0x409f20
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, esi
call fcn.004098d0
mov ecx, esi
call fcn.00409a50
test eax, eax
jne 0x409f46
pop esi
ret 8
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
mov ecx, esi
call fcn.00409b40
test eax, eax
jne 0x409f5f
pop esi
ret 8
push str.e_temp_temp.gz__lc0__lp2
mov ecx, esi
call fcn.00409c10
mov ecx, esi
call fcn.00409d90
mov eax, 1
pop esi
ret 8
Function at 0x40a1e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
lea eax, [esp + 8]
mov edx, dword [esi]
lea edi, [esi + 0x18]
push edi
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40a23e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40a23e
mov eax, dword [esi + 0x28]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40a23e
mov edx, dword [esi]
lea ecx, [esp + 8]
push eax
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [esp + 8]
mov ecx, dword [esi + 0x20]
add ecx, eax
mov dword [esi + 0x20], ecx
pop edi
mov eax, 1
pop esi
pop ecx
ret 4

Function at 0x40a250
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40a2ed
mov eax, dword [esi]
test eax, eax
je 0x40a2ed
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push edi
lea edi, [esi + 0x18]
lea ecx, [esp + 0xc]
push edi
push ecx
push ebx
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40a2e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40a2e2
mov ecx, dword [esi + 0x28]
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
shl eax, 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40a2be
pop edi
pop ebx
xor eax, eax
pop esi
pop ecx
ret 8
mov eax, dword [esi]
lea edx, [esp + 0xc]
push 0
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x20]
add ecx, eax
pop edi
mov dword [esi + 0x20], ecx
pop ebx
pop esi
pop ecx
ret 8
mov eax, dword [esp + 0xc]
pop edi
pop ebx
pop esi
pop ecx
ret 8
xor eax, eax
pop esi
pop ecx
ret 8

Function at 0x40a350
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40a3d1
mov eax, dword [esi]
test eax, eax
je 0x40a3d1
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40a3d1
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], eax
cmp ecx, eax
jge 0x40a38e
mov eax, ecx
mov dword [esp + 4], eax
lea ecx, [esi + 4]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esi]
push edx
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a3c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40a3d1
mov edx, dword [esi + 0x14]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
pop esi
add esp, 0x14
ret 8
xor eax, eax
pop esi
add esp, 0x14
ret 8
Function at 0x41efc7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42b8b8
call fcn.00413348
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00427da5
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41f006
call fcn.00427da5
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41f014
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41f022
or eax, 0xffffffff
jmp 0x41f10a
mov ecx, esi
call fcn.0041ef3d
mov dword [ebp - 0x14], eax
call fcn.0041fdf9
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41f059
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41f059
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041fdad
push dword [ebp - 0x14]
call fcn.0041f8de
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041ecd5
cmp eax, edi
je 0x41f0cc
test byte [esi + 0x24], 0x10
je 0x41f09a
push 4
mov ecx, esi
pop ebx
call fcn.00421fb8
test ah, 1
je 0x41f092
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00421981
cmp dword [esi + 0x1c], edi
je 0x41f0cc
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004220cf
jmp 0x41f0cc
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41f0e0
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41f0f9
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41f0f9
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041ef77
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4202a9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4202e1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00422d88
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00422d60
jmp 0x4202ed
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x42182f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x421871
call fcn.00427da5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x421871
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x421868
xor eax, eax
jmp 0x421879
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042187f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4549b8
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
cmp ebx, 8
push edi
mov esi, ecx
jae 0x454a36
mov eax, dword [esi]
mov dword [esp + 0x10], 0
shr eax, 2
and eax, 0x1ff
mov edi, 1
mov ecx, dword [eax*4 + 0x422908]
mov dword [esp + 0x18], ecx
mov ecx, 3
mov eax, dword [esp + 0x1c]
dec ecx
mov edx, ebx
shr edx, cl
lea eax, [edi + eax*8 + 1]
mov eax, dword [esi + eax*4]
and edx, 1
mov ebp, edx
sub eax, edx
neg ebp
xor eax, ebp
mov ebp, dword [esp + 0x10]
shr eax, 2
and eax, 0x1ff
lea edi, [edx + edi*2]
add ebp, dword [eax*4 + 0x422908]
test ecx, ecx
mov dword [esp + 0x10], ebp
ja 0x4549ef
mov eax, dword [esp + 0x18]
pop edi
add eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov ecx, dword [esi]
sub ebx, 8
dec ecx
not ecx
shr ecx, 2
and ecx, 0x1ff
cmp ebx, 8
mov eax, dword [ecx*4 + 0x422908]
jae 0x454acb
mov edx, dword [esi + 0x204]
mov dword [esp + 0x10], 0
shr edx, 2
and edx, 0x1ff
mov edi, 1
mov ecx, dword [edx*4 + 0x422908]
add eax, ecx
mov ecx, 3
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
dec ecx
mov edx, ebx
shr edx, cl
lea eax, [edi + eax*8 + 0x82]
mov eax, dword [esi + eax*4]
and edx, 1
mov ebp, edx
sub eax, edx
neg ebp
xor eax, ebp
mov ebp, dword [esp + 0x10]
shr eax, 2
and eax, 0x1ff
lea edi, [edx + edi*2]
add ebp, dword [eax*4 + 0x422908]
test ecx, ecx
mov dword [esp + 0x10], ebp
ja 0x454a81
mov eax, dword [esp + 0x18]
pop edi
add eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov ecx, dword [esi + 0x204]
xor ebp, ebp
dec ecx
mov edi, 1
not ecx
shr ecx, 2
and ecx, 0x1ff
mov edx, dword [ecx*4 + 0x422908]
mov ecx, 8
add eax, edx
add ebx, 0xfffffff8
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x1c]
dec ecx
mov eax, dword [esi + edi*4 + 0x408]
shr edx, cl
and edx, 1
mov ebx, edx
sub eax, edx
neg ebx
xor eax, ebx
lea edi, [edx + edi*2]
shr eax, 2
and eax, 0x1ff
add ebp, dword [eax*4 + 0x422908]
test ecx, ecx
ja 0x454afd
mov eax, dword [esp + 0x18]
pop edi
add eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x458698
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov ebp, 0xa1c6
push edi
mov edi, ecx
mov dword [esp + 0x10], ebp
xor edx, edx
cmp edx, dword [edi + 0x33670]
jae 0x458796
mov dword [esp + 0x14], 0
mov esi, 1
mov ecx, 6
dec ecx
mov eax, edx
shr eax, cl
add ebp, esi
mov ebp, dword [edi + ebp*4]
and eax, 1
mov ebx, eax
sub ebp, eax
neg ebx
xor ebp, ebx
mov ebx, dword [esp + 0x14]
shr ebp, 2
and ebp, 0x1ff
lea esi, [eax + esi*2]
add ebx, dword [ebp*4 + 0x422908]
mov ebp, dword [esp + 0x10]
test ecx, ecx
mov dword [esp + 0x14], ebx
ja 0x4586ca
lea eax, [edx + ebp]
inc edx
cmp edx, 0xe
mov dword [edi + eax*4 + 0xa314], ebx
jb 0x4586ac
cmp edx, dword [edi + 0x33670]
jae 0x458796
mov dword [esp + 0x14], 0
mov esi, 1
mov ecx, 6
jmp 0x458732
mov ebp, dword [esp + 0x10]
dec ecx
mov eax, edx
shr eax, cl
add ebp, esi
mov ebp, dword [edi + ebp*4]
and eax, 1
mov ebx, eax
sub ebp, eax
neg ebx
xor ebp, ebx
mov ebx, dword [esp + 0x14]
shr ebp, 2
and ebp, 0x1ff
lea esi, [eax + esi*2]
add ebx, dword [ebp*4 + 0x422908]
test ecx, ecx
mov dword [esp + 0x14], ebx
ja 0x45872e
mov ebp, dword [esp + 0x10]
mov ecx, edx
and ecx, 0x7fffffe
add ecx, 0x7fffff6
lea eax, [edx + ebp - 0xa1c6]
shl ecx, 5
add ecx, ebx
inc edx
mov dword [edi + eax*4 + 0x32a2c], ecx
mov eax, dword [edi + 0x33670]
cmp edx, eax
jb 0x45871a
add ebp, 0x40
cmp ebp, 0xa2c6
mov dword [esp + 0x10], ebp
jb 0x4586aa
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4587b8
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
push ebp
lea eax, [ecx + 0x32a2c]
lea edx, [ecx + 0x32e2c]
push esi
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0xca8b
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jmp 0x4587ed
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov edi, 4
mov eax, edi
mov dword [esp + 0x2c], eax
mov ebx, dword [edx]
add edx, 4
mov dword [esi], ebx
add esi, 4
dec edi
jne 0x458800
mov edx, dword [esp + 0x20]
lea ecx, [ecx + edx*4 + 0x32e3c]
mov dword [esp + 0x30], ecx
cmp eax, 0x400
jae 0x45882d
xor ebx, ebx
mov bl, byte [eax + 0x422504]
jmp 0x458856
cmp eax, 0x80000
jae 0x458846
mov edx, eax
xor ebx, ebx
shr edx, 9
mov bl, byte [edx + 0x422504]
add ebx, 0x12
jmp 0x458856
mov ecx, eax
xor ebx, ebx
shr ecx, 0x12
mov bl, byte [ecx + 0x422504]
add ebx, 0x24
mov ecx, ebx
mov edx, ebx
shr ecx, 1
and edx, 1
dec ecx
or edx, 2
mov esi, eax
shl edx, cl
xor ebp, ebp
mov edi, 1
mov dword [esp + 0x24], ebp
sub esi, edx
test ecx, ecx
jbe 0x4588c7
mov dword [esp + 0x28], ecx
mov ebp, dword [esp + 0x10]
mov ecx, edi
sub ecx, ebx
mov eax, esi
add ecx, edx
and eax, 1
add edi, edi
mov ecx, dword [ebp + ecx*4 + 0x28b14]
mov ebp, eax
sub ecx, eax
or edi, eax
neg ebp
mov eax, dword [esp + 0x28]
xor ecx, ebp
mov ebp, dword [esp + 0x24]
shr ecx, 2
and ecx, 0x1ff
shr esi, 1
add ebp, dword [ecx*4 + 0x422908]
dec eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebp
jne 0x45887c
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add edx, ebx
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x30]
add edx, ebp
inc eax
mov dword [ecx], edx
add ecx, 4
cmp eax, 0x80
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
jb 0x45881c
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
add eax, 0x40
add ebx, 0x200
add edi, 0x100
add edx, 0x80
cmp eax, 0xcb8b
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
jb 0x4587e9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x458948
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
xor edi, edi
add ecx, 0x3362c
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
xor esi, esi
mov edx, 1
mov ebx, 4
mov ecx, dword [esp + 0x18]
mov eax, edi
and eax, 1
mov ecx, dword [ecx + edx*4 + 0x28ce0]
mov ebp, eax
sub ecx, eax
add edx, edx
neg ebp
xor ecx, ebp
or edx, eax
shr ecx, 2
and ecx, 0x1ff
shr edi, 1
mov ebp, dword [ecx*4 + 0x422908]
add esi, ebp
dec ebx
jne 0x45896f
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
inc edi
mov dword [eax], esi
add eax, 4
cmp edi, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
jb 0x458963
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [edx + 0x3366c], 0x10
pop ebx
add esp, 0xc
ret
Function at 0x45a1c8
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
mov eax, dword [edi]
jbe 0x45a201
push ebx
xor ecx, ecx
mov ebx, eax
mov cl, byte [edx]
and ebx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x42310c]
xor eax, ecx
inc edx
dec esi
jne 0x45a1db
mov dword [edi], eax
pop ebx
pop edi
pop esi
ret 8
mov dword [edi], eax
pop edi
pop esi
ret 8
Function at 0x108b2058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x108b21a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x108b207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108b206a
add dl, dl
jne 0x108b2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108b20dc
xor eax, eax
add dl, dl
jne 0x108b2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108b217d
add dl, dl
jne 0x108b20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108b20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108b20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108b20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x108b20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x108b2075
mov eax, 1
add dl, dl
jne 0x108b20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108b20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108b20e1
sub eax, ebx
mov ebx, 1
jne 0x108b2128
mov ecx, 1
add dl, dl
jne 0x108b210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108b2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108b2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108b2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x108b213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108b214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108b2136
cmp eax, 0x7d00
jae 0x108b216d
cmp eax, 0x500
jb 0x108b2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108b2075
cmp eax, 0x7f
ja 0x108b2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108b2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x108b219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x108b2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10