joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov cl, byte [edx]
mov eax, 0xffff
test cl, cl
je 0x10008243
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr ax, 8
xor ax, word [ecx*2 + 0x100a41b8]
mov cl, byte [edx + 1]
inc edx
movzx eax, ax
test cl, cl
jne 0x10008221
not eax
pop ebp
ret

Function at 0x10008250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
add edx, ecx
not eax
movzx eax, ax
cmp ecx, edx
je 0x10008290
push esi
jmp 0x10008270
movsx esi, byte [ecx]
xor esi, eax
shr ax, 8
and esi, 0xff
xor ax, word [esi*2 + 0x100a41b8]
inc ecx
movzx eax, ax
cmp ecx, edx
jne 0x10008270
pop esi
not eax
pop ebp
ret

Function at 0x100082a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
not eax
movzx eax, ax
test ecx, ecx
jle 0x100082f8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
add esi, 4
mov edi, ecx
lea ecx, [ecx]
mov ecx, dword [esi]
mov edx, dword [esi - 4]
add edx, ecx
cmp ecx, edx
je 0x100082ef
jmp 0x100082d0
movsx ebx, byte [ecx]
xor ebx, eax
shr ax, 8
and ebx, 0xff
xor ax, word [ebx*2 + 0x100a41b8]
inc ecx
movzx eax, ax
cmp ecx, edx
jne 0x100082d0
add esi, 8
dec edi
jne 0x100082c0
pop edi
pop esi
pop ebx
not eax
pop ebp
ret

Function at 0x1000cec0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.ACE.dll_int___cdecl_ACE_OS::thr_setspecific_unsigned_long_int__void__

Function at 0x1000cf50
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1000cf68
pop ebp
jmp fcn.1002a850
xor eax, eax
pop ebp
ret

Function at 0x1000cf70
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1000cf86
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.1002a850

Function at 0x10010200
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ecx]
xor eax, eax
push eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
push eax
push edx
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x10010249
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x10012070
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1c54
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10112018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0x20]
push eax
call sym.ACE.dll_public:_void___thiscall_ACE_Select_Reactor_Impl::constructor_bool_
xor ebx, ebx
mov dword [ebp - 4], ebx
lea esi, [edi + 0xc0d8]
mov dword [edi], vtable.ACE_Select_Reactor_T_class_ACE_Reactor_Token_T_class_ACE_Token__.0
mov dword [esi], vtable.ACE_Token.0
push ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
push ebx
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call sym.ACE.dll_public:_void___thiscall_ACE_Thread_Mutex::constructor_char_const___struct_ACE_mutexattr_t__
mov ecx, dword [sym.ACE.dll_unsigned_long_int_ACE_OS::NULL_thread]
xor edx, edx
cmp dword [ebp + 0x24], 0xffffffff
mov dword [esi + 0x30], ecx
setne dl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 1
mov dword [esi], vtable.ACE_Reactor_Token_T_class_ACE_Token_.0
mov dword [esi + 0x48], ebx
dec edx
mov dword [esi + 0x44], edx
mov dword [edi + 0xc124], 0x100a5760
mov dword [edi + 0xc128], esi
mov byte [edi + 0xc12c], bl
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
mov byte [ebp - 4], 2
push edx
mov ecx, edi
mov dword [edi + 0xc130], ebx
mov dword [edi + 0xc120], edi
call sym.ACE.dll__open___ACE_Select_Reactor_T_V__ACE_Reactor_Token_T_VACE_Token______UAEHI_NPAVACE_Sig_Handler__PAV__ACE_Timer_Queue_T_
cmp eax, 0xffffffff
jne 0x100121a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
cmp eax, ebx
je 0x10012160
mov esi, eax
call sym.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_
push str.ACE_Select_Reactor_T::open_failed_inside_ACE_Select_Reactor_T::CTOR
push 0x100a50fc
push 0x80
push eax
mov byte [eax + 0x13c], 1
mov dword [eax + 0x140], str.D:UserscspunginACE_wrappers_ace_Select_Reactor_T.cpp
mov dword [eax + 0x144], 0x224
mov dword [eax + 0x148], 0xffffffff
mov dword [eax + 0x14c], esi
call sym.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__
add esp, 0x10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x100121c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1c54
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10112018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0x18]
push eax
call sym.ACE.dll_public:_void___thiscall_ACE_Select_Reactor_Impl::constructor_bool_
xor ebx, ebx
mov dword [ebp - 4], ebx
lea esi, [edi + 0xc0d8]
mov dword [edi], vtable.ACE_Select_Reactor_T_class_ACE_Reactor_Token_T_class_ACE_Token__.0
mov dword [esi], vtable.ACE_Token.0
push ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
push ebx
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call sym.ACE.dll_public:_void___thiscall_ACE_Thread_Mutex::constructor_char_const___struct_ACE_mutexattr_t__
mov ecx, dword [sym.ACE.dll_unsigned_long_int_ACE_OS::NULL_thread]
xor edx, edx
cmp dword [ebp + 0x1c], 0xffffffff
mov dword [esi + 0x30], ecx
setne dl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 1
mov dword [esi], vtable.ACE_Reactor_Token_T_class_ACE_Token_.0
mov dword [esi + 0x48], ebx
dec edx
mov dword [esi + 0x44], edx
mov dword [edi + 0xc124], 0x100a5760
mov dword [edi + 0xc128], esi
mov byte [edi + 0xc12c], bl
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push eax
push ecx
push edx
push ebx
mov byte [ebp - 4], 2
push 0x400
mov ecx, edi
mov dword [edi + 0xc130], ebx
mov dword [edi + 0xc120], edi
call sym.ACE.dll__open___ACE_Select_Reactor_T_V__ACE_Reactor_Token_T_VACE_Token______UAEHI_NPAVACE_Sig_Handler__PAV__ACE_Timer_Queue_T_
cmp eax, 0xffffffff
jne 0x10012315
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push eax
push ecx
push edx
push ebx
push 0x400
mov ecx, edi
call sym.ACE.dll__open___ACE_Select_Reactor_T_V__ACE_Reactor_Token_T_VACE_Token______UAEHI_NPAVACE_Sig_Handler__PAV__ACE_Timer_Queue_T_
cmp eax, 0xffffffff
jne 0x10012315
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
cmp eax, ebx
je 0x100122cd
mov esi, eax
call sym.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_
push str.ACE_Select_Reactor_T::open_failed_inside_ACE_Select_Reactor_T::CTOR
push 0x100a50fc
push 0x80
push eax
mov byte [eax + 0x13c], 1
mov dword [eax + 0x140], str.D:UserscspunginACE_wrappers_ace_Select_Reactor_T.cpp
mov dword [eax + 0x144], 0x203
mov dword [eax + 0x148], 0xffffffff
mov dword [eax + 0x14c], esi
call sym.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__
add esp, 0x10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10015430
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x10112018]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], eax
xor eax, eax
mov esi, ecx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call sym.ACE.dll_private:_void___thiscall_ACE_Time_Value::normalize_bool_
mov edx, dword [esi]
mov eax, dword [edx + 0x13c]
push edi
mov ecx, esi
call eax
mov ebx, eax
test ebx, ebx
jne 0x100155a4
cmp dword [esi + 0xc0b4], 0
je 0x100155be
mov ecx, dword [esi + 0xc0b4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push eax
call edx
mov dword [esp + 0x1c], eax
push 0x100c
lea eax, [esi + 0x3048]
push eax
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push 0x100c
lea ecx, [esi + 0x4054]
lea eax, [edi + 0x100c]
push ecx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push 0x100c
lea edx, [esi + 0x5060]
push edx
lea ebx, [edi + 0x2018]
push ebx
call sub.MSVCR100.dll_memcpy
xor eax, eax
add esp, 0xc
cmp dword [ebx], eax
jle 0x10015504
add ebx, 8
mov dword [esp + 0x10], ebx
jmp 0x10015508
mov dword [esp + 0x10], eax
cmp dword [edi + 0x100c], eax
jle 0x10015516
lea eax, [edi + 0x1014]
mov ecx, edi
mov dword [esp + 0x14], eax
call sym.ACE.dll_public:_struct_fd_set____thiscall_ACE_Handle_Set::operator_struct_fd_set__void_
mov ecx, dword [esp + 0x1c]
mov ebx, eax
test ecx, ecx
jne 0x1001552f
xor eax, eax
jmp 0x10015534
call sym.ACE.dll_public:_struct_timeval_const____thiscall_ACE_Time_Value::operator_struct_timeval_const__void_const
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
push ebx
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x100155ba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0x144]
mov ecx, esi
or ebx, 0xffffffff
call edx
test eax, eax
jg 0x10015482
or ecx, ebx
xor eax, eax
mov dword [edi + 4], ecx
mov dword [edi], eax
mov dword [edi + 8], eax
mov dword [edi + 0x1010], ecx
mov dword [edi + 0x100c], eax
mov dword [edi + 0x1014], eax
mov dword [edi + 0x201c], ecx
mov dword [edi + 0x2018], eax
mov dword [edi + 0x2020], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 8
mov ebx, eax
jmp 0x100155a4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 8
Function at 0x10017f30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x10], 1
jne 0x10017f72
mov dword [sym.ACE.dll_long_int____cdecl___long_int_volatile___ACE_Atomic_Op_class_ACE_Thread_Mutex__long_int_::increment_fn_], sym.ACE.dll_public:_static_int___cdecl_ACE_Thread::cancel_unsigned_long_int_
mov dword [sym.ACE.dll_long_int____cdecl___long_int_volatile___ACE_Atomic_Op_class_ACE_Thread_Mutex__long_int_::decrement_fn_], sym.ACE.dll_public:_static_int___cdecl_ACE_Thread::cancel_unsigned_long_int_
mov dword [sym.ACE.dll_long_int____cdecl___long_int_volatile___long_int__ACE_Atomic_Op_class_ACE_Thread_Mutex__long_int_::exchange_fn_], sym.ACE.dll_public:_static_int___cdecl_ACE_Thread::cancel_unsigned_long_int_
mov dword [sym.ACE.dll_long_int____cdecl___long_int_volatile___long_int__ACE_Atomic_Op_class_ACE_Thread_Mutex__long_int_::exchange_add_fn_], sym.ACE.dll_public:_static_int___cdecl_ACE_Thread::cancel_unsigned_long_int_
mov esp, ebp
pop ebp
ret
mov dword [sym.ACE.dll_long_int____cdecl___long_int_volatile___ACE_Atomic_Op_class_ACE_Thread_Mutex__long_int_::increment_fn_], sym.ACE.dll_public:_static_int___cdecl_ACE_Thread::cancel_unsigned_long_int_
mov dword [sym.ACE.dll_long_int____cdecl___long_int_volatile___ACE_Atomic_Op_class_ACE_Thread_Mutex__long_int_::decrement_fn_], sym.ACE.dll_public:_static_int___cdecl_ACE_Thread::cancel_unsigned_long_int_
mov dword [sym.ACE.dll_long_int____cdecl___long_int_volatile___long_int__ACE_Atomic_Op_class_ACE_Thread_Mutex__long_int_::exchange_fn_], sym.ACE.dll_public:_static_int___cdecl_ACE_Thread::cancel_unsigned_long_int_
mov dword [sym.ACE.dll_long_int____cdecl___long_int_volatile___long_int__ACE_Atomic_Op_class_ACE_Thread_Mutex__long_int_::exchange_add_fn_], sym.ACE.dll_public:_static_int___cdecl_ACE_Thread::cancel_unsigned_long_int_
mov esp, ebp
pop ebp
ret
Function at 0x10017fa0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x10], 1
jne 0x10017fe2
mov dword [sym.ACE.dll_long_int____cdecl___long_int_volatile___ACE_Atomic_Op_class_ACE_Thread_Mutex__unsigned_long_int_::increment_fn_], sym.ACE.dll_public:_static_int___cdecl_ACE_Thread::cancel_unsigned_long_int_
mov dword [sym.ACE.dll_long_int____cdecl___long_int_volatile___ACE_Atomic_Op_class_ACE_Thread_Mutex__unsigned_long_int_::decrement_fn_], sym.ACE.dll_public:_static_int___cdecl_ACE_Thread::cancel_unsigned_long_int_
mov dword [sym.ACE.dll_long_int____cdecl___long_int_volatile___long_int__ACE_Atomic_Op_class_ACE_Thread_Mutex__unsigned_long_int_::exchange_fn_], sym.ACE.dll_public:_static_int___cdecl_ACE_Thread::cancel_unsigned_long_int_
mov dword [sym.ACE.dll_long_int____cdecl___long_int_volatile___long_int__ACE_Atomic_Op_class_ACE_Thread_Mutex__unsigned_long_int_::exchange_add_fn_], sym.ACE.dll_public:_static_int___cdecl_ACE_Thread::cancel_unsigned_long_int_
mov esp, ebp
pop ebp
ret
mov dword [sym.ACE.dll_long_int____cdecl___long_int_volatile___ACE_Atomic_Op_class_ACE_Thread_Mutex__unsigned_long_int_::increment_fn_], sym.ACE.dll_public:_static_int___cdecl_ACE_Thread::cancel_unsigned_long_int_
mov dword [sym.ACE.dll_long_int____cdecl___long_int_volatile___ACE_Atomic_Op_class_ACE_Thread_Mutex__unsigned_long_int_::decrement_fn_], sym.ACE.dll_public:_static_int___cdecl_ACE_Thread::cancel_unsigned_long_int_
mov dword [sym.ACE.dll_long_int____cdecl___long_int_volatile___long_int__ACE_Atomic_Op_class_ACE_Thread_Mutex__unsigned_long_int_::exchange_fn_], sym.ACE.dll_public:_static_int___cdecl_ACE_Thread::cancel_unsigned_long_int_
mov dword [sym.ACE.dll_long_int____cdecl___long_int_volatile___long_int__ACE_Atomic_Op_class_ACE_Thread_Mutex__unsigned_long_int_::exchange_add_fn_], sym.ACE.dll_public:_static_int___cdecl_ACE_Thread::cancel_unsigned_long_int_
mov esp, ebp
pop ebp
ret
Function at 0x1001f7f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [sym.ACE.dll_bool_ACE_Base64::init_], 0
jne 0x1001f804
call sym.ACE.dll_private:_static_void___cdecl_ACE_Base64::init_void_
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x1001f813
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
lea ecx, [ebx + 2]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edx
shr ecx, 1
add ecx, ecx
add ecx, ecx
mov eax, 0x38e38e39
mul ecx
shr edx, 4
lea edx, [edx + ecx + 2]
push 0x10115520
push edx
call fcn.1009ad0c
add esp, 8
cmp eax, edi
jne 0x1001f85d
call dword [sym.imp.MSVCR100.dll__errno]
pop ebx
mov dword [eax], 0xc
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
xor edx, edx
xor esi, esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edx
test ebx, ebx
je 0x1001f96d
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
movzx ecx, byte [ebx + ecx]
add esi, ecx
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 3
jne 0x1001f8ea
mov ecx, esi
sar ecx, 0x12
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + eax], cl
mov ecx, esi
sar ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + eax + 1], cl
mov ecx, esi
sar ecx, 6
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + eax + 2], cl
and esi, 0x3f
movzx ecx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + eax + 3], cl
add edi, 4
add edx, 4
cmp edi, 0x48
jne 0x1001f8e3
cmp byte [ebp + 0x14], 0
je 0x1001f8e1
mov byte [edx + eax], 0xa
inc edx
xor edi, edi
xor esi, esi
mov dword [ebp - 4], esi
jmp 0x1001f8ed
shl esi, 8
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp + 0xc]
jb 0x1001f870
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001f95e
mov ecx, 2
sub ecx, ebx
add ecx, ecx
add ecx, ecx
add ecx, ecx
shl esi, cl
mov ecx, esi
sar ecx, 0x12
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + eax], cl
mov ecx, esi
sar ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + eax + 1], cl
cmp ebx, 1
jne 0x1001f943
mov word [edx + eax + 2], 0x3d3d
jmp 0x1001f958
sar esi, 6
and esi, 0x3f
mov cl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + eax + 2], cl
mov byte [edx + eax + 3], 0x3d
add edx, 4
add edi, 4
test edi, edi
jle 0x1001f96d
cmp byte [ebp + 0x14], 0
je 0x1001f96d
mov byte [edx + eax], 0xa
inc edx
mov ecx, dword [ebp + 0x10]
pop esi
pop ebx
mov byte [edx + eax], 0
mov dword [ecx], edx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10021720
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c26b
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x10112018]
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 + 0xc]
mov ebx, dword [ebp + 8]
push 0x100a5f94
push edi
mov esi, ecx
mov dword [ebp - 0x11c], edi
call dword [sym.imp.MSVCR100.dll_strcspn]
add esp, 8
cmp byte [edi + eax], 0
je 0x10021785
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x1002190b
cmp byte [edi], 0x5c
je 0x10021771
test eax, eax
je 0x10021795
cmp eax, 0xff
jbe 0x100217a9
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0x26
or eax, 0xffffffff
jmp 0x1002190b
mov eax, dword [ebx]
push 0
push 0x10113640
push 0x10113618
push 0
push eax
call sub.MSVCR100.dll___RTDynamicCast
xor ecx, ecx
add esp, 0x14
cmp eax, ecx
je 0x100217a1
mov eax, dword [eax + 8]
mov dword [ebp - 0x120], eax
cmp byte [ebp + 0x10], cl
je 0x100218e8
mov dword [ebp - 0x114], ecx
lea eax, [ebp - 0x114]
push eax
push ecx
mov dword [ebp - 4], ecx
mov edx, dword [esi]
mov edx, dword [edx + 8]
push edi
push ebx
mov ecx, esi
call edx
test eax, eax
je 0x1002181a
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x114]
test ecx, ecx
je 0x10021812
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
or eax, 0xffffffff
jmp 0x1002190b
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x114]
push ecx
mov ecx, esi
call sym.ACE.dll_protected:_int___thiscall_ACE_Configuration_Win32Registry::load_key_class_ACE_Configuration_Section_Key_const___struct_HKEY_____
test eax, eax
je 0x10021853
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x114]
test ecx, ecx
je 0x1002184b
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
or eax, 0xffffffff
jmp 0x1002190b
mov edi, dword [ebp - 0x124]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0
push edi
mov dword [ebp - 0x118], 0x100
call ebx
test eax, eax
jne 0x100218ca
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
push 1
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x114]
push edx
mov ecx, esi
call eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0
push edi
mov dword [ebp - 0x118], 0x100
call ebx
test eax, eax
je 0x10021888
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x114]
test ecx, ecx
je 0x100218e2
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov edi, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
test esi, esi
je 0x10021909
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
jmp 0x1002190b
xor eax, eax
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.1009acfd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10021930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10112018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0x10113640
push 0x10113618
push 0
push eax
call sub.MSVCR100.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x100219c1
mov eax, dword [eax + 8]
push esi
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0
lea edx, [ebp - 0x10c]
push edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x104]
push ecx
push edx
push eax
mov dword [ebp - 0x10c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, eax
cmp esi, 0x103
jne 0x100219d6
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 0x10
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x100219f8
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10021a01
sub eax, edx
push 1
push eax
lea eax, [ebp - 0x104]
push eax
mov ecx, edi
call sym.ACE.dll_public:_void___thiscall_ACE_String_Base_char_::set_char_const___unsigned_int__bool_
mov eax, dword [ebp - 0x108]
dec eax
je 0x10021a44
sub eax, 2
je 0x10021a3c
dec eax
je 0x10021a34
mov dword [ebx], 3
jmp 0x10021a4a
mov dword [ebx], 1
jmp 0x10021a4a
mov dword [ebx], 2
jmp 0x10021a4a
mov dword [ebx], 0
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1009acfd
mov esp, ebp
pop ebp
ret 0x10