joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419410
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
xor eax, eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x17220], eax
mov dword [ebx + 0x17224], eax
mov dword [esp + 4], eax
jle 0x419495
push ebp
push esi
push edi
lea ebp, [ebx + 0xb220]
cmp dword [ebp], 0
je 0x41947e
lea eax, [ebx + 0x17224]
push eax
lea eax, [ebx + 0xaa20]
push eax
mov ecx, ebp
call fcn.00417d20
cmp dword [ebp], 0
jne 0x41947e
mov eax, dword [ebx + 0x17220]
test eax, eax
je 0x41947e
dec dword [esp + 0x10]
lea esi, [eax + eax*2 + 0x58e]
shl esi, 5
add esi, ebx
mov edi, ebp
mov ecx, 0x18
rep movsd dword es:[edi], dword [esi]
dec dword [ebx + 0x17220]
sub ebp, 0x60
mov eax, dword [esp + 0x10]
inc eax
add ebp, 0x60
cmp eax, dword [ebx + 0x17220]
mov dword [esp + 0x10], eax
jl 0x419431
pop edi
pop esi
pop ebp
mov ecx, ebx
pop ebx
add esp, 4
jmp fcn.00418570
Function at 0x41a240
Capabilities:
Get common file path

Disassembly:
sub esp, 0x304
mov eax, dword [0x5c5bf0]
xor eax, esp
mov dword [esp + 0x300], eax
push esi
lea eax, [esp + 4]
push eax
push 0xfe
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x108]
push str._sSave
push edx
call fcn.00547a2a
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x214]
push str._sSaveRecords.sav
push ecx
call fcn.00547a2a
add esp, 0x18
lea edx, [esp + 0x104]
push edx
mov ecx, 0x5c8360
call fcn.00450550
push 1
lea eax, [esp + 0x208]
push eax
mov ecx, 0x5c8360
call fcn.00450440
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a2ed
push 0x30
push str.SaveGame___error_
push str.Couldt_save_game_
call fcn.0043d970
add esp, 0xc
pop esi
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.00547aa7
add esp, 0x304
ret
push esi
push 1
push 0x50c
push 0x5c88d8
mov ecx, 0x5c8360
call fcn.00450780
push esi
mov ecx, 0x5c8360
call fcn.004504b0
mov ecx, dword [esp + 0x304]
pop esi
xor ecx, esp
call fcn.00547aa7
add esp, 0x304
ret
Function at 0x43c8a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x144
mov eax, dword [0x5c5bf0]
xor eax, esp
mov dword [esp + 0x140], eax
lea eax, [esp + 0x40]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x40]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43c8d0
mov ecx, dword [0x566844]
mov edx, dword [0x566848]
mov dword [eax], ecx
mov cx, word [0x56684c]
mov dword [eax + 4], edx
mov edx, dword [0x5c8e2c]
push esi
push edx
mov word [eax + 8], cx
lea eax, [esp + 8]
push 0x566840
push eax
call fcn.00547a2a
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 8]
push edx
push str.Mode
push str.Video
call esi
mov ecx, dword [0x5c8584]
add ecx, 0xffffff9c
mov eax, 0xd41d41d5
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 6
push ecx
lea eax, [esp + 8]
push 0x566840
push eax
call fcn.00547a2a
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 8]
push edx
push str.Distance
push str.Video
call esi
mov eax, dword [0x5c8de4]
push eax
lea ecx, [esp + 8]
push 0x566840
push ecx
call fcn.00547a2a
add esp, 0xc
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 8]
push eax
push str.TexDetails
push str.Video
call esi
mov ecx, dword [0x5c8588]
push ecx
lea edx, [esp + 8]
push 0x566840
push edx
call fcn.00547a2a
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 8]
push ecx
push str.Shadows
push str.Video
call esi
mov edx, dword [0x5c8de8]
push edx
lea eax, [esp + 8]
push 0x566840
push eax
call fcn.00547a2a
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 8]
push edx
push str.Glow
push str.Video
call esi
mov eax, dword [0x5c8e34]
push eax
lea ecx, [esp + 8]
push 0x566840
push ecx
call fcn.00547a2a
add esp, 0xc
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 8]
push eax
push str.Blur
push str.Video
call esi
mov ecx, dword [0x5c8e24]
push ecx
lea edx, [esp + 8]
push 0x566840
push edx
call fcn.00547a2a
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 8]
push ecx
push str.Master
push str.Audio
call esi
mov edx, dword [0x5c88d0]
push edx
lea eax, [esp + 8]
push 0x566840
push eax
call fcn.00547a2a
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 8]
push edx
push str.Music
push str.Audio
call esi
mov eax, dword [0x5c8e20]
push eax
lea ecx, [esp + 8]
push 0x566840
push ecx
call fcn.00547a2a
add esp, 0xc
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 8]
push eax
push str.Effects
push str.Audio
call esi
mov ecx, dword [0x5c965c]
push ecx
lea edx, [esp + 8]
push 0x566840
push edx
call fcn.00547a2a
add esp, 0xc
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 8]
push ecx
push str.Profiles
push str.Misc
call esi
mov ecx, dword [esp + 0x144]
pop esi
xor ecx, esp
call fcn.00547aa7
add esp, 0x144
ret
Function at 0x4404a0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x184
mov eax, dword [0x5c5bf0]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov edx, edi
sub edx, 0x567128
lea esi, [edi + 0xa0ac]
add edx, 0xa05c
mov ebx, 0xa
mov eax, 0x567128
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4404d8
mov dword [esi], 0
add edx, 0x74
add esi, 0x74
sub ebx, 1
jne 0x4404d3
lea eax, [esp + 0x10]
push eax
xor esi, esi
push str.Save_Profile.sav
mov dword [edi + 0x9dd4], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x440565
lea ebp, [edi + 0x9dd8]
test byte [esp + 0x10], 0x10
jne 0x44053b
lea ecx, [esp + 0x3c]
push ecx
push str.Save__s
push ebp
call fcn.00547a2a
inc esi
add esp, 0xc
add ebp, 0x40
cmp esi, 0xa
je 0x44054b
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x440518
test esi, esi
je 0x440565
mov dword [edi + 0xa534], 1
mov dword [0x5ab3f4], 0
jmp 0x440579
mov dword [edi + 0xa534], 0
mov dword [0x5ab3f4], 0xffffffff
mov dword [edi + 0x9dd4], 0
test esi, esi
jbe 0x440618
lea ebx, [edi + 0x9dd8]
mov ebp, esi
push 0
push 1
push ebx
mov ecx, 0x5c8360
call fcn.00450830
mov esi, eax
cmp esi, 0xffffffff
je 0x44060c
push esi
push 1
push 0x10
lea eax, [esp + 0x15c]
push eax
mov ecx, 0x5c8360
call fcn.00450720
push esi
mov ecx, 0x5c8360
call fcn.004504b0
mov edx, dword [edi + 0x9dd4]
imul edx, edx, 0x74
lea ecx, [esp + 0x150]
lea edx, [edx + edi + 0xa05c]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4405e2
mov eax, dword [edi + 0x9dd4]
mov ecx, eax
imul ecx, ecx, 0x74
inc eax
lea ecx, [ecx + edi + 0xa058]
mov dword [edi + 0x9dd4], eax
mov dword [ecx + 0x54], 1
add ebx, 0x40
sub ebp, 1
jne 0x440593
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00547aa7
add esp, 0x184
ret
Function at 0x440760
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
mov eax, dword [0x5c5bf0]
xor eax, esp
mov dword [esp + 0x204], eax
cmp dword [0x5ab3f4], 0xffffffff
push edi
mov edi, ecx
je 0x440877
push esi
lea eax, [esp + 0xc]
push eax
push 0xfe
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [0x5ab3f4]
shl ecx, 6
lea edx, [ecx + edi + 0x9dd8]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x114]
push 0x56718c
push ecx
call fcn.00547a2a
add esp, 0x10
push 1
lea edx, [esp + 0x110]
push edx
mov ecx, 0x5c8360
call fcn.00450440
mov esi, eax
cmp esi, 0xffffffff
jne 0x440806
push 0
push str.SaveProfile___error_
push str.Couldt_save_profile_
call fcn.0043d970
add esp, 0xc
pop esi
pop edi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.00547aa7
add esp, 0x208
ret
push esi
push 1
push 0x10
push str.Player
mov ecx, 0x5c8360
mov dword [esp + 0x18], 0
call fcn.00450780
push esi
push 1
push 4
lea eax, [esp + 0x14]
push eax
mov ecx, 0x5c8360
call fcn.00450780
push esi
push 1
push 0xdc
push 0x5ab448
mov ecx, 0x5c8360
call fcn.00450780
push esi
push 1
push 0x40
push 0x68dc58
mov ecx, 0x5c8360
call fcn.00450780
push esi
mov ecx, 0x5c8360
call fcn.004504b0
mov dword [edi + 0xa778], 1
pop esi
mov ecx, dword [esp + 0x208]
pop edi
xor ecx, esp
call fcn.00547aa7
add esp, 0x208
ret
Function at 0x445800
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x308
mov eax, dword [0x5c5bf0]
xor eax, esp
mov dword [esp + 0x304], eax
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0x9dd4], 0xa
push edi
jne 0x44584e
lea eax, [esi + 0x9dd8]
push eax
mov ecx, 0x5c8360
mov dword [0x5ab3f4], ebp
call sub.KERNEL32.dll_DeleteFileA
mov ecx, esi
call fcn.004404a0
mov dword [0x5ab3f4], ebp
mov dword [esi + 0x9dd4], ebp
mov ecx, dword [esi + 0x9dd4]
lea edx, [esp + 0x10]
push edx
push 0xfe
mov dword [0x5ab3f4], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x114]
push str._sSave
push ecx
call fcn.00547a2a
mov eax, dword [0x5c965c]
inc eax
push eax
lea edx, [esp + 0x20]
push edx
mov dword [0x5c965c], eax
lea eax, [esp + 0x224]
push str._sSaveProfile_02d.sav
push eax
call fcn.00547a2a
add esp, 0x1c
lea ecx, [esp + 0x110]
push ecx
mov ecx, 0x5c8360
call fcn.00450550
push 1
lea edx, [esp + 0x214]
push edx
mov ecx, 0x5c8360
call fcn.00450440
mov edi, eax
cmp edi, 0xffffffff
jne 0x445900
push 0x30
push str.CreateNewProfile___error_
push str.Couldt_create_new_profile_
call fcn.0043d970
add esp, 0xc
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x304]
xor ecx, esp
call fcn.00547aa7
add esp, 0x308
ret
push 0x40
push ebp
push 0x68dc58
call fcn.005479b0
push 0xdc
push ebp
push 0x5ab448
call fcn.005479b0
add esp, 0x18
push edi
push 1
push 0x10
push str.Player
mov ecx, 0x5c8360
mov dword [0x5ab4f0], 0xffffffff
mov dword [0x5ab514], 1
mov dword [esp + 0x1c], 1
call fcn.00450780
push edi
push 1
push 4
lea eax, [esp + 0x18]
push eax
mov ecx, 0x5c8360
call fcn.00450780
push edi
push 1
push 0xdc
push 0x5ab448
mov ecx, 0x5c8360
call fcn.00450780
push edi
push 1
push 0x40
push 0x68dc58
mov ecx, 0x5c8360
call fcn.00450780
push edi
mov ecx, 0x5c8360
call fcn.004504b0
call fcn.0043c8a0
inc dword [esi + 0x9dd4]
mov ecx, esi
mov dword [esi + 0xa778], ebp
call fcn.004404a0
mov ecx, dword [esp + 0x310]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00547aa7
add esp, 0x308
ret
Function at 0x450720
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x45077b
cmp eax, 0x3e8
jb 0x450758
cmp eax, 0x1770
jb 0x45073e
sub eax, 0x1770
jmp 0x450758
cmp eax, 0x1388
jb 0x45074c
sub eax, 0x1388
jmp 0x450758
cmp eax, 0xfa0
jb 0x45077b
sub eax, 0xfa0
mov eax, dword [ecx + eax*4 + 0x24]
test eax, eax
je 0x45077b
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.00549354
add esp, 0x10
ret 0x10
xor eax, eax
ret 0x10

Function at 0x450780
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4507a9
mov eax, dword [ecx + eax*4 + 0x24]
test eax, eax
je 0x4507a9
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.00549935
add esp, 0x10
ret 0x10
Function at 0x473eed
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 0x581510
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x473f5b
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 0x473f52
cmp dword [ebp - 0xc], 4
jne 0x473f52
cmp dword [ebp - 0x10], edi
je 0x473f52
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5b6f28], edi
xor eax, eax
jmp 0x473f9a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x5b6f28], edi
jge 0x473f95
lea eax, [ebp - 0x34]
push eax
mov dword [0x5b6f28], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x473f95
cmp word [ebp - 0x14], 5
jb 0x473f95
call fcn.00473ec8
test eax, eax
je 0x473f95
emms
mov dword [0x5b6f28], 1
mov eax, dword [0x5b6f28]
pop edi
leave
ret

Function at 0x474a2e
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 0x581510
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x474a85
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 0x474a85
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x474a85
xor eax, eax
inc eax
jmp 0x474a87
xor eax, eax
leave
ret 0x10
Function at 0x48c34b
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x48c36c
mov eax, 0x8876086c
jmp 0x48c45f
cmp dword [ebp + 0x7c], esi
je 0x48c3ee
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x48c3ce
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.00549c40
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x48c3ee
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x48c407
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x48c44d
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x48c44d
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x48c44d
cmp eax, esi
je 0x48c45a
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x48c45d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x48c45f
mov dword [edi + 8], esi
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x49cf31
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 0x49d052
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 0x49d036
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 0x49cf88
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 0x49cf66
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x49d31e
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 0x49d465
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 0x49d440
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 0x49d387
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 0x49d35e
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x49d592
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 0x49d6d8
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 0x49d6b3
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 0x49d5fb
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 0x49d5d2
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x49d6e1
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 0x49d82b
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 0x49d806
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 0x49d74a
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 0x49d721
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret