joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4506b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1c38
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x55a3d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 4]
mov dword [esi], vtable.NetworkService::DownloadStatusResponse.0
call fcn.00481000
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0x55c724
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], 0x55c740
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0x55c75c
mov dword [esi + 0x38], 0x55c778
mov dword [esi + 0x3c], 0x55c794
mov dword [esi + 0x40], edi
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 0x452270
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1523
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x55a3d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x38
call fcn.004b5bb8
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x4522f5
mov byte [ebp - 4], 1
lea ecx, [esi + 4]
mov dword [esi], vtable.NetworkService::DownloadStatistics.0
call fcn.00481000
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0x55c8c8
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], 0x55c8e4
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
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
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x453160
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1523
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x55a3d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x3c
call fcn.004b5bb8
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x4531e9
mov byte [ebp - 4], 1
lea ecx, [esi + 4]
mov dword [esi], vtable.NetworkService::FunctionCallRequest.0
call fcn.00481000
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
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
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x453840
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6c70
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x55a3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
or dword [esi + 0x30], 1
cmp dword [esi + 0xc], 0x55c8c8
mov edi, ecx
jne 0x45389f
push 0x1c
call fcn.004b5bb8
add esp, 4
test eax, eax
je 0x45389a
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
jmp 0x45389c
xor eax, eax
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
push 0xffffffffffffffff
push 0
lea eax, [edi + 8]
push eax
call fcn.00411950
mov eax, dword [edi + 0x24]
or dword [esi + 0x30], 2
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
or dword [esi + 0x30], 4
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
lea eax, [edi + 0x30]
lea ecx, [ebp - 0x48]
call fcn.00420810
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], 0
call fcn.0046ae62
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 1
or dword [esi + 0x30], 8
cmp dword [esi + 0x20], 0x55c8e4
jne 0x453921
push 0x1c
call fcn.004b5bb8
add esp, 4
test eax, eax
je 0x45391c
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
jmp 0x45391e
xor eax, eax
mov dword [esi + 0x20], eax
mov ecx, dword [esi + 0x20]
push 0xffffffffffffffff
push 0
push ebx
call fcn.00411950
mov ebx, 0x10
cmp dword [ebp - 0x18], ebx
jb 0x453944
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b5907
add esp, 4
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x453968
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b5907
add esp, 4
mov eax, dword [edi + 0x40]
mov edi, dword [edi + 0x44]
or dword [esi + 0x30], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b58f8
mov esp, ebp
pop ebp
ret
Function at 0x4562d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4238
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x55a3d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.004b5a92
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.00411950
mov dword [esi + 0x30], vtable.boost::exception.0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4567d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3340
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x55a3d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.004b5a92
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.00411950
mov dword [esi], vtable.boost::lock_error.0
mov dword [ebp - 4], 1
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x456862
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
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 0x4584c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4faab6
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x55a3d0]
xor eax, esp
mov dword [esp + 0xdc], eax
push esi
push edi
mov eax, dword [0x55a3d0]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
lea eax, [esp + 0xb0]
push eax
mov esi, ecx
call fcn.00457cb0
mov dword [esp + 0xf8], 0
mov eax, dword [esp + 0xb0]
mov edi, 8
cmp dword [esp + 0xc4], edi
jae 0x458535
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45869f
mov eax, dword [esp + 0xb0]
cmp dword [esp + 0xc4], edi
jae 0x45855c
lea eax, [esp + 0xb0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45869f
lea edi, [esi + 0x48]
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00420730
push 0xffffffffffffffff
mov ecx, esi
mov byte [esp + 0xfc], 1
call fcn.004543f0
lea ecx, [esp + 0x14]
push ecx
mov dword [esi + 0x28], 2
call fcn.00403200
lea edx, [esp + 0x14]
push str.NetworkService::DownloadTask::CreateDownloadFolder:_Create_download_folder
push edx
mov byte [esp + 0x100], 2
call fcn.00404d50
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0041b8e0
lea edx, [esp + 0x24]
push str._failed.
push edx
call fcn.00404d50
add esp, 0x18
lea esi, [esp + 0xcc]
lea eax, [esp + 0x14]
call fcn.00402e30
mov eax, esi
push eax
push 1
mov byte [esp + 0x100], 3
call fcn.00423a40
mov esi, 8
add esp, 8
cmp dword [esp + 0xe0], esi
jb 0x45861b
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.004b5907
add esp, 4
xor edx, edx
lea ecx, [esp + 0x14]
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], 0
mov word [esp + 0xcc], dx
mov byte [esp + 0xf8], 1
call fcn.00401690
mov byte [esp + 0xf8], 0
mov eax, closesocket
mov ecx, edi
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x458682
cmp eax, 0x80000000
jle 0x458682
mov edx, edi
lock bts dword [edx], 0x1e
jb 0x458682
call fcn.00412ee0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esp + 0xc4], esi
jb 0x45869b
mov eax, dword [esp + 0xb0]
push eax
call fcn.004b5907
add esp, 4
xor al, al
jmp 0x4586ba
cmp dword [esp + 0xc4], edi
jb 0x4586b8
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.004b5907
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.004b58f8
mov esp, ebp
pop ebp
ret
Function at 0x463180
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.004628b7
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0046286c
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.004628b7
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0046286c
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.004628a7
push esp
sub dword [ebp + 0x10], 0xfacca580
invalid
Function at 0x4687d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, esi
call fcn.00468810
test al, al
jne 0x4687e6
pop esi
pop ebp
ret 8
mov ecx, dword [esi + 0x30]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ecx
push 1
push edx
push eax
call fcn.004b75d2
dec eax
add esp, 0x10
neg eax
sbb eax, eax
inc eax
pop esi
pop ebp
ret 8
Function at 0x46e810
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, edx
push esi
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46e820
sub eax, esi
add eax, edx
mov ecx, 0x811c9dc5
cmp edx, eax
je 0x46e844
movsx esi, byte [edx]
imul ecx, ecx, 0x1000193
inc edx
xor ecx, esi
cmp edx, eax
jne 0x46e834
and ecx, 0x7fffffff
push 0x1f31d
push ecx
call fcn.004b9c1a
imul eax, eax, 0xb14
imul edx, edx, 0x41a7
add esp, 8
sub edx, eax
pop esi
mov eax, edx
jns 0x46e870
add eax, 0x7fffffff
pop ebp
ret 4

