joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48bdd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00456260
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov esi, dword [esp + 0x38]
push esi
lea ecx, [esp + 0x10]
call fcn.00456330
push 0x494858
lea ecx, [esp + 0x10]
call fcn.004568d0
push str.__M_
lea ecx, [esp + 0x1c]
call fcn.00456800
mov byte [esp + 0x2c], 1
mov edi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.004569c0
mov byte [esp + 0x2c], bl
mov edx, dword [esp + 0x18]
push edx
call fcn.0046f7da
add esp, 4
push esi
lea ecx, [esp + 0x10]
call fcn.00456330
push 0x494848
lea ecx, [esp + 0x10]
call fcn.004568d0
push 0x494884
lea ecx, [esp + 0x1c]
call fcn.00456800
mov byte [esp + 0x2c], 2
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.004569c0
mov byte [esp + 0x2c], bl
mov edx, dword [esp + 0x18]
push edx
call fcn.0046f7da
add esp, 4
push 0x49487c
lea ecx, [esp + 0x1c]
call fcn.00456800
mov byte [esp + 0x2c], 3
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.004569c0
mov byte [esp + 0x2c], bl
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0046f7da
mov dword [esp + 0x30], 0xffffffff
mov edx, dword [esp + 0x10]
push edx
call fcn.0046f7da
mov ecx, dword [esp + 0x2c]
add esp, 8
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x4050c0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x40
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x40511f
test byte [0x4b9cf4], 2
mov dword [esp + 4], 0x40
jne 0x40512d
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x40512d
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, eax
ja 0x40512d
jb 0x405100
mov edx, dword [esp + 0x14]
cmp edx, esi
jae 0x40512d
push 0x2b
call fcn.004028b0
push eax
call fcn.0044a960
add esp, 8
cmp eax, 1
je 0x405126
mov dword [0x4b9cf4], 0xffffffff
xor eax, eax
pop esi
add esp, 0x40
ret
or dword [0x4b9cf4], 2
mov eax, 1
pop esi
add esp, 0x40
ret

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

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [esp + 0xc]
mov dword [esi], 0
cmp eax, 0xffffffff
jne 0x4051b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
pop esi
ret
shr al, 4
and al, 1
pop esi
ret
Function at 0x4052a0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4923a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.00456260
mov dword [esp + 0x1c], ebx
mov ebp, dword [esp + 0x28]
push ebp
mov dword [esp + 0x14], 1
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
cmp edi, ebx
jle 0x405312
lea ebx, [edi + 1]
cmp ebx, dword [esi + 8]
jbe 0x4052fc
push ebx
mov ecx, esi
call fcn.00456110
mov eax, dword [esi]
push ebx
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 4], edi
mov word [eax + edi*2], cx
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x405330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48be28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, dword [esp + 0x38]
lea eax, [esp + 4]
push esi
push eax
call fcn.004052a0
mov dword [esp + 0x38], 0
lea ecx, [esp + 0xc]
push ecx
call fcn.0043caa0
add esp, 0xc
push 0x4948a4
lea ecx, [esp + 0x20]
call fcn.00456800
mov byte [esp + 0x30], 1
push 0x49489c
lea ecx, [esp + 0x14]
call fcn.00456800
mov byte [esp + 0x30], 2
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
call fcn.004569c0
mov byte [esp + 0x30], 1
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0046f7da
mov byte [esp + 0x34], 0
mov edx, dword [esp + 0x20]
push edx
call fcn.0046f7da
mov eax, dword [esp + 0xc]
add esp, 8
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 4]
push ecx
call fcn.0046f7da
mov ecx, dword [esp + 0x2c]
add esp, 4
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret

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

Disassembly:
sub esp, 0x250
push esi
mov esi, dword [esp + 0x258]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407a74
xor eax, eax
pop esi
add esp, 0x250
ret
test al, 0x10
je 0x407a8b
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop esi
add esp, 0x250
ret
mov eax, dword [0x4b9cf8]
test eax, eax
jne 0x407aa5
push esi
call fcn.00407a10
add esp, 4
pop esi
add esp, 0x250
ret
cmp eax, 2
jne 0x407ad9
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x407a94
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x25c]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x407a94
mov eax, 1
pop esi
add esp, 0x250
ret
Function at 0x408988
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48c0b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
mov dword [esp + 0x20], 0
sub esp, 0xc
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.00456550
mov byte [esp + 0x2c], 1
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x14]
call fcn.00408900
mov byte [esp + 0x20], 2
mov ecx, dword [esp + 0x28]
mov edx, dword [esi]
mov edx, dword [edx + 4]
lea eax, [esp + 8]
push eax
push ecx
mov ecx, esi
call edx
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0xc]
push eax
call fcn.0046f7da
mov dword [esp + 0x24], 0xffffffff
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0046f7da
mov ecx, dword [esp + 0x20]
add esp, 8
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret 0x14

