joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e3d4
Capabilities:
Get common file path
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
mov dword [ebp - 0x534], ecx
push 0x104
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x314], 0x20
mov byte [ebp - 0x310], 0
mov byte [ebp - 0x20c], 0
mov dword [ebp - 4], SysStringLen
lea ecx, [ebp - 0x420]
push ecx
push 0x20019
push 0
push 0x4c5024
push SysStringLen
call fcn.00442b70
mov ecx, eax
call fcn.004431ff
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x41e5e5
mov dword [ebp - 0x424], 0
mov edx, 1
test edx, edx
je 0x41e5d2
push 0x104
lea eax, [ebp - 0x310]
push eax
mov ecx, dword [ebp - 0x424]
push ecx
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x41e496
jmp 0x41e5d2
lea eax, [ebp - 0x310]
push eax
push 0x4c5048
push 0x104
lea ecx, [ebp - 0x528]
push ecx
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
lea edx, [ebp - 0x52c]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x528]
push eax
push SysStringLen
call fcn.00442b70
mov ecx, eax
call fcn.004431ff
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x41e5be
mov dword [ebp - 0x530], 0x104
lea ecx, [ebp - 0x530]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0
push 0
push 0x4c5070
mov eax, dword [ebp - 0x52c]
push eax
call fcn.00442b70
mov ecx, eax
call fcn.00443226
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x41e551
lea ecx, [ebp - 0x314]
push ecx
mov edx, dword [ebp - 0x534]
add edx, 0x54
push edx
mov ecx, dword [ebp - 0x534]
call fcn.0041e8a0
jmp 0x41e5ab
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 0x4c507c
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x534]
call fcn.0041edf6
test eax, eax
je 0x41e5ab
lea ecx, [ebp - 0x314]
push ecx
mov edx, dword [ebp - 0x534]
add edx, 0x54
push edx
mov ecx, dword [ebp - 0x534]
call fcn.0041e8a0
mov eax, dword [ebp - 0x52c]
push eax
call fcn.00442b70
mov ecx, eax
call fcn.00443318
mov ecx, dword [ebp - 0x424]
add ecx, 1
mov dword [ebp - 0x424], ecx
jmp 0x41e455
mov edx, dword [ebp - 0x420]
push edx
call fcn.00442b70
mov ecx, eax
call fcn.00443318
mov ecx, dword [ebp - 0x534]
add ecx, 0x54
call fcn.0041ef70
mov esp, ebp
pop ebp
ret
Function at 0x41edf6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov dword [ebp - 0x14c], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41ee17
xor eax, eax
jmp 0x41ee7d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x41ee3f
mov edx, dword [ebp - 8]
and edx, 0x10
test edx, edx
je 0x41ee38
xor eax, eax
jmp 0x41ee7d
mov eax, 1
jmp 0x41ee7d
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x41ee5d
xor eax, eax
jmp 0x41ee7d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x148]
and eax, 0x10
test eax, eax
je 0x41ee78
xor eax, eax
jmp 0x41ee7d
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x420e25
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
push edi
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
cmp dword [ebp + 8], 0
je 0x420e44
cmp dword [ebp + 0xc], 0
jne 0x420e4e
mov eax, 8
jmp 0x420f8e
mov byte [ebp - 0x10c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x210], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
lea edx, [ebp - 0x10c]
push edx
call fcn.00409000
push 0x4c6328
push 0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRStrIA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x420ef2
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00409000
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x10c]
sub edx, eax
mov ecx, 0x104
sub ecx, edx
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00409000
jmp 0x420efc
mov eax, 8
jmp 0x420f8e
mov dword [ebp - 4], 0
mov dword [ebp - 0x350], 0
mov ecx, 0x4f
xor eax, eax
lea edi, [ebp - 0x34c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x420f8c
mov edx, dword [ebp - 0x350]
and edx, 0x10
test edx, edx
je 0x420f48
jmp 0x420f6d
lea eax, [ebp - 0x324]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00402980
add esp, 8
test eax, eax
jne 0x420f6d
mov edx, dword [ebp + 0x10]
mov dword [edx], 1
jmp 0x420f82
lea eax, [ebp - 0x350]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x420f39
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x420f93
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae680
push 0x4a7764
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
call fcn.00495080
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x420fd9
cmp dword [ebp + 0xc], 0
jne 0x420fe3
mov eax, 8
jmp 0x42113d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 4]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x1c], 0
je 0x42100b
cmp dword [ebp - 0x28], 0
jne 0x421015
mov eax, 8
jmp 0x42113d
mov ecx, dword [ebp + 8]
call fcn.0041f847
add eax, 0x20
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp - 0x40]
jg 0x421052
jl 0x421048
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x44]
jae 0x421052
mov eax, 8
jmp 0x42113d
push 0
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x421073
mov eax, 6
jmp 0x42113d
mov eax, dword [ebp - 0x28]
add eax, 1
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jne 0x42109b
mov eax, 9
jmp 0x42113d
mov edx, dword [ebp - 0x28]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x24]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
push 0
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421103
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0x30]
jne 0x421103
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x421103
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x42111c
cmp dword [ebp - 0x24], 0
je 0x421134
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004a90a8
add esp, 4
mov dword [ebp - 0x24], 0
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422f48
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
cmp dword [ebp + 8], 0
jne 0x422f65
mov eax, 8
jmp 0x42308a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x422f7d
mov eax, 6
jmp 0x42308a
push 0
push 0x80
push 3
push 0
push 7
push closesocket
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x422fbc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
xor eax, eax
jmp 0x42308a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x422fd7
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
xor eax, eax
jmp 0x42308a
push 0
push 0x80
push 3
push 0
push 7
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x423013
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
xor eax, eax
jmp 0x42308a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x42302b
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
xor eax, eax
jmp 0x42308a
push 0
push 0x80
push 3
push 0
push 7
push 0x10000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x423067
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
xor eax, eax
jmp 0x42308a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x42307f
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
xor eax, eax
jmp 0x42308a
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42465d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x42468f
xor eax, eax
jmp 0x4246d1
push 0
lea ecx, [ebp - 4]
push ecx
push 0x12000
push 0x4c7904
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4246bb
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4246d1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0xffffffff
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x4246d7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [ebp - 0x108], ecx
cmp dword [0x53eab4], 0
je 0x4246f9
mov eax, 1
jmp 0x42485b
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.AntiRk.dll
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call fcn.00407f00
lea edx, [ebp - 0x104]
push edx
mov ecx, dword [ebp - 0x108]
call fcn.0042465d
test eax, eax
jne 0x42473e
xor eax, eax
jmp 0x42485b
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x108]
cmp dword [edx + 0x10], 0
jne 0x424767
xor eax, eax
jmp 0x42485b
push 0x4c76a4
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x108]
mov dword [edx], eax
mov eax, dword [ebp - 0x108]
cmp dword [eax], 0
jne 0x424796
xor eax, eax
jmp 0x42485b
push 0x4c76b0
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x108]
cmp dword [edx + 4], 0
jne 0x4247c7
xor eax, eax
jmp 0x42485b
push 0x4c76c0
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x108]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x108]
cmp dword [eax + 8], 0
jne 0x4247f5
xor eax, eax
jmp 0x42485b
push 0x4c76d4
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x108]
cmp dword [edx + 0xc], 0
jne 0x424823
xor eax, eax
jmp 0x42485b
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x108]
call dword [edx + 8]
add esp, 8
test eax, eax
jne 0x42483f
xor eax, eax
jmp 0x42485b
mov eax, dword [ebp - 0x108]
mov dword [eax + 0x14], 1
mov dword [0x53eab4], 1
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x424d7c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x424d98
mov eax, 1
jmp 0x424dc2
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.00439206
add esp, 8
test eax, eax
je 0x424db1
mov eax, 1
jmp 0x424dc2
mov edx, dword [ebp + 8]
push edx
call fcn.0042ab25
add esp, 4
mov eax, 0xfffffffe
mov esp, ebp
pop ebp
ret 4

Function at 0x424e10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov dword [ebp - 0x10c], ecx
mov ecx, dword [ebp - 0x10c]
call fcn.00424861
mov eax, dword [ebp - 0x10c]
cmp dword [eax + 0x10], 0
je 0x424e78
push 0x104
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 4], 0
jbe 0x424e78
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esp, ebp
pop ebp
ret

Function at 0x425618
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x425633
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x425637
xor eax, eax
jmp 0x425680
push 0x30
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00425c6d
test eax, eax
jne 0x425661
xor eax, eax
jmp 0x425680
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0xc58
call fcn.004268c0
test eax, eax
je 0x42567e
mov eax, 1
jmp 0x425680
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x425a87
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab31e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
add eax, 0x19b4
push eax
call sub.ntdll.dll_strlen
add esp, 4
test eax, eax
jne 0x425ac8
xor eax, eax
jmp 0x425c5c
mov ecx, dword [ebp - 0x68]
add ecx, 0xc58
call fcn.00426550
push 0x4d9944
mov ecx, dword [ebp - 0x68]
add ecx, 0x19b4
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x425afe
xor eax, eax
jmp 0x425c5c
mov dword [ebp - 0x20], 0
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
push eax
push 1
push 0x10
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x425b46
mov dword [ebp - 0x5c], 1
push 0x4b7f58
lea edx, [ebp - 0x5c]
push edx
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x20], 0x21726152
jne 0x425c00
cmp dword [ebp - 0x18], 0
je 0x425c00
cmp dword [ebp - 0x18], 0
je 0x425bec
mov byte [ebp - 0x58], 0
mov ecx, 0xb
xor eax, eax
lea edi, [ebp - 0x57]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x24]
push eax
push 0x30
push 1
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 0x30
je 0x425b96
jmp 0x425bec
mov dword [ebp - 0x28], 0
jmp 0x425ba8
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0xc
jae 0x425bc4
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + eax*4 - 0x58]
xor ecx, 0x12345678
mov edx, dword [ebp - 0x28]
mov dword [ebp + edx*4 - 0x58], ecx
jmp 0x425b9f
mov byte [ebp - 0x60], 1
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x68]
add ecx, 0xc58
call fcn.004267c0
mov edx, dword [ebp - 0x18]
sub edx, 1
mov dword [ebp - 0x18], edx
jmp 0x425b5d
cmp dword [ebp - 0x18], 0
je 0x425c00
mov ecx, dword [ebp - 0x68]
add ecx, 0xc58
call fcn.00426550
jmp 0x425c21
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x68]
add ecx, 0xc58
call fcn.004267a0
test eax, eax
jne 0x425c4b
xor eax, eax
jmp 0x425c5c
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x18ac], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425ce5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0
je 0x425d1a
mov dword [ebp - 0x10], SysStringLen
mov dword [ebp - 0xc], 2
mov dword [ebp - 8], 4
jmp 0x425d2f
mov dword [ebp - 0x10], 0xc0000000
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 6
push 0
push 0
push 3
push 0
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x425db6
cmp dword [ebp + 0xc], 0
je 0x425d67
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x425db6
push 0
push 0
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
jmp 0x425db8
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x425ddb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aeae0
push 0x4a7764
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x425e34
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
jmp 0x425e90
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx], 0x4550
jne 0x425e58
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jne 0x425e6b
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
jmp 0x425e90
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
jmp 0x425e90
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426f3f
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x64], 0
je 0x426f70
cmp dword [ebp + 8], 0
jne 0x426f60
mov dword [ebp - 8], 0x540574
jmp 0x426f66
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov esp, ebp
pop ebp
ret 4
Function at 0x42713d
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
je 0x42718a
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 8]
xor edx, ecx
and edx, 0xff
mov eax, dword [ebp - 8]
shr eax, 8
mov ecx, dword [edx*4 + 0x4aeaf4]
xor ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x427150
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4278ea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab43c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x23c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x248], ecx
push 0x4da29c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x427937
xor eax, eax
jmp 0x427b65
mov ecx, dword [ebp - 0x248]
add ecx, 4
call fcn.00426550
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x24]
push edx
push 1
push 0x10
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x427993
mov dword [ebp - 0x238], 1
push 0x4b7f58
lea ecx, [ebp - 0x238]
push ecx
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x20], 0x21726152
je 0x4279bd
cmp dword [ebp - 0x24], 0
je 0x4279b6
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [ebp - 0x24], 0
xor eax, eax
jmp 0x427b65
cmp dword [ebp - 0x20], 0x21726152
jne 0x427b0b
cmp dword [ebp - 0x18], 0
je 0x427b0b
cmp dword [ebp - 0x18], 0
je 0x427adc
mov byte [ebp - 0x130], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x12f]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x24]
push eax
push 1
push 0x105
lea ecx, [ebp - 0x130]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x427a19
jmp 0x427adc
mov dword [ebp - 0x28], 0
jmp 0x427a2b
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0x41
jge 0x427a4d
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + eax*4 - 0x130]
xor ecx, 0x12345678
mov edx, dword [ebp - 0x28]
mov dword [ebp + edx*4 - 0x130], ecx
jmp 0x427a22
mov byte [ebp - 0x234], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x233]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x130]
push ecx
call fcn.0042a81d
add esp, 0xc
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x427ace
lea edx, [ebp - 0x234]
push edx
push 0x104
lea eax, [ebp - 0x130]
push eax
call fcn.00409000
mov dword [ebp - 0x23c], 1
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x130]
push edx
mov ecx, dword [ebp - 0x248]
add ecx, 4
call fcn.00427d80
mov eax, dword [ebp - 0x18]
sub eax, 1
mov dword [ebp - 0x18], eax
jmp 0x4279d4
cmp dword [ebp - 0x18], 0
je 0x427b0b
mov ecx, dword [ebp - 0x248]
add ecx, 4
call fcn.00426550
mov dword [ebp - 0x240], 2
push 0x4b7f58
lea ecx, [ebp - 0x240]
push ecx
call sub.MSVCRT.dll__CxxThrowException
jmp 0x427b3f
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
je 0x427b60
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [ebp - 0x24], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4