Function at 0x474cf0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
cmp esi, dword [eax]
jne 0x474d1f
cmp ecx, eax
jne 0x474d1f
mov ecx, ebx
call fcn.00473f70
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 0xc
cmp esi, ecx
je 0x474dfd
push edi
mov edx, dword [esi]
mov dword [ebp + 0xc], edx
mov edx, dword [esi + 8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x474d35
sub eax, edi
add eax, edx
mov ecx, 0x811c9dc5
cmp edx, eax
je 0x474d60
lea esp, [esp]
movsx edi, byte [edx]
imul ecx, ecx, 0x1000193
inc edx
xor ecx, edi
cmp edx, eax
jne 0x474d50
and ecx, 0x7fffffff
push 0x1f31d
push ecx
call fcn.004b9c1a
imul edx, edx, 0x41a7
imul eax, eax, 0xb14
add esp, 8
sub edx, eax
jns 0x474d8a
add edx, 0x7fffffff
mov ecx, dword [ebx + 0x20]
mov eax, ecx
and eax, edx
cmp dword [ebx + 0x24], eax
ja 0x474d9f
shr ecx, 1
or edx, 0xffffffff
sub edx, ecx
add eax, edx
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + eax*8 + 4], esi
lea ecx, [ecx + eax*8]
jne 0x474dc8
cmp dword [ecx], esi
jne 0x474dc0
mov edx, dword [ebx + 4]
mov dword [ecx], edx
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 4]
mov dword [ecx + eax*8 + 4], edx
jmp 0x474dd0
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x474dd0
cmp dword [ecx], esi
jne 0x474dd0
mov edx, dword [esi]
mov dword [ecx], edx
cmp esi, dword [ebx + 4]
je 0x474df0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
push esi
mov dword [edx + 4], eax
call fcn.004b5907
add esp, 4
dec dword [ebx + 8]
mov esi, dword [ebp + 0xc]
cmp esi, dword [ebp + 0x10]
jne 0x474d28
pop edi
mov eax, dword [ebp + 8]
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x485bf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec961
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x55a3d0]
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 esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x44], 0
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
mov dword [ebp - 0x5c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
mov ebx, dword [ebp + 0xc]
sub ebx, dword [edi + 8]
xor ecx, ecx
add ebx, dword [edi + 0xc]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x54]
push ecx
push esi
mov ecx, eax
call edx
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
sub ecx, eax
sar ecx, 2
mov dword [ebp - 0x40], 0
test ecx, ecx
je 0x485ca6
mov edx, dword [ebp - 0x40]
mov eax, dword [eax + edx*4]
push edi
push esi
push eax
call fcn.004849b0
add esp, 0xc
test al, al
mov eax, dword [ebp - 0x54]
je 0x485cce
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x40]
sub edx, eax
inc ecx
sar edx, 2
mov dword [ebp - 0x40], ecx
cmp ecx, edx
jb 0x485c7b
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
cmp byte [eax + 0x28], 0
mov eax, dword [edx + 4]
push edi
push esi
je 0x485cdf
call eax
push eax
call fcn.004847e0
add esp, 8
test al, al
jne 0x485ce9
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x485cdb
push eax
call fcn.004b5907
add esp, 4
xor al, al
jmp 0x485d5e
call eax
push eax
call fcn.004844f0
jmp 0x485cc4
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 8]
cmp ecx, ebx
je 0x485d37
push 0x23f
push str..._srcgoogleprotobufwire_format.cc
push 3
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x39], 0
call fcn.0046dc30
push str.:_Protocol_message_serialized_to_a_size_different_from_what_was_originally_expected.__Perhaps_it_was_modified_by_another_thread_during_serialization_
push str.CHECK_failed:_output__ByteCount____expected_endpoint:
mov ecx, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x44], 1
call fcn.0046dcb0
mov ecx, eax
call fcn.0046dcb0
push eax
lea ecx, [ebp - 0x39]
call fcn.0046da00
test byte [ebp - 0x44], 1
mov dword [ebp - 4], 0
je 0x485d4c
lea ecx, [ebp - 0x38]
call fcn.0046dc60
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x485d5c
push eax
call fcn.004b5907
add esp, 4
mov al, 1
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.004b58f8
mov esp, ebp
pop ebp
ret
Function at 0x49f100
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4edbf0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x55a3d0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x55a3d0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x64]
cmp eax, 1
jne 0x49f15b
test edi, edi
je 0x49f154
mov dword [edi], 0
call fcn.004a2200
mov dword [edi + 4], eax
xor al, al
jmp 0x49f25a
cmp eax, 3
je 0x49f1e4
cmp eax, 0xb
je 0x49f1e4
push 0x19
push str.boost::filesystem::remove
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.00411d00
cmp dword [esi + 0x14], 8
mov dword [esp + 0x54], 1
jb 0x49f1a0
mov eax, dword [esi]
jmp 0x49f1a2
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
lea ecx, [esp + 0x10]
push ecx
sete dl
push edi
movzx eax, dl
push esi
push eax
call fcn.0049efc0
add esp, 0x10
cmp dword [esp + 0x24], 0x10
mov bl, al
jb 0x49f1dc
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004b5907
add esp, 4
test bl, bl
je 0x49f258
xor al, al
jmp 0x49f25a
push 0x19
xor ebx, ebx
push str.boost::filesystem::remove
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.00411d00
cmp dword [esi + 0x14], 8
mov dword [esp + 0x54], ebx
jb 0x49f214
mov eax, dword [esi]
jmp 0x49f216
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
lea edx, [esp + 0x2c]
push edx
test al, al
sete al
push edi
movzx ecx, al
push esi
push ecx
call fcn.0049efc0
add esp, 0x10
cmp dword [esp + 0x40], 0x10
mov bl, al
jb 0x49f250
mov edx, dword [esp + 0x2c]
push edx
call fcn.004b5907
add esp, 4
test bl, bl
jne 0x49f154
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004b58f8
add esp, 0x48
ret

Function at 0x49f3a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x14], 8
push edi
jb 0x49f3b3
mov eax, dword [ebx]
jmp 0x49f3b5
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49f3de
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.0049f280
mov eax, dword [eax]
add esp, 0xc
pop edi
pop ebx
add esp, 8
ret
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x49f3f5
mov dword [esi], 0
call fcn.004a2200
mov dword [esi + 4], eax
pop esi
test edi, 0x400
je 0x49f42e
push ebx
call fcn.0049de00
add esp, 4
test al, al
je 0x49f423
mov edx, edi
and dl, 0x10
movzx eax, dl
neg eax
sbb eax, eax
and eax, 7
pop edi
add eax, 4
pop ebx
add esp, 8
ret
pop edi
mov eax, 9
pop ebx
add esp, 8
ret
mov eax, edi
and eax, 0x10
or eax, 0x20
pop edi
shr eax, 4
pop ebx
add esp, 8
ret
Function at 0x49f6c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4edcd0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x55a3d0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55a3d0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
cmp dword [edi + 0x14], 8
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x1c], esi
jb 0x49f70c
mov eax, dword [edi]
jmp 0x49f70e
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x49f72c
push esi
push edi
push ebp
call fcn.0049f280
add esp, 0xc
jmp 0x49f87f
test ebx, 0x400
je 0x49f83b
cmp dword [edi + 0x14], 8
jb 0x49f742
mov edx, dword [edi]
jmp 0x49f744
mov edx, edi
xor eax, eax
mov word [esp + 0x20], ax
mov eax, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49f760
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.004125c0
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0
jae 0x49f791
lea eax, [esp + 0x20]
push 0
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x48], 2
jb 0x49f7c6
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004b5907
add esp, 4
xor edx, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
cmp esi, 0xffffffff
jne 0x49f7f6
mov eax, dword [esp + 0x1c]
push eax
push edi
push ebp
call fcn.0049f280
add esp, 0xc
jmp 0x49f87f
push edi
call fcn.0049de00
add esp, 4
test al, al
jne 0x49f828
push ebx
push edi
call fcn.0049e2c0
add esp, 8
push esi
mov dword [ebp], 9
mov dword [ebp + 4], eax
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49f87f
push esi
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x49f84d
mov dword [esi], 0
call fcn.004a2200
mov dword [esi + 4], eax
push ebx
push edi
mov dword [esp + 0x1c], 3
test bl, 0x10
jne 0x49f864
mov dword [esp + 0x1c], 2
call fcn.0049e2c0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 8
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov eax, ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004b58f8
add esp, 0x38
ret