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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.100118e0
add esp, 0xc
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
push 0x100215bc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x100289a0], 0
pop esi
jne 0x10002691
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x100289a0], eax
push 1
pop eax
leave
ret

Function at 0x10002696
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
xor esi, esi
push edi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x14], 0xc
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 1
call dword [0x10026310]
mov edi, eax
cmp edi, 1
jne 0x1000275c
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0x44
push eax
call dword [0x10027620]
mov eax, dword [ebp - 4]
mov word [ebp - 0x38], si
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x3c], 0x101
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push esi
push edi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, esi
je 0x1000275c
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [0x10027688]
push 4
push esi
push dword [ebp + 0xc]
call fcn.100118e0
add esp, 0xc
lea eax, [ebp + 8]
push esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x24]
mov edi, eax
call dword [0x10027688]
push dword [ebp - 0x20]
call dword [0x10027688]
push dword [ebp - 4]
call dword [0x10027688]
push dword [ebp - 8]
call dword [0x10027688]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x1000278c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.100118e0
add esp, 0xc
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
push 0x100215c8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x100289a4], 0
pop esi
jne 0x100027e9
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x100289a4], eax
push 1
pop eax
leave
ret
Function at 0x10002fc2
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
push edi
push 0x104
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.100118e0
add esp, 0xc
lea eax, [ebp - 0x23c]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x12c
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.100118e0
lea eax, [ebp - 0x23c]
push 5
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.10012190
and byte [ebp - 0x135], 0
push 0xc
call fcn.10012c1b
push 0xa
mov esi, eax
call fcn.10012c1b
add esp, 0x20
mov edi, eax
lea eax, [ebp - 0xc]
push 0xa
push edi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x138]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push dword [ebp - 4]
push str.JB__x
push dword [ebp + 8]
call fcn.10011f5b
push esi
call fcn.10012c29
push edi
call fcn.10012c29
add esp, 0x14
pop edi
pop esi
leave
ret
Function at 0x1000462d
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
xor esi, esi
push 0x104
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.100118e0
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push eax
call fcn.10011ee0
cmp byte [ebp + eax - 0x105], 0x5c
pop ecx
jne 0x1000468e
lea eax, [ebp - 0x104]
push eax
call fcn.10011ee0
and byte [ebp + eax - 0x105], 0
pop ecx
lea eax, [ebp - 0x104]
push 0x10021584
push eax
call fcn.10011e00
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [0x10026970]
cmp eax, 0xffffffff
jne 0x100046d8
lea eax, [ebp - 0x104]
push str...Usp10.dll
push eax
call fcn.10011e00
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [0x10026970]
cmp eax, 0xffffffff
je 0x10004749
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push esi
push esi
call edi
mov ebx, eax
push ebx
call fcn.1001262a
pop ecx
mov esi, eax
push esi
push ebx
call edi
push esi
call fcn.10011ee0
test eax, eax
pop ecx
je 0x10004749
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x5c
push esi
call fcn.10012320
pop ecx
test eax, eax
pop ecx
je 0x10004733
and byte [eax], 0
push 0x8001
call edi
push esi
mov ebx, eax
call fcn.10004428
pop ecx
push ebx
call edi
push esi
call fcn.10011ee0
pop ecx
lea esi, [esi + eax + 2]
jmp 0x1000473e
push esi
call fcn.10011ee0
pop ecx
lea esi, [esi + eax + 1]
push esi
call fcn.10011ee0
test eax, eax
pop ecx
jne 0x10004702
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000474e
Capabilities:
Check if file exists
Get common file path
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
xor ebx, ebx
push 0x104
mov esi, 0x100264bc
push ebx
push esi
call fcn.100118e0
push dword [ebp + 8]
push esi
call fcn.10011df0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100048c1
push 0x10026314
push esi
call fcn.10001e8b
push 0x12c
lea eax, [ebp - 0x12c]
push ebx
push eax
call fcn.100118e0
add esp, 0x14
lea eax, [ebp - 0x12c]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x12c]
push eax
call fcn.10011ee0
cmp byte [ebp + eax - 0x12d], 0x5c
pop ecx
jne 0x100047e5
lea eax, [ebp - 0x12c]
push eax
call fcn.10011ee0
pop ecx
mov byte [ebp + eax - 0x12d], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebx
push ebx
call edi
push eax
mov dword [ebp + 8], eax
call fcn.1001262a
pop ecx
mov esi, eax
push esi
push dword [ebp + 8]
call edi
push esi
call fcn.10011ee0
test eax, eax
pop ecx
je 0x1000485c
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x5c
push esi
call fcn.10012320
pop ecx
cmp eax, ebx
pop ecx
je 0x10004846
push 0x8001
mov byte [eax], bl
call edi
push esi
mov dword [ebp + 8], eax
call fcn.1000363c
pop ecx
push dword [ebp + 8]
call edi
push esi
call fcn.10011ee0
pop ecx
lea esi, [esi + eax + 2]
jmp 0x10004851
push esi
call fcn.10011ee0
pop ecx
lea esi, [esi + eax + 1]
push esi
call fcn.10011ee0
test eax, eax
pop ecx
jne 0x10004813
push 0x104
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.100118e0
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x230]
push str._smpr.dll
push eax
call fcn.10011f5b
add esp, 0x18
lea eax, [ebp - 0x230]
push eax
call dword [0x10026970]
cmp eax, 0xffffffff
pop edi
je 0x100048c1
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebx
mov dword [0x10026ad0], eax
call fcn.1000432e
pop ecx
push dword [0x10026ad0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
leave
ret
Function at 0x10004f9f
Capabilities:
Get file version info

Disassembly:
push esi
xor esi, esi
push edi
push esi
push dword [esp + 0x10]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, esi
je 0x10004fee
push ebx
push edi
call fcn.10012c1b
pop ecx
mov ebx, eax
push ebx
push edi
push esi
push dword [esp + 0x1c]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10004fe6
push 0x11
push str.SETHC.EXE
push edi
push ebx
call fcn.10001533
mov esi, eax
add esp, 0x10
neg esi
sbb esi, esi
neg esi
push ebx
call fcn.10012c29
pop ecx
pop ebx
mov eax, esi
pop edi
pop esi
ret
Function at 0x10009687
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
lea esi, [ecx + 0x5c]
push 0x40
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.1000a12e
mov byte [esi], 0x80
pop esi
ret

Function at 0x1000a1fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x1000ba5a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1000ba68
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x1000bb49
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x1001d614]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1001d614]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1001d614]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1001d614]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1001d614]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1001d614]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1001d614]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x1001d614]
xor eax, esi
inc edx
dec edi
jne 0x1000ba85
pop ebx
cmp dword [ebp + 0x10], 0
je 0x1000bb6a
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x1001d614]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x1000bb4f
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x1000bb70
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [esp + 0x10]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x1001d614]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov edi, esi
and edi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edi
pop edi
shr esi, 8
mov eax, dword [eax*4 + 0x1001d614]
xor eax, esi
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x1000c3b3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x1000c3e7
lea eax, [ebp + 8]
push 0
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000c3e2
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x1000c40f
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x1000c3f8
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.10011940
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
pop edi
div dword [ebp + 0xc]
pop esi
pop ebp
ret

Function at 0x1000d112
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x1000d1b3
cmp dword [esi + 4], 0xffffffff
jne 0x1000d1b3
push edi
lea edi, [esi + 0x140]
push edi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call fcn.10011ee0
lea eax, [eax + esi + 0x13f]
pop ecx
pop edi
mov cl, byte [eax]
cmp cl, 0x5c
je 0x1000d162
cmp cl, 0x2f
je 0x1000d162
and byte [eax + 2], 0
mov byte [eax + 1], 0x2f
cmp dword [ebp + 0x10], 1
jne 0x1000d17d
push dword [ebp + 8]
call fcn.1000a15f
cmp eax, 0xffffffff
pop ecx
jne 0x1000d17d
mov eax, 0x2000000
jmp 0x1000d1b8
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000c1e7
add esp, 0x10
test eax, eax
jne 0x1000d19b
mov eax, dword [ebp - 4]
jmp 0x1000d1b8
push eax
call fcn.1000c609
mov dword [esi], eax
pop ecx
neg eax
sbb eax, eax
and ax, 0xfe00
add eax, 0x200
jmp 0x1000d1b8
mov eax, 0x1000000
pop esi
leave
ret 0xc
Function at 0x1000d601
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [ebp + 8], 0
push ebx
push edi
mov ebx, 0x104
je 0x1000d675
push ebx
lea eax, [ebp - 0x208]
push dword [ebp + 8]
push eax
call fcn.100136da
lea eax, [ebp - 0x208]
push eax
call fcn.10011ee0
add esp, 0x10
test eax, eax
jbe 0x1000d655
mov cl, byte [ebp + eax - 0x209]
lea eax, [ebp + eax - 0x209]
cmp cl, 0x2f
je 0x1000d652
cmp cl, 0x5c
jne 0x1000d655
and byte [eax], 0
lea eax, [ebp - 0x208]
push eax
call fcn.1000a1fc
test al, al
pop ecx
jne 0x1000d675
lea eax, [ebp - 0x208]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [ebp + 0xc]
mov al, byte [edi]
test al, al
je 0x1000d72f
push esi
mov esi, edi
mov ecx, edi
cmp al, 0x2f
je 0x1000d68f
cmp al, 0x5c
jne 0x1000d691
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x1000d687
cmp esi, edi
je 0x1000d6c7
sub esi, edi
lea eax, [ebp - 0x208]
push esi
push edi
push eax
call fcn.10011940
and byte [ebp + esi - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.1000d601
add esp, 0x14
and byte [ebp - 0x104], 0
cmp dword [ebp + 8], 0
pop esi
je 0x1000d6e8
push ebx
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push eax
call fcn.100136da
add esp, 0xc
and byte [ebp - 1], 0
lea eax, [ebp - 0x104]
push eax
call fcn.10011ee0
sub ebx, eax
lea eax, [ebp + eax - 0x104]
push ebx
push edi
push eax
call fcn.100136da
and byte [ebp - 1], 0
lea eax, [ebp - 0x104]
push eax
call fcn.1000a1fc
add esp, 0x14
test al, al
jne 0x1000d72f
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop ebx
leave
ret
Function at 0x1000de44
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1000de67
mov eax, 0x200
jmp 0x1000dfd3
mov ecx, dword [ebp - 0x4c]
push ebx
push esi
push 1
mov edx, ecx
pop eax
xor ebx, ebx
and edx, eax
mov dword [ebp - 8], ebx
je 0x1000de7d
mov dword [ebp - 8], eax
test cl, 2
je 0x1000de86
or dword [ebp - 8], 2
test cl, 4
je 0x1000de8f
or dword [ebp - 8], 4
mov eax, ecx
and eax, 0x10
je 0x1000de9a
or dword [ebp - 8], 0x10
test cl, 0x20
je 0x1000dea3
or dword [ebp - 8], 0x20
cmp eax, ebx
je 0x1000dead
or byte [ebp - 5], 0x40
jmp 0x1000deb1
or byte [ebp - 5], 0x80
or byte [ebp - 5], 1
cmp edx, ebx
jne 0x1000debd
or byte [ebp - 6], 0x80
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [ebp - 0x10], eax
jbe 0x1000df58
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push edi
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 2]
push 2
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
push ebx
push ebx
push 0x24
push dword [ebp + 8]
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x14]
push 4
push eax
push dword [ebp + 8]
call edi
cmp word [ebp - 2], 0x54ad
jne 0x1000df58
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x10], ecx
jbe 0x1000df58
push ebx
push ebx
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x18]
push 4
push eax
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0x18]
cmp eax, 0x5a4d
je 0x1000df54
cmp eax, 0x454e
je 0x1000df54
cmp eax, 0x454c
je 0x1000df54
cmp eax, 0x4550
jne 0x1000df58
or byte [ebp - 6], 0x40
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x1000df64
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x1000df70
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x1000dfa3
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.1000ddde
push dword [ebp - 0x34]
mov dword [esi], eax
push dword [ebp - 0x38]
call fcn.1000ddde
push dword [ebp - 0x44]
mov dword [esi + 4], eax
push dword [ebp - 0x48]
call fcn.1000ddde
add esp, 0x18
mov dword [esi + 8], eax
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0x1000dfcf
lea eax, [ebp + 0xe]
push eax
lea eax, [ebp + 0xa]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.1000dd81
movzx eax, word [ebp + 0xa]
movzx ecx, word [ebp + 0xe]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
pop esi
xor eax, eax
pop ebx
pop edi
leave
ret
Function at 0x1000f43a
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push 1
xor edi, edi
pop eax
cmp ebx, eax
jl 0x1000f44f
cmp ebx, 8
jle 0x1000f451
xor eax, eax
mov esi, dword [esp + 0x10]
push str.bad_pack_level
push eax
push esi
call fcn.1000dfd6
lea ecx, [esi + 0x6af70]
lea eax, [esi + 0x6af78]
add esp, 0xc
cmp dword [ecx], edi
mov dword [eax], edi
jne 0x1000f482
mov dword [eax], 1
mov dword [ecx], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.100118e0
mov eax, ebx
add esp, 0xc
shl eax, 3
cmp ebx, 2
movzx ecx, word [eax + 0x1001db92]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax + 0x1001db90]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax + 0x1001db94]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax + 0x1001db96]
mov dword [esi + 0x6af94], eax
jg 0x1000f4e4
mov eax, dword [esp + 0x18]
or byte [eax], 4
jmp 0x1000f4f0
cmp ebx, 8
jl 0x1000f4f0
mov eax, dword [esp + 0x18]
or byte [eax], 2
lea ebx, [esi + 0x1af70]
push 0x10000
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
cmp eax, edi
mov dword [esi + 0x6af90], eax
je 0x1000f560
cmp eax, 0xffffffff
je 0x1000f560
cmp eax, 0x106
mov dword [esi + 0x6af8c], edi
jae 0x1000f532
push esi
call fcn.1000f737
pop ecx
mov dword [esi + 0x6af7c], edi
movzx eax, byte [ebx + edi]
mov ecx, dword [esi + 0x6af7c]
and eax, 0x7fff
and ecx, 0x3ff
shl ecx, 5
xor eax, ecx
inc edi
cmp edi, 2
mov dword [esi + 0x6af7c], eax
jb 0x1000f538
jmp 0x1000f570
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
ret
Function at 0x1000f862
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebp, ebp
xor edi, edi
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x1000fa7c
push ebx
mov ebx, 0x7fff
cmp eax, 3
jb 0x1000f8da
mov ecx, dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af7c]
and edx, 0x3ff
movzx eax, byte [ecx + esi + 0x1af72]
and eax, ebx
shl edx, 5
xor eax, edx
and ecx, ebx
mov dword [esi + 0x6af7c], eax
mov ebp, dword [esi + eax*4 + 0x4af70]
mov dword [esi + ecx*4 + 0x2af70], ebp
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebp, ebp
je 0x1000f916
mov eax, dword [esi + 0x6af84]
sub eax, ebp
cmp eax, 0x7efa
ja 0x1000f916
mov ecx, dword [esi + 0x6af90]
lea eax, [esi + 0x6afa0]
cmp dword [eax], ecx
jbe 0x1000f8ff
mov dword [eax], ecx
push ebp
push esi
call fcn.1000f574
mov edi, eax
mov eax, dword [esi + 0x6af90]
pop ecx
cmp edi, eax
pop ecx
jbe 0x1000f916
mov edi, eax
cmp edi, 3
jb 0x1000f9f3
lea eax, [edi - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.1000edac
sub dword [esi + 0x6af90], edi
add esp, 0xc
cmp edi, dword [esi + 0x6af98]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x6af90]
ja 0x1000f9ac
cmp eax, 3
jb 0x1000f9ac
dec edi
inc dword [esi + 0x6af84]
mov ecx, dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af7c]
movzx eax, byte [esi + ecx + 0x1af72]
and edx, 0x3ff
and eax, ebx
shl edx, 5
xor eax, edx
and ecx, ebx
mov dword [esi + 0x6af7c], eax
dec edi
mov ebp, dword [esi + eax*4 + 0x4af70]
mov dword [esi + ecx*4 + 0x2af70], ebp
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x1000f957
jmp 0x1000fa17
add dword [esi + 0x6af84], edi
mov eax, dword [esi + 0x6af84]
lea edx, [esi + 0x6af7c]
push str.Call_UPDATE_HASH___MIN_MATCH_3_more_times
lea ecx, [eax + esi]
push 1
push esi
xor edi, edi
movzx eax, byte [ecx + 0x1af70]
mov dword [edx], eax
and eax, 0x3ff
movzx ecx, byte [ecx + 0x1af71]
and ecx, ebx
shl eax, 5
xor ecx, eax
mov dword [edx], ecx
call fcn.1000dfd6
add esp, 0xc
jmp 0x1000fa1d
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.1000edac
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [esp + 0x14], eax
inc dword [esi + 0x6af84]
cmp dword [esp + 0x14], 0
je 0x1000fa5a
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x1000fa37
lea ecx, [eax + esi + 0x1af70]
jmp 0x1000fa39
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.1000eba4
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x1000fa6d
push esi
call fcn.1000f737
pop ecx
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x1000f88b
pop ebx
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x1000fa8f
lea ecx, [eax + esi + 0x1af70]
jmp 0x1000fa91
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.1000eba4
add esp, 0x10
pop edi
pop esi
pop ebp
ret
Function at 0x100105d4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x100105e2
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x100106c3
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x1001dbe0]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1001dbe0]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1001dbe0]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1001dbe0]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1001dbe0]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1001dbe0]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1001dbe0]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x1001dbe0]
xor eax, esi
inc edx
dec edi
jne 0x100105ff
pop ebx
cmp dword [ebp + 0x10], 0
je 0x100106e4
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x1001dbe0]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x100106c9
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x100106ea
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [esp + 0x10]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x1001dbe0]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov edi, esi
and edi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edi
pop edi
shr esi, 8
mov eax, dword [eax*4 + 0x1001dbe0]
xor eax, esi
pop esi
mov dword [ecx + 8], eax
ret