joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454831
Capabilities:
Delete file
Get common file path
Read file on windows

Disassembly:
mov eax, 0x47d660
call fcn.00478a94
sub esp, 0x23c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x3c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x3c]
xor ebx, ebx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
call fcn.0041e530
mov esi, 0x409094
mov ecx, esi
mov dword [esp + 0x254], ebx
call fcn.0041ddf3
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.0041e9ec
push 8
pop ebp
cmp dword [esp + 0x24], ebp
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push ebx
push eax
call fcn.0045a7f3
pop ecx
pop ecx
mov esi, ebx
test eax, eax
jne 0x454954
cmp dword [esp + 0x24], ebp
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x454940
push ebx
lea eax, [esp + 0x3c]
push eax
push ebp
lea eax, [esp + 0x3c]
push eax
push edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x454935
cmp dword [esp + 0x38], ebp
jne 0x454935
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.0043c75f
lea ecx, [esp + 0x30]
lea edx, [esp + 0x28]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x454933
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x454933
inc esi
jmp 0x454935
mov esi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x454954
cmp dword [esp + 0x24], ebp
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 1
lea ecx, [esp + 0x18]
call fcn.0041dab3
mov ecx, dword [esp + 0x24c]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x454fc9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47d6bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
and dword [esp + 0x24], 0
push ebx
push esi
mov ebx, ecx
xor eax, eax
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x34], 7
mov word [esp + 0x20], ax
and dword [esp + 0x6c], eax
mov edi, dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
push 0x4083cc
mov ecx, edi
call fcn.0041f64f
push ecx
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
call fcn.00454ef7
pop ecx
xor eax, eax
inc eax
mov byte [esp + 0x6c], al
mov esi, dword [esp + 0x14]
cmp esi, dword [esp + 0x18]
je 0x4550a9
lea edi, [ebx + 0x14]
mov ecx, esi
call fcn.00426105
mov ecx, dword [edi + 4]
mov ebx, eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
cmp eax, ecx
jae 0x45507f
cmp dword [edi], eax
ja 0x45507f
mov ebx, eax
sub ebx, dword [edi]
sar ebx, 2
cmp ecx, dword [edi + 8]
jne 0x45506f
push ecx
mov ecx, edi
call fcn.0041f42b
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x455095
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
mov dword [ecx], eax
jmp 0x455095
cmp ecx, dword [edi + 8]
jne 0x45508c
push ecx
mov ecx, edi
call fcn.0041f42b
mov eax, dword [edi + 4]
test eax, eax
je 0x455095
mov dword [eax], ebx
add dword [edi + 4], 4
add esi, 0x18
cmp esi, dword [esp + 0x18]
jne 0x45503f
mov ebx, dword [esp + 0x10]
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
xor ecx, ecx
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x10], edi
mov eax, dword [eax]
push ecx
mov ebx, dword [eax + 8]
mov esi, dword [eax + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [edi + 0x74], eax
push 9
pop ecx
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov eax, ebx
neg eax
mov dword [esp + 0x40], eax
push 0x20
xor eax, eax
inc eax
xor edi, edi
mov word [esp + 0x48], ax
pop eax
push edi
push edi
push edi
mov word [esp + 0x52], ax
push edi
lea eax, [esp + 0x48]
push eax
push edi
mov dword [esp + 0x50], 0x28
mov dword [esp + 0x54], esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x70], eax
mov dword [ecx + 0x78], esi
mov dword [ecx + 0x7c], ebx
lea ecx, [esp + 0x14]
call fcn.0041e473
xor eax, eax
push edi
inc eax
push eax
lea ecx, [esp + 0x28]
call fcn.0041dab3
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4558eb
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x4558fe
xor eax, eax
inc eax
jmp 0x4559eb
push 0x406f18
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 4], eax
test eax, eax
jne 0x455919
xor eax, eax
jmp 0x4559eb
mov ecx, eax
call fcn.0045675f
push 0x64
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x455940
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], ebx
jmp 0x455912
push ebp
push 0x406f68
mov ebp, 0x1000
push ebp
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi], eax
test eax, eax
jne 0x455977
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], ebx
xor eax, eax
jmp 0x4559ea
push esi
xor esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45598c
mov esi, ebx
jmp 0x455993
mov ecx, dword [edi]
call fcn.0045675f
push ebx
push ebx
push ebx
push 0xf001f
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 8], eax
test eax, eax
jne 0x4559cb
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi]
mov dword [edi + 4], ebx
call esi
mov dword [edi], ebx
xor eax, eax
jmp 0x4559e9
test esi, esi
je 0x4559da
push ebp
push ebx
push eax
call fcn.00466e30
add esp, 0xc
push dword [edi + 4]
mov dword [edi + 0xc], ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
inc eax
pop esi
pop ebp
pop edi
pop ebx
ret 0xc

Function at 0x455bfc
Capabilities:
Create thread

Disassembly:
mov eax, 0x47d76d
call fcn.00478a94
push ecx
push ecx
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x455c5b
push esi
mov esi, 0x4e7c30
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x486068], 1
jne 0x455c53
cmp dword [0x486064], eax
jne 0x455c4a
push eax
push eax
push eax
push 0x455bd5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x486064], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00455f3e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x472dcf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x482c80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0046b5e6
mov dword [ebp - 0x14], eax
cmp dword [0x485e10], edi
jne 0x472ec0
push 0x800
push edi
push 0x40513c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x472e4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x472fa0
push 0x40513c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x472fa0
push 0x405154
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x472fa0
push eax
call ebx
push 0x405160
push esi
mov dword [0x485e10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405170
push esi
mov dword [0x485e14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405184
push esi
mov dword [0x485e18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x485e20], eax
test eax, eax
je 0x472ebd
push 0x4051a0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x485e1c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x472ee5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x472ed8
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x472efa
push 4
pop eax
jmp 0x472fa2
cmp dword [ebp - 0x14], edi
je 0x472efa
push dword [0x485e10]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x472edf
mov eax, dword [0x485e1c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x472f58
cmp dword [0x485e20], esi
je 0x472f58
push eax
call ebx
push dword [0x485e20]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x472f58
test eax, eax
je 0x472f58
call ecx
test eax, eax
je 0x472f4d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x472f4d
test byte [ebp - 8], 1
jne 0x472f58
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x472f88
mov eax, dword [0x485e14]
cmp eax, esi
je 0x472f85
push eax
call ebx
test eax, eax
je 0x472f85
call eax
mov edi, eax
test edi, edi
je 0x472f85
mov eax, dword [0x485e18]
cmp eax, esi
je 0x472f85
push eax
call ebx
test eax, eax
je 0x472f85
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x485e10]
call ebx
test eax, eax
je 0x472fa0
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x472fa2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f30b
leave
ret
Function at 0x10008880
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [ebp + 0xc]
push edi
call fcn.1007c2e0
test eax, eax
jne 0x100089e6
cmp byte [0x101170fc], al
jne 0x100088a4
xor edi, edi
jmp 0x100088bf
push 5
call dword [0x10117140]
mov edi, eax
add esp, 4
test edi, edi
je 0x100088bf
push edi
call dword [0x10117148]
add esp, 4
mov edx, dword [ebp + 8]
test edx, edx
jle 0x100089ce
test esi, esi
je 0x100089ce
cmp dword [0x10119650], 0
jne 0x1000895a
push 0
call fcn.1007c2e0
movups xmm0, xmmword [str.expand_32_byte_k]
add esp, 4
movups xmmword [0x10119650], xmm0
test eax, eax
jne 0x10008906
push 0x2c
push eax
push 0x10119660
call sub.VCRUNTIME140.dll_memset
jmp 0x10008936
cmp dword [0x1011720c], 0
je 0x10008929
push 0x2c
push 0
push 0x10119660
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x1011720c]
mov dword [0x10119660], eax
jmp 0x10008936
push 0x10119660
push 0x2c
push eax
mov eax, dword [eax + 0x38]
call eax
mov eax, dword [0x10119680]
add esp, 0xc
mov edx, dword [ebp + 8]
xor cl, cl
mov dword [0x1011968c], eax
mov dword [0x10119680], 0
mov byte [0x101196d0], cl
jmp 0x10008960
mov cl, byte [0x101196d0]
movzx eax, cl
cmp edx, eax
jle 0x100089ae
test cl, cl
je 0x10008989
movzx eax, cl
push eax
push 0x10119690
push esi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [0x101196d0]
add esp, 0xc
sub dword [ebp + 8], eax
add esi, eax
inc dword [0x10119680]
mov edx, 0x10119650
mov ecx, 0x10119690
call fcn.1007c2e0
mov edx, dword [ebp + 8]
mov cl, 0x40
mov byte [0x101196d0], cl
cmp edx, 0x40
jg 0x10008967
movzx eax, cl
sub eax, edx
push edx
add eax, 0x10119690
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
sub byte [0x101196d0], al
jmp 0x100089d8
mov dword [0x10119650], 0
test edi, edi
je 0x100089e6
push edi
call dword [0x10117150]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d580
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10d8
call fcn.00475080
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x10d8]
mov ecx, 0x436
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x5126a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax], vtable.cAESFile.0
mov byte [ebp - 0x1014], 0x5e
mov byte [ebp - 0x1013], 0x21
mov byte [ebp - 0x1012], 0x5e
mov byte [ebp - 0x1011], 0x61
mov byte [ebp - 0x1010], 0x73
mov byte [ebp - 0x100f], 0x69
mov byte [ebp - 0x100e], 0x72
mov byte [ebp - 0x100d], 0x66
mov byte [ebp - 0x100c], 0x31
mov byte [ebp - 0x100b], 0x5e
mov byte [ebp - 0x100a], 0x23
mov byte [ebp - 0x1009], 0x36
mov byte [ebp - 0x1008], 0x38
mov byte [ebp - 0x1007], 0x30
mov byte [ebp - 0x1006], 0x6f
mov byte [ebp - 0x1005], 0x69
mov byte [ebp - 0x1004], 0x5b
mov byte [ebp - 0x1003], 0x73
mov byte [ebp - 0x1002], 0x64
mov byte [ebp - 0x1001], 0x66
mov byte [ebp - 0x1000], 0x67
mov byte [ebp - 0xfff], 0x38
mov byte [ebp - 0xffe], 0x39
mov byte [ebp - 0xffd], 0x70
mov byte [ebp - 0xffc], 0x6f
mov byte [ebp - 0xffb], 0x61
mov byte [ebp - 0xffa], 0x38
mov byte [ebp - 0xff9], 0x61
mov byte [ebp - 0xff8], 0x62
mov byte [ebp - 0xff7], 0x21
mov byte [ebp - 0xff6], 0x40
mov byte [ebp - 0xff5], 0x25
mov byte [ebp - 0xff4], 0x51
mov byte [ebp - 0xff3], 0x54
mov byte [ebp - 0xff2], 0x51
mov byte [ebp - 0xff1], 0x67
mov byte [ebp - 0xff0], 0x73
mov byte [ebp - 0xfef], 0x64
mov byte [ebp - 0xfee], 0x67
mov byte [ebp - 0xfed], 0x51
mov byte [ebp - 0xfec], 0x45
mov byte [ebp - 0xfeb], 0x54
mov byte [ebp - 0xfea], 0x59
mov byte [ebp - 0xfe9], 0x51
mov byte [ebp - 0xfe8], 0x66
mov byte [ebp - 0xfe7], 0x61
mov byte [ebp - 0xfe6], 0x31
mov byte [ebp - 0xfe5], 0x32
mov byte [ebp - 0xfe4], 0x34
mov byte [ebp - 0xfe3], 0x30
mov byte [ebp - 0xfe2], 0x2a
mov byte [ebp - 0xfe1], 0x2f
mov byte [ebp - 0xfe0], 0
push 0xfcb
push 0
lea eax, [ebp - 0xfdf]
push eax
call fcn.00472780
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4f03cc]
mov dword [edx + 0xc], eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x1010
push ecx
call fcn.00472130
add esp, 0xc
mov eax, dword [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x40d7b0]
call fcn.00474980
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474a10
add esp, 0x10d8
cmp ebp, esp
call fcn.004749e0
mov esp, ebp
pop ebp
ret
Function at 0x40e900
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10e4
call fcn.00475080
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x10e4]
mov ecx, 0x439
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x5126a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0x1014], 0x5e
mov byte [ebp - 0x1013], 0x21
mov byte [ebp - 0x1012], 0x5e
mov byte [ebp - 0x1011], 0x61
mov byte [ebp - 0x1010], 0x73
mov byte [ebp - 0x100f], 0x69
mov byte [ebp - 0x100e], 0x72
mov byte [ebp - 0x100d], 0x66
mov byte [ebp - 0x100c], 0x31
mov byte [ebp - 0x100b], 0x5e
mov byte [ebp - 0x100a], 0x23
mov byte [ebp - 0x1009], 0x36
mov byte [ebp - 0x1008], 0x38
mov byte [ebp - 0x1007], 0x30
mov byte [ebp - 0x1006], 0x6f
mov byte [ebp - 0x1005], 0x69
mov byte [ebp - 0x1004], 0x5b
mov byte [ebp - 0x1003], 0x73
mov byte [ebp - 0x1002], 0x64
mov byte [ebp - 0x1001], 0x66
mov byte [ebp - 0x1000], 0x67
mov byte [ebp - 0xfff], 0x38
mov byte [ebp - 0xffe], 0x39
mov byte [ebp - 0xffd], 0x70
mov byte [ebp - 0xffc], 0x6f
mov byte [ebp - 0xffb], 0x61
mov byte [ebp - 0xffa], 0x38
mov byte [ebp - 0xff9], 0x61
mov byte [ebp - 0xff8], 0x62
mov byte [ebp - 0xff7], 0x21
mov byte [ebp - 0xff6], 0x40
mov byte [ebp - 0xff5], 0x25
mov byte [ebp - 0xff4], 0x51
mov byte [ebp - 0xff3], 0x54
mov byte [ebp - 0xff2], 0x51
mov byte [ebp - 0xff1], 0x67
mov byte [ebp - 0xff0], 0x73
mov byte [ebp - 0xfef], 0x64
mov byte [ebp - 0xfee], 0x67
mov byte [ebp - 0xfed], 0x51
mov byte [ebp - 0xfec], 0x45
mov byte [ebp - 0xfeb], 0x54
mov byte [ebp - 0xfea], 0x59
mov byte [ebp - 0xfe9], 0x51
mov byte [ebp - 0xfe8], 0x66
mov byte [ebp - 0xfe7], 0x61
mov byte [ebp - 0xfe6], 0x31
mov byte [ebp - 0xfe5], 0x32
mov byte [ebp - 0xfe4], 0x34
mov byte [ebp - 0xfe3], 0x30
mov byte [ebp - 0xfe2], 0x2a
mov byte [ebp - 0xfe1], 0x2f
mov byte [ebp - 0xfe0], 0
push 0xfcb
push 0
lea eax, [ebp - 0xfdf]
push eax
call fcn.00472780
add esp, 0xc
mov dword [ebp - 0x1020], 0
jmp 0x40ead5
mov eax, dword [ebp - 0x1020]
add eax, 1
mov dword [ebp - 0x1020], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1020]
cmp ecx, dword [eax + 4]
jge 0x40eb2c
mov eax, dword [ebp - 0x1020]
mov ecx, dword [eax*4 + 0x4f03d0]
cmp ecx, dword [ebp + 8]
jne 0x40eb2a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1020]
mov edx, dword [ecx*4 + 0x4f03d0]
mov dword [eax + 8], edx
push 0x1000
lea eax, [ebp - 0x1014]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x10
push ecx
call fcn.00472130
add esp, 0xc
mov eax, 1
jmp 0x40eb2e
jmp 0x40eac6
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x40eb60]
call fcn.00474980
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474a10
add esp, 0x10e4
cmp ebp, esp
call fcn.004749e0
mov esp, ebp
pop ebp
ret 4
Function at 0x416cf0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ac
push ebx
push esi
push edi
lea edi, [ebp - 0x3ac]
mov ecx, 0xeb
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x5126a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5172f8], 0
je 0x416d71
mov esi, esp
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.ASSERT___file:_s_line:_d___s__do_you_debug_
push 0x5171f8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
cmp esi, esp
call fcn.004749e0
mov esi, esp
push 0x40004
push 0
push 0x5171f8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.004749e0
cmp eax, 6
jne 0x416d6c
int3
jmp 0x416ecd
cmp dword [ebp + 0x10], 0
je 0x416d99
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_line:_d__msg:_s_
lea eax, [ebp - 0x108]
push eax
call fcn.00476770
add esp, 0x14
jmp 0x416db5
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_line:_d_
lea edx, [ebp - 0x108]
push edx
call fcn.00476770
add esp, 0x10
mov byte [ebp - 0x228], 0
push 0xff
push 0
lea eax, [ebp - 0x227]
push eax
call fcn.00472780
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp esi, esp
call fcn.004749e0
movzx eax, word [ebp - 0x11a]
push eax
movzx ecx, word [ebp - 0x11e]
push ecx
movzx edx, word [ebp - 0x120]
push edx
push str.._Log_Assert__4d_02d_02d.txt
lea eax, [ebp - 0x228]
push eax
call fcn.00476770
add esp, 0x14
cmp dword [0x5171f0], 0
jne 0x416ecd
mov esi, esp
push 0
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp esi, esp
call fcn.004749e0
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0xffffffff
jne 0x416e67
mov esi, esp
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004749e0
jmp 0x416ecd
mov esi, esp
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.004749e0
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x24c]
shl eax, 0x10
or eax, dword [ebp - 0x240]
mov dword [ebp - 0x234], eax
mov esi, esp
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004749e0
cmp dword [ebp - 0x234], 0xf4240
ja 0x416ec3
jmp 0x416ecd
mov dword [0x5171f0], 1
push edx
mov ecx, ebp
push eax
lea edx, [0x416efc]
call fcn.00474980
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474a10
add esp, 0x3ac
cmp ebp, esp
call fcn.004749e0
mov esp, ebp
pop ebp
ret
Function at 0x417000
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
push ebx
push esi
push edi
lea edi, [ebp - 0x4c4]
mov ecx, 0x131
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x5126a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x208], 0
push 0x1ff
push 0
lea eax, [ebp - 0x207]
push eax
call fcn.00472780
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x41706d
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_line:_d__msg:_s_
lea eax, [ebp - 0x208]
push eax
call fcn.00476770
add esp, 0x14
jmp 0x417089
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_line:_d_
lea edx, [ebp - 0x208]
push edx
call fcn.00476770
add esp, 0x10
mov byte [ebp - 0x328], 0
push 0xff
push 0
lea eax, [ebp - 0x327]
push eax
call fcn.00472780
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp esi, esp
call fcn.004749e0
movzx eax, word [ebp - 0x21a]
push eax
movzx ecx, word [ebp - 0x21e]
push ecx
movzx edx, word [ebp - 0x220]
push edx
push str.._Log_Debug__4d_02d_02d.txt
lea eax, [ebp - 0x328]
push eax
call fcn.00476770
add esp, 0x14
cmp dword [0x5171f4], 0
jne 0x41724a
mov esi, esp
push 0
lea eax, [ebp - 0x3e8]
push eax
lea ecx, [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp esi, esp
call fcn.004749e0
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0xffffffff
jne 0x417191
mov esi, esp
mov eax, dword [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004749e0
push 0x4f0a58
lea eax, [ebp - 0x328]
push eax
call fcn.004764d0
add esp, 8
mov dword [ebp - 0x3f4], eax
cmp dword [ebp - 0x3f4], 0
je 0x41718c
call fcn.00402ca7
push eax
lea eax, [ebp - 0x208]
push eax
push str._stime:_s_n
mov ecx, dword [ebp - 0x3f4]
push ecx
call fcn.00473260
add esp, 0x10
mov eax, dword [ebp - 0x3f4]
push eax
call fcn.00476160
add esp, 4
jmp 0x41724a
mov esi, esp
lea eax, [ebp - 0x34c]
push eax
mov ecx, dword [ebp - 0x358]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.004749e0
mov dword [ebp - 0x340], eax
mov eax, dword [ebp - 0x34c]
shl eax, 0x10
or eax, dword [ebp - 0x340]
mov dword [ebp - 0x334], eax
mov esi, esp
mov eax, dword [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004749e0
cmp dword [ebp - 0x334], 0xf4240
ja 0x417240
push 0x4f0a58
lea eax, [ebp - 0x328]
push eax
call fcn.004764d0
add esp, 8
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
je 0x41723e
call fcn.00402ca7
push eax
lea eax, [ebp - 0x208]
push eax
push str._stime:_s_n
mov ecx, dword [ebp - 0x400]
push ecx
call fcn.00473260
add esp, 0x10
mov eax, dword [ebp - 0x400]
push eax
call fcn.00476160
add esp, 4
jmp 0x41724a
mov dword [0x5171f4], 1
push edx
mov ecx, ebp
push eax
lea edx, [0x41727c]
call fcn.00474980
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474a10
add esp, 0x4c4
cmp ebp, esp
call fcn.004749e0
mov esp, ebp
pop ebp
ret