Function at 0x413e90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48d1d8
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.0045bf99
mov dword [esp + 0x28], 0
mov edi, dword [0x4b9b9c]
mov ecx, 0x4b9fc4
mov dword [esp + 0xc], edi
call fcn.00401e90
mov ebx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [ebx]
cmp esi, dword [eax + 0xc]
jae 0x413f01
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x413f05
cmp byte [eax + 0x14], 0
je 0x413f05
call fcn.0045c075
cmp esi, dword [eax + 0xc]
jae 0x413f0b
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x413f07
xor ecx, ecx
jmp 0x413ee9
mov esi, ecx
test esi, esi
jne 0x413f5d
test edi, edi
je 0x413f13
mov esi, edi
jmp 0x413f5d
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00413060
add esp, 8
cmp eax, 0xffffffff
jne 0x413f43
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.0046f975
push 0x4a466c
lea ecx, [esp + 0x18]
push ecx
call fcn.004706b8
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x4b9b9c], esi
call fcn.00401f00
push esi
call fcn.0045c13a
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0045bfc1
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 0x413f90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48d1d8
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.0045bf99
mov dword [esp + 0x28], 0
mov edi, dword [0x4b9ba0]
mov ecx, 0x4b9fcc
mov dword [esp + 0xc], edi
call fcn.00401e90
mov ebx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [ebx]
cmp esi, dword [eax + 0xc]
jae 0x414001
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x414005
cmp byte [eax + 0x14], 0
je 0x414005
call fcn.0045c075
cmp esi, dword [eax + 0xc]
jae 0x41400b
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x414007
xor ecx, ecx
jmp 0x413fe9
mov esi, ecx
test esi, esi
jne 0x41405d
test edi, edi
je 0x414013
mov esi, edi
jmp 0x41405d
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00413190
add esp, 8
cmp eax, 0xffffffff
jne 0x414043
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.0046f975
push 0x4a466c
lea ecx, [esp + 0x18]
push ecx
call fcn.004706b8
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x4b9ba0], esi
call fcn.00401f00
push esi
call fcn.0045c13a
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0045bfc1
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 0x414280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48cc21
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push ebx
push esi
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0xc], ebx
push ebx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.0040f4b0
mov dword [esp + 0x30], 1
mov ecx, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x18]
call fcn.0040f800
mov esi, dword [esp + 0x38]
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.0040f4b0
mov dword [esp + 8], 1
mov byte [esp + 0x30], bl
cmp dword [esp + 0x24], 0x10
jb 0x414316
mov edx, dword [esp + 0x10]
push edx
call fcn.0046f1aa
add esp, 4
mov ecx, dword [esp + 0x28]
mov eax, esi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
pop esi
mov dword [esp + 0x20], 0xf
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x414340
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x48cc51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov ecx, dword [esp + 0x34]
push ebx
push esi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x10], ebx
xor eax, eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], ax
call fcn.0040f6a0
mov dword [esp + 0x30], 1
mov edx, dword [esp + 0x40]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x414395
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.00411480
mov esi, dword [esp + 0x38]
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.0040f6a0
mov dword [esp + 8], 1
mov byte [esp + 0x30], bl
cmp dword [esp + 0x24], 8
jb 0x4143ee
mov eax, dword [esp + 0x10]
push eax
call fcn.0046f1aa
add esp, 4
xor ecx, ecx
mov word [esp + 0x10], cx
mov ecx, dword [esp + 0x28]
mov eax, esi
mov dword [esp + 0x20], ebx
pop esi
mov dword [esp + 0x20], 7
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x48ca93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00412de0
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
lea eax, [edi + 0x30]
push edx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], edx
push eax
mov byte [ecx + 4], dl
call fcn.0040f4b0
mov dword [esp + 0x14], 0xffffffff
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x415180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48c6c3
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.00414650
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::runtime_error__.2.0
mov dword [esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::runtime_error__.1.0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::runtime_error__.0
test edi, edi
je 0x4151da
lea ebx, [edi + 0x28]
jmp 0x4151dc
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
mov edi, dword [ebx + 4]
test ecx, ecx
je 0x4151ed
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov dword [esi + 0x2c], edi
test edi, edi
je 0x4151fd
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 0x4162f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48cf80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push 0x28
xor ebx, ebx
push str.Day_of_month_value_is_out_of_range_1..31
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.0040fa10
mov dword [esp + 0x30], ebx
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00412d10
mov byte [esp + 0x30], 2
cmp dword [esp + 0x24], 0x10
jb 0x41635b
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0046f1aa
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
mov dword [esi], vtable.boost::gregorian::bad_day_of_month.0
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x416390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48cf80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push 0x27
xor ebx, ebx
push str.Year_is_out_of_valid_range:_1400..10000
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.0040fa10
mov dword [esp + 0x30], ebx
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00412d10
mov byte [esp + 0x30], 2
cmp dword [esp + 0x24], 0x10
jb 0x4163fb
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0046f1aa
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
mov dword [esi], vtable.boost::gregorian::bad_year.0
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x416430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48cf80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push 0x22
xor ebx, ebx
push str.Month_number_is_out_of_range_1..12
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.0040fa10
mov dword [esp + 0x30], ebx
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00412d10
mov byte [esp + 0x30], 2
cmp dword [esp + 0x24], 0x10
jb 0x41649b
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0046f1aa
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
mov dword [esi], vtable.boost::gregorian::bad_month.0
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x4165b0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x48cfc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
push 0xfffe
call fcn.0045bd2a
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x1c]
cmp dword [edi + 0x18], 8
jb 0x4165f2
mov eax, dword [edi + 4]
jmp 0x4165f5
lea eax, [edi + 4]
push 0x7fff
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416607
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.0040faf0
mov dword [esp + 0x14], 0xffffffff
test esi, esi
je 0x416634
push esi
call fcn.0046f1aa
add esp, 4
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x416840
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48d7b8
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.0045bd2a
add esp, 4
push eax
lea ecx, [esp + 0x1c]
call fcn.0040cc30
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 0x416896
mov eax, dword [edi]
jmp 0x416898
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 0x41690c
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.0045bd2a
add esp, 4
push eax
lea ecx, [esp + 0x1c]
call fcn.0040cc90
cmp dword [esi + 0x18], 8
jb 0x4168ee
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 0x416974
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
shr esi, 1
cmp eax, 1
je 0x41692b
cmp eax, 2
je 0x41692b
mov ebx, 0x3bc6
jmp 0x416974
mov edx, dword [esp + 0x18]
cmp word [edx + esi*2 - 2], 0
jne 0x41695c
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416940
mov ecx, dword [esp + 0x34]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.0040faf0
jmp 0x416974
mov edi, dword [esp + 0x34]
mov ecx, edi
call fcn.0040f320
mov ecx, dword [esp + 0x18]
push esi
push ecx
mov ecx, edi
call fcn.00411480
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00407070
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 0x418020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48d1d8
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.0045bf99
mov dword [esp + 0x28], 0
mov edi, dword [0x4b9ba4]
mov ecx, 0x4b9c78
mov dword [esp + 0xc], edi
call fcn.00401e90
mov ebx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [ebx]
cmp esi, dword [eax + 0xc]
jae 0x418091
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x418095
cmp byte [eax + 0x14], 0
je 0x418095
call fcn.0045c075
cmp esi, dword [eax + 0xc]
jae 0x41809b
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x418097
xor ecx, ecx
jmp 0x418079
mov esi, ecx
test esi, esi
jne 0x4180ed
test edi, edi
je 0x4180a3
mov esi, edi
jmp 0x4180ed
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.004148a0
add esp, 8
cmp eax, 0xffffffff
jne 0x4180d3
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.0046f975
push 0x4a466c
lea ecx, [esp + 0x18]
push ecx
call fcn.004706b8
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x4b9ba4], esi
call fcn.00401f00
push esi
call fcn.0045c13a
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0045bfc1
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 0x418760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48d1d8
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.0045bf99
mov dword [esp + 0x28], 0
mov edi, dword [0x4b9ba8]
mov ecx, 0x4b9c80
mov dword [esp + 0xc], edi
call fcn.00401e90
mov ebx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [ebx]
cmp esi, dword [eax + 0xc]
jae 0x4187d1
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x4187d5
cmp byte [eax + 0x14], 0
je 0x4187d5
call fcn.0045c075
cmp esi, dword [eax + 0xc]
jae 0x4187db
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x4187d7
xor ecx, ecx
jmp 0x4187b9
mov esi, ecx
test esi, esi
jne 0x41882d
test edi, edi
je 0x4187e3
mov esi, edi
jmp 0x41882d
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00415230
add esp, 8
cmp eax, 0xffffffff
jne 0x418813
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.0046f975
push 0x4a466c
lea ecx, [esp + 0x18]
push ecx
call fcn.004706b8
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x4b9ba8], esi
call fcn.00401f00
push esi
call fcn.0045c13a
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0045bfc1
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret