joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b6b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [0x580b30]
xor eax, esp
mov dword [esp + 0x19c], eax
push 0x58c12c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x40b6f3
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x58c130
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp + 0xc], 0
je 0x40b724
push 0
push 0x58c130
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
je 0x40b724
mov dword [esp], eax
call fcn.004be240
lea ecx, [esp]
push ecx
mov ecx, str.winsock
mov dword [esp + 8], eax
call fcn.0040b110
mov ecx, dword [esp + 0x19c]
mov eax, dword [ebp + 8]
xor ecx, esp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret 8

Function at 0x40b9c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513ed0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x580b30]
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.004d331f
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.0040a000
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 0x40ba4c
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_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_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 0x40bb60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513ed0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x580b30]
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.004d331f
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.0040a000
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 0x40bbf2
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 0x40c370
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x513e59
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x580b30]
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.004d31d7
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.0040ccf0
test byte [0x58c124], 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.C:dvsp4_build_sw_tools_boost_boost_1.58.0_boost_exception_detail_exception_ptr.hpp
mov dword [esp + 0x48], 0x80
jne 0x40c4c1
or dword [0x58c124], 1
push 0x2c
mov byte [esp + 0x74], 2
call fcn.00469def
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x70], 3
cmp eax, edi
je 0x40c451
push 1
lea edx, [esp + 0x3c]
push edx
mov ecx, eax
call fcn.0040c830
jmp 0x40c453
xor eax, eax
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.0040d2f0
mov ecx, dword [eax]
mov dword [0x58c118], ecx
mov eax, dword [eax + 4]
mov dword [0x58c11c], eax
cmp eax, edi
je 0x40c482
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x40c4b4
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40c4b4
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 0x40c4b4
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x5207e0
call fcn.004d4f6b
add esp, 4
mov eax, dword [0x58c118]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov ecx, dword [0x58c11c]
mov eax, ecx
mov dword [esi + 4], ecx
cmp eax, edi
je 0x40c4e6
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea ecx, [esp + 0x38]
call fcn.0040cdd0
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.004d32d9
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.boost::exception.0
cmp ecx, edi
je 0x40c52f
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 0x40c550
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x513e09
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x580b30]
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.004d325f
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.0040cf00
test byte [0x58c114], 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.C:dvsp4_build_sw_tools_boost_boost_1.58.0_boost_exception_detail_exception_ptr.hpp
mov dword [esp + 0x48], 0x80
jne 0x40c69f
or dword [0x58c114], 1
push 0x2c
mov byte [esp + 0x74], 2
call fcn.00469def
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x70], 3
cmp eax, edi
je 0x40c62f
push 1
lea edx, [esp + 0x3c]
push edx
mov ecx, eax
call fcn.0040c930
jmp 0x40c631
xor eax, eax
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.0040d3b0
mov ecx, dword [eax]
mov dword [0x58c108], ecx
mov eax, dword [eax + 4]
mov dword [0x58c10c], eax
cmp eax, edi
je 0x40c660
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x40c692
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40c692
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 0x40c692
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x5207a0
call fcn.004d4f6b
add esp, 4
mov eax, dword [0x58c108]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov ecx, dword [0x58c10c]
mov eax, ecx
mov dword [esi + 4], ecx
cmp eax, edi
je 0x40c6c4
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea ecx, [esp + 0x38]
call fcn.0040d000
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.004d32d9
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.boost::exception.0
cmp ecx, edi
je 0x40c70d
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 0x40cbb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513db8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x580b30]
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.004d331f
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.0040a000
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_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_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 0x40cc50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513db8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x580b30]
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.004d331f
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.0040a000
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 0x410a70
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519acc
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x580b30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [esi + 0x10], 0
jne 0x410b05
lea eax, [ebp - 0x110]
push eax
call fcn.00402bd0
lea ecx, [ebp - 0x100]
push str.Empty_key_path_given_in_DeleteKey__
push ecx
mov dword [ebp - 4], 1
call fcn.004050c0
add esp, 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x110]
call fcn.00402c70
push eax
push 2
mov byte [ebp - 4], 2
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x18], 8
jb 0x410cb3
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00469e1a
add esp, 4
jmp 0x410cb3
cmp dword [esi + 0x14], 8
jb 0x410b0f
mov eax, dword [esi]
jmp 0x410b11
mov eax, esi
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
test edi, edi
je 0x410c3a
cmp edi, 1
jle 0x410b91
cmp edi, 3
jg 0x410b91
lea eax, [ebp - 0x110]
push eax
call fcn.00402bd0
push esi
push ecx
lea ecx, [ebp - 0x100]
push str.Cannot_find_key
push ecx
mov dword [ebp - 4], 5
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413550
add esp, 8
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x110]
call fcn.00402c70
push eax
push 2
mov byte [ebp - 4], 6
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
lea ecx, [ebp - 0x64]
call fcn.0040a4f0
jmp 0x410cb3
lea edx, [ebp - 0x1b8]
push edx
call fcn.00402bd0
push edi
push ecx
push str._with_error
push ecx
push esi
push ecx
lea eax, [ebp - 0x1a8]
push str.Delete_key
push eax
mov dword [ebp - 4], 7
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413550
add esp, 0xc
push eax
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00411d90
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x1b8]
call fcn.00402c70
push eax
push 1
mov byte [ebp - 4], 8
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x34], 8
jb 0x410c0d
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00469e1a
add esp, 4
xor edx, edx
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
mov dword [ebp - 4], 0xffffffff
call fcn.00401820
xor al, al
jmp 0x410cc7
lea eax, [ebp - 0x110]
push eax
call fcn.00402bd0
push esi
push ecx
lea ecx, [ebp - 0x100]
push str.Successfully_deleted_key
push ecx
mov dword [ebp - 4], 3
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413550
add esp, 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x110]
call fcn.00402c70
push eax
push 4
mov byte [ebp - 4], 4
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x18], 8
jb 0x410c9f
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00469e1a
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x110]
mov dword [ebp - 4], 0xffffffff
call fcn.00401820
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret
Function at 0x410cf0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519a54
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x580b30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
jne 0x410d63
push 0x10
xor eax, eax
push str.Invalid_argument
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x74], edi
mov word [ebp - 0x84], ax
call fcn.0040acb0
push 0x2c0
mov ecx, str.srcTaskManagerCacheManager.cpp
lea eax, [ebp - 0x84]
mov dword [ebp - 4], edi
call fcn.00420880
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x410d71
mov ecx, dword [esi]
jmp 0x410d73
mov ecx, esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test edi, edi
je 0x410ecb
cmp edi, 1
jle 0x410e23
cmp edi, 3
jg 0x410e23
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00402bd0
push str._does_not_exist
push ecx
push esi
push ecx
lea edx, [ebp - 0x11c]
push str.Key_value
push edx
mov dword [ebp - 4], 3
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413550
add esp, 0xc
push eax
call fcn.004050c0
add esp, 8
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x12c]
call fcn.00402c70
push eax
push 3
mov byte [ebp - 4], 4
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x54], ebx
jb 0x410e0a
mov eax, dword [ebp - 0x68]
push eax
call fcn.00469e1a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], cx
jmp 0x410f43
lea edx, [ebp - 0x1d4]
push edx
call fcn.00402bd0
push edi
push ecx
push str._with_error
push ecx
push esi
push ecx
lea eax, [ebp - 0x1c4]
push str.Failed_to_delete_key_value
push eax
mov dword [ebp - 4], 5
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413550
add esp, 0xc
push eax
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00411d90
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x1d4]
call fcn.00402c70
push eax
push 1
mov byte [ebp - 4], 6
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x38], ebx
jb 0x410e9e
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00469e1a
add esp, 4
xor edx, edx
lea ecx, [ebp - 0x1d4]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], dx
mov dword [ebp - 4], 0xffffffff
call fcn.00401820
xor al, al
jmp 0x410f57
lea eax, [ebp - 0x12c]
push eax
call fcn.00402bd0
push esi
push ecx
lea ecx, [ebp - 0x11c]
push str.Successfully_deleted_key_value
push ecx
mov dword [ebp - 4], 1
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413550
add esp, 8
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x12c]
call fcn.00402c70
push eax
push 4
mov byte [ebp - 4], 2
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [ebp - 0x1c], ebx
jb 0x410f2f
mov edx, dword [ebp - 0x30]
push edx
call fcn.00469e1a
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401820
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret
Function at 0x4137f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x515e58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x580b30]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x580b30]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea esi, [esp + 0xc]
mov edi, ecx
call fcn.004175d0
push 0x22
push 0x26
mov dword [esp + 0x40], 0
call fcn.004148e0
add esp, 8
cmp dword [esp + 0x20], 8
mov esi, eax
jb 0x41385d
mov eax, dword [esp + 0xc]
push eax
call fcn.00469e1a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret

Function at 0x417b70
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51232b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x580b30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x417baa
mov eax, dword [esi]
jmp 0x417bac
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x417cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x417cf0
cmp byte [ebp + 8], 0
je 0x417cc4
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x228], edi
inc edi
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
push 0x58ab40
neg ecx
or ecx, eax
push ecx
call fcn.004d562e
add esp, 8
mov byte [ebp - 0x22c], 0
mov ecx, dword [ebp - 0x22c]
push ecx
push eax
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], eax
call fcn.00419b40
mov ebx, dword [ebp - 0x224]
test ebx, ebx
je 0x417cb2
push edi
push 0
push ebx
call fcn.004d87e0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x417c40
mov esi, dword [esi]
mov edx, dword [ebp - 0x228]
push edx
push esi
push edi
push ebx
call fcn.004d5639
add esp, 0x10
test eax, eax
jne 0x417cb2
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417c62
sub eax, edx
sar eax, 1
cmp eax, 0xf6
ja 0x417cb2
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x534f20
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x417cb2
push 4
lea ecx, [ebp - 0x21c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x417cc8
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
call fcn.0041b8f0
xor al, al
jmp 0x417cf2
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
lea eax, [ebp - 0x224]
setne bl
mov dword [ebp - 4], 0xffffffff
call fcn.0041b8f0
mov al, bl
jmp 0x417cf2
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 - 0x14]
xor ecx, ebp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret
Function at 0x417d10
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x519976
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x580b30]
xor eax, esp
mov dword [esp + 0x16c], eax
push esi
push edi
mov eax, dword [0x580b30]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
push 0
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x417ee9
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push 0
push edi
push 0
push eax
push 0
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x417e1f
cmp byte [ebp + 0x14], 0
je 0x417e1f
lea edx, [esp + 0xc]
push edx
call fcn.00402bd0
mov dword [esp + 0x188], 0
call edi
push eax
push ecx
lea eax, [esp + 0x24]
push str.ReportEvent___function_error_with_error_code:
push eax
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00402980
lea ecx, [esp + 0x15c]
lea eax, [esp + 0xc]
call fcn.00402c70
push eax
push 2
mov byte [esp + 0x190], 1
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [esp + 0x170], 8
jb 0x417e0b
mov ecx, dword [esp + 0x15c]
push ecx
call fcn.00469e1a
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x188], 0xffffffff
call fcn.00401820
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test eax, eax
jne 0x417ee9
cmp byte [ebp + 0x14], al
je 0x417ee9
lea edx, [esp + 0xb4]
push edx
call fcn.00402bd0
mov dword [esp + 0x188], 2
call edi
push eax
push ecx
lea eax, [esp + 0xcc]
push str.DeregisterEventSource___function_error_with_error_code:
push eax
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00402980
lea ecx, [esp + 0x15c]
lea eax, [esp + 0xb4]
call fcn.00402c70
push eax
push 2
mov byte [esp + 0x190], 3
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [esp + 0x170], 8
jb 0x417eb2
mov ecx, dword [esp + 0x15c]
push ecx
call fcn.00469e1a
add esp, 4
xor edx, edx
lea ecx, [esp + 0xb4]
mov dword [esp + 0x170], 7
mov dword [esp + 0x16c], 0
mov word [esp + 0x15c], dx
mov dword [esp + 0x188], 0xffffffff
call fcn.00401820
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x16c]
xor ecx, esp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret