joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a3e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push ecx
mov esi, esp
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], esi
call fcn.00495d32
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46a430
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.MatrixFileIpc.SaveToDisk__:_Saving_tree_and_empty_reg_DataIntegrity_value
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x46a58e
mov edx, ecx
movzx edi, dx
push edi
call fcn.0049dc65
mov ebx, eax
test ebx, ebx
je 0x46a523
mov eax, edi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46a523
push edi
push eax
push ebx
call fcn.004216e0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x46a523
mov eax, dword [esi]
movzx ebx, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, ebx
or eax, ecx
jge 0x46a4bc
push ebx
mov ecx, esi
call fcn.004214ff
movzx eax, word [edi]
mov edx, dword [esi]
add edi, 2
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
jne 0x46a4d6
push edi
call fcn.004a437a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [ebx + ebx]
push edi
push ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004a3e70
add esp, 0x10
cmp eax, 0x50
ja case.0x46a4f9.1
movzx edx, byte [eax + 0x46a5c0]
jmp dword [edx*4 + 0x46a5b0]
call fcn.0049629a
call fcn.004962d2
test ebx, ebx
jl 0x46a584
mov eax, dword [esi]
cmp ebx, dword [eax - 8]
jg 0x46a584
mov edx, dword [ebp - 0x18]
mov dword [eax - 0xc], ebx
mov eax, dword [esi]
xor ecx, ecx
mov word [edx + eax], cx
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.0046a290
add esp, 4
mov esi, edi
call fcn.00490c30
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x1c]
mov edx, dword [eax]
push edx
call fcn.00480bb0
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [edi + 0x14]
push str.DataIntegrity
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00421000
push str.MatrixFileIpc.SaveToDisk__:_Saving_tree_and_empty_reg_DataIntegrity_value
call fcn.004a437a
add esp, 4
push eax
push str.MatrixFileIpc.SaveToDisk__:_Saving_tree_and_empty_reg_DataIntegrity_value
mov ecx, esi
call fcn.00423f12
jmp 0x46a526
Function at 0x475580
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x475587
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x475664
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4dc3a0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4dc3a0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4dc3a0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4dc3a0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4dc3a0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4dc3a0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4dc3a0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4dc3a0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x4755a0
pop edi
test edx, edx
je 0x47568b
jmp 0x475670
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4dc3a0]
inc ecx
sub edx, 1
jne 0x475670
not eax
pop esi
ret

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

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4dc3a0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4dc3a0]
mov dword [edx + 8], ecx
ret

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

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x4dc3a0]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x4dc3a0]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x476180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, ebx
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4761bd
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4761b1
mov byte [esi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop edi
pop ebx
pop ecx
pop ebp
ret
mov edx, dword [esi + 0x28]
mov ebx, dword [esi + 0x2c]
xor eax, eax
mov ecx, edi
add ecx, edx
adc eax, ebx
cmp eax, dword [esi + 0x24]
jb 0x4761dc
ja 0x4761d7
cmp ecx, dword [esi + 0x20]
jbe 0x4761dc
mov edi, dword [esi + 0x20]
sub edi, edx
cmp dword [esi + 0x34], 0
mov eax, dword [ebp + 8]
je 0x476224
push eax
mov eax, dword [esi + 0x3c]
push 0
push edi
push ebx
push edx
push ecx
sub eax, 0x10
mov dword [ebp + 0x10], esp
mov ebx, esp
push eax
call fcn.00423f83
add eax, 0x10
mov dword [ebx], eax
mov ecx, dword [esi + 0x38]
add esp, 4
push ecx
mov ecx, dword [esi + 0x34]
call fcn.0047a2b0
add dword [esi + 0x28], edi
mov eax, edi
adc dword [esi + 0x2c], 0
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebx
pop ecx
pop ebp
ret
mov edx, dword [esi + 0x30]
add edx, dword [esi + 0x28]
push edi
push edx
push eax
call fcn.004a4600
add esp, 0xc
add dword [esi + 0x28], edi
mov eax, edi
pop edi
adc dword [esi + 0x2c], 0
xor edx, edx
div dword [ebp + 0xc]
pop ebx
pop ecx
pop ebp
ret
Function at 0x477d80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x477da1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x477da1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [ebp + 0xc]
movzx eax, word [ebx]
test ax, ax
je 0x477e91
mov esi, ebx
mov ecx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x477dc3
cmp ax, 0x5c
jne 0x477dc5
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x477db7
push edi
cmp esi, ebx
je 0x477e09
push 0x1000
call fcn.004a4a82
sub esi, ebx
sar esi, 1
add esi, esi
push esi
mov edi, eax
push ebx
push edi
call fcn.004a4600
mov ecx, dword [ebp + 8]
xor eax, eax
push edi
push ecx
mov word [esi + edi], ax
call fcn.00477d80
push edi
call fcn.004a4965
add esp, 0x1c
push 0x1000
call fcn.004a4a82
mov ebx, eax
mov eax, dword [ebp + 8]
xor edx, edx
add esp, 4
mov word [ebx], dx
test eax, eax
je 0x477e3f
mov edx, ebx
sub edx, eax
jmp 0x477e30
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x477e30
mov eax, dword [ebp + 0xc]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x477e44
mov edi, ebx
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x477e56
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x477e88
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
call fcn.004a4965
add esp, 4
pop esi
pop ebx
pop ebp
ret
Function at 0x478850
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov eax, 0x400000
cmp edi, ebx
ja 0x478876
jb 0x47886e
cmp dword [ebp + 0xc], eax
jae 0x478876
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], edi
jmp 0x478879
mov dword [ebp - 4], ebx
push eax
mov eax, dword [ebp + 8]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
cmp ecx, ebx
jne 0x478897
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x4788d8
mov esi, dword [ecx + 0x3c]
mov eax, esi
cdq
cmp edx, edi
ja 0x4788d8
jb 0x4788b2
cmp eax, dword [ebp + 0xc]
jae 0x4788d8
cmp dword [esi + ecx], 0x4550
jne 0x4788d8
mov edx, dword [esi + ecx + 0x54]
add edx, dword [esi + ecx + 0x24]
mov eax, dword [ebp + 0x14]
add edx, dword [esi + ecx + 0x20]
add edx, dword [esi + ecx + 0x1c]
mov dword [eax + 4], ebx
mov dword [eax], edx
mov ebx, 1
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x478bf0
Capabilities:
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [edi + 0x84]
cmp dword [edi + 0x80], ebx
push esi
lea esi, [edi + 0x74]
jbe 0x478c0e
call fcn.004a44f1
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ecx
cmp ecx, dword [esi + 0x10]
jbe 0x478c26
call fcn.004a44f1
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
push ebx
push edx
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0047b020
xor ebx, ebx
cmp dword [edi + 0x18], ebx
je 0x478c49
mov ecx, dword [edi]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [edi + 0x18]
mov eax, dword [edi]
push ebx
push ebx
neg edx
push 3
sbb edx, edx
push ebx
and edx, 0x40000000
push 3
add edx, 0x80000000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x478cf0
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x478c97
or ecx, eax
or eax, eax
jmp 0x478c9b
mov ecx, eax
xor eax, eax
push ebx
mov edx, ecx
push edx
push eax
mov dword [edi + 0x14], eax
xor eax, eax
cmp dword [edi + 0x18], ebx
mov dword [edi + 0x10], ecx
mov ecx, dword [edi + 4]
setne al
lea eax, [eax + eax + 2]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 8], eax
cmp eax, ebx
jne 0x478cd2
mov eax, 9
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esi, [edi + 0x20]
cmp dword [ebp + 8], ebx
je 0x478cfd
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
push esi
push edx
push ecx
push eax
call fcn.00478850
add esp, 0x10
test eax, eax
jne 0x478d02
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov edx, dword [edi + 0x14]
cmp edx, dword [esi + 4]
jb 0x478d31
ja 0x478d13
mov eax, dword [edi + 0x10]
cmp eax, dword [esi]
jbe 0x478d31
mov ecx, edi
call fcn.00479360
test eax, eax
jne 0x478d31
cmp dword [edi + 0x18], ebx
je 0x478d31
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
mov esi, edi
call fcn.00478b40
pop esi
mov dword [edi + 0x8c], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47abe0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47ac3c
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ac30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x47ac56
or eax, eax
or ecx, 0xffffffff
jmp 0x47ac58
xor ecx, ecx
push ebx
push eax
push ecx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, ebx
jne 0x47ac72
mov ebx, 8
jmp 0x47ace9
lea edx, [ebp - 4]
push edx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x47ac8c
or eax, eax
or ecx, 0xffffffff
jmp 0x47ac8e
xor ecx, ecx
lea edx, [ebp - 0x10]
push edx
push ecx
push eax
push edi
call fcn.00478850
add esp, 0x10
test eax, eax
je 0x47acdd
mov ebx, dword [ebp - 0x10]
mov eax, ebx
or eax, dword [ebp - 0xc]
je 0x47acdd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp - 8]
push edx
push ebx
push esi
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x47acd2
mov ebx, 0xc
jmp 0x47ace9
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
jmp 0x47ace9
push edi
mov ebx, 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ad0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f4d0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push str.ntdll.dll
call esi
mov edi, eax
test edi, edi
je 0x47f569
push str.GetFinalPathNameByHandleW
push str.Kernel32.dll
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.NtQueryObject
push edi
mov dword [0x4f389c], eax
call esi
push str.NtOpenSymbolicLinkObject
push edi
mov dword [0x4f38cc], eax
call esi
push str.NtQuerySymbolicLinkObject
push edi
mov dword [0x4f38d0], eax
call esi
push str.ZwClose
push edi
mov dword [0x4f38d4], eax
call esi
push 0x68
push 0xff
push 0x4f3be8
mov dword [0x4f38c8], eax
call fcn.004a4b50
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0xc
push 0x4f3bd0
call esi
push 0x4f3bb4
call esi
mov dword [0x4f3898], 1
pop edi
pop esi
ret
Function at 0x482d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov dword [ebp - 4], 0
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x482f5f
lea ebx, [ebx]
cmp dword [esi + 0x6af90], 3
jb 0x482dc7
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x482e07
mov edx, dword [esi + 0x6af84]
sub edx, ecx
cmp edx, 0x7efa
ja 0x482e07
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x482df2
mov dword [esi + 0x6afa0], eax
mov eax, ecx
call fcn.00482a50
mov ebx, eax
mov eax, dword [esi + 0x6af90]
cmp ebx, eax
jbe 0x482e07
mov ebx, eax
mov eax, dword [esi + 0x6af84]
mov ecx, esi
cmp ebx, 3
jb 0x482eec
sub eax, dword [esi + 0x6af88]
lea edx, [ebx - 3]
call fcn.00482240
sub dword [esi + 0x6af90], ebx
mov ecx, dword [esi + 0x6af90]
mov dword [ebp - 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x482eb4
cmp ecx, 3
jb 0x482eb4
mov edi, 1
sub ebx, edi
lea esp, [esp]
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub ebx, edi
mov dword [esi + edx*4 + 0x2af70], ecx
mov edx, dword [esi + 0x6af84]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af7c]
mov dword [esi + ecx*4 + 0x4af70], edx
jne 0x482e50
add dword [esi + 0x6af84], edi
mov eax, dword [ebp - 8]
jmp 0x482f07
add dword [esi + 0x6af84], ebx
mov ecx, dword [esi + 0x6af84]
lea edx, [ecx + esi]
movzx ecx, byte [edx + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, 0x7fff
mov dword [esi + 0x6af7c], edx
jmp 0x482f07
movzx edx, byte [eax + esi + 0x1af70]
xor eax, eax
call fcn.00482240
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x482f41
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x482f1e
lea edx, [ecx + esi + 0x1af70]
jmp 0x482f20
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push edx
xor edi, edi
mov ecx, esi
call fcn.004820a0
mov ecx, dword [esi + 0x6af84]
add esp, 4
mov dword [esi + 0x6af74], ecx
cmp dword [esi + 0x6af90], 0x106
jae 0x482f52
call fcn.00482bf0
cmp dword [esi + 0x6af90], 0
jne 0x482d70
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x482f72
lea edx, [ecx + esi + 0x1af70]
jmp 0x482f74
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push edx
mov edi, 1
mov ecx, esi
call fcn.004820a0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483c20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x483c27
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x483d04
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4dabc0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4dabc0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4dabc0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4dabc0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4dabc0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4dabc0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4dabc0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4dabc0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x483c40
pop edi
test edx, edx
je 0x483d2b
jmp 0x483d10
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4dabc0]
inc ecx
sub edx, 1
jne 0x483d10
not eax
pop esi
ret

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

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4dabc0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4dabc0]
mov dword [edx + 8], ecx
ret
Function at 0x483ec0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x483ee6
mov eax, 0x200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x4c]
mov edx, eax
xor edi, edi
and edx, 1
je 0x483efc
mov dword [ebp - 8], 1
mov edi, dword [ebp - 8]
test al, 2
je 0x483f03
or edi, 2
test al, 4
je 0x483f0a
or edi, 4
mov ecx, eax
and ecx, 0x10
je 0x483f14
or edi, 0x10
test al, 0x20
je 0x483f1b
or edi, 0x20
test ecx, ecx
je 0x483f27
or edi, 0x40000000
jmp 0x483f2d
or edi, 0x80000000
or edi, 0x1000000
mov dword [ebp - 8], edi
test edx, edx
jne 0x483f43
or edi, 0x800000
mov dword [ebp - 8], edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp eax, 0x28
jbe 0x483fea
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 2
lea edx, [ebp - 4]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea ecx, [ebp - 0x14]
push ecx
push esi
call ebx
mov edx, 0x54ad
cmp word [ebp - 4], dx
jne 0x483fe7
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x10], ecx
jbe 0x483fe7
push 0
push 0
push eax
push esi
call edi
push 0
lea edx, [ebp - 0xc]
push edx
push 4
lea eax, [ebp - 0x18]
push eax
push esi
call ebx
mov eax, dword [ebp - 0x18]
cmp eax, 0x5a4d
je 0x483fe0
cmp eax, 0x454e
je 0x483fe0
cmp eax, 0x454c
je 0x483fe0
cmp eax, 0x4550
jne 0x483fe7
or dword [ebp - 8], 0x400000
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 8]
test eax, eax
je 0x483ff3
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x483fff
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
test esi, esi
je 0x484079
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
push 0
sub edx, 0xd53e8000
push 0x989680
sbb eax, 0x19db1de
push eax
push edx
call fcn.004a99e0
mov dword [esi + 4], edx
push 0
mov ecx, ebx
sub ecx, 0xd53e8000
mov edx, edi
push 0x989680
sbb edx, 0x19db1de
push edx
push ecx
mov dword [esi], eax
call fcn.004a99e0
mov ecx, dword [ebp - 0x44]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x48]
push 0
sub eax, 0xd53e8000
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
mov dword [esi + 0xc], edx
call fcn.004a99e0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4840a1
push edi
push ebx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
call fcn.00483e60
movzx ecx, word [ebp - 4]
movzx edx, word [ebp - 8]
shl ecx, 0x10
add esp, 0x10
or ecx, edx
mov dword [esi], ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret