joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463990
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4af7f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4b2654]
push 0
lea ecx, [esp + 0x20]
call fcn.004a5870
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00463330
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004a579e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004a1f84
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004a1f84
push 1
push 0
push 0
mov ecx, esi
call fcn.004a1f2c
push 1
push 0
push 1
mov ecx, esi
call fcn.004a1f2c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a58e2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x463b10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4af818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004a5870
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00463330
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004a579e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4b2654]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x463bd4
cmp dword [esp + 0x40], 1
jne 0x463bd2
cmp ecx, eax
jge 0x463bd4
mov eax, ecx
cmp eax, 0xc8
jge 0x463be0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00463990
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4b2650]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a58e2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x464360
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4af883
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
call fcn.004a039f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x83c810
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x836f30
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4b2140]
push eax
mov ecx, edi
call fcn.004a5b18
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a70b3
test eax, eax
je 0x46447c
mov ecx, dword [esp + 0x3c]
call fcn.004a5b45
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4b2674]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x464440
push edi
mov ecx, esi
call fcn.004a3106
mov ecx, esi
call fcn.004645e0
cmp dword [esp + 0x38], 1
jne 0x464475
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a3270
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x466ea0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x466ed3
push esi
call fcn.00469f90
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x466ecc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x466f59
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x466f42
mov eax, dword [esi + 8]
test eax, eax
je 0x466ef7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x466f3e
cmp eax, 2
je 0x466f42
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x466eea
cmp eax, 3
je 0x466f1d
cmp eax, 1
jne 0x466eea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x466eea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x466eea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00466f80
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x466f68
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00466f80
add esp, 4
pop esi
ret
Function at 0x47d470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b0670
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0047d020
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047d0a0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047d0a0
lea ecx, [esi + 0xc]
call fcn.0049ed1e
lea ecx, [esi + 0x10]
call fcn.0049ed1e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047e630
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047e630
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047e630
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0049ed93
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0049ed93
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4015b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48fc61
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4b0b28]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.00401070
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
lea ecx, [esi + 0x30]
mov dword [esi], vtable.boost::system::system_error.0
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 0xc

Function at 0x401b20
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401b68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.0046ae20
neg esi
sbb esi, esi
test esi, fcn.0040a0c0
mov dword [esp + 0xc], eax
je 0x401b68
lea eax, [esp + 8]
push eax
mov ecx, 0x49ca34
call fcn.00401a10
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401b70
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x4b0b28]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x4b2e0c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x401bac
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x4b2e10
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0046b7d6
add esp, 0x19c
ret
Function at 0x402490
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x48f938
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4b0b28]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00401130
mov dword [esp + 0x18], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
add edi, 0x30
mov dword [esi + 0x2c], ecx
push edi
lea ecx, [esi + 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x402c00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x491009
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x4b0b28]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
push 1
push 0x4b0eac
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
call dword [sym.imp.MSVCR80.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
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 eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], edi
call fcn.00403560
test byte [0x4b30b0], 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], 0x49c628
mov dword [esp + 0x48], 0x7c
jne 0x402d4a
or dword [0x4b30b0], 1
push 0x2c
mov byte [esp + 0x74], 2
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov byte [esp + 0x70], 3
je 0x402cda
push 1
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
call fcn.004030b0
jmp 0x402cdc
xor eax, eax
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.00403a80
mov edx, dword [eax]
mov dword [0x4b30a8], edx
mov eax, dword [eax + 4]
cmp eax, edi
mov dword [0x4b30ac], eax
je 0x402d0b
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x402d3d
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x402d3d
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 0x402d3d
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x4928e0
call fcn.0046b6f1
add esp, 4
mov eax, dword [0x4b30a8]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov ecx, dword [0x4b30ac]
mov dword [esi + 4], ecx
mov eax, dword [0x4b30ac]
cmp eax, edi
je 0x402d72
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea ecx, [esp + 0x38]
call fcn.00403610
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 dword [sym.imp.MSVCR80.dll_public_virtual:_void___thiscall_std::exception::destructor_void_]
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
mov dword [esp + 0x18], vtable.boost::exception.0
je 0x402dbc
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 0x402dd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x490fb9
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x4b0b28]
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 dword [sym.imp.MSVCR80.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
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.00403740
test byte [0x4b30a4], 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:clientciworkspace_bdda_trunk_compile_stable_projinclude_thirdInclude_boost_exception_detail_exception_ptr.hpp
mov dword [esp + 0x48], 0x7c
jne 0x402f20
or dword [0x4b30a4], 1
push 0x2c
mov byte [esp + 0x74], 2
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov byte [esp + 0x70], 3
je 0x402eb0
push 1
lea edx, [esp + 0x3c]
push edx
mov ecx, eax
call fcn.00403180
jmp 0x402eb2
xor eax, eax
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.00403b00
mov ecx, dword [eax]
mov dword [0x4b309c], ecx
mov eax, dword [eax + 4]
cmp eax, edi
mov dword [0x4b30a0], eax
je 0x402ee1
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x402f13
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x402f13
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 0x402f13
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x4928a0
call fcn.0046b6f1
add esp, 4
mov eax, dword [0x4b309c]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov ecx, dword [0x4b30a0]
mov dword [esi + 4], ecx
mov eax, dword [0x4b30a0]
cmp eax, edi
je 0x402f48
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea ecx, [esp + 0x38]
call fcn.004037f0
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 dword [sym.imp.MSVCR80.dll_public_virtual:_void___thiscall_std::exception::destructor_void_]
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
mov dword [esp + 0x18], vtable.boost::exception.0
je 0x402f92
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 0x404880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x490320
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4b0b28]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x14], eax
call dword [0x4b0a60]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x410]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x404909
call fcn.004043c0
mov esi, eax
jmp 0x4049ef
mov edx, dword [ebp - 0x14]
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x404925
call fcn.004043c0
jmp 0x4049e6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x40493e
call fcn.004043c0
jmp 0x4049e6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
jae 0x404974
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x404962
lea eax, [ebp]
call fcn.00404a30
lea esi, [ebp - 0x1c]
call fcn.00404390
mov eax, 0x8007000e
jmp 0x404a02
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00404a40
mov dword [ebp - 4], 1
jmp 0x40499c
mov esi, dword [ebp]
test esi, esi
jne 0x4049aa
mov esi, 0x8007000e
jmp 0x4049e8
call dword [0x4b0a60]
mov ecx, dword [ebp - 0x20]
push ebx
push esi
push ebx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4049cb
call fcn.004043c0
jmp 0x4049e6
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00404aa0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x404a00
lea eax, [ebp]
call fcn.00404a30
nop
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0046b7d6
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405c10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x405c23
push 0x80004005
call fcn.00406440
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x405c30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x405dd0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x4b0b28]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x234]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
test esi, esi
jne 0x405e3e
test ecx, ecx
je 0x405e30
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], ecx
je 0x405e4c
test ecx, ecx
je 0x405ef1
push ecx
jmp 0x405eeb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x3c]
push edx
push 0
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
jne 0x405ebe
jmp 0x405e80
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00405dd0
mov edi, eax
test edi, edi
jne 0x405f0d
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
je 0x405e80
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405ed5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405ef1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0046b7d6
add esp, 0x224
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405f1c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x405ef3
Function at 0x406af0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
push ebp
movzx ebp, word [eax]
cmp bp, 0x76c
push edi
jae 0x406b16
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, esi
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xa]
movzx edi, word [eax + 8]
movzx ebx, word [eax + 6]
movzx eax, word [eax + 2]
push eax
movzx eax, bp
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00406a20
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
pop ebp
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, esi
pop ebx
add esp, 0x10
ret