joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4176b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48ba98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x800
mov ebp, ecx
call fcn.0045a25a
add esp, 4
push eax
lea ecx, [esp + 0x1c]
call fcn.0040bfd0
mov dword [esp + 0x28], 0
mov esi, dword [esp + 0x30]
cmp dword [esi + 0x18], 8
mov dword [esp + 0x10], 0x800
lea edi, [esi + 4]
jb 0x417706
mov eax, dword [edi]
jmp 0x417708
mov eax, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push edx
mov edx, dword [ebp]
lea ecx, [esp + 0x1c]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, 0xea
jne 0x41777c
mov eax, dword [esp + 0x10]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045a25a
add esp, 4
push eax
lea ecx, [esp + 0x1c]
call fcn.0040c030
cmp dword [esi + 0x18], 8
jb 0x41775e
mov edi, dword [edi]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x4177e4
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
shr esi, 1
cmp eax, 1
je 0x41779b
cmp eax, 2
je 0x41779b
mov ebx, 0x3bc6
jmp 0x4177e4
mov edx, dword [esp + 0x18]
cmp word [edx + esi*2 - 2], 0
jne 0x4177cc
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4177b0
mov ecx, dword [esp + 0x34]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00410830
jmp 0x4177e4
mov edi, dword [esp + 0x34]
mov ecx, edi
call fcn.0040fff0
mov ecx, dword [esp + 0x18]
push esi
push ecx
mov ecx, edi
call fcn.004121f0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00404a90
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x418bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48a3f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
lea ecx, [esp + 0x14]
call fcn.0045a4c9
mov dword [esp + 0x28], 0
mov edi, dword [0x4b8730]
mov ecx, 0x4b8800
mov dword [esp + 0xc], edi
call fcn.00402110
mov ebx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [ebx]
cmp esi, dword [eax + 0xc]
jae 0x418c61
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x418c65
cmp byte [eax + 0x14], 0
je 0x418c65
call fcn.0045a5a5
cmp esi, dword [eax + 0xc]
jae 0x418c6b
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x418c67
xor ecx, ecx
jmp 0x418c49
mov esi, ecx
test esi, esi
jne 0x418cbd
test edi, edi
je 0x418c73
mov esi, edi
jmp 0x418cbd
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00415460
add esp, 8
cmp eax, 0xffffffff
jne 0x418ca3
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.0046db4d
push 0x4a2a2c
lea ecx, [esp + 0x18]
push ecx
call fcn.0046ec7c
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x4b8730], esi
call fcn.00402180
push esi
call fcn.0045a66a
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0045a4f1
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x419330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48a3f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
lea ecx, [esp + 0x14]
call fcn.0045a4c9
mov dword [esp + 0x28], 0
mov edi, dword [0x4b8734]
mov ecx, 0x4b8808
mov dword [esp + 0xc], edi
call fcn.00402110
mov ebx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [ebx]
cmp esi, dword [eax + 0xc]
jae 0x4193a1
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x4193a5
cmp byte [eax + 0x14], 0
je 0x4193a5
call fcn.0045a5a5
cmp esi, dword [eax + 0xc]
jae 0x4193ab
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x4193a7
xor ecx, ecx
jmp 0x419389
mov esi, ecx
test esi, esi
jne 0x4193fd
test edi, edi
je 0x4193b3
mov esi, edi
jmp 0x4193fd
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00415ed0
add esp, 8
cmp eax, 0xffffffff
jne 0x4193e3
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.0046db4d
push 0x4a2a2c
lea ecx, [esp + 0x18]
push ecx
call fcn.0046ec7c
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x4b8734], esi
call fcn.00402180
push esi
call fcn.0045a66a
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0045a4f1
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x419430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48a3f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
lea ecx, [esp + 0x14]
call fcn.0045a4c9
mov dword [esp + 0x28], 0
mov edi, dword [0x4b8738]
mov ecx, 0x4b880c
mov dword [esp + 0xc], edi
call fcn.00402110
mov ebx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [ebx]
cmp esi, dword [eax + 0xc]
jae 0x4194a1
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x4194a5
cmp byte [eax + 0x14], 0
je 0x4194a5
call fcn.0045a5a5
cmp esi, dword [eax + 0xc]
jae 0x4194ab
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x4194a7
xor ecx, ecx
jmp 0x419489
mov esi, ecx
test esi, esi
jne 0x4194fd
test edi, edi
je 0x4194b3
mov esi, edi
jmp 0x4194fd
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00416000
add esp, 8
cmp eax, 0xffffffff
jne 0x4194e3
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.0046db4d
push 0x4a2a2c
lea ecx, [esp + 0x18]
push ecx
call fcn.0046ec7c
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x4b8738], esi
call fcn.00402180
push esi
call fcn.0045a66a
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0045a4f1
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x419840
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48b7f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00418dc0
mov dword [esp + 0x18], 0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_base.0
mov byte [esp + 0x18], 1
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::out_of_range__.2.0
mov dword [esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::out_of_range__.1.0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::out_of_range__.0
test edi, edi
je 0x41989a
lea ebx, [edi + 0x28]
jmp 0x41989c
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
mov edi, dword [ebx + 4]
test ecx, ecx
je 0x4198ad
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov dword [esi + 0x2c], edi
test edi, edi
je 0x4198bd
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov eax, dword [ebx + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x38], edx
mov dword [esp + 0x18], 0xffffffff
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4198f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48b663
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00418e30
mov dword [esp + 0x18], 0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_base.0
mov byte [esp + 0x18], 1
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_Nvidia::Logging::RegistryException__.2.0
mov dword [esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_Nvidia::Logging::RegistryException__.1.0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_Nvidia::Logging::RegistryException__.0
test edi, edi
je 0x41994a
lea ebx, [edi + 0x28]
jmp 0x41994c
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
mov edi, dword [ebx + 4]
test ecx, ecx
je 0x41995d
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov dword [esi + 0x2c], edi
test edi, edi
je 0x41996d
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov eax, dword [ebx + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x38], edx
mov dword [esp + 0x18], 0xffffffff
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x41d0d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48aa83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0041bd00
mov dword [esp + 0x18], 0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_base.0
mov byte [esp + 0x18], 1
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month__.2.0
mov dword [esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month__.1.0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month__.0
test edi, edi
je 0x41d12a
lea ebx, [edi + 0x28]
jmp 0x41d12c
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
mov edi, dword [ebx + 4]
test ecx, ecx
je 0x41d13d
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov dword [esi + 0x2c], edi
test edi, edi
je 0x41d14d
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov eax, dword [ebx + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x38], edx
mov dword [esp + 0x18], 0xffffffff
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x41d230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48bdd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0041bec0
mov dword [esp + 0x18], 0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_base.0
mov byte [esp + 0x18], 1
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year__.2.0
mov dword [esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year__.1.0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year__.0
test edi, edi
je 0x41d28a
lea ebx, [edi + 0x28]
jmp 0x41d28c
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
mov edi, dword [ebx + 4]
test ecx, ecx
je 0x41d29d
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov dword [esi + 0x2c], edi
test edi, edi
je 0x41d2ad
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov eax, dword [ebx + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x38], edx
mov dword [esp + 0x18], 0xffffffff
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x41d2e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48ab43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0041bf30
mov dword [esp + 0x18], 0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_base.0
mov byte [esp + 0x18], 1
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month__.2.0
mov dword [esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month__.1.0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month__.0
test edi, edi
je 0x41d33a
lea ebx, [edi + 0x28]
jmp 0x41d33c
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
mov edi, dword [ebx + 4]
test ecx, ecx
je 0x41d34d
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov dword [esi + 0x2c], edi
test edi, edi
je 0x41d35d
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov eax, dword [ebx + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x38], edx
mov dword [esp + 0x18], 0xffffffff
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x427650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48c829
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov ecx, dword [esp + 0x30]
push esi
push 0x14
mov dword [esp + 8], 0
mov edx, dword [ecx]
mov esi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
push edx
push esi
call fcn.00425dd0
add esp, 0x10
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], 1
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x428480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48a3f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
lea ecx, [esp + 0x14]
call fcn.0045a4c9
mov dword [esp + 0x28], 0
mov edi, dword [0x4b873c]
mov ecx, 0x4b8810
mov dword [esp + 0xc], edi
call fcn.00402110
mov ebx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [ebx]
cmp esi, dword [eax + 0xc]
jae 0x4284f1
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x4284f5
cmp byte [eax + 0x14], 0
je 0x4284f5
call fcn.0045a5a5
cmp esi, dword [eax + 0xc]
jae 0x4284fb
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x4284f7
xor ecx, ecx
jmp 0x4284d9
mov esi, ecx
test esi, esi
jne 0x42854d
test edi, edi
je 0x428503
mov esi, edi
jmp 0x42854d
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00428350
add esp, 8
cmp eax, 0xffffffff
jne 0x428533
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.0046db4d
push 0x4a2a2c
lea ecx, [esp + 0x18]
push ecx
call fcn.0046ec7c
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x4b873c], esi
call fcn.00402180
push esi
call fcn.0045a66a
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0045a4f1
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x429440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x18], 8
mov dword [esp], 4
jb 0x429459
mov eax, dword [eax + 4]
jmp 0x42945c
add eax, 4
lea edx, [esp]
push edx
lea edx, [esp + 8]
push edx
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x429486
cmp dword [esp + 0xc], 4
je 0x429486
mov eax, 0x3bc6
push str.RegQueryValueEx
push eax
call fcn.00429300
mov eax, dword [esp + 0xc]
add esp, 0x10
ret 4
Function at 0x42a700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48cc41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 2
mov edi, dword [esi + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x42a746
mov eax, dword [edi]
test eax, eax
je 0x42a73d
push eax
call ebp
push edi
call fcn.0046d9dc
add esp, 4
mov byte [esp + 0x18], 1
cmp dword [esi + 0x20], 8
jb 0x42a75d
mov eax, dword [esi + 0xc]
push eax
call fcn.0046d9dc
add esp, 4
xor eax, eax
mov dword [esi + 0x20], 7
mov dword [esi + 0x1c], 0
mov word [esi + 0xc], ax
mov byte [esp + 0x18], al
mov eax, dword [esi + 4]
or edi, 0xffffffff
cmp eax, edi
je 0x42a785
push eax
call ebp
mov dword [esi + 4], edi
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x10]
pop edi
mov dword [esi], vtable.Nvidia::Logging::ILogManager.0
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x42a920
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x48cc80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x74]
mov ebx, dword [edi + 0x14]
xor ebp, ebp
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x74], eax
jb 0x42a960
mov eax, dword [eax]
push ebp
push ebp
push ebp
push ebp
push ebx
push eax
push ebp
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x6c], 0
test esi, esi
jle 0x42a9c0
push esi
call fcn.0045a25a
add esp, 4
push eax
lea ecx, [esp + 0x14]
call fcn.0042a6b0
cmp dword [edi + 0x18], 8
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], ebp
jb 0x42a9ab
mov eax, dword [eax]
push 0
push 0
push esi
push ebp
push ebx
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [eax]
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42aa0a
cmp dword [esp + 0x18], esi
jne 0x42aa0a
mov dword [esp + 0x6c], 0xffffffff
push ebp
call fcn.0046d942
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 4
push 0x14
push str.Error_writing_to_log
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.00410750
mov byte [esp + 0x6c], 1
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x40]
call fcn.00413ae0
push 0x4a4120
lea eax, [esp + 0x40]
push eax
call fcn.0046ec7c
int3
Function at 0x42aa60
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x48cc58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov ecx, dword [ecx]
push ebx
lea eax, [esp + 4]
push eax
xor ebx, ebx
push ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x42aad6
push 0x17
push str.Cant_get_log_file_size
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.00410750
mov dword [esp + 0x58], ebx
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x2c]
call fcn.00413ae0
push 0x4a4120
lea eax, [esp + 0x2c]
push eax
call fcn.0046ec7c
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret
Function at 0x42f040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48d3f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x30], 0
mov ebx, dword [esi + 0x10]
mov ebp, dword [esi + 0xc]
mov edi, dword [esp + 0x38]
mov ecx, ebx
sub ecx, ebp
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jbe 0x42f0be
cmp ebp, ebx
jbe 0x42f092
call fcn.0046ec6c
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov ebp, dword [esi]
lea eax, [esp + 0x3c]
push eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub edi, ecx
push edi
push ebx
push ebp
mov ecx, esi
call fcn.0042e350
jmp 0x42f10e
jae 0x42f10e
cmp ebp, ebx
jbe 0x42f0c9
call fcn.0046ec6c
mov ebp, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0x18], edx
cmp ebp, dword [esi + 0x10]
jbe 0x42f0dc
call fcn.0046ec6c
mov eax, dword [esi]
push edi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
call fcn.0040acd0
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 4]
push ebx
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00428910
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00419590
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x68

Function at 0x42f8e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48d4d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov edx, dword [esp + 0x30]
push esi
push edi
mov edi, dword [esp + 0x30]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
push edi
push 0
push ecx
push edx
mov dword [esp + 0x28], 0
call fcn.00407ca0
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x42f974
mov dword [esp + 0xc], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0xf003f
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], edi
call fcn.0042f510
mov dword [esp + 0x1c], 0xffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret