joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476fa0
Capabilities:
Delete file
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4c0868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edi
call fcn.00472d80
mov dword [edi], fcn.0046eff0
mov eax, dword [str.Timer]
xor esi, esi
push eax
lea ecx, [edi + 4]
mov dword [esp + 0x18], esi
call fcn.0046268e
mov eax, 0x18
mov dword [edi + 0xa0], esi
mov ecx, eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
mov eax, dword [0x580308]
cmp eax, esi
jne 0x47707d
push ebx
push 0x532b14
push str.timer_icon.ico
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, esi
je 0x477044
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fputc]
xor ecx, ecx
push ebx
mov cl, byte [esi + 0x5099a0]
xor ecx, 0x7d
push ecx
call ebp
add esp, 8
inc esi
cmp esi, 0xcbe
jb 0x47701e
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop ebp
push 0x10
push 0
push 0
push 1
push str.timer_icon.ico
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
push str.timer_icon.ico
mov dword [0x580308], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4775d0
Capabilities:
Delete file
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4c08fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
call fcn.00472d80
lea edi, [esi + 0xa4]
mov dword [esp + 0x28], 0
mov ecx, edi
call sub.MFC42.DLL_CString::CString_3
lea ebp, [esi + 0xa8]
mov byte [esp + 0x28], 1
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_3
mov dword [esi], fcn.0046eff0
mov eax, dword [str.BrowseBox]
lea ebx, [esi + 4]
push eax
mov ecx, ebx
mov byte [esp + 0x2c], 2
call fcn.0046268e
mov eax, 0x78
mov ecx, 0x15
mov dword [esi + 0x1c], eax
push 5
mov dword [esi + 0x20], ecx
call dword [sym.imp.USER32.dll_GetSysColor]
push ebx
lea ecx, [esp + 0x1c]
push str.CoreLibQUIControl_
push ecx
mov dword [esi + 0x70], eax
mov dword [esi + 0xa0], 0
call sub.MFC42.DLL_operator
push str.Filter
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push 0
push 0
push eax
lea eax, [esp + 0x1c]
mov bl, 4
push eax
mov byte [esp + 0x38], bl
call fcn.0041f4b0
add esp, 0x10
push eax
mov ecx, edi
mov byte [esp + 0x2c], 5
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
push 0x53e720
mov ecx, ebp
call fcn.0046268e
mov eax, dword [0x58030c]
mov ebp, dword [sym.imp.MSVCRT.dll_fputc]
test eax, eax
jne 0x477753
push 0x532b14
push str.browsebox_file.ico
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x47772e
xor edi, edi
xor ecx, ecx
push ebx
mov cl, byte [edi + 0x50a660]
xor ecx, 0x7d
push ecx
call ebp
add esp, 8
inc edi
cmp edi, 0x47e
jb 0x477709
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0x10
push 0
push 0
push 1
push str.browsebox_file.ico
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
push str.browsebox_file.ico
mov dword [0x58030c], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x580310]
test eax, eax
jne 0x4777c1
push 0x532b14
push str.browsebox_dir.ico
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x47779c
xor edi, edi
xor edx, edx
push ebx
mov dl, byte [edi + str.mm_]
xor edx, 0x7d
push edx
call ebp
add esp, 8
inc edi
cmp edi, 0x47e
jb 0x477777
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0x10
push 0
push 0
push 1
push str.browsebox_dir.ico
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
push str.browsebox_dir.ico
mov dword [0x580310], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4786c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c0a10
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov ebp, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4787b5
lea ecx, [esp + 0x34]
lea esi, [ebp + 0x2c]
push edi
push ecx
mov ecx, esi
call fcn.00479af0
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x34]
cmp ecx, eax
je 0x478723
mov ecx, dword [ecx + 0xc]
mov eax, dword [edi]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jl 0x478723
lea eax, [esp + 0x34]
jmp 0x47872e
mov eax, dword [esi + 4]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x30]
cmp eax, ecx
jne 0x4787ae
lea edx, [esp + 0x38]
lea eax, [esp + 0x14]
push edx
push edi
push eax
call fcn.0047b160
add esp, 0xc
mov edi, eax
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x34], 1
call fcn.00478c10
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x47b460
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c0a76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
lea ebp, [esi + 4]
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_3
mov al, byte [esp + 0x2c]
mov cl, byte [esp + 0x2c]
xor ebx, ebx
push 0x18
mov dword [esp + 0x28], ebx
mov byte [esi + 8], al
mov byte [esi + 9], cl
mov byte [esi + 0x10], bl
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [edi + 4], ebx
mov dword [edi + 0x14], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
cmp dword [0x580330], ebx
jne 0x47b4e4
mov dword [0x580330], edi
mov dword [edi], ebx
mov edx, dword [0x580330]
mov dword [esp + 0x10], ebx
mov dword [edx + 8], ebx
mov edx, dword [0x58032c]
lea ecx, [esp + 0x14]
inc edx
mov dword [0x58032c], edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x47b50c
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, dword [0x580330]
push 0x18
call sub.MFC42.DLL_operatornew
mov dword [eax + 4], edi
mov dword [eax + 0x14], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov dword [eax], eax
mov eax, dword [esi + 0xc]
add esp, 4
mov dword [eax + 8], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, ebp
mov byte [esp + 0x28], 1
mov dword [esi], eax
call sub.MFC42.DLL_CString::operator_3
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x482640
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push esi
push edi
jmp 0x48265d
mov esi, dword [ebp + 8]
cmp word [esi], 0x5a4d
je 0x48266f
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.IMAGEHLP.dll_ImageNtHeader]
cmp dword [eax], 0x4550
je 0x482686
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x28]
push ebx
mov dword [ebp + 8], ecx
xor ecx, ecx
mov cx, word [eax + 6]
xor ebx, ebx
lea edi, [ebp - 0x403]
lea edx, [ecx + ecx*4]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov byte [ebp - 0x404], bl
add eax, ecx
mov ecx, 0xff
lea edx, [eax + edx*8 + 0x18]
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
lea ecx, [ebp - 0x404]
push eax
mov eax, dword [esi + 0x2c]
push 0x400
xor eax, 0x78
push ecx
push eax
push edx
call fcn.00482510
add esp, 0x14
or edx, 0xffffffff
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x800]
mov dword [ebp - 0x804], ebx
rep stosd dword es:[edi], eax
mov edi, dword [0x536ae4]
lea esi, [ebp - 0x804]
test al, 1
je 0x482712
mov ebx, eax
lea ecx, [edi + 0x123456]
shr ebx, 1
xor ecx, ebx
jmp 0x482716
mov ecx, eax
shr ecx, 1
mov dword [esi], ecx
inc eax
add esi, 4
cmp eax, 0x100
jb 0x482700
xor eax, eax
pop ebx
xor ecx, ecx
mov esi, edx
mov cl, byte [ebp + eax - 0x400]
and esi, 0xff
xor ecx, esi
shr edx, 8
mov ecx, dword [ebp + ecx*4 - 0x804]
xor edx, ecx
inc eax
cmp eax, 0x10
jb 0x482726
mov eax, dword [ebp - 0x404]
not edx
cmp edx, eax
je 0x48275f
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, 5
lea esi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
mov dword [edx], eax
jmp 0x482787
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4827a0
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0xc
push ebx
mov eax, dword [esp + 0x14]
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
push eax
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x482864
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x482849
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, ecx
or edx, eax
je 0x482849
test eax, eax
jg 0x482849
jl 0x482803
cmp ecx, 0x6400000
ja 0x482849
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x482849
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x482849
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
push esi
call fcn.00482640
add esp, 0x10
mov ebp, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test esi, esi
je 0x48285d
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test ebx, ebx
je 0x482864
push ebx
call edi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x482940
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512950
push 0x463410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
push str.qsefyjil
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x580444], eax
cmp eax, esi
je 0x482a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x482a7d
push 0x532b14
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, esi
je 0x4829e7
mov dword [ebp - 0x38], esi
mov ebx, dword [sym.imp.MSVCRT.dll_fputc]
cmp esi, dword [0x536ae8]
push edi
jae 0x4829dc
xor ecx, ecx
mov cl, byte [esi + 0x50becc]
xor ecx, 0x7d
push ecx
call ebx
add esp, 8
inc esi
mov dword [ebp - 0x38], esi
jmp 0x4829bc
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor esi, esi
cmp dword [ebp + 0x14], esi
je 0x482a03
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00482eb0
add esp, 8
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x482a7d
push esi
push 0x80
push 3
push esi
push esi
push 0xc0000000
push str..hkSymbolicLink
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x58043c], eax
cmp eax, 0xffffffff
je 0x482a7d
mov dword [ebp - 0x24], esi
push esi
push esi
push esi
push 0x482930
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x482a7d
mov dword [0x580440], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
push esi
lea edx, [ebp - 0x2c]
push edx
push 4
lea eax, [ebp - 0x30]
push eax
push 8
lea ecx, [ebp - 0x28]
push ecx
push 0x8000201c
mov edx, dword [0x58043c]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x482a7d
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00482aa0
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x482aa0
Capabilities:
Delete file
Terminate thread

Disassembly:
mov edi, dword [ebp - 0x1c]
cmp edi, esi
jne 0x482ae3
mov eax, dword [0x580444]
cmp eax, esi
je 0x482abd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x580444], esi
mov eax, dword [0x58043c]
cmp eax, 0xffffffff
je 0x482ad4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x58043c], esi
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x482ae3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret
Function at 0x482d60
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x482db9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x431
je 0x482db5
call esi
push eax
push str.failure:_CreateService__error_code:_u_n
push 0x580448
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
xor eax, eax
pop esi
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret

Function at 0x482e60
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x482e84
pop esi
add esp, 0x1c
ret
lea edx, [esp + 4]
push edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x4847a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
push esi
cmp ebx, 1
push edi
jl 0x4847bb
cmp ebx, 8
jg 0x4847bb
mov eax, 1
jmp 0x4847bd
xor eax, eax
mov esi, dword [esp + 0x14]
push str.bad_pack_level
push eax
push esi
call fcn.00483010
mov eax, dword [esi + 0x6af70]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af78], ebp
jne 0x4847f4
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
mov ecx, 0x7fff
xor eax, eax
lea edi, [esi + 0x4af70]
mov dword [esi + 0x6af6c], ebp
rep stosd dword es:[edi], eax
mov ax, word [ebx*8 + 0x512ab2]
xor ecx, ecx
mov dword [esi + 0x6af98], eax
mov cx, word [ebx*8 + 0x512ab0]
xor edx, edx
mov dword [esi + 0x6af9c], ecx
mov dx, word [ebx*8 + 0x512ab4]
xor eax, eax
mov dword [esi + 0x6afa0], edx
mov ax, word [ebx*8 + 0x512ab6]
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x484855
mov eax, dword [esp + 0x1c]
or byte [eax], 4
jmp 0x484861
cmp ebx, 8
jl 0x484861
mov eax, dword [esp + 0x1c]
or byte [eax], 2
lea edi, [esi + 0x1af70]
push 0x10000
push edi
push esi
mov dword [esi + 0x6af84], ebp
mov dword [esi + 0x6af74], ebp
call dword [esi + 0xc]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af90], eax
je 0x4848da
cmp eax, 0xffffffff
je 0x4848da
cmp eax, 0x106
mov dword [esi + 0x6af8c], ebp
jae 0x4848a5
push esi
call fcn.00484af0
add esp, 4
mov dword [esi + 0x6af7c], ebp
xor eax, eax
mov edx, dword [esi + 0x6af7c]
xor ecx, ecx
mov cl, byte [edi + eax]
and edx, 0x3ff
and ecx, 0x7fff
shl edx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [esi + 0x6af7c], ecx
jb 0x4848ad
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x485b70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x485b7b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x485c7e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x512b00]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x512b00]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x512b00]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x512b00]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x512b00]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x512b00]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x512b00]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x512b00]
xor eax, edx
inc ecx
dec edi
jne 0x485b96
pop edi
test esi, esi
je 0x485ca0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x512b00]
xor eax, edx
inc ecx
dec esi
jne 0x485c82
pop esi
pop ebx
not eax
ret

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

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x512b00]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x512b00]
xor eax, edx
mov dword [ecx + 8], eax
ret
Function at 0x485ec0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x44
lea eax, [esp + 0x10]
push esi
mov esi, dword [esp + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x485ee2
mov eax, 0x200
pop esi
add esp, 0x44
ret
mov eax, dword [esp + 0x14]
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
je 0x485ef5
mov ebp, 1
test al, 2
je 0x485efc
or ebp, 2
test al, 4
je 0x485f03
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x485f0d
or ebp, 0x10
test al, 0x20
je 0x485f14
or ebp, 0x20
test ecx, ecx
je 0x485f20
or ebp, 0x40000000
jmp 0x485f26
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x485f36
or ebp, 0x800000
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [esp + 0x14], eax
jbe 0x485fe5
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]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x60]
push 2
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 4
push ecx
push esi
call ebx
cmp word [esp + 0x58], 0x54ad
jne 0x485fe5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 0x34]
cmp ecx, edx
jbe 0x485fe5
push 0
push 0
push eax
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push esi
call ebx
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a4d
je 0x485fdf
cmp eax, 0x454e
je 0x485fdf
cmp eax, 0x454c
je 0x485fdf
cmp eax, 0x4550
jne 0x485fe5
or ebp, 0x400000
mov eax, dword [esp + 0x5c]
pop edi
test eax, eax
pop ebx
je 0x485ff1
mov dword [eax], ebp
mov eax, dword [esp + 0x58]
pop ebp
test eax, eax
je 0x486000
mov edx, dword [esp + 8]
mov dword [eax], edx
mov esi, dword [esp + 0x58]
test esi, esi
je 0x486049
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.00485e20
mov dword [esi], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x34]
push edx
push eax
call fcn.00485e20
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x28]
push ecx
push edx
call fcn.00485e20
mov dword [esi + 0x10], eax
add esp, 0x18
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x486088
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x50]
lea ecx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00485e50
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
and ecx, 0xffff
and edx, 0xffff
shl ecx, 0x10
add esp, 0x10
or ecx, edx
mov dword [esi], ecx
xor eax, eax
pop esi
add esp, 0x44
ret
Function at 0x486240
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0x10]
mov al, byte [ebx + 0x2d]
push esi
mov esi, dword [esp + 0x10]
push edi
test al, al
je 0x4862c5
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x486271
cmp dword [ebx + 0x40], ebp
jae 0x486271
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebx + 0x3c], 0
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x48628b
lea eax, [ebp + ebp]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], ebp
mov edi, dword [ebx + 0x3c]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
test ebp, ebp
jbe 0x4862c2
lea edi, [ebx + 0x30]
mov eax, dword [ebx + 0x3c]
mov cl, byte [esi + eax]
push ecx
push edi
call fcn.00485d10
mov edx, dword [ebx + 0x3c]
add esp, 8
mov byte [esi + edx], al
inc esi
cmp esi, ebp
jb 0x4862a7
mov esi, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x48630d
mov eax, dword [ebx + 0x24]
mov edi, dword [ebx + 0x28]
lea ecx, [eax + ebp]
cmp ecx, edi
jb 0x4862e9
pop edi
pop esi
mov dword [ebx + 0x14], 0x30000
pop ebp
xor eax, eax
pop ebx
ret 8
mov ecx, ebp
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x24]
pop edi
add eax, ebp
pop esi
mov dword [ebx + 0x24], eax
mov eax, ebp
pop ebp
pop ebx
ret 8
mov eax, dword [ebx + 4]
test eax, eax
je 0x48632f
lea ecx, [esp + 0x14]
push 0
push ecx
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
mov dword [ebx + 0x14], 0x1000000
pop ebp
xor eax, eax
pop ebx
ret 8