joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476900
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x53c160]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, ecx
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x280], edi
call fcn.004d76ca
add esp, 4
mov esi, eax
mov dword [ebp - 0x25c], esi
push edi
call fcn.004d76ca
mov ecx, dword [ebx + 0x34]
add esp, 4
mov edi, eax
mov dword [ebp - 0x268], 0
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x260], edi
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
push edi
push esi
push 0
push dword [ebp - 0x264]
call ecx
or eax, edx
jne 0x476990
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x268], eax
mov ecx, dword [ebx]
xorps xmm0, xmm0
movlpd qword [ebp - 0x278], xmm0
test ecx, ecx
je 0x476b12
test byte [ecx + 0x18], 8
je 0x476a6e
push dword [ebp - 0x26c]
xor esi, esi
mov dword [ebp - 0x254], esi
call fcn.004d76ca
add esp, 4
mov edi, eax
lea eax, [ebp - 0x27c]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
je 0x476a42
push ebx
lfence
call fcn.004d22f2
add esp, 4
mov esi, eax
push esi
push ebx
push dword [ebp - 0x27c]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x476a42
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x254]
push eax
push 0x51914c
push esi
lfence
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x476a25
mov dword [ebp - 0x254], eax
jmp 0x476a42
mov eax, dword [ebp - 0x254]
xor edx, edx
add edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
adc ecx, 0
mov dword [ebp - 0x278], edx
mov dword [ebp - 0x274], ecx
test edi, edi
je 0x476a4f
push edi
call fcn.004d217e
add esp, 4
test esi, esi
je 0x476a5c
push esi
call fcn.004d217e
add esp, 4
mov edi, dword [ebp - 0x260]
mov esi, dword [ebp - 0x25c]
mov ebx, dword [ebp - 0x258]
lea eax, [ebp - 0x250]
mov ecx, ebx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 0x264]
call fcn.00476f40
mov eax, dword [ebp - 0x230]
mov edx, str._unknown_
cmp eax, 8
ja case.default.0x476a98
jmp dword [eax*4 + 0x476b38]
mov edx, str._nosymbols_
jmp case.default.0x476a98
mov edx, str.COFF
jmp case.default.0x476a98
mov edx, 0x519100
jmp case.default.0x476a98
mov edx, 0x519104
jmp case.default.0x476a98
mov edx, str._exported_
jmp case.default.0x476a98
mov edx, str._deferred_
jmp case.default.0x476a98
mov edx, 0x519120
jmp case.default.0x476a98
mov edx, 0x519124
jmp case.default.0x476a98
mov edx, str.Virtual
push dword [ebp - 0x274]
mov ecx, dword [ebx]
lea ebx, [ebp - 0x10c]
push dword [ebp - 0x278]
push ebx
mov eax, dword [ecx]
push edx
push dword [ebp - 0x268]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 0x280]
push dword [ebp - 0x26c]
call dword [eax + 8]
push esi
call fcn.004d217e
add esp, 4
push edi
call fcn.004d217e
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004c3ba1
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4780c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x53c160]
xor eax, esp
mov dword [esp + 0x194], eax
mov eax, 1
lock xadd dword [0x5486d4], eax
inc eax
cmp eax, 1
jne 0x478100
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x5486d8
xchg dword [ecx], eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004c3ba1
mov esp, ebp
pop ebp
ret

Function at 0x478490
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa8a5
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53c160]
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]
lea eax, [esi + 4]
xorps xmm0, xmm0
mov dword [esi], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [edi + 4]
push eax
call fcn.004c5412
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.boost::system::system_error.0
movq xmm0, qword [edi + 0xc]
movq qword [esi + 0xc], xmm0
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x18]
push eax
call fcn.00408d20
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 0x478520
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, esi
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 ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x478950
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa969
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x53c160]
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, edx
mov edi, ecx
mov dword [ebp - 0x5c], edi
lea eax, [ebp - 0x50]
mov dword [ebp - 0x60], edi
push eax
lea eax, [esi + 4]
mov dword [ebp - 0x58], 0
xorps xmm0, xmm0
mov dword [ebp - 0x54], vtable.std::exception.0
push eax
movq qword [ebp - 0x50], xmm0
call fcn.004c5412
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
mov eax, dword [esi + 0x14]
movq xmm0, qword [esi + 0xc]
mov dword [ebp - 0x40], eax
lea eax, [esi + 0x18]
push eax
mov dword [ebp - 0x54], vtable.boost::system::system_error.0
movq qword [ebp - 0x48], xmm0
call fcn.00408d20
movaps xmm0, xmmword [0x51e0e0]
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x54], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov dword [ebp - 0x24], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [ebp - 4], 1
mov dword [edi + 0x44], 0x51917c
mov dword [edi + 0x4c], vtable.boost::exception_detail::clone_base.0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
mov dword [ebp - 0x58], 6
call fcn.00478490
mov dword [ebp - 4], 4
lea edx, [ebp - 0x24]
mov eax, dword [edi + 0x44]
mov dword [edi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::system::system_error__.0
mov dword [edi + 0x30], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::system::system_error__.2.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 0x44], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::system::system_error__.1.0
mov eax, dword [edi + 0x44]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0x40], eax
lea ecx, [edi + 0x30]
call fcn.00415ec0
mov eax, dword [edi + 0x44]
mov dword [edi], vtable.boost::wrapexcept_class_boost::system::system_error_.1.0
mov dword [edi + 0x30], vtable.boost::wrapexcept_class_boost::system::system_error_.2.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 0x44], vtable.boost::wrapexcept_class_boost::system::system_error_.0
mov eax, dword [edi + 0x44]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0x40], eax
mov dword [ebp - 0x54], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov dword [ebp - 0x24], vtable.boost::exception.0
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x478aaa
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [ebp - 0x20]
xor edx, edx
test al, al
cmovne ecx, edx
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x54]
call fcn.00477ec0
mov eax, edi
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.004c3ba1
mov esp, ebp
pop ebp
ret
Function at 0x47f5a0
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb680
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.004c4e80
mov eax, dword [0x53c160]
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 ebx, edx
mov edi, ecx
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x47f5e0
mov eax, dword [edi]
push 0x51a854
push eax
call fcn.004d8180
mov esi, eax
add esp, 8
test esi, esi
je 0x47f727
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x47f602
mov eax, dword [ebx]
mov dword [ebx + 0x10], 0
push esi
mov byte [eax], 0
call fcn.004d7fa5
add esp, 4
test eax, eax
jne 0x47f6fd
nop dword [eax]
push esi
push 0x1000
lea eax, [ebp - 0x1010]
push 1
push eax
call fcn.004d34f1
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x47f64e
push esi
call fcn.004d7fd1
add esp, 4
test eax, eax
jne 0x47f73e
push edi
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1028], 0
push eax
lea ecx, [ebp - 0x1028]
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0xf
mov byte [ebp - 0x1028], 0
call fcn.004085d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1028]
cmp dword [ebp - 0x1014], 0x10
mov ecx, ebx
push dword [ebp - 0x1018]
cmovae eax, dword [ebp - 0x1028]
push eax
call fcn.00408110
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1014]
cmp edx, 0x10
jb 0x47f6ec
mov ecx, dword [ebp - 0x1028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47f6e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f722
push edx
push ecx
call fcn.004c3baf
add esp, 8
push esi
call fcn.004d7fa5
add esp, 4
test eax, eax
je 0x47f620
push esi
call fcn.004d3835
add esp, 4
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.004c3ba1
mov esp, ebp
pop ebp
ret
call fcn.004cecff
mov ecx, edi
call fcn.00408ae0
push eax
call fcn.004d8197
add esp, 4
push 1
call fcn.004d7f8f
push str.fread
call fcn.004d8197
add esp, 4
push 1
call fcn.004d7f8f
int3
Function at 0x481790
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbaed
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x53c160]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
shl ecx, 2
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
lea esi, [ecx + eax]
sar ecx, 2
mov dword [ebp - 0x14], esi
test ecx, ecx
je 0x4818e2
cmp ecx, 0xaaaaaaa
ja 0x481901
lea esi, [ecx + ecx*2]
shl esi, 3
cmp esi, 0x1000
jb 0x481850
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x481906
push eax
lfence
call fcn.004c3bbd
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x48190b
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x481864
test esi, esi
je 0x481862
push esi
lfence
call fcn.004c3bbd
add esp, 4
jmp 0x481864
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
add eax, esi
mov dword [ebx + 8], eax
mov dword [ebp - 0x20], ebx
mov esi, dword [ebx]
mov eax, dword [ebp - 0x18]
mov edi, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 2
cmp eax, dword [ebp - 0x14]
je 0x4818df
mov ebx, dword [ebp - 0x14]
nop dword [eax]
mov edx, dword [edi]
xor eax, eax
mov dword [esi], 0
mov word [esi], ax
mov eax, edx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea ecx, [eax + 2]
mov dword [ebp - 0x14], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4818b3
sub eax, dword [ebp - 0x14]
mov ecx, esi
sar eax, 1
push eax
push edx
call fcn.00406c30
add esi, 0x18
add edi, 4
mov dword [ebp - 0x28], esi
cmp edi, ebx
jne 0x481890
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [ebx + 4], esi
test eax, eax
je 0x4818ed
push eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
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
call fcn.0040cc60
call fcn.00408bd0
call fcn.004cecff
int3
Function at 0x481920
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbb2d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x53c160]
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 edi, ecx
mov dword [ebp - 0x48], edi
mov eax, dword [ebp + 8]
push eax
push edx
mov dword [ebp - 0x48], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x481a18
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x48], eax
lea esi, [eax + 1]
push esi
call fcn.00410ca0
push esi
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x20]
push esi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4819a6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x481a34
push dword [ebp - 0x48]
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 7
push esi
mov word [edi], ax
call fcn.00406c30
test esi, esi
je 0x4819fa
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x4819f0
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481a60
push ecx
push esi
call fcn.004c3baf
add esp, 8
mov eax, edi
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.004c3ba1
mov esp, ebp
pop ebp
ret
push 0x51ac70
lea ecx, [ebp - 0x2c]
call fcn.004086c0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00480fd0
push str.GetWindowText
lea ecx, [ebp - 0x44]
call fcn.004086c0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
push ebx
lea ecx, [ebp - 0x5c]
call fcn.00480f30
push 0x538a58
lea eax, [ebp - 0x5c]
push eax
call fcn.004c5b2b
call fcn.004cecff
int3

Function at 0x4825f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x482644
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x482644
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, 1
lea edx, [esi + eax]
cmp esi, edx
jae 0x482644
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x482620
cmp esi, edx
jae 0x482644
cmp word [esi], cx
je 0x482644
pop edi
mov eax, esi
pop esi
lfence
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x482820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbc3d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x53c160]
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, edx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], eax
call eax
mov esi, eax
test esi, esi
jne 0x48299e
mov eax, dword [ebp - 0x44]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
test eax, eax
je 0x482901
cmp eax, 0x7fffffff
ja 0x4829bc
lea edi, [eax + eax]
cmp edi, 0x1000
jb 0x4828d1
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x4829c1
push eax
lfence
call fcn.004c3bbd
add esp, 4
test eax, eax
je 0x482999
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4828e7
test edi, edi
je 0x4828e5
push edi
lfence
call fcn.004c3bbd
add esp, 4
mov ebx, eax
jmp 0x4828e7
xor ebx, ebx
push edi
push 0
lea esi, [edi + ebx]
mov dword [ebp - 0x1c], ebx
push ebx
mov dword [ebp - 0x14], esi
call fcn.004c6130
add esp, 0xc
mov dword [ebp - 0x18], esi
mov edi, ebx
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 1
push eax
push ebx
push 0
push dword [ebp - 0x4c]
call dword [ebp - 0x48]
mov ebx, eax
test ebx, ebx
jne 0x4829c6
mov ebx, dword [ebp - 0x50]
mov ecx, edi
mov dword [ebx], eax
lea edx, [ecx + 2]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482936
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, ebx
call fcn.00406c30
test edi, edi
je 0x48297b
sub esi, edi
and esi, 0xfffffffe
cmp esi, 0x1000
jb 0x482971
mov ecx, dword [edi - 4]
add esi, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x482999
mov edi, ecx
push esi
push edi
call fcn.004c3baf
add esp, 8
mov eax, ebx
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.004c3ba1
mov esp, ebp
pop ebp
ret
call fcn.004cecff
push str.RegQueryValue
lea ecx, [ebp - 0x28]
call fcn.004086c0
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00480f60
call fcn.0040cc60
call fcn.00408bd0
push str.RegQueryValue
lea ecx, [ebp - 0x40]
call fcn.004086c0
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
mov ecx, ebx
call fcn.00480f60
int3
Function at 0x4829f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbc7d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x53c160]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x1c], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
push 0
push ecx
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20], eax
call eax
test eax, eax
jne 0x482b54
cmp dword [ebp - 0x14], 1
jne 0x482b54
mov eax, dword [ebp - 0x10]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x2c], ebx
xor esi, esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
test eax, eax
je 0x482adc
cmp eax, 0x7fffffff
ja 0x482ba1
lea edi, [eax + eax]
cmp edi, 0x1000
jb 0x482aac
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x482ba6
push eax
lfence
call fcn.004c3bbd
add esp, 4
test eax, eax
je 0x482bab
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x482ac2
test edi, edi
je 0x482ac0
push edi
lfence
call fcn.004c3bbd
add esp, 4
mov ebx, eax
jmp 0x482ac2
xor ebx, ebx
push edi
push 0
lea esi, [edi + ebx]
mov dword [ebp - 0x2c], ebx
push ebx
mov dword [ebp - 0x24], esi
call fcn.004c6130
add esp, 0xc
mov dword [ebp - 0x28], esi
mov edi, ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [ebp - 0x20]
test eax, eax
je 0x482b51
push dword [ebp + 0xc]
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.00405430
test edi, edi
je 0x482b8d
sub esi, edi
and esi, 0xfffffffe
cmp esi, 0x1000
jb 0x482b33
mov ecx, dword [edi - 4]
add esi, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x482bab
mov edi, ecx
push esi
push edi
call fcn.004c3baf
add esp, 8
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
push ebx
jmp 0x482afe
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ecx, edx
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482b75
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00406c30
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
call fcn.0040cc60
call fcn.00408bd0
call fcn.004cecff
int3
Function at 0x4925b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd1e1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x53c160]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10], 0
push eax
lea eax, [esi + 4]
mov dword [ebp - 0x3c], vtable.std::exception.0
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x38], xmm0
call fcn.004c5412
mov eax, dword [esi + 0xc]
add esp, 8
movaps xmm0, xmmword [0x51e0e0]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2c], eax
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x3c], vtable.boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast_.0
mov dword [ebp - 0x28], vtable.boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast_.1.0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0x51d0c4
mov dword [edi + 0x30], vtable.boost::exception_detail::clone_base.0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
mov dword [ebp - 0x10], 2
call fcn.00491c90
mov dword [ebp - 4], 3
lea edx, [ebp - 0x28]
mov eax, dword [edi + 0x28]
mov dword [edi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast__.2.0
mov dword [edi + 0x14], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast__.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast__.1.0
mov eax, dword [edi + 0x28]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0x24], eax
lea ecx, [edi + 0x14]
call fcn.00415ec0
mov eax, dword [edi + 0x28]
mov dword [edi], vtable.boost::wrapexcept_class_boost::bad_lexical_cast_.2.0
mov dword [edi + 0x14], vtable.boost::wrapexcept_class_boost::bad_lexical_cast_.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 0x28], vtable.boost::wrapexcept_class_boost::bad_lexical_cast_.1.0
mov eax, dword [edi + 0x28]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0x24], eax
mov dword [ebp - 0x3c], vtable.boost::exception_detail::error_info_injector_class_boost::bad_lexical_cast_.0
mov dword [ebp - 0x28], vtable.boost::exception.0
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4926e6
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [ebp - 0x24]
xor edx, edx
test al, al
cmovne ecx, edx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], vtable.std::exception.0
push eax
call fcn.004c5475
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret