joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c93a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [edi]
je 0x43c959
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
mov esi, dword [ebp + 8]
cmp esi, dword [edi + 0x54]
je 0x43ca39
cmp dword [edi + 0x54], 0
je 0x43c9bd
and dword [esp + 0x24], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x14], xmm0
movlpd qword [esp + 0x1c], xmm0
mov dword [esp + 8], 0x14
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x54]
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
push ecx
push 0
push 0
push str.killfocus
push dword [edi + 0x54]
mov ecx, edi
call fcn.0043cf62
and dword [edi + 0x54], 0
test esi, esi
je 0x43ca39
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x43ca39
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
test al, al
je 0x43ca39
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd4]
test al, al
je 0x43ca39
and dword [esp + 0x24], 0
xorps xmm0, xmm0
mov dword [edi + 0x54], esi
movlpd qword [esp + 0x14], xmm0
movlpd qword [esp + 0x1c], xmm0
mov dword [esp + 8], 0x15
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x54]
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
push ecx
push 0
push 0
push str.setfocus
push dword [edi + 0x54]
mov ecx, edi
call fcn.0043cf62
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x43eea4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43eed6
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x44577c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.0044581b
push 0x62b5f4
push 0x82
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x445816
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x44580f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x44580f
push edi
call fcn.004ce42c
pop ecx
push edi
push ebx
mov dword [0x64c724], eax
mov dword [0x64c728], edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [0x64c724]
call fcn.004d0380
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [0x64c728]
mov ecx, dword [0x64c724]
push 3
call fcn.0040f4b0
pop ecx
mov dword [0x64c720], eax
mov dword [0x645a64], 4
jmp 0x445816
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x44591c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x64c72c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
test eax, eax
je 0x44593f
push 1
push eax
call fcn.004ce3c6
pop ecx
pop ecx
mov dword [0x64c72c], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push esi
mov dword [0x64c730], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x445967
xor al, al
jmp 0x4459c1
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x44597f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4459af
push edi
mov dword [ebp - 4], ebx
call fcn.004ce42c
pop ecx
push 0
mov ebx, eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x4459b3
push ebx
call fcn.004ce3f7
pop ecx
xor al, al
jmp 0x4459c0
mov dword [0x64c730], eax
mov al, 1
mov dword [0x64c72c], ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4489c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x4dc], 0
je 0x448a29
cmp dword [ebp + 8], 0x100
jne 0x448a19
cmp word [ebp + 0xc], 0xd
jne 0x448a19
cmp byte [esi + 0x4e2], 0
je 0x4489fe
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x448a19
cmp byte [esi + 0x4e3], 0
jne 0x448a19
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x448a15
push ecx
push 0
push 0
push str.return
push esi
call fcn.0043cf62
xor eax, eax
jmp 0x448a2c
mov eax, dword [esi + 0x4dc]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebp
ret 0x10
Function at 0x44f053
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x44f07f
cmp eax, edi
jge 0x44f073
call fcn.0044e98f
mov eax, dword [esi + 8]
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x44f0a5
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx - 4], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x44f088
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x44f0bf
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x44f0b0
xor dl, dl
jmp 0x44f0b5
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x44f0a7
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp - 2]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x44f0ec
call fcn.00418740
jmp 0x44f122
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
ja 0x44f0e5
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x44f10c
mov edx, edi
mov ecx, esi
call fcn.0044e9c3
test eax, eax
je 0x44f122
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004d0380
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x45890d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x45897a
cmp dword [esi + 0x10], 0
je 0x45897a
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004cf190
mov ebx, esp
test ebx, ebx
je 0x45897a
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1b8
call fcn.0043fb09
mov ecx, dword [esi + 0x10]
push ecx
push 0
push 0
mov eax, dword [ecx]
push 0x631fc4
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043cf62
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cdf5d
leave
ret 0x10
Function at 0x464a2e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x98], esi
mov dword [esi + 0x10], eax
mov dword [eax + 0x5a4], ebx
cmp dword [esi + 4], ebx
jne 0x464ac3
lea eax, [ebp - 0xa8]
push eax
call fcn.00464b3a
mov ecx, dword [esi + 0x10]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0xa8]
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
push ecx
push ebx
push 0x40000000
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043ab60
mov esi, dword [ebp - 0x98]
mov ecx, esi
push eax
call fcn.0043edd4
mov ecx, dword [esi + 0x10]
call fcn.0045fe1b
push eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043d599
push 1
push dword [eax]
push 0x30
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
call fcn.0043fabb
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.0043f9a3
mov edi, 0x594
test bl, bl
je 0x464afb
mov eax, dword [esi + 0x10]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x10]
add eax, edi
push eax
push 0
push 0x1002
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 8]
pop edi
mov byte [esi + 0x18], 1
xor ecx, ebp
pop esi
pop ebx
call fcn.004cdf5d
leave
ret 4
Function at 0x46a0a0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bc72c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x6441a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x54], 0
mov dword [esi], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xf
mov byte [esi + 0x1c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0xf
mov byte [esi + 0x34], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 6
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0xf
mov byte [esi + 0x54], 0
mov dword [esi + 0x6c], 0
lea ecx, [esi + 0x74]
mov dword [ebp - 4], 0
mov dword [esi + 0x70], 0
mov dword [ebp - 0x14], ecx
call fcn.00475d30
push 0x7c
mov byte [ebp - 4], 1
mov dword [esi + 0x7c], vtable.mars::comm::Thread.0
mov dword [esi + 0x80], 0
mov byte [esi + 0x84], 0
call fcn.004ce3fc
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x46a1ce
push 0xc
call fcn.004ce3fc
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46a1c2
push eax
mov ecx, edi
mov dword [eax], vtable.detail::RunnableFunctor_class_mars_boost::_bi::bind_t_void__class_mars_boost::_mfi::mf0_void__class_mars::xlog::XloggerAppender___class_mars_boost::_bi::list1_class_mars_boost::_bi::value_class_mars::xlog::XloggerAppender_____.0
mov dword [eax + 4], 0x46d150
mov dword [eax + 8], esi
call fcn.00469ff0
jmp 0x46a1d0
xor eax, eax
mov ecx, edi
push eax
call fcn.00469ff0
jmp 0x46a1d0
xor eax, eax
mov dword [esi + 0x80], eax
lea ecx, [ebp - 0x18]
push 1
add eax, 0x70
push eax
call fcn.00469980
mov eax, dword [esi + 0x80]
inc dword [eax + 4]
cmp byte [ebp - 0x14], 0
je 0x46a1fe
mov eax, dword [ebp - 0x18]
xor ecx, ecx
xchg dword [eax], ecx
mov byte [ebp - 0x14], 0
lea eax, [esi + 0x88]
push 2
push eax
call fcn.004b6ea6
lea eax, [esi + 0xb8]
push 2
push eax
call fcn.004b6ea6
mov dword [esi + 0xe8], 0
lea eax, [esi + 0x11c]
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov word [esi + 0xf8], 0x100
push 2
push eax
mov dword [esi + 0xfc], 0
mov dword [esi + 0x100], 0
mov dword [esi + 0x104], 0
mov dword [esi + 0x108], 0
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x114], 0
mov dword [esi + 0x118], 0
call fcn.004b6ea6
mov dword [esi + 0x14c], 0
push 0x400
lea eax, [esi + 0x170]
mov byte [ebp - 4], 6
push 0
push eax
mov dword [esi + 0x150], 0
mov dword [esi + 0x154], 0
mov dword [esi + 0x158], 0xd2f00
mov dword [esi + 0x160], 0
mov dword [esi + 0x164], 0
mov dword [esi + 0x168], 0
mov dword [esi + 0x16c], 0
call fcn.004d0100
add esp, 0x24
mov ecx, esi
push dword [ebp + 8]
call fcn.0046b5c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x46c870
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esi + 0xfc]
mov dword [esi], eax
call fcn.004716d0
cmp dword [esi], 0
jne 0x46c93f
mov eax, dword [esi + 0x80]
cmp byte [eax + 0xd], 0
je 0x46c93f
push 1
add eax, 0x70
lea ecx, [ebp - 8]
push eax
call fcn.00469980
mov eax, dword [esi + 0x80]
cmp byte [eax + 0xd], 0
je 0x46c932
mov byte [eax + 0xd], 0
mov ecx, dword [esi + 0x80]
mov al, byte [esi + 0x84]
push edi
push 0
mov byte [ecx + 0xc], al
mov eax, dword [esi + 0x80]
push 0
inc dword [eax + 4]
mov edi, dword [esi + 0x80]
push edi
push 0x471cd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x46c8fc
mov dword [edi + 8], eax
jmp 0x46c931
push str.thrd_success__ret
push 0x628f39
push 0xcc
push str.D:Tools_agentworkspaceMars_Releasemarsmarscomm_thread.._windows_thread_thread.h
call sym.WeChatUpdate.exe___ASSERT
mov eax, dword [esi + 0x80]
add esp, 0x10
mov byte [eax + 0xd], 1
lea eax, [ebp - 8]
mov ecx, dword [esi + 0x80]
push eax
call fcn.0046c730
pop edi
cmp byte [ebp - 4], 0
je 0x46c93f
mov eax, dword [ebp - 8]
xor ecx, ecx
xchg dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x471c00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [ebp - 8]
push edi
push 1
mov eax, dword [esi + 4]
add eax, 0x70
push eax
call fcn.00469980
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
je 0x471cad
mov dword [eax + 0x6c], 0
mov eax, dword [esi + 4]
push 0
push 0
mov byte [eax + 0x18], 0
mov eax, dword [esi + 4]
mov byte [eax + 0xd], 0
mov ecx, dword [esi + 4]
mov al, byte [esi + 8]
mov byte [ecx + 0xc], al
mov ecx, dword [esi + 4]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 4]
inc dword [eax + 4]
mov edi, dword [esi + 4]
push edi
push 0x471d00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x471caa
push str.thrd_success__ret
push 0x628f39
push 0x103
push str.D:Tools_agentworkspaceMars_Releasemarsmarscomm_thread.._windows_thread_thread.h
or edi, 0xffffffff
call sym.WeChatUpdate.exe___ASSERT
mov eax, dword [esi + 4]
add esp, 0x10
mov byte [eax + 0xd], 1
mov eax, dword [esi + 4]
mov dword [eax + 0x10], edi
lea eax, [ebp - 8]
mov ecx, dword [esi + 4]
push eax
call fcn.0046c730
jmp 0x471caf
mov dword [edi + 8], eax
xor edi, edi
cmp byte [ebp - 4], 0
je 0x471cbc
mov ecx, dword [ebp - 8]
xor edx, edx
xchg dword [ecx], edx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x476490
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bdb9d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6441a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 8], 2
mov edi, 0xc0000000
mov eax, dword [ebp + 0x20]
mov ecx, closesocket
setne bl
mov dword [ebp - 4], 0
cmovne edi, ecx
or eax, dword [ebp + 0x24]
je 0x4764e6
mov edx, 2
test bl, bl
je 0x4764eb
mov edx, 3
test bl, bl
mov eax, 1
push 0
mov ecx, 0x100
cmovne ecx, eax
cmp byte [ebp + 0x60], 0
push ecx
push edx
push 0
push eax
push edi
je 0x47651c
cmp dword [ebp + 0x5c], 8
lea eax, [ebp + 0x48]
cmovae eax, dword [ebp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x47652e
cmp dword [ebp + 0x44], 0x10
lea eax, [ebp + 0x30]
cmovae eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [esi + 0x70], ecx
cmp ecx, 0xffffffff
jne 0x476542
push str.failed_opening_file
jmp 0x476621
mov edx, dword [ebp + 0x20]
mov eax, edx
mov edi, dword [ebp + 0x24]
or eax, edi
je 0x476589
test bl, bl
jne 0x476589
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x476572
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47657f
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x476589
push str.failed_setting_file_size
jmp 0x476621
push 0x5c2200
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x5c2210
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esi + 0x70]
test eax, eax
je 0x4765e0
lea edx, [ebp - 0x14]
push edx
push ecx
call eax
test eax, eax
je 0x47661c
mov eax, dword [ebp - 0x10]
xor ecx, ecx
or ecx, dword [ebp - 0x14]
cdq
mov edx, dword [ebp + 0x18]
cmp edx, 0xffffffff
je 0x4765d1
test eax, eax
jg 0x4765cd
jl 0x4765d1
cmp ecx, edx
jb 0x4765d1
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [esi + 0x6c], 0
mov dword [esi + 0x68], ecx
jmp 0x476628
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x47661c
mov edx, dword [ebp + 0x18]
xor ecx, ecx
or ecx, eax
mov eax, dword [ebp - 0x10]
cmp edx, 0xffffffff
je 0x47660d
test eax, eax
jg 0x476609
jl 0x47660d
cmp ecx, edx
jb 0x47660d
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [esi + 0x6c], 0
mov dword [esi + 0x68], ecx
jmp 0x476628
push str.failed_querying_file_size
mov ecx, esi
call fcn.00475ed0
lea ecx, [ebp + 0x30]
call fcn.00475db0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x60
Function at 0x478760
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x478775
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47879b
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push esi
push eax
call fcn.004785a0
add esp, 0xc
mov eax, dword [eax]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4787b1
mov dword [edi], 0
call fcn.004732d0
mov dword [edi + 4], eax
pop edi
test ebx, 0x400
je 0x4787e8
push esi
call fcn.00477f30
add esp, 4
test al, al
je 0x4787dd
test bl, 0x10
mov eax, 4
mov ecx, 0xb
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x478a40
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
cmp eax, 1
jne 0x478a6c
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x478af2
mov dword [esi], 0
call fcn.004732d0
mov dword [esi + 4], eax
xor al, al
pop edi
pop esi
pop ebp
ret
cmp eax, 3
je 0x478a8c
cmp eax, 0xb
je 0x478a8c
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x478a83
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x478aa0
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x478a99
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x478ada
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x478ada
cmp eax, 3
je 0x478ada
cmp eax, 0x7b
je 0x478ada
cmp eax, 0xf
je 0x478ada
cmp eax, 0x15
je 0x478ada
cmp eax, 0x57
je 0x478ada
cmp eax, 0xa1
je 0x478ada
cmp eax, 0x35
je 0x478ada
call edi
jmp 0x478adc
xor eax, eax
push str.mars_boost::filesystem::remove
push dword [ebp + 0x10]
push esi
push eax
call fcn.00477d60
add esp, 0x10
test al, al
je 0x478af8
pop edi
xor al, al
pop esi
pop ebp
ret
pop edi
mov al, 1
pop esi
pop ebp
ret
Function at 0x478b80
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x478b93
mov ecx, dword [eax]
push str.mars_boost::filesystem::space
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
neg eax
sbb eax, eax
inc eax
push eax
call fcn.00477d60
mov edx, dword [ebp + 8]
add esp, 0x10
test al, al
jne 0x478bfc
mov ecx, dword [ebp - 4]
xor eax, eax
add eax, dword [ebp - 8]
mov dword [edx + 8], eax
adc ecx, 0
xor eax, eax
add eax, dword [ebp - 0x10]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0xc]
adc ecx, 0
mov dword [edx + 0x10], eax
xor eax, eax
mov dword [edx + 0x14], ecx
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
adc ecx, 0
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, edx
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [edx + 0x10], 0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edx + 0x14], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx], eax
mov eax, edx
mov dword [edx + 4], ecx
mov esp, ebp
pop ebp
ret
Function at 0x478c40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be05d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, edi
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
cmp dword [edi + 0x14], 8
jb 0x478c81
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x478ca0
push esi
push edi
push ebx
call fcn.004785a0
add esp, 0xc
jmp 0x478de6
test eax, 0x400
je 0x478db5
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x478cb5
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478cd0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402460
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
cmp edx, 8
jb 0x478d50
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x478d46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478e04
push edx
push ecx
call fcn.004ce3c6
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
jne 0x478d78
push dword [ebp - 0x2c]
push edi
push ebx
call fcn.004785a0
add esp, 0xc
jmp 0x478de6
push edi
call fcn.00477f30
add esp, 4
test al, al
jne 0x478da4
mov eax, dword [ebp - 0x30]
push eax
push edi
call fcn.00478240
add esp, 8
mov dword [ebx], 9
mov dword [ebx + 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x478de6
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x478dc7
mov dword [esi], 0
call fcn.004732d0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x30]
mov esi, eax
push eax
push edi
call fcn.00478240
xor ecx, ecx
mov dword [ebx + 4], eax
add esp, 8
and esi, 0x10
setne cl
add ecx, 2
mov dword [ebx], ecx
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 - 0x10]
xor ecx, ebp
call fcn.004cdf5d
mov esp, ebp
pop ebp
ret
call fcn.004d8605
int3