joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414050
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov eax, 0x1238
call fcn.00479200
mov eax, dword [0x4bd750]
xor eax, esp
mov dword [esp + 0x1234], eax
push edi
push 0x4acfb4
call fcn.004169a0
push 0x7fe
lea eax, [esp + 0x242]
push 0
push eax
mov word [esp + 0x248], 0
call fcn.00475860
push 0x4aad1c
lea ecx, [esp + 0x24c]
push 0x4ab288
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x254]
push 0x400
push edx
call fcn.00473de5
add esp, 0x24
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0xffffffff
mov dword [esp + 4], eax
je 0x4141cc
push 0x7fe
lea eax, [esp + 0xa3e]
push 0
push eax
mov dword [esp + 0x18], 0x22c
mov word [esp + 0xa44], 0
call fcn.00475860
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4141c5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
jmp 0x414130
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x20], edx
je 0x4141af
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0xa48]
push 0x4ab288
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0xa50]
push 0x400
push eax
call fcn.00473de5
lea ecx, [esp + 0x258]
push ecx
lea edx, [esp + 0xa5c]
push edx
call fcn.00473f07
add esp, 0x1c
test eax, eax
je 0x4141af
mov eax, dword [esp + 0x20]
push eax
push 0
push 0x1f0fff
call ebx
mov esi, eax
test esi, esi
je 0x4141af
lea ecx, [esp + 0x14]
push ecx
push esi
call ebp
mov edx, dword [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x414130
pop esi
pop ebp
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1238]
pop edi
xor ecx, esp
mov eax, 1
call fcn.004716ba
add esp, 0x1238
ret
Function at 0x4141f0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4bd750]
xor eax, esp
mov dword [esp + 0x22c], eax
push edi
push 0x228
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0
call fcn.00475860
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x414249
xor eax, eax
pop edi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004716ba
add esp, 0x230
ret
push esi
lea ecx, [esp + 8]
push ecx
push edi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4142b8
xor esi, esi
movzx edx, word [esp + esi*2 + 0x2c]
push edx
call fcn.004740af
mov word [esp + esi*2 + 0x30], ax
lea eax, [esp + 0x30]
add esp, 4
add esi, 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414280
sub eax, edx
sar eax, 1
cmp esi, eax
jbe 0x414263
lea eax, [esp + 0x2c]
push 0x4aac28
push eax
call fcn.00473f07
add esp, 8
test eax, eax
je 0x4142d8
lea ecx, [esp + 8]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x414261
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004716ba
add esp, 0x230
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop esi
pop edi
xor ecx, esp
mov eax, 1
call fcn.004716ba
add esp, 0x230
ret
Function at 0x415340
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
test edi, edi
je 0x4153e9
test ebx, ebx
je 0x4153e9
push esi
lea eax, [esp + 0xc]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [esp + 4], eax
jbe 0x4153df
push eax
call fcn.0044e523
mov esi, eax
add esp, 4
test esi, esi
jne 0x415380
mov eax, 0x8007000e
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 4]
push esi
push ecx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4153d6
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
push 0x4ad168
push esi
mov dword [esp + 0x18], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4153d6
mov eax, dword [esp + 8]
test eax, eax
je 0x4153d6
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
push esi
mov dword [ebx + 4], ecx
mov dword [ebx], edx
call fcn.0044e528
add esp, 4
xor eax, eax
pop esi
add esp, 0xc
ret
push esi
call fcn.0044e528
add esp, 4
mov eax, 0x80004005
pop esi
add esp, 0xc
ret
mov eax, 0x80070057
add esp, 0xc
ret
Function at 0x41b730
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4940d1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x4bd750]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], 0
mov eax, dword [eax]
push 0x8020
push eax
lea ecx, [esp + 0x18]
call fcn.00460e95
lea edx, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x28], 1
call fcn.0041b7c0
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
mov byte [esp + 0x28], 0
call fcn.004609ae
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret

Function at 0x41b7c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
lea ebp, [esp - 0x460]
sub esp, 0x460
push 0xffffffffffffffff
push 0x494088
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4bd750]
xor eax, ebp
mov dword [ebp + 0x45c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
push 0x40
lea eax, [ebp + 4]
push edi
mov dword [ebp - 4], edi
push eax
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0x1c], edi
mov dword [ebp], vtable.CMD5Checksum.0
call fcn.00475860
add esp, 0xc
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x44], edi
mov dword [ebp + 0x4c], 0x67452301
mov dword [ebp + 0x50], 0xefcdab89
mov dword [ebp + 0x54], 0x98badcfe
mov dword [ebp + 0x58], 0x10325476
mov byte [ebp - 4], 1
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
push 0x400
lea eax, [ebp + 0x5c]
push eax
mov ecx, esi
call edx
cmp eax, edi
jle 0x41b868
lea ecx, [ebp + 0x5c]
push ecx
lea ecx, [ebp]
call fcn.0041c1c0
jmp 0x41b844
push ebx
lea ecx, [ebp]
call fcn.0041bfa0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x45c]
xor ecx, ebp
call fcn.004716ba
add ebp, 0x460
mov esp, ebp
pop ebp
ret
Function at 0x41e570
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x493ffb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4bd750]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x4c5c18], 0
jne 0x41e604
push 0xb8
call fcn.0044e4f8
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x41e5c2
push eax
call fcn.0040c3b0
jmp 0x41e5c4
xor eax, eax
test esi, esi
mov dword [0x4c5c18], eax
jne 0x41e5d1
xor ecx, ecx
jmp 0x41e5d4
mov ecx, dword [esi + 0x20]
lea esi, [eax + 4]
mov dword [eax + 0x44], ecx
cmp dword [esi + 4], 0xffffffff
jne 0x41e604
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x40c3a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
je 0x41e604
mov dword [esi + 0xc], 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x421c00
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x35c
mov eax, dword [0x4bd750]
xor eax, esp
mov dword [esp + 0x358], eax
push ebp
push esi
mov esi, dword [esp + 0x368]
push edi
push esi
lea eax, [esp + 0x25c]
push 0x104
push eax
call fcn.004739e4
add esp, 0xc
push 0x4ae310
lea ecx, [esp + 0x25c]
push 0x104
push ecx
call fcn.00473973
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x421d08
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp byte [esp + 0x3c], 0x2e
je 0x421cea
push esi
lea ecx, [esp + 0x154]
push 0x104
push ecx
call fcn.004739e4
add esp, 0xc
push 0x4ac5e0
lea edx, [esp + 0x154]
push 0x104
push edx
call fcn.00473973
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x154]
push 0x104
push ecx
call fcn.00473973
add esp, 0xc
test byte [esp + 0x10], 0x10
je 0x421cdc
lea edx, [esp + 0x150]
push edx
call fcn.00421c00
add esp, 4
jmp 0x421cea
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
push ecx
push edi
call ebp
test eax, eax
jne 0x421c72
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004716ba
add esp, 0x35c
ret
Function at 0x421d20
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x4bd750]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
lea eax, [esp + 4]
push 0x104
push eax
call fcn.004739e4
lea eax, [esp + 0xc]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x421d55
sub eax, edx
cmp byte [esp + eax - 1], 0x5c
je 0x421d7e
push 0x4ac5e0
lea ecx, [esp + 4]
push 0x104
push ecx
call fcn.00473973
add esp, 0xc
push esi
lea edx, [esp + 4]
push 0x5c
push edx
call fcn.00473a80
mov esi, eax
add esp, 8
test esi, esi
je 0x421dca
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x421da0
cmp byte [esi - 1], 0x3a
je 0x421db5
push 0
lea eax, [esp + 0xc]
push eax
mov byte [esi], 0
call edi
mov byte [esi], 0x5c
push 0x5c
add esi, 1
push esi
call fcn.00473a80
mov esi, eax
add esp, 8
test esi, esi
jne 0x421da0
pop edi
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004716ba
add esp, 0x108
ret

Function at 0x421de0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x421df8
sub eax, edx
mov dword [esp + 0x10], eax
mov ecx, ebx
mov ebp, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x421e5b
mov eax, dword [esp + 0x28]
movsx eax, byte [ebx + eax]
imul eax, eax
cdq
mov esi, eax
add dword [esp + 0x14], esi
mov edi, edx
push 0xffffff
adc dword [esp + 0x1c], edi
shld ebp, ecx, 8
push 0xfffffffffffffffd
shl ecx, 8
or ebp, edi
or ecx, esi
push ebp
push ecx
call fcn.00482d20
xor dword [esp + 0x1c], esi
xor dword [esp + 0x20], edi
add ebx, 1
cmp ebx, dword [esp + 0x10]
mov ecx, eax
mov ebp, edx
jb 0x421e15
mov edx, dword [esp + 0x1c]
xor eax, eax
shl edx, 0x10
pop edi
or eax, ecx
or edx, ebp
add eax, dword [esp + 0x10]
pop esi
adc edx, dword [esp + 0x10]
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x424bb0
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4bd750]
xor eax, esp
mov dword [esp + 0x108], eax
push edi
lea edx, [esi + 4]
lea edi, [esp + 8]
call fcn.00421af0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x424beb
and eax, 0xfffffffe
push eax
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x424c3e
mov ecx, dword [esi + 0x108]
mov edx, dword [esi + 0x140]
push 0
lea eax, [esp + 8]
push eax
push ecx
push edx
push edi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
jne 0x424c56
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004716ba
add esp, 0x10c
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10c]
pop edi
xor ecx, esp
mov al, 1
call fcn.004716ba
add esp, 0x10c
ret

Function at 0x424f40
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov eax, dword [esi + 0x2a4]
test eax, eax
push edi
mov dword [esp + 0x14], 0
je 0x424f79
mov ecx, dword [esi + 0x2a8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x424f7e
call fcn.0047263c
mov eax, dword [esi + 0x2a4]
mov edi, ebp
imul edi, edi, 0x13c
mov ebx, dword [eax + edi + 0x100]
shr ebx, 2
test eax, eax
je 0x424fb7
mov ecx, dword [esi + 0x2a8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x424fbc
call fcn.0047263c
mov ecx, dword [esi + 0x2a4]
test byte [ecx + edi + 0x100], 3
je 0x424fcf
add ebx, 1
lea esi, [ebx*4]
push esi
call fcn.0044e523
push esi
mov edi, eax
push 0
push edi
call fcn.00475860
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
add esp, 0x10
xor ecx, ecx
test eax, eax
jle 0x42500e
jmp 0x425000
mov edx, dword [edi + ecx*4]
xor dword [esp + 0x14], edx
add ecx, 1
cmp ecx, eax
jl 0x425000
push edi
call fcn.0044e528
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x425110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 8], 0xffffffff
push edi
mov byte [esi + 0x11c], 0
je 0x4252b3
cmp byte [esi + 4], 0
jne 0x4252b3
mov eax, dword [esi + 0x2a4]
test eax, eax
je 0x42515b
mov ecx, dword [esi + 0x2a8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esi + 0x110], eax
je 0x4251ea
cmp dword [esi + 0x10c], 0xa
jg 0x425186
call fcn.00425030
mov byte [esi + 0x118], 1
mov dword [esi + 0x10c], 0xb
mov eax, dword [esi + 0x2a4]
test eax, eax
je 0x4251a9
mov ecx, dword [esi + 0x2a8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esi + 0x110], eax
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x4251c3
push 0
push 0
push eax
xor edx, edx
call fcn.00424e90
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x4251ea
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x110
lea edx, [esi + 0xc]
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [esi + 4], 0
jne 0x4252b3
cmp byte [esi + 0x118], 0
je 0x4252b3
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x42521a
mov ecx, dword [esi + 0x114]
push 0
push ecx
push eax
xor edx, edx
call fcn.00424e90
mov eax, dword [esi + 0x2a4]
add esi, 0x2a0
test eax, eax
jne 0x42522e
xor ebx, ebx
jmp 0x425244
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
xor edi, edi
call fcn.00412400
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
je 0x42526f
imul ebx, ebx, 0x13c
push edi
lea edx, [esp + 0x10]
push edx
push ebx
push eax
push ecx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
mov byte [esi + 0x118], 0
je 0x42528a
push 0
push 0
push eax
xor edx, edx
call fcn.00424e90
mov esi, dword [esi + 8]
cmp esi, 0xffffffff
je 0x4252b0
mov ecx, dword [ebp + 8]
push 0
lea eax, [esp + 0x10]
push eax
push 0x110
add ecx, 0xc
push ecx
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x2a8]
cmp dword [esi + 0x2a4], edi
jbe 0x4252c6
call fcn.0047263c
mov ebx, dword [esi + 0x2a4]
cmp ebx, dword [esi + 0x2a8]
jbe 0x4252d9
call fcn.0047263c
cmp ebx, edi
je 0x4252f4
push ebx
mov ebx, dword [esi + 0x2a8]
mov eax, edi
call fcn.00427e80
add esp, 4
mov dword [esi + 0x2a8], eax
mov edx, dword [esi + 0x2b4]
mov eax, dword [edx + 4]
lea edi, [esi + 0x2b0]
push eax
mov ecx, edi
call fcn.004274d0
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], 0
mov dword [eax], eax
mov edi, dword [edi + 4]
mov dword [edi + 8], edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x425339
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x425350
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebx, eax
push ebx
call fcn.00425110
mov al, byte [esp + 0x24]
test al, al
push 0
push 0x80
push 3
push 0
mov byte [ebx + 4], al
push 1
je 0x425383
mov eax, dword [esp + 0x34]
push SysReAllocStringLen
push eax
jmp 0x42538d
mov ecx, dword [esp + 0x34]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebx + 8], eax
jne 0x4253ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
push 0
lea edx, [esp + 0x28]
push edx
push 0x110
lea ecx, [ebx + 0xc]
push ecx
push eax
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx + 0x10c]
cmp eax, 0xa
jl 0x4253a1
cmp eax, 0xb
jg 0x4253a1
cmp eax, 0xa
jle 0x425405
cmp byte [ebx + 0x118], 1
je 0x4253a1
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
je 0x425440
mov edx, dword [ebx + 0x114]
push 0
push edx
push eax
xor edx, edx
call fcn.00424e90
jmp 0x425440
mov ecx, dword [ebx + 0x110]
mov edx, dword [ebx + 8]
imul ecx, ecx, 0x13c
xor eax, eax
neg ecx
adc eax, eax
neg eax
cmp edx, 0xffffffff
jne 0x425429
or eax, edx
mov dword [esp + 0x18], edx
jmp 0x42543a
push eax
push ecx
push edx
mov edx, 2
call fcn.00424e90
mov dword [esp + 0x18], edx
mov dword [ebx + 0x114], eax
mov eax, dword [ebx + 0x110]
test eax, eax
je 0x42552e
push eax
lea ebp, [ebx + 0x2a0]
push ebp
call fcn.00426d10
mov eax, dword [ebx + 0x110]
imul eax, eax, 0x13c
xor edi, edi
mov esi, ebp
mov dword [esp + 0x24], eax
call fcn.00412400
mov edx, dword [ebx + 8]
cmp edx, 0xffffffff
je 0x425487
mov esi, dword [esp + 0x24]
mov ecx, eax
call fcn.00424ee0
xor edi, edi
mov dword [esp + 0x24], edi
lea ecx, [ecx]
mov eax, dword [ebp + 4]
test eax, eax
je 0x4254ad
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jge 0x42552e
mov eax, dword [ebp + 4]
test eax, eax
je 0x4254d2
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4254d7
call fcn.0047263c
mov esi, dword [ebp + 4]
mov eax, dword [ebp + 4]
add esi, dword [esp + 0x24]
test eax, eax
je 0x4254ff
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x425504
call fcn.0047263c
mov eax, dword [ebp + 4]
mov ecx, dword [esi + 0x100]
mov edx, dword [esp + 0x24]
cmp ecx, dword [edx + eax + 0x108]
ja 0x4253a1
add edi, 1
add dword [esp + 0x24], 0x13c
jmp 0x425490
mov edi, ebx
call fcn.00425f60
mov eax, 0x4ac5e0
mov ecx, ebx
call fcn.00426c00
lea edi, [ebx + 0x220]
mov ebx, dword [esp + 0x20]
call fcn.00421a10
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret 8
Function at 0x425560
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x304
mov eax, dword [0x4bd750]
xor eax, esp
mov dword [esp + 0x2fc], eax
push ebx
push edi
push esi
mov edi, ecx
call fcn.00425110
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x4255bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop ebx
mov ecx, dword [esp + 0x2fc]
xor ecx, esp
call fcn.004716ba
add esp, 0x304
ret
push 0x110
lea edi, [esi + 0xc]
push ebx
push edi
call fcn.00475860
push str.EyedentityGames_Packing_File_0.1
push 0x100
push edi
call fcn.004739e4
mov eax, dword [esi + 8]
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x10c], 0xb
mov dword [esi + 0x110], ebx
mov dword [esi + 0x114], 0x400
je 0x4255a4
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0x110
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
mov dword [esp + 0x20], ebx
call edi
test eax, eax
je 0x4255a4
push 0x2f0
lea edx, [esp + 0x14]
push ebx
push edx
call fcn.00475860
mov eax, dword [esi + 8]
add esp, 0xc
cmp eax, 0xffffffff
je 0x425650
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0x2f0
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], ebx
call edi
mov ecx, dword [esp + 0x304]
pop edi
mov byte [esi + 4], bl
pop ebx
xor ecx, esp
mov al, 1
call fcn.004716ba
add esp, 0x304
ret
Function at 0x425760
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, eax
cmp dword [edi + 8], 0xffffffff
je 0x42585a
push edi
call fcn.004259d0
mov esi, eax
cmp esi, 0xffffffff
je 0x42585a
mov eax, dword [edi + 0x2a4]
test eax, eax
je 0x4257ab
mov ecx, dword [edi + 0x2a8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4257b0
call fcn.0047263c
imul esi, esi, 0x13c
add esi, dword [edi + 0x2a4]
mov ebx, esi
je 0x42585a
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x4257dd
mov ecx, dword [ebx + 0x10c]
push 0
push ecx
push eax
xor edx, edx
call fcn.00424e90
mov edx, dword [ebx + 0x100]
push edx
call fcn.0044e523
mov edi, dword [edi + 8]
add esp, 4
cmp edi, 0xffffffff
mov ebp, eax
je 0x425814
mov ecx, dword [ebx + 0x100]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
push ebp
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebx + 0x104]
push esi
mov dword [esp + 0x14], esi
call fcn.0044e523
mov ecx, dword [ebx + 0x100]
mov edi, eax
mov dword [esp + 0x18], esi
add esp, 4
mov eax, ebp
lea esi, [esp + 0x10]
mov edx, edi
mov dword [esp + 0x18], edi
call fcn.0042d6d0
test eax, eax
je 0x425864
push ebp
call fcn.0044e528
add esp, 4
push edi
call fcn.0044e528
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x10]
je 0x425886
push 0x217
push str..EtFileSystem.cpp
push str.dwOrigin__dwOriginalSize
call dword [0x4bf2f8]
add esp, 0xc
push ebp
call fcn.0044e528
add esp, 4
push 0x148
call fcn.0044e4f8
add esp, 4
test eax, eax
je 0x4258a9
mov esi, eax
call fcn.00424af0
jmp 0x4258ab
xor eax, eax
mov esi, ebx
lea edi, [eax + 4]
mov ecx, 0x4f
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [eax + 0x140], ecx
mov dword [eax + 0x144], 0
pop ebx
add esp, 0xc
ret
Function at 0x4258e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, eax
cmp dword [edi + 8], 0xffffffff
jne 0x4258f5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push edi
call fcn.004259d0
mov esi, eax
cmp esi, 0xffffffff
je 0x4258ed
mov eax, dword [edi + 0x2a4]
test eax, eax
je 0x425929
mov ecx, dword [edi + 0x2a8]
sub ecx, eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x42592e
call fcn.0047263c
imul esi, esi, 0x13c
add esi, dword [edi + 0x2a4]
mov ebx, esi
je 0x4258ed
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x425957
mov ecx, dword [ebx + 0x10c]
push 0
push ecx
push eax
xor edx, edx
call fcn.00424e90
mov edx, dword [ebx + 0x100]
push edx
call fcn.0044e523
mov edi, dword [edi + 8]
add esp, 4
cmp edi, 0xffffffff
mov ebp, eax
je 0x42598e
mov ecx, dword [ebx + 0x100]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
push ebp
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x148
call fcn.0044e4f8
add esp, 4
test eax, eax
je 0x4259a8
mov esi, eax
call fcn.00424af0
jmp 0x4259aa
xor eax, eax
mov esi, ebx
lea edi, [eax + 4]
mov ecx, 0x4f
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [eax + 0x140], ebp
pop ebp
mov dword [eax + 0x144], 0
pop ebx
pop ecx
ret