joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4131e0
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 [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 0x41326c
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 0x413400
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::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 0x413492
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 0x4146c0
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::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 0x414760
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::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 0x417bd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f800b
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x55a3d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, edx
cmp ecx, edi
jne 0x417c53
push 0x22
xor eax, eax
push str.Invalid_given_key_in_SetKeyValue__
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], ax
call fcn.004125c0
lea ecx, [ebp - 0x4c]
push ecx
push 2
mov dword [ebp - 4], edi
call fcn.00423a40
add esp, 8
cmp dword [ebp - 0x38], 8
jb 0x417d13
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004b5907
add esp, 4
jmp 0x417d13
cmp dword [eax + 0x14], 8
jb 0x417c5d
mov edi, dword [eax]
jmp 0x417c5f
mov edi, eax
cmp dword [esi + 0x14], 8
mov eax, dword [eax + 0x10]
lea edx, [eax + eax + 2]
jb 0x417c70
mov eax, dword [esi]
jmp 0x417c72
mov eax, esi
push edx
push edi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x417d13
lea eax, [ebp - 0xe4]
push eax
call fcn.00403200
lea ecx, [ebp - 0xe4]
push str.Failed_to_write_key_value
push ecx
mov dword [ebp - 4], 1
call fcn.00404d50
lea edx, [ebp - 0xe4]
push esi
push edx
call fcn.0041b8e0
add esp, 0x10
lea esi, [ebp - 0x30]
lea eax, [ebp - 0xe4]
call fcn.00402e30
mov eax, esi
push eax
push 1
mov byte [ebp - 4], 2
call fcn.00423a40
add esp, 8
cmp dword [ebp - 0x1c], 8
jb 0x417ced
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004b5907
add esp, 4
xor edx, edx
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], dx
mov dword [ebp - 4], 0xffffffff
call fcn.00401690
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b58f8
mov esp, ebp
pop ebp
ret
Function at 0x417ff0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7f51
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x55a3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x418078
push 0x23
xor eax, eax
push str.Empty_key_path_given_in_DeleteKey__
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
call fcn.004125c0
lea ecx, [ebp - 0x48]
push ecx
push 2
mov dword [ebp - 4], 1
call fcn.00423a40
add esp, 8
cmp dword [ebp - 0x34], 8
jb 0x418244
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b5907
add esp, 4
jmp 0x418244
cmp dword [esi + 0x14], 8
jb 0x418082
mov eax, dword [esi]
jmp 0x418084
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 0x4181b9
cmp edi, 1
jle 0x418109
cmp edi, 3
jg 0x418109
lea eax, [ebp - 0x1b0]
push eax
call fcn.00403200
lea ecx, [ebp - 0x1b0]
push str.Cannot_find_key
push ecx
mov dword [ebp - 4], 4
call fcn.00404d50
lea edx, [ebp - 0x1b0]
push esi
push edx
call fcn.0041b8e0
add esp, 0x10
lea esi, [ebp - 0x80]
lea eax, [ebp - 0x1b0]
call fcn.00402e30
mov eax, esi
push eax
push 2
mov byte [ebp - 4], 5
call fcn.00423a40
add esp, 8
mov ecx, esi
call fcn.00412770
lea ecx, [ebp - 0x1b0]
jmp 0x418238
lea ecx, [ebp - 0x118]
push ecx
call fcn.00403200
lea edx, [ebp - 0x118]
push str.Delete_key
push edx
mov dword [ebp - 4], 6
call fcn.00404d50
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0041b8e0
lea ecx, [ebp - 0x118]
push str._with_error
push ecx
call fcn.00404d50
add esp, 0x18
push edi
lea edx, [ebp - 0x118]
push edx
call fcn.0041b300
lea esi, [ebp - 0x2c]
lea eax, [ebp - 0x118]
call fcn.00402e30
mov eax, esi
push eax
push 1
mov byte [ebp - 4], 7
call fcn.00423a40
add esp, 8
cmp dword [ebp - 0x18], 8
jb 0x41818c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b5907
add esp, 4
xor edx, edx
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], 0xffffffff
call fcn.00401690
xor al, al
jmp 0x418246
lea eax, [ebp - 0x248]
push eax
call fcn.00403200
lea ecx, [ebp - 0x248]
push str.Successfully_deleted_key
push ecx
mov dword [ebp - 4], 2
call fcn.00404d50
lea edx, [ebp - 0x248]
push esi
push edx
call fcn.0041b8e0
add esp, 0x10
lea esi, [ebp - 0x64]
lea eax, [ebp - 0x248]
call fcn.00402e30
mov eax, esi
push eax
push 4
mov byte [ebp - 4], 3
call fcn.00423a40
add esp, 8
cmp dword [ebp - 0x50], 8
jb 0x41821e
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b5907
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], dx
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
call fcn.00401690
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b58f8
mov esp, ebp
pop ebp
ret
Function at 0x4194d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3268
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
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 edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x419511
xor eax, eax
jmp 0x4196aa
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
xor eax, eax
cmp edx, eax
je 0x41953f
mov ecx, dword [esi + 0x34]
mov ebx, dword [ecx]
lea ebx, [edx + ebx*2]
cmp edx, ebx
jae 0x41953f
dec dword [ecx]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x4196aa
cmp dword [esi + 0x54], eax
je 0x4196a5
mov edx, dword [esi + 0x10]
lea ebx, [esi + 0x48]
cmp dword [edx], ebx
jne 0x419568
mov ecx, dword [esi + 0x40]
mov ebx, dword [esi + 0x3c]
mov dword [edx], ebx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov edx, dword [esi + 0x30]
sub ecx, ecx
sar ecx, 1
mov dword [edx], ecx
cmp dword [esi + 0x44], eax
jne 0x419592
mov esi, dword [esi + 0x54]
push esi
push edi
call fcn.004b6fad
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x4196aa
mov eax, ecx
jmp 0x4196aa
movzx edx, di
mov ecx, 0xf
mov dword [ebp - 0x30], edx
mov edx, eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4195ba
lea edx, [ebp - 0x2c]
mov byte [edx + 8], al
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x4195d2
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x2e]
push edx
mov edx, dword [edi + 0x14]
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call edx
test eax, eax
js 0x41969d
cmp eax, 1
jg 0x419665
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x419612
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, ecx
je 0x41963b
cmp ebx, 0x10
jae 0x419621
lea eax, [ebp - 0x2c]
mov ecx, dword [esi + 0x54]
push ecx
push edi
push 1
push eax
call fcn.004b75d2
add esp, 0x10
cmp edi, eax
jne 0x41969d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
mov byte [esi + 0x4a], 1
cmp dword [ebp - 0x38], edx
jne 0x41968f
test edi, edi
jne 0x4195c6
cmp dword [ebp - 0x1c], 0x20
lea ecx, [ebp - 0x2c]
jae 0x4196a0
push edi
push 8
call fcn.0040e610
jmp 0x4195c0
cmp eax, 3
jne 0x41969d
mov eax, dword [esi + 0x54]
mov ecx, dword [ebp - 0x30]
call fcn.00420290
movzx esi, word [ebp + 8]
test al, al
jne 0x419682
mov esi, 0xffff
lea ecx, [ebp - 0x2c]
call fcn.00411880
mov ax, si
jmp 0x4196aa
lea ecx, [ebp - 0x2c]
call fcn.00411880
mov ax, word [ebp + 8]
jmp 0x4196aa
lea ecx, [ebp - 0x2c]
call fcn.00411880
mov eax, 0xffff
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 4
Function at 0x41a360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4188
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x55a3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x41a48b
cmp byte [edi + 0x4a], bl
je 0x41a48b
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
mov ecx, edi
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x41a47f
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x41a3df
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x41a3f7
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x41a420
dec eax
je 0x41a424
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x41a47a
jmp 0x41a486
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x41a434
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x41a45d
cmp ebx, 0x10
jae 0x41a443
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004b75d2
add esp, 0x10
cmp esi, eax
jne 0x41a477
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x41a483
test esi, esi
jne 0x41a3eb
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040e610
jmp 0x41a3e5
lea ecx, [ebp - 0x2c]
call fcn.00411880
xor al, al
jmp 0x41a48d
lea ecx, [ebp - 0x2c]
call fcn.00411880
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b58f8
mov esp, ebp
pop ebp
ret

Function at 0x41bf10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f5ce8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x55a3d0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x55a3d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea esi, [esp + 0xc]
mov edi, ecx
call fcn.0041f860
push 0x22
push 0x26
mov dword [esp + 0x40], 0
call fcn.0041d530
add esp, 8
cmp dword [esp + 0x20], 8
mov esi, eax
jb 0x41bf7d
mov eax, dword [esp + 0xc]
push eax
call fcn.004b5907
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.004b58f8
mov esp, ebp
pop ebp
ret
Function at 0x41cb90
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4160
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
sub esp, 0x18
mov dword [ebp - 4], 0
mov esi, esp
lea edi, [ebp + 0x14]
mov dword [ebp - 0x14], esp
call fcn.0041b5a0
mov eax, dword [ebp + 0x28]
push ebx
mov dword [esi + 0x14], eax
call fcn.0041d680
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], ecx
mov byte [ebx + 0x30], 0
cmp eax, ecx
je 0x41cc3a
cmp dword [ebx], 0
je 0x41cc18
push ecx
push eax
lea esi, [ebp - 0x18]
mov ecx, ebx
call fcn.0041d3a0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
jmp 0x41cc1a
mov edx, ecx
mov eax, dword [ebx + 0x2c]
cmp edx, eax
jne 0x41cc2e
cmp ecx, eax
jne 0x41cc2e
cmp dword [ebx + 0x24], eax
jne 0x41cc2e
mov byte [ebx + 0x30], 1
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], ecx
cmp dword [ebp + 0x24], 8
jbe 0x41cc50
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41cc50
push eax
call fcn.004b6180
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x420830
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f244b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x55a3d0]
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 0x42086a
mov eax, dword [esi]
jmp 0x42086c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4209b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4209b0
cmp byte [ebp + 8], 0
je 0x420984
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 0x563770
neg ecx
or ecx, eax
push ecx
call fcn.004b6c66
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.00422aa0
mov ebx, dword [ebp - 0x224]
test ebx, ebx
je 0x420972
push edi
push 0
push ebx
call fcn.004b9c30
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x420900
mov esi, dword [esi]
mov edx, dword [ebp - 0x228]
push edx
push esi
push edi
push ebx
call fcn.004b82ae
add esp, 0x10
test eax, eax
jne 0x420972
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 0x420922
sub eax, edx
sar eax, 1
cmp eax, 0xf6
ja 0x420972
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x512b94
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x420972
push 4
lea ecx, [ebp - 0x21c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x420988
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
call fcn.00424720
xor al, al
jmp 0x4209b2
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.00424720
mov al, bl
jmp 0x4209b2
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.004b58f8
mov esp, ebp
pop ebp
ret
Function at 0x4209d0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f6e66
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x55a3d0]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov eax, dword [0x55a3d0]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
test edi, edi
je 0x420bd3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push 0
push esi
push 0
push eax
push 0
push 0
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x420b12
cmp byte [ebp + 0x14], 0
je 0x420b12
call ebx
lea edx, [esp + 0xac]
push edx
mov esi, eax
call fcn.00403200
lea eax, [esp + 0xac]
push str.ReportEvent___function_error_with_error_code:
push eax
mov dword [esp + 0x198], 0
call fcn.00404d50
add esp, 8
push esi
lea ecx, [esp + 0xb0]
push ecx
call fcn.004024b0
lea esi, [esp + 0x164]
lea eax, [esp + 0xac]
call fcn.00402e30
mov edx, esi
push edx
push 2
mov byte [esp + 0x198], 1
call fcn.00423a40
add esp, 8
cmp dword [esp + 0x178], 8
jb 0x420adb
mov eax, dword [esp + 0x164]
push eax
call fcn.004b5907
add esp, 4
xor ecx, ecx
mov word [esp + 0x164], cx
lea ecx, [esp + 0xac]
mov dword [esp + 0x178], 7
mov dword [esp + 0x174], 0
mov dword [esp + 0x190], 0xffffffff
call fcn.00401690
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test eax, eax
jne 0x420bd3
cmp byte [ebp + 0x14], al
je 0x420bd3
call ebx
lea edx, [esp + 0x14]
push edx
mov esi, eax
call fcn.00403200
lea eax, [esp + 0x14]
push str.DeregisterEventSource___function_error_with_error_code:
push eax
mov dword [esp + 0x198], 2
call fcn.00404d50
add esp, 8
push esi
lea ecx, [esp + 0x18]
push ecx
call fcn.004024b0
lea esi, [esp + 0x148]
lea eax, [esp + 0x14]
call fcn.00402e30
mov edx, esi
push edx
push 2
mov byte [esp + 0x198], 3
call fcn.00423a40
add esp, 8
cmp dword [esp + 0x15c], 8
jb 0x420b9f
mov eax, dword [esp + 0x148]
push eax
call fcn.004b5907
add esp, 4
xor ecx, ecx
mov word [esp + 0x148], cx
lea ecx, [esp + 0x14]
mov dword [esp + 0x15c], 7
mov dword [esp + 0x158], 0
mov dword [esp + 0x190], 0xffffffff
call fcn.00401690
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.004b58f8
mov esp, ebp
pop ebp
ret