joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e0600
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push edi
push esi
push ebx
xor esi, esi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ce8
xor eax, eax
push ebp
push 0x4e0816
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4e07cc
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x419c20]
call fcn.0041ee78
mov esi, eax
push 0
push 0
mov eax, esi
call fcn.0041e97c
mov dl, 1
mov eax, dword [0x419d10]
call fcn.004039c8
mov edi, eax
push 0
push 0
mov eax, edi
call fcn.0041e97c
push 0
push 0
mov eax, edi
call fcn.0041e97c
mov eax, esi
call fcn.0041e990
push edx
push eax
mov eax, edi
call fcn.0041e9e0
mov eax, edi
call fcn.0041e990
mov ecx, eax
mov edx, dword [edi + 4]
mov eax, esi
call fcn.0041eb88
push 0
push 0
mov eax, edi
call fcn.0041e97c
mov eax, esi
call fcn.004039f8
mov dword [ebp - 0x14], 0x10
mov esi, dword [edi + 4]
mov eax, dword [ebp - 8]
call fcn.00404848
push 0xf0000020
push 1
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call sub.advapi32.dll_CryptAcquireContextA
or eax, eax
je 0x4e079d
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x8003
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x4e0792
mov eax, edi
push 0
call fcn.0041e990
push eax
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CryptHashData
or eax, eax
je 0x4e0789
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x94]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CryptGetHashParam
or eax, eax
je 0x4e0789
mov ebx, dword [ebp - 0x14]
dec ebx
or ebx, ebx
jl 0x4e0789
lea esi, [ebp - 0x94]
inc ebx
lea edx, [ebp - 0xa0]
lea eax, [ebp - 0x98]
push eax
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0xa0], eax
xor ecx, ecx
mov byte [ebp - 0x9c], 0
mov eax, 0x4e082c
call fcn.0040a86c
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 8]
call fcn.00404b08
mov eax, dword [ebp - 8]
inc esi
dec ebx
jne 0x4e074a
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CryptDestroyHash
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CryptReleaseContext
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea edx, [ebp - 0xa4]
call fcn.0040931c
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 8]
call fcn.0040489c
mov eax, edi
call fcn.004039f8
xor eax, eax
pop ecx
pop edx
pop edx
mov dword fs:[eax], ecx
jmp 0x4e07ea
pop edx
pop eax
pop ecx
xor eax, eax
mov dword fs:[eax], edx
push 0x4e081d
lea eax, [ebp - 0xa4]
call fcn.00404848
lea eax, [ebp - 0x98]
call fcn.00404848
lea eax, [ebp - 4]
call fcn.00404848
ret
Function at 0x4e0d60
Capabilities:
Get file system object information

Disassembly:
add esp, 0xfffffea0
cmp dword [0x547608], 0
jne 0x4e0dc5
call sub.kernel32.dll_GetVersion
shr eax, 0x20
setne byte [0x547600]
push 0x4e0dcc
push 0x4e0de0
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
or eax, eax
je 0x4e0da5
push 0x547608
push 0x54760c
call eax
jmp 0x4e0dc5
push 0x4011
push 0x160
lea eax, [esp + 8]
push eax
push 0x10
push 0x4e0de0
call sub.shell32.dll_SHGetFileInfoA
mov dword [0x547608], eax
sub esp, 0xfffffea0
ret

Function at 0x4e15c4
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, esp
sub esp, 0xc
push ebx
push esi
push ebp
mov dword [edi - 4], eax
mov eax, dword [edi - 4]
call fcn.00404ce8
xor eax, eax
push edi
push 0x4e165e
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
call fcn.004e119c
mov esi, eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [edi - 4]
call fcn.00404cf8
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebp, eax
mov eax, esi
call fcn.004e11b4
cmp ebp, 0xffffffff
je 0x4e1648
mov word [edi - 0xa], 0
lea eax, [edi - 8]
push 0
push eax
push 2
lea eax, [edi - 0xa]
push eax
push ebp
call sub.kernel32.dll_ReadFile_1
push ebp
call sub.kernel32.dll_CloseHandle_1
cmp dword [edi - 8], 2
jne 0x4e1648
cmp word [edi - 0xa], 0xfeff
jne 0x4e1648
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1665
lea eax, [edi - 4]
call fcn.00404848
ret

Function at 0x4e16b4
Capabilities:
Read .ini file

