joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055d0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e8e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x476458]
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 eax, dword [ebp + 8]
mov dword [ebp - 0xc0], eax
add eax, 0x1e0
xor ebx, ebx
xor edi, edi
cmp dword [eax + 0x14], 8
mov dword [ebp - 0xc4], eax
jb 0x40561e
mov eax, dword [eax]
cmp eax, ebx
jne 0x405627
mov eax, 0x464c78
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ecx, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x405640
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.00408f90
cmp dword [ebp - 0x1c], ebx
je 0x405680
lea edx, [ebp - 0xbc]
push edx
lea ecx, [ebp - 0xc8]
mov edx, esi
xor edi, edi
call fcn.004153d0
add esp, 4
cmp eax, ebx
jne 0x405680
mov edi, dword [ebp - 0xbc]
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x405696
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004410cb
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp edi, ebx
je 0x40570d
mov eax, edi
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4056c0
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x64]
call fcn.00402d60
mov edx, dword [ebp - 0xc0]
add edx, 0x1d0
push edx
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.004350e0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x50], 0x10
jb 0x405704
mov eax, dword [ebp - 0x64]
push eax
call fcn.004410cb
add esp, 4
push edi
call fcn.004411f8
add esp, 4
mov eax, dword [ebp - 0xc4]
cmp dword [eax + 0x14], esi
jb 0x40571a
mov eax, dword [eax]
cmp eax, ebx
jne 0x405723
mov eax, 0x464c78
xor ecx, ecx
mov word [ebp - 0x48], cx
mov ecx, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
lea esi, [ecx + 2]
jmp 0x405740
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x405740
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x48]
call fcn.00408f90
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0xb4]
mov dword [ebp - 4], 1
mov esi, vtable.af_path_temp_class_af_path_impl_win_tempW__class_af_stringW_.0
push eax
mov dword [ebp - 0xb8], esi
call fcn.004039c0
cmp dword [ebp - 0x34], 8
jb 0x40578c
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004410cb
add esp, 4
mov edx, dword [ebp - 0xac]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4057b4
mov eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4057b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xb8], esi
call fcn.00403ac0
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.00440ba3
mov esp, ebp
pop ebp
ret 4
Function at 0x40bab0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ae98
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x476458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00440cd0
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.00402c70
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::system::system_error_.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.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 0x40c090
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ae30
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x476458]
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.00440cd0
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.00402c70
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 0x40c11c
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::system::system_error_.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.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 0x40f3d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45c2d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x476458]
xor eax, esp
mov dword [esp + 0x20], eax
push edi
mov eax, dword [0x476458]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
lea edi, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.0043d2d0
cmp dword [esp + 0x1c], 0
jne 0x40f443
cmp dword [esp + 0x20], 0x10
jb 0x40f489
mov eax, dword [esp + 0xc]
push eax
jmp 0x40f481
push 0xc
mov eax, str._html__body_
lea ecx, [esp + 0x10]
call fcn.00411330
push 0xe
push str.__body___html_
lea ecx, [esp + 0x14]
call fcn.00408c10
cmp dword [esp + 0x1c], 0
je 0x40f475
lea eax, [esp + 0xc]
mov ecx, esi
call fcn.0040f1b0
cmp dword [esp + 0x20], 0x10
jb 0x40f489
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004410cb
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00440ba3
mov esp, ebp
pop ebp
ret 4

Function at 0x411b80
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x411bc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp + 8], edi
call fcn.00453d00
mov dword [esp + 0xc], eax
test edi, edi
je 0x411bc0
lea eax, [esp + 8]
push eax
mov ecx, 0x468384
call fcn.0040c3f0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x411f70
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [0x476458]
xor eax, esp
mov dword [esp + 0x19c], eax
push 0x47b300
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x411fb3
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x47b304
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp + 0xc], 0
je 0x411fe4
push 0
push 0x47b304
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
je 0x411fe4
mov dword [esp], eax
call fcn.00453d00
lea ecx, [esp]
push ecx
mov ecx, str.winsock
mov dword [esp + 8], eax
call fcn.0040c3f0
mov ecx, dword [esp + 0x19c]
mov eax, dword [ebp + 8]
xor ecx, esp
call fcn.00440ba3
mov esp, ebp
pop ebp
ret 8
Function at 0x412210
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ae30
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x476458]
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.00440cd0
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.00402c70
mov dword [esi], vtable.boost::thread_resource_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 0x4122a2
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::thread_resource_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_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 0x412780
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45adc9
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x476458]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], vtable.boost::exception.0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x14], str.bad_allocation
call fcn.00440bc3
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_alloc_.1.0
mov dword [esp + 0x2c], vtable.boost::exception_detail::bad_alloc_.0
push 1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], edi
call fcn.00412f80
test byte [0x47b2e4], 1
mov dword [esp + 0x40], str.class_boost::exception_ptr___cdecl_boost::exception_detail::get_static_exception_object_struct_boost::exception_detail::bad_alloc___void_
mov dword [esp + 0x44], str.D:devlib_boost_1_53_0_boost_exception_detail_exception_ptr.hpp
mov dword [esp + 0x48], 0x7c
jne 0x4128d1
or dword [0x47b2e4], 1
push 0x2c
mov byte [esp + 0x74], 2
call fcn.00441178
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x70], 3
cmp eax, edi
je 0x412861
push 1
lea edx, [esp + 0x3c]
push edx
mov ecx, eax
call fcn.00412b60
jmp 0x412863
xor eax, eax
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.00413560
mov ecx, dword [eax]
mov dword [0x47b2dc], ecx
mov eax, dword [eax + 4]
mov dword [0x47b2e0], eax
cmp eax, edi
je 0x412892
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x4128c4
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4128c4
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4128c4
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x4605e0
call fcn.00441df6
add esp, 4
mov eax, dword [0x47b2dc]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov ecx, dword [0x47b2e0]
mov eax, ecx
mov dword [esi + 4], ecx
cmp eax, edi
je 0x4128f6
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea ecx, [esp + 0x38]
call fcn.00413060
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x2c]
mov dword [esp + 0x60], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_alloc_.1.0
mov dword [esp + 0x2c], vtable.std::bad_alloc.0
call fcn.00440ca7
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.boost::exception.0
cmp ecx, edi
je 0x41293f
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45ad79
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x476458]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], vtable.boost::exception.0
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], str.bad_exception
call fcn.00440c4b
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_exception_.1.0
mov dword [esp + 0x2c], vtable.boost::exception_detail::bad_exception_.0
push 1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], edi
call fcn.00413190
test byte [0x47b2d8], 1
mov dword [esp + 0x40], str.class_boost::exception_ptr___cdecl_boost::exception_detail::get_static_exception_object_struct_boost::exception_detail::bad_exception___void_
mov dword [esp + 0x44], str.D:devlib_boost_1_53_0_boost_exception_detail_exception_ptr.hpp
mov dword [esp + 0x48], 0x7c
jne 0x412aaf
or dword [0x47b2d8], 1
push 0x2c
mov byte [esp + 0x74], 2
call fcn.00441178
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x70], 3
cmp eax, edi
je 0x412a3f
push 1
lea edx, [esp + 0x3c]
push edx
mov ecx, eax
call fcn.00412c60
jmp 0x412a41
xor eax, eax
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.00413620
mov ecx, dword [eax]
mov dword [0x47b2d0], ecx
mov eax, dword [eax + 4]
mov dword [0x47b2d4], eax
cmp eax, edi
je 0x412a70
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x412aa2
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x412aa2
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x412aa2
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x4605a0
call fcn.00441df6
add esp, 4
mov eax, dword [0x47b2d0]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov ecx, dword [0x47b2d4]
mov eax, ecx
mov dword [esi + 4], ecx
cmp eax, edi
je 0x412ad4
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea ecx, [esp + 0x38]
call fcn.00413270
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x2c]
mov dword [esp + 0x60], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_exception_.1.0
mov dword [esp + 0x2c], vtable.std::bad_exception.0
call fcn.00440ca7
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.boost::exception.0
cmp ecx, edi
je 0x412b1d
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412ee0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c128
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x476458]
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.00440cd0
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.00402c70
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::thread_resource_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_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 0x413af0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cb6b
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x476458]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x234], ax
push 7
mov eax, str.fbw.exe
lea esi, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
call fcn.00408f90
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00439a90
mov esi, 8
cmp dword [ebp - 0x220], esi
jb 0x413b75
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004410cb
add esp, 4
push 0x44
lea edx, [ebp - 0x290]
push 0
push edx
call fcn.00446be0
xor eax, eax
push 0x208
push eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x218]
push eax
call fcn.00446be0
add esp, 0x18
lea ecx, [ebp - 0x290]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 0x104
lea eax, [ebp - 0x218]
xor edx, edx
push eax
push edx
mov dword [ebp - 0x290], 0x44
mov dword [ebp - 0x264], 1
mov word [ebp - 0x260], dx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push 0x5c
push ecx
call fcn.00441e0d
add esp, 8
test eax, eax
je 0x413c3f
xor edx, edx
mov word [eax + 2], dx
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x413c10
mov ecx, dword [str.fbw.exe]
mov dword [eax], ecx
mov edx, dword [0x468564]
mov dword [eax + 4], edx
mov ecx, dword [0x468568]
mov dword [eax + 8], ecx
mov edx, dword [0x46856c]
mov dword [eax + 0xc], edx
cmp dword [edi + 0x14], esi
jb 0x413c48
mov eax, dword [edi]
jmp 0x413c4a
mov eax, edi
lea ecx, [ebp - 0x244]
push ecx
lea edx, [ebp - 0x290]
push edx
push 0
push 0
push 0x10
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x413c8e
mov ecx, dword [ebp - 0x244]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x240]
push edx
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00440ba3
mov esp, ebp
pop ebp
ret
Function at 0x415a30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 4], 0
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
lea ebx, [esi + 1]
je 0x415aa0
cmp dword [edi + 0x28], 8
lea eax, [edi + 0x14]
jb 0x415a58
mov eax, dword [eax]
mov esi, dword [edi + 0x10]
test esi, esi
je 0x415a74
push connect
push eax
mov edi, 3
call fcn.00415920
mov edi, dword [ebp + 8]
jmp 0x415a8c
push 0
push 0x80
push 3
push 0
push ebx
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x415b01
call fcn.00415900
test eax, eax
jne 0x415af4
mov byte [edi + 4], 0
xor esi, esi
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x415ac2
call fcn.00415900
test eax, eax
js 0x415acb
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp byte [edi + 4], 0
jne 0x415ae5
mov eax, dword [edi + 0xc]
cmp eax, esi
je 0x415ae2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xc], esi
mov byte [edi + 4], bl
mov edx, dword [ebp - 8]
cmp edx, esi
ja 0x415af4
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
jbe 0x415af8
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 0xc], eax
jmp 0x415a9a

Function at 0x415b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, eax
mov dword [ebp - 4], 0
test ebx, ebx
je 0x415b9d
cmp dword [ebp + 8], 0
je 0x415b9d
push esi
call fcn.00415a30
mov ecx, eax
or ecx, edx
je 0x415b9d
test edx, edx
jb 0x415b9d
ja 0x415b3f
test eax, eax
je 0x415b9d
cmp byte [esi + 4], 0
je 0x415b6f
cmp dword [esi + 0x28], 8
jb 0x415b50
mov ecx, dword [esi + 0x14]
jmp 0x415b53
lea ecx, [esi + 0x14]
push 0
lea edx, [esi + 0xc]
push edx
mov edx, 3
mov eax, connect
call fcn.004159a0
test eax, eax
jne 0x415ba8
mov byte [esi + 4], al
lea ecx, [esi + 0xc]
call fcn.004159f0
test eax, eax
jne 0x415b98
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415b98
call fcn.00415900
call fcn.00415380
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x415bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [edi + 4], bl
je 0x415c26
cmp dword [edi + 0x28], 8
lea eax, [edi + 0x14]
jb 0x415be1
mov eax, dword [eax]
mov esi, dword [edi + 0x10]
cmp esi, ebx
je 0x415bff
push 0x40000000
push eax
mov edi, 2
xor ebx, ebx
call fcn.00415920
mov edi, dword [ebp + 8]
jmp 0x415c15
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x415c87
call fcn.00415900
cmp eax, ebx
jne 0x415c8c
mov byte [edi + 4], bl
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x415c7b
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x415c7b
push ebx
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [edi + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x415c4e
call fcn.00415900
mov ecx, dword [edi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x415c61
call fcn.00415900
cmp byte [edi + 4], bl
jne 0x415c7b
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x415c77
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xc], ebx
mov byte [edi + 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [edi + 0xc], eax
jmp 0x415c23
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4198e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45ef6b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x476458]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
or eax, 0xffffffff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea ebx, [edi + 0xc]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], connect
call fcn.00418900
lea ecx, [esp + 0x24]
call fcn.0041a6b0
test al, al
jne 0x41995f
push 0x17e
push str.D:devlib_boost_1_53_0_boost_thread_win32_shared_mutex.hpp
push str.timed_lock_::boost::detail::get_system_time_sentinel___
call fcn.004422f7
add esp, 0xc
push 4
mov dword [esp + 0x3c], 0x24
call fcn.00441178
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x38], 0x25
test eax, eax
je 0x41998d
lea edx, [ebp + 8]
push edx
mov ecx, eax
call fcn.00419a60
mov esi, eax
jmp 0x41998f
xor esi, esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x38], 0x26
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.00419a00
mov eax, ebx
call fcn.0041a650
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8