joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e4980
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xc]
call fcn.0046f770
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4e49f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x4e4b02
push 0
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 4]
push edx
push 0
push 2
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x4e4a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x4e4b02
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 4]
push edx
push 0
push 0
push 4
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4e4a5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x4e4b02
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x48]
add ecx, 8
call fcn.0044ecf0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
jmp 0x4e4a92
push 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0xc]
call fcn.00468f20
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x48]
add ecx, 8
call fcn.0044ed20
push eax
lea ecx, [ebp - 0xc]
call fcn.0046e100
movzx edx, al
test edx, edx
je 0x4e4afb
lea ecx, [ebp - 0xc]
call fcn.00468f00
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
call fcn.0040c0f0
push eax
push 0
mov ecx, dword [ebp - 0x2c]
call fcn.0040c130
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0049ceef
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4e4aeb
jmp 0x4e4b02
mov ecx, dword [ebp - 0x2c]
call fcn.0040c0f0
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4e4a84
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x4e4b12
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x1c], 0
je 0x4e4b22
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0xffffffff
je 0x4e4b32
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4
Function at 0x4e4b40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xc]
call fcn.0046f770
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4e4bac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x4e4cb1
push 0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
push edx
push 0
push 4
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x4e4be1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x4e4cb1
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
push edx
push 0
push 0
push 2
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4e4c14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x4e4cb1
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x44]
add ecx, 8
call fcn.0044ecf0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
jmp 0x4e4c44
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0xc]
call fcn.00468f20
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x44]
add ecx, 8
call fcn.0044ed20
push eax
lea ecx, [ebp - 0xc]
call fcn.0046e100
movzx edx, al
test edx, edx
je 0x4e4ca0
lea ecx, [ebp - 0xc]
call fcn.00468f00
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
call fcn.0040c0f0
push eax
push 0
mov ecx, dword [ebp - 0x28]
call fcn.0040c130
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0049fc60
add esp, 0xc
mov ecx, dword [ebp - 0x28]
call fcn.0040c0f0
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4e4c36
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x1c], 0
je 0x4e4cc1
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0xffffffff
je 0x4e4cd1
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x4e4cf6
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x44]
call fcn.004e4980
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4e4cf6
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4
Function at 0x4e5320
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524f35
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406b50
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e5382
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp - 0x18]
jmp 0x4e5470
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4e5457
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4e5457
lea eax, [ebp - 0x14]
push eax
call fcn.004e5220
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.0040b3b0
movzx ecx, al
test ecx, ecx
je 0x4e53e5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp - 0x1c]
jmp 0x4e5470
lea ecx, [ebp - 0x14]
call fcn.00477060
push eax
call fcn.004e5320
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4e541a
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp - 0x20]
jmp 0x4e5470
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4e5457
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4e5457
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp - 0x24]
jmp 0x4e5470
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4e5b60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], 0
mov eax, dword [0x564924]
and eax, 1
jne 0x4e5ba3
mov ecx, dword [0x564924]
or ecx, 1
mov dword [0x564924], ecx
mov ecx, 0x564920
call fcn.004070d0
push 0x52ac80
call fcn.004a0fec
add esp, 4
mov ecx, 0x564920
call fcn.0040b3b0
movzx edx, al
test edx, edx
jne 0x4e5bd5
push 0x564920
mov ecx, dword [ebp + 8]
call fcn.00406750
mov eax, dword [ebp - 0x214]
or eax, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
jmp 0x4e5c45
mov dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4e5bf9
jmp 0x4e5c26
lea edx, [ebp - 0x210]
push edx
mov ecx, 0x564920
call fcn.00407020
push 0x564920
call fcn.004e5480
add esp, 4
push str.drivers_
mov ecx, 0x564920
call fcn.004087b0
push 0x564920
mov ecx, dword [ebp + 8]
call fcn.00406750
mov eax, dword [ebp - 0x214]
or eax, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x4e6040
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52582e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x14], 0xffffffff
je 0x4e61f2
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 8
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00407640
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004e5130
add esp, 4
test eax, eax
je 0x4e61e3
lea ecx, [ebp - 0x18]
call fcn.004070d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004070d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004e5b60
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00404380
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004070b0
lea ecx, [ebp - 0x10]
call fcn.00477060
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.004e5090
add esp, 8
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x18]
call fcn.00404380
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004070b0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00407640
add esp, 0xc
mov dword [ebp - 0x48], eax
push 0
mov ecx, dword [ebp - 0x48]
call fcn.00477060
push eax
lea ecx, [ebp - 0x10]
call fcn.00477060
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x28]
call fcn.004070b0
cmp dword [ebp - 0x24], 0
je 0x4e61cb
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea edx, [ebp - 0x18]
push edx
call fcn.00406750
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00407640
add esp, 0xc
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x58]
push edx
mov byte [ebp - 4], 7
call fcn.004e59f0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.004070b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004070b0
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x14], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4e6af0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523f5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
sub ecx, 3
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 9
ja case.0x4e6b3c.1
mov edx, dword [ebp - 0x20]
jmp dword [edx*4 + 0x4e6cb0]
mov eax, dword [ebp + 0x14]
mov word [eax], 8
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.00474180
mov ecx, eax
call fcn.00477060
mov esi, eax
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.00406ac0
lea edx, [esi + eax*2]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], eax
jmp case.0x4e6b3c.1
mov edx, dword [ebp + 0x14]
mov word [edx], 0xb
mov eax, dword [ebp + 0x14]
mov word [eax + 8], 0
jmp case.0x4e6b3c.1
mov ecx, dword [ebp + 0x14]
mov word [ecx], 0x15
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.00474180
mov ecx, eax
call fcn.00477060
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4e6bfc
mov eax, dword [ebp + 0x14]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 0x14]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4e6c03
mov dword [ebp - 0x14], 0x80004005
jmp case.0x4e6b3c.1
mov ecx, dword [ebp + 0x14]
mov word [ecx], 0x13
mov edx, dword [ebp + 0x14]
mov dword [edx + 8], 0x80
jmp case.0x4e6b3c.1
mov eax, dword [ebp + 0x14]
mov word [eax], 0x40
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp + 0x14]
mov dword [edx + 8], 0
jmp case.0x4e6b3c.1
mov eax, dword [ebp + 0x14]
mov word [eax], 0x40
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp + 0x14]
mov dword [edx + 8], 0
jmp case.0x4e6b3c.1
mov eax, dword [ebp + 0x14]
mov word [eax], 0x40
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp + 0x14]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x14]
jmp 0x4e6c9c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4e8c80
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52666b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xcc]
push ecx
mov edx, dword [ebp - 0x18]
mov al, byte [edx + 0xc8]
push eax
lea ecx, [ebp - 0x11]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0x38
call fcn.00477060
push eax
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x20
call fcn.00477060
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x30]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [eax + 0x28]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 0x18
call fcn.00477060
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x3c
call fcn.004f4240
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x14], ecx
jmp 0x4e8d33
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 0
jne 0x4e8d54
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x1c]
call fcn.00466790
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1c]
call fcn.004e7cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f79d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call fcn.004a31ff
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.004f78d0
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4f82b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x100
mov eax, dword [ebp + 0xc]
or eax, 0x100
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
shl ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0x10]
and edx, dword [ebp - 8]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
shr eax, 8
add edx, eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + edx*2]
mov eax, dword [ebp + 0xc]
shr eax, 7
and eax, 1
neg eax
and eax, 0x7ff
xor edx, eax
sar edx, 4
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
add eax, dword [ecx + edx*4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
shl ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
xor edx, dword [ebp + 0xc]
not edx
and edx, dword [ebp - 8]
mov dword [ebp - 8], edx
cmp dword [ebp + 0xc], 0x10000
jb 0x4f82cf
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4f8340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
or eax, 0x100
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
shr ecx, 8
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp + 0xc]
shr ecx, 7
and ecx, 1
neg ecx
and ecx, 0x7ff
xor eax, ecx
sar eax, 4
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [edx + eax*4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
shl edx, 1
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0x10000
jb 0x4f8356
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4f9230
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
sar ecx, 4
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
xor edx, 0x7ff
sar edx, 4
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 2]
sar eax, 4
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + eax*4]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
xor ecx, 0x7ff
sar ecx, 4
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0
jmp 0x4f92ab
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 8
jae 0x4f92ec
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jb 0x4f92be
jmp 0x4f937b
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 3
mov edx, dword [ebp + 0xc]
shl edx, 3
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*2 + 4]
push ecx
call fcn.004f8250
add esp, 0x10
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + edx*4], eax
jmp 0x4f92a2
jmp 0x4f92f7
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x10
jae 0x4f933b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jb 0x4f9307
jmp 0x4f937b
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 8]
sub edx, 8
push edx
push 3
mov eax, dword [ebp + 0xc]
shl eax, 3
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2 + 0x104]
push edx
call fcn.004f8250
add esp, 0x10
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
mov dword [edx + ecx*4], eax
jmp 0x4f92ee
jmp 0x4f9346
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jae 0x4f937b
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 8]
sub eax, 0x10
push eax
push 8
mov ecx, dword [ebp + 8]
add ecx, 0x204
push ecx
call fcn.004f8250
add esp, 0x10
add eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + edx*4], eax
jmp 0x4f933d
mov esp, ebp
pop ebp
ret

Function at 0x4fb6b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x100
mov eax, dword [ebp + 0x10]
or eax, 0x100
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x14]
shl ecx, 1
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp + 0x10]
shr edx, 7
and edx, 1
push edx
mov eax, dword [ebp + 0x14]
and eax, dword [ebp - 4]
add eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
shr ecx, 8
add eax, ecx
mov edx, dword [ebp + 0xc]
lea eax, [edx + eax*2]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004fb410
add esp, 0xc
mov edx, dword [ebp + 0x10]
shl edx, 1
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x14]
xor eax, dword [ebp + 0x10]
not eax
and eax, dword [ebp - 4]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0x10000
jb 0x4fb6c6
mov esp, ebp
pop ebp
ret
Function at 0x501960
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4c], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], 0
mov eax, dword [ebp + 8]
push eax
call fcn.005015d0
add esp, 4
mov dword [ebp - 4], 0
jmp 0x5019a2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x100
jae 0x5019f5
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0
jmp 0x5019c3
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jge 0x5019e6
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp - 8]
and edx, 1
sub edx, 1
not edx
and edx, 0xedb88320
xor ecx, edx
mov dword [ebp - 8], ecx
jmp 0x5019ba
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + eax*4 + 0x70], edx
jmp 0x501999
mov esp, ebp
pop ebp
ret

Function at 0x5032c0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x5032d8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x50332b
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x5032f9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x50331c
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor eax, ecx
mov dword [ebp - 8], eax
jmp 0x5032f0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx*4 + 0x565c60], eax
jmp 0x5032cf
jmp 0x503336
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x800
jae 0x50336e
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x565860]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x565c60]
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x565c60], edx
jmp 0x50332d
mov dword [0x5643c8], fcn.00503120
call fcn.00502f50
test eax, eax
jne 0x50338b
mov dword [0x5643c8], 0x503230
mov esp, ebp
pop ebp
ret