Disassembly:
push edi
mov edi, esp
add esp, 0xffffffe8
push ebx
push ebp
push esi
mov ebp, edx
xor ebx, ebx
mov dword [edi - 0xc], ebx
mov dword [edi - 0x10], ebx
mov dword [edi - 0x14], ebx
mov dword [edi - 4], ecx
mov ebx, eax
xor eax, eax
push edi
push 0x4e1819
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004e119c
mov dword [edi - 0x18], eax
mov eax, 0x8000
call fcn.004027d8
mov dword [edi - 8], eax
push edi
xor eax, eax
push 0x4e17d8
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
xor eax, eax
push 0x4e17c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi - 4]
call fcn.0041d2fc
xor eax, eax
push edi
push 0x4e17aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [edi - 0x10]
mov edx, dword [ebx + 4]
call fcn.004050d0
lea eax, [edi - 0x14]
mov edx, ebp
call fcn.004050d0
mov eax, dword [edi - 0x10]
call fcn.004050e0
push eax
push 0x8000
mov eax, dword [edi - 8]
push eax
push 0
push 0
mov eax, dword [edi - 0x14]
call fcn.004050e0
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
or eax, eax
je 0x4e1794
mov ebx, dword [edi - 8]
jmp 0x4e178e
mov eax, ebx
lea edx, [edi - 0xc]
call fcn.004059d8
mov eax, dword [edi - 4]
mov ecx, dword [eax]
mov edx, dword [edi - 0xc]
call dword [ecx + 0x38]
push ebx
call sub.kernel32.dll_lstrlenW
inc eax
add eax, eax
add ebx, eax
cmp word [ebx], 0
jne 0x4e176e
pop edx
pop ecx
xor eax, eax
pop ecx
mov dword fs:[eax], edx
push 0x4e17b1
mov eax, dword [edi - 4]
call fcn.0041d3b8
ret
Function at 0x4e1828
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xffc
push eax
add esp, 0xffffffec
push edi
push ebx
xor ebx, ebx
mov edi, eax
xor eax, eax
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
push ebp
mov ebx, edx
push 0x4e1948
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004e119c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.0040489c
push ebp
xor edx, edx
push 0x4e1904
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
mov edx, ebx
call fcn.004050d0
lea eax, [ebp - 8]
mov edx, esi
call fcn.004050d0
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
call fcn.004050d0
lea edx, [ebp - 0x10]
mov edx, dword [edi + 4]
call fcn.004050d0
mov eax, dword [ebp - 0x10]
call fcn.004050e0
push eax
lea eax, [ebp - 0x1014]
push 0x1000
push eax
mov eax, dword [ebp - 0xc]
call fcn.004050e0
push eax
mov eax, dword [ebp - 8]
call fcn.004050e0
push eax
mov eax, dword [ebp - 4]
call fcn.004050e0
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
test eax, eax
je 0x4e18fa
lea eax, [ebp - 0x1014]
push eax
call sub.kernel32.dll_lstrlenW
lea edx, [ebp - 0x1014]
mov ecx, eax
mov eax, dword [ebp + 8]
call fcn.0040499c
pop edx
xor eax, eax
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e1925
mov eax, dword [ebp - 0x14]
call fcn.004e11b4
pop edx
xor eax, eax
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e194f
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404f84
ret

Function at 0x4e4a28
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov byte [esp], 0
mov ebx, eax
mov eax, 0xff
push eax
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov ecx, pe_nt_image_headers32
mov eax, ebx
mov edx, esp
call fcn.00404ab0
add esp, 0x100
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404cf8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4e4a75
test al, 0x10
jne 0x4e4a79
pop ebx
xor eax, eax
ret
mov al, 1
pop ebx
ret
Function at 0x4e6e24
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
push ebp
mov ebp, ecx
push edi
mov edi, edx
mov dword [esi - 0x14], ebx
push esi
mov ebx, eax
xor eax, eax
push 0x4e6f11
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi - 0xc]
push eax
lea eax, [esi - 8]
push 0
push eax
push 0
mov eax, edi
call fcn.00404cf8
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
or eax, eax
sete byte [esi - 1]
cmp byte [esi - 1], 0
je 0x4e6efb
mov eax, dword [esi - 0xc]
call fcn.004027d8
mov dword [esi - 0x10], eax
push esi
xor eax, eax
push 0x4e6ef4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi - 0xc]
push eax
mov eax, dword [esi - 0x10]
push eax
push 0
push 0
mov eax, edi
call fcn.00404cf8
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
or eax, eax
sete byte [esi - 1]
cmp byte [esi - 1], 0
je 0x4e6ede
mov eax, ebp
mov edx, dword [eax]
call dword [edx + 0x44]
mov ebx, dword [esi - 0x10]
jmp 0x4e6ed9
lea edx, [esi - 0x14]
mov edx, ebx
call fcn.00404a38
mov edx, dword [esi - 0x14]
mov eax, ebp
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
call fcn.0040a0d0
inc eax
add ebx, eax
cmp byte [ebx], 0
jne 0x4e6ebb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6efb
mov eax, dword [esi - 0x10]
call fcn.004027f8
ret
pop edx
xor eax, eax
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6f18
lea eax, [esi - 0x14]
call fcn.00404848
ret
Function at 0x4e7028
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
mov ebx, edx
push edi
mov edi, eax
push ebp
mov esi, ecx
xor eax, eax
push 0x4e71b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404f6c
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push 0
push eax
push 0
mov eax, ebx
call fcn.004050e0
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
or eax, eax
jne 0x4e714b
mov eax, dword [ebp - 4]
dec eax
sub eax, 2
jae 0x4e711b
cmp dword [ebp - 8], 0
jbe 0x4e7179
mov edx, dword [ebp - 8]
mov eax, esi
shr edx, 1
call fcn.00405454
lea eax, [ebp - 8]
push eax
mov eax, dword [esi]
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, ebx
call fcn.004050e0
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4e70e2
mov eax, dword [esi]
call fcn.004050e0
push eax
call sub.kernel32.dll_lstrlenW
mov edx, eax
mov eax, esi
call fcn.00405454
jmp 0x4e7179
mov eax, esi
xor edx, edx
call fcn.00405454
lea eax, [ebp - 0x10]
mov ecx, 0x4e71cc
mov edx, ebx
call fcn.0040515c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00404ac8
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4084f4]
call fcn.0040cff0
call fcn.004041c4
jmp 0x4e7179
lea eax, [ebp - 0x18]
mov ecx, 0x4e71f8
mov edx, ebx
call fcn.0040515c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.00404ac8
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x4084f4]
call fcn.0040cff0
call fcn.004041c4
jmp 0x4e7179
lea eax, [ebp - 0x20]
mov ecx, 0x4e7224
mov edx, ebx
call fcn.0040515c
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.00404ac8
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x4084f4]
call fcn.0040cff0
call fcn.004041c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e71be
lea eax, [ebp - 0x20]
call fcn.00404f6c
lea eax, [ebp - 0x1c]
call fcn.00404848
lea eax, [ebp - 0x18]
call fcn.00404f6c
lea eax, [ebp - 0x14]
call fcn.00404848
lea eax, [ebp - 0x10]
call fcn.00404f6c
lea eax, [ebp - 0xc]
call fcn.00404848
ret
Function at 0x4ec0bc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor esi, esi
push ebp
push 0x4ec149
push dword fs:[esi]
mov dword fs:[esi], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00409f04
xor ebx, ebx
mov edx, dword [ebp - 0xc]
mov eax, 0x4ec160
call fcn.00404e3c
mov esi, eax
or esi, esi
jle 0x4ec133
mov eax, dword [ebp - 0xc]
call fcn.00404b00
mov ecx, eax
lea edx, [esi + 1]
sub ecx, esi
lea eax, [ebp - 0xc]
call fcn.00404d98
mov eax, dword [ebp - 0xc]
call fcn.00404b00
mov ecx, eax
lea eax, [ebp - 5]
mov edx, dword [ebp - 0xc]
call fcn.0040a18c
lea eax, [ebp - 5]
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
sete bl
pop edx
pop eax
pop ecx
xor eax, eax
mov dword fs:[eax], edx
push 0x4ec150
lea eax, [ebp - 0xc]
call fcn.00404848
ret

Function at 0x4ec164
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x11c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ec24a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x11c]
mov eax, ebx
call fcn.00409df0
lea eax, [ebp - 0x11c]
mov edx, 0x4ec268
call fcn.00404b08
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
call fcn.0040a168
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
or eax, eax
je 0x4ec231
xor eax, eax
push ebp
push 0x4ec20d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
imul dword [ebp - 0xc]
imul dword [ebp - 0x14]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
pop eax
pop ecx
xor ecx, ecx
pop edx
mov dword fs:[ecx], eax
jmp 0x4ec231
pop edx
pop ecx
xor eax, eax
pop ecx
mov dword fs:[eax], edx
push 0x4ec251
lea eax, [ebp - 0x11c]
call fcn.00404848
ret
Function at 0x4ec3a0
Capabilities:
Get disk information

Disassembly:
push ebx
mov ebx, esp
sub esp, 0x10
push ebp
xor ebp, ebp
mov dword [ebx - 0x10], ebp
mov dword [ebx - 0xc], ebp
mov ebp, eax
xor edx, edx
push ebx
push 0x4ec551
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebx - 8], 0xffffffff
mov dword [ebx - 4], 0xffffffff
lea edx, [ebx - 0xc]
mov eax, ebp
call fcn.00409df0
cmp dword [ebx - 0xc], 0
jne 0x4ec3f0
lea eax, [ebx - 0x10]
call fcn.0040a0a8
lea edx, [ebx - 0xc]
mov eax, dword [ebx - 0x10]
call fcn.00409df0
lea eax, [ebx - 0xc]
mov edx, 0x4ec568
call fcn.00404b08
mov eax, ebp
call fcn.004eca44
sub al, 2
jb 0x4ec40f
je 0x4ec422
jmp case.default.0x4ec477
mov dword [ebx - 8], 0xffffffff
mov dword [ebx - 4], 0xffffffff
jmp case.default.0x4ec477
mov edx, ebp
mov eax, 0x4ec574
call fcn.00404e3c
dec eax
jne 0x4ec460
call fcn.004ec344
test al, al
je 0x4ec44d
mov eax, dword [ebx - 0xc]
call fcn.004ec26c
mov dword [ebx - 8], eax
mov dword [ebx - 4], edx
jmp case.default.0x4ec477
mov dword [ebx - 8], 0x7fffffff
mov dword [ebx - 4], 0
jmp case.default.0x4ec477
mov eax, dword [ebx - 0xc]
call fcn.00404cf8
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.default.0x4ec477
jmp dword [eax*4 + 0x4ec47e]
mov dword [ebx - 8], 0xffffffff
mov dword [ebx - 4], 0xffffffff
jmp case.default.0x4ec477
mov dword [ebx - 8], 0xffffffff
mov dword [ebx - 4], 0xffffffff
jmp case.default.0x4ec477
mov dword [ebx - 8], 0xffffffff
mov dword [ebx - 4], 0xffffffff
jmp case.default.0x4ec477
mov eax, dword [ebx - 0xc]
call fcn.004ec164
mov dword [ebx - 8], eax
mov dword [ebx - 4], edx
jmp case.default.0x4ec477
mov eax, dword [ebx - 0xc]
call fcn.004ec330
cdq
mov dword [ebx - 8], eax
mov dword [ebx - 4], edx
jmp case.default.0x4ec477
mov eax, dword [ebx - 0xc]
call fcn.004ec164
mov dword [ebx - 8], eax
mov dword [ebx - 4], edx
jmp case.default.0x4ec477
mov eax, dword [ebx - 0xc]
call fcn.004ec26c
mov dword [ebx - 8], eax
mov dword [ebx - 4], edx
cmp dword [ebx - 4], 0xffffffff
jne 0x4ec517
cmp dword [ebx - 8], 0xffffffff
jb 0x4ec52c
jmp 0x4ec519
jl 0x4ec52c
cmp dword [ebx - 4], 0
jne 0x4ec52a
cmp dword [ebx - 8], 0x7fffffff
jbe 0x4ec533
jmp 0x4ec52c
jle 0x4ec533
mov ebp, 0x7fffffff
jmp 0x4ec536
mov ebp, dword [ebx - 8]
pop eax
pop ecx
xor edx, edx
pop ecx
mov dword fs:[edx], eax
push 0x4ec558
mov edx, 2
lea eax, [ebx - 0x10]
call fcn.0040486c
ret

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

Disassembly:
push ebx
push esi
add esp, 0xffffff00
xor ebx, ebx
mov esi, eax
mov edx, esi
mov eax, 0x4ec5d4
call fcn.00404e3c
test eax, eax
jne 0x4ec5be
mov edx, esi
mov eax, 0x4ec5e0
call fcn.00404e3c
or eax, eax
jne 0x4ec5be
mov eax, esp
mov edx, esi
call fcn.0040a168
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4ec5be
test al, 0x10
je 0x4ec5be
mov bl, 1
mov eax, ebx
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x4ed494
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
movzx ecx, cx
dec ecx
or ecx, ecx
push ebx
push esi
mov esi, dword [eax]
jl 0x4ed4c3
inc ecx
mov ebx, esi
xor bl, byte [edx]
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x540c34]
shr esi, 8
and esi, 0xffffff
xor ebx, esi
mov esi, ebx
inc edx
dec ecx
jne 0x4ed4a1
mov dword [eax], esi
pop esi
pop ebx
ret

Function at 0x4ee1fc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
sub ecx, 1
mov esi, edx
push edi
mov edx, dword [eax]
jno 0x4ee20d
call fcn.00403938
test ecx, ecx
jl 0x4ee232
inc ecx
mov ebx, edx
xor bl, byte [esi]
and ebx, 0xff
mov edi, dword [0x542014]
mov ebx, dword [edi + ebx*4]
shr edx, 8
xor ebx, edx
add esi, 1
mov edx, ebx
dec ecx
jne 0x4ee212
mov dword [eax], edx
pop edi
pop esi
pop ebx
ret

Function at 0x4ee6e0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
push ebp
mov edi, eax
sub esp, 0x10
mov dword [esp + 4], ecx
mov dword [esp], edx
mov eax, dword [edi + 0x2c]
sub eax, dword [edi + 0x28]
cmp eax, dword [esp]
jge 0x4ee70f
mov ecx, 0xd4
mov edx, 0x4ee830
mov eax, 0x4ee86c
call fcn.004047a4
mov ebp, dword [esp + 4]
cmp ebp, dword [esp]
je 0x4ee736
mov eax, dword [esp]
dec eax
cmp eax, dword [esp + 4]
je 0x4ee736
mov ecx, 0xd6
mov edx, 0x4ee830
mov eax, 0x4ee8b4
call fcn.004047a4
mov edx, dword [esp]
mov eax, dword [edi + 0x28]
cmp edx, dword [esp + 4]
jle 0x4ee743
inc eax
mov ecx, dword [edi + 0x18]
mov dword [esp + 8], ecx
mov edx, dword [edi + 0x20]
mov ebp, dword [esp + 4]
dec ebp
mov ecx, dword [edi + 0x1c]
or ebp, ebp
jl 0x4ee783
inc ebp
mov ebx, dword [esp + 8]
movzx esi, byte [eax + 2]
shl edx, 5
xor edx, esi
mov esi, eax
and edx, 0x3fff
and esi, dword [edi + 0x58]
lea ebx, [ebx + esi*4]
mov esi, dword [ecx + edx*4]
mov dword [ebx], esi
mov dword [ecx + edx*4], eax
inc eax
dec ebp
jne 0x4ee75a
mov esi, dword [esp + 8]
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], edx
mov dword [edi + 0x28], eax
cmp byte [edi + 4], 0
je 0x4ee7bc
mov eax, dword [esp]
add dword [edi + 0x44], eax
mov eax, dword [esp]
add dword [edi + 0x48], eax
cmp byte [edi + 0x34], 0
je 0x4ee7d6
mov eax, dword [edi + 0x44]
cmp eax, dword [edi + 0x40]
jb 0x4ee7d6
mov eax, edi
call fcn.004eec3c
jmp 0x4ee7d6
mov edx, eax
sub edx, dword [edi + 0x44]
cmp edx, dword [edi + 0x5c]
jl 0x4ee7d6
mov byte [edi + 4], 1
sub eax, dword [edi + 0x5c]
sub eax, dword [edi + 0x44]
add dword [edi + 0x44], eax
add dword [edi + 0x48], eax
cmp word [edi + 0x3a], 0
je 0x4ee80e
mov eax, dword [esp]
add dword [edi + 0x10], eax
mov ebx, dword [edi + 0x10]
test ebx, 0xfff
jne 0x4ee80e
mov dword [esp + 0xc], ebx
fild dword [esp + 0xc]
fmul dword [0x4ee8f0]
fild dword [edi + 0x50]
fdivp st(1)
call fcn.00402ce8
mov edx, eax
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [edi + 0x44]
cmp eax, dword [edi + 0x40]
jb 0x4ee81d
mov eax, edi
call fcn.004eec3c
add esp, 0x10
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x4ef758
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov esi, edx
push ebp
sub esp, 0x10
lea ebx, [esp + 4]
mov ebp, ecx
mov dword [esp], eax
mov edi, dword [esp]
cmp byte [edi + 4], 0
jne 0x4ef787
mov ecx, 0xae
mov edx, 0x4ef824
mov eax, 0x4ef860
call fcn.004047a4
mov eax, dword [esp]
dec ebp
test ebp, ebp
mov eax, dword [eax + 8]
mov dword [ebx], eax
mov edi, dword [esp]
mov edi, dword [edi + 0xc]
mov dword [ebx + 4], edi
mov eax, dword [esp]
mov eax, dword [eax + 0x10]
mov dword [ebx + 8], eax
jl 0x4ef7f8
inc ebp
mov dl, byte [esi]
mov eax, dword [ebx + 8]
and eax, 0xffff
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor dl, cl
mov byte [esi], dl
mov edx, dword [ebx]
mov al, byte [esi]
call fcn.004ed4c8
mov edx, eax
mov dword [ebx], edx
and edx, 0xff
add dword [ebx + 4], edx
imul edi, dword [ebx + 4], 0x8088405
inc edi
mov dword [ebx + 4], edi
mov eax, edi
shr eax, 0x18
mov edx, dword [ebx + 8]
call fcn.004ed4c8
mov dword [ebx + 8], eax
inc esi
dec ebp
jne 0x4ef7a7
mov eax, dword [ebx]
mov esi, dword [esp]
mov dword [esi + 8], eax
mov edi, dword [ebx + 4]
mov edx, dword [esp]
mov dword [edx + 0xc], edi
mov eax, dword [esp]
add esp, 0x10
mov edx, dword [ebx + 8]
mov dword [eax + 0x10], edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4ef8a8
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push edi
mov edi, eax
push esi
mov esi, ecx
test esi, esi
push ebx
mov dword [ebp - 4], edx
jne 0x4ef8d0
mov ecx, 0xde
mov edx, 0x4ef958
mov eax, 0x4ef994
call fcn.004047a4
mov eax, edi
mov edx, esi
call fcn.004ef9c8
mov dword [ebp - 8], 0xc
lea ebx, [ebp - 0x14]
mov esi, dword [ebp - 4]
mov eax, dword [edi + 0x10]
and eax, 0xffff
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
shr edx, 8
xor dl, byte [esi]
mov byte [ebx], dl
mov edx, dword [edi + 8]
mov al, byte [ebx]
call fcn.004ed4c8
mov dword [edi + 8], eax
mov eax, dword [edi + 8]
and eax, 0xff
add dword [edi + 0xc], eax
imul eax, dword [edi + 0xc], 0x8088405
inc eax
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
shr eax, 0x18
mov edx, dword [edi + 0x10]
call fcn.004ed4c8
mov dword [edi + 0x10], eax
inc ebx
inc esi
dec dword [ebp - 8]
jne 0x4ef8e6
mov al, byte [ebp + 0xb]
cmp al, byte [ebp - 9]
sete al
mov byte [edi + 4], al
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x4ef9c8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ebp
push ecx
mov dword [esp], edx
mov dword [ebx + 8], 0x12345678
mov dword [ebx + 0xc], 0x23456789
mov dword [ebx + 0x10], 0x34567890
mov eax, dword [esp]
call fcn.00404b00
mov edi, eax
or edi, edi
jle 0x4efa36
mov ebp, 1
mov eax, dword [esp]
mov edx, dword [ebx + 8]
mov al, byte [eax + ebp - 1]
call fcn.004ed4c8
mov esi, eax
mov dword [ebx + 8], esi
and esi, 0xff
add dword [ebx + 0xc], esi
imul ecx, dword [ebx + 0xc], 0x8088405
inc ecx
mov dword [ebx + 0xc], ecx
mov edx, dword [ebx + 0x10]
mov eax, ecx
shr eax, 0x18
call fcn.004ed4c8
mov dword [ebx + 0x10], eax
inc ebp
dec edi
jne 0x4ef9fa
pop edi
pop ebp
pop edi
pop esi
pop ebx
ret