Function at 0x30006b00
Capabilities:
Allocate or change rwx memory
Check for software breakpoints
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x3026b2d0], 0
mov edx, eax
mov dword [esp + 0xc], edx
je 0x30007083
mov ecx, dword [edi]
mov eax, dword [ecx]
cmp eax, 0x80000004
jne 0x30006e56
mov eax, dword [edi + 4]
xor esi, esi
mov ebx, dword [eax + 0x14]
mov edi, edi
mov eax, 1
mov ecx, esi
shl eax, cl
test ebx, eax
jne 0x30006b53
inc esi
cmp esi, 4
jb 0x30006b40
mov ebx, dword [0x3026ea64]
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x30006b73
cmp dword [ebx], edx
je 0x30006b90
mov ebx, dword [ebx + 0x88]
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x30006b61
mov eax, dword [edi]
push edx
push dword [eax + 0xc]
push esi
push str.CAPEExceptionFilter:_Breakpoint__d_not_registered__address_0x_p_thread__d__n
call fcn.3000a0d0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 4
jne 0x30006bb2
mov eax, dword [0x3026ed38]
test eax, eax
je 0x30007257
push edi
call eax
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x3026eac0]
test eax, eax
je 0x30006bcd
push eax
push str.CAPEExceptionFilter:_Anomaly_detected:_Trap_index_set_on_non_single_step:__d_n
call fcn.3000a0d0
mov edx, dword [esp + 0x14]
add esp, 8
cmp dword [0x3026e004], 0
jne 0x30006bf3
cmp dword [0x3026d5c0], 0
jne 0x30006bf3
mov eax, dword [edi]
push edx
push dword [eax + 0xc]
push esi
push str.CAPEExceptionFilter:_breakpoint__d_hit_by_instruction_at_0x_p__thread__d__n
call fcn.3000a0d0
add esp, 0x10
mov eax, esi
add ebx, 8
shl eax, 5
add ebx, eax
jne 0x30006c1a
push dword [esp + 0xc]
push str.CAPEExceptionFilter:_Cant_get_BreakpointInfo_for_thread__d_n
call fcn.3000a0d0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x30006c78
mov edx, dword [edi + 4]
mov ecx, dword [ebx + 0xc]
mov eax, dword [edx + 4]
cmp ecx, eax
je 0x30006c43
push ecx
push eax
push str.CAPEExceptionFilter:_Anomaly_detected__bp0_address__0x_p__different_to_BreakpointInfo__0x_x___n
call fcn.3000a0d0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx edx, word [edx + 0x1a]
mov esi, dword [ebx + 0x10]
and edx, 3
cmp esi, edx
je 0x30006dd5
cmp esi, 3
jne 0x30006c6c
cmp edx, 1
jne 0x30006c6c
call fcn.3004ff30
test eax, eax
jne 0x30006d8f
push esi
push edx
push str.CAPEExceptionFilter:_Anomaly_detected__bp0_type__0x_x__different_to_BreakpointInfo__0x_x___n
jmp 0x30006dc5
cmp esi, 1
jne 0x30006cd9
mov edx, dword [edi + 4]
mov ecx, dword [ebx + 0xc]
mov eax, dword [edx + 8]
cmp ecx, eax
je 0x30006ca2
push ecx
push eax
push str.CAPEExceptionFilter:_Anomaly_detected__bp1_address__0x_p__different_to_BreakpointInfo__0x_x___n
call fcn.3000a0d0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 0x18]
mov esi, dword [ebx + 0x10]
shr edx, 0x14
and edx, 3
cmp esi, edx
je 0x30006dd5
cmp esi, 3
jne 0x30006ccd
cmp edx, 1
jne 0x30006ccd
call fcn.3004ff30
test eax, eax
jne 0x30006d8f
push esi
push edx
push str.CAPEExceptionFilter:_Anomaly_detected__bp1_type__0x_x__different_to_BreakpointInfo__0x_x___n
jmp 0x30006dc5
cmp esi, 2
jne 0x30006d3e
mov edx, dword [edi + 4]
mov ecx, dword [ebx + 0xc]
mov eax, dword [edx + 0xc]
cmp ecx, eax
je 0x30006d03
push ecx
push eax
push str.CAPEExceptionFilter:_Anomaly_detected__bp2_address__0x_p__different_to_BreakpointInfo__0x_x___n
call fcn.3000a0d0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx edx, byte [edx + 0x1b]
mov esi, dword [ebx + 0x10]
and edx, 3
cmp esi, edx
je 0x30006dd5
cmp esi, 3
jne 0x30006d32
cmp edx, 1
jne 0x30006d32
call fcn.3004ff30
test eax, eax
je 0x30006d32
push dword [ebx + 4]
push str.CAPEExceptionFilter:_Reinstated_BP_READWRITE_on_stack_breakpoint__d__WoW64_workaround__n
jmp 0x30006d97
push esi
push edx
push str.CAPEExceptionFilter:_Anomaly_detected__bp2_type__0x_x__different_to_BreakpointInfo__0x_x___n
jmp 0x30006dc5
cmp esi, 3
jne 0x30006dd5
mov edx, dword [edi + 4]
mov ecx, dword [ebx + 0xc]
mov eax, dword [edx + 0x10]
cmp ecx, eax
je 0x30006d6c
push ecx
push eax
push str.CAPEExceptionFilter:_Anomaly_detected__bp3_address__0x_p__different_to_BreakpointInfo__0x_x___n
call fcn.3000a0d0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 0x18]
mov esi, dword [ebx + 0x10]
shr edx, 0x1c
and edx, 3
cmp esi, edx
je 0x30006dd5
cmp esi, 3
jne 0x30006dbe
cmp edx, 1
jne 0x30006dbe
call fcn.3004ff30
test eax, eax
je 0x30006dbe
push dword [ebx + 4]
push str.CAPEExceptionFilter:_Reinstated_BP_READWRITE_on_breakpoint__d__WoW64_workaround__n
call fcn.3000a0d0
mov edx, dword [ebx + 4]
add esp, 4
mov ecx, dword [edi + 4]
push dword [ebx + 0x18]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.30007af0
add esp, 0x18
jmp 0x30006dd5
push esi
push edx
push str.CAPEExceptionFilter:_Anomaly_detected__bp3_type__0x_x__different_to_BreakpointInfo__0x_x___n
call fcn.3000a0d0
mov edx, dword [edi + 4]
add esp, 0xc
call fcn.30007660
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x30006def
add eax, 0xffffffff
mov dword [ebx + 0x14], eax
jne 0x30006def
mov edx, dword [ebx + 4]
mov ecx, dword [edi + 4]
call fcn.30007990
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x30006e0c
push dword [esp + 0xc]
push str.CAPEExceptionFilter:_Cant_find_callback__passing_exception__thread__d__n
call fcn.3000a0d0
add esp, 8
jmp 0x30007257
cmp dword [ebx + 0x1c], 0
jne 0x30007143
push edi
push ebx
mov dword [ebx + 0x1c], 1
call eax
mov dword [ebx + 0x1c], 0
add esp, 8
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x30006e3f
or dword [ecx + 0xc0], 0x10000
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x10]
push ecx
call fcn.30007e40
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, reloc.WS2_32.dll_closesocket
jne 0x30007083
mov esi, dword [ecx + 0xc]
cmp byte [esi], 0xcc
jne 0x30007083
mov ecx, dword [0x3023f9b4]
mov eax, ecx
test eax, eax
je 0x30006ec2
lea esp, [esp]
cmp dword [eax + 4], esi
je 0x30006e8d
mov eax, dword [eax]
test eax, eax
jne 0x30006e80
jmp 0x30006ec2
add eax, 0xc
je 0x30006ec2
test esi, esi
je 0x30006ec2
cmp byte [esi], 0xcc
jne 0x30006ec2
jmp 0x30006ea0
cmp dword [ecx + 4], esi
je 0x30006ead
mov ecx, dword [ecx]
test ecx, ecx
jne 0x30006ea0
jmp 0x30006eb4
lea ebx, [ecx + 0xc]
test ebx, ebx
jne 0x30006ee4
push esi
push str.SoftwareBreakpointHandler:_Unable_to_retrieve_instruction_byte_for_0x_p
call fcn.3000a0d0
add esp, 8
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x3023f9b0]
test eax, eax
je 0x30006f7f
cmp dword [eax + 4], ecx
je 0x30006f27
mov eax, dword [eax]
test eax, eax
jne 0x30006ed4
jmp 0x30006f7f
lea eax, [esp + 0x10]
push eax
push 0x40
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x30006f00
push esi
push str.SoftwareBreakpointHandler:_Unable_to_change_memory_protection_at_0x_p
jmp 0x30006eba
mov al, byte [ebx]
mov byte [esi], al
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, edi
call fcn.3001b110
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add eax, 0xc
je 0x30006f7f
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xb0]
call fcn.30009bc0
push eax
push 0x301e2b38
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x30006f7f
mov ecx, dword [edi]
mov edx, dword [ecx + 0xc]
mov ecx, dword [0x3023f9b0]
test ecx, ecx
je 0x30006f71
cmp dword [ecx + 4], edx
je 0x30007040
mov ecx, dword [ecx]
test ecx, ecx
jne 0x30006f62
push edx
push str.SoftwareBreakpointHandler:_Unable_to_retrieve_instruction_length_for_0x_p
call fcn.3000a0d0
add esp, 8
mov ecx, dword [edi]
mov ecx, dword [ecx + 0xc]
call fcn.30003390
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
cmp byte [eax], 0xcc
je 0x30006fa2
mov ecx, edi
call fcn.3001b110
test eax, eax
jne 0x30007143
cmp dword [0x3026e004], 0
je 0x30006fb5
mov dword [0x3026d8e4], 1
mov ecx, dword [edi]
mov edx, dword [ecx + 0xc]
mov esi, dword [0x30267724]
cmp edx, esi
jb 0x30006ff5
mov eax, dword [0x3026772c]
add eax, esi
cmp edx, eax
jae 0x30006ff5
cmp dword [0x30269774], 0
je 0x30006fe0
cmp dword [ecx], 0x80000001
je 0x30006ff5
sub edx, esi
push edx
push dword [ecx + 0x18]
push dword [ecx]
push str.CAPEExceptionFilter:_Exception_0x_x_accessing_0x_x_caught_at_RVA_0x_x_in_capemon__expected_in_memory_scans___passing_to_next_handler._n
call fcn.3000a0d0
add esp, 0x10
cmp dword [0x3026e004], 0
je 0x30007257
mov ecx, dword [edi]
lea edx, [esp + 0x10]
mov ecx, dword [ecx + 0xc]
call fcn.3004ddd0
mov ecx, dword [edi]
mov edx, dword [ecx + 0x10]
test eax, eax
je 0x300071a7
test edx, edx
jne 0x3000714d
push dword [ecx + 4]
push dword [esp + 0x10]
push dword [esp + 0x18]
push eax
push dword [ecx + 0xc]
push dword [ecx]
push str._nException_0x_x_at_0x_p_in__s__RVA_0x_x__thread__d___flags_0x_x_n
jmp 0x30007205
lea esi, [ecx + 0xc]
test esi, esi
je 0x30006f71
cmp dword [0x3026d1a0], 1
jne 0x30007070
mov eax, dword [edi + 4]
add dword [eax + 0xc4], 0xfffffffc
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
mov eax, dword [edi + 4]
add ecx, dword [esi]
mov eax, dword [eax + 0xc4]
mov dword [eax], ecx
mov eax, dword [edi + 4]
mov dword [eax + 0xb8], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
mov eax, dword [ecx]
cmp eax, 0xc0000096
je 0x30007099
cmp eax, 0xc000001d
jne 0x30006fb7
mov esi, dword [edi + 4]
mov edx, dword [esi + 0xb8]
movzx eax, byte [edx]
cmp al, 0xf
jne 0x300070bd
movzx eax, byte [edx + 1]
cmp al, 1
jne 0x300070bd
movzx eax, byte [edx + 2]
cmp al, 0xf9
jne 0x300070bd
xor eax, eax
jmp 0x300070c2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x30006fb7
cmp dword [0x3026b2d8], eax
je 0x3000711e
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x10]
push eax
push 0x40
push 3
push edx
call esi
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xb8]
mov ax, word [0x301e30bc]
mov word [ecx], ax
mov al, byte [0x301e30be]
mov byte [ecx + 2], al
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
mov eax, dword [edi + 4]
push 3
push dword [eax + 0xb8]
call esi
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
rdtsc
mov dword [esi + 0xb0], eax
mov eax, dword [edi + 4]
mov dword [eax + 0xa8], edx
mov esi, dword [edi + 4]
mov ecx, dword [esi + 0xb8]
call fcn.3002a270
add dword [esi + 0xb8], eax
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, 1
jne 0x30007178
push dword [ecx + 0x14]
push dword [ecx + 4]
push dword [esp + 0x14]
push dword [esp + 0x1c]
push eax
push dword [ecx + 0xc]
push dword [ecx]
push str._nException_0x_x_at_0x_p_in__s__RVA_0x_x__thread__d___flags_0x_x__exception_information_0x_p_n
call fcn.3000a570
add esp, 0x20
jmp 0x3000720d
cmp edx, 2
jne 0x3000720d
push dword [ecx + 0x18]
push dword [ecx + 0x14]
push dword [ecx + 4]
push dword [esp + 0x18]
push dword [esp + 0x20]
push eax
push dword [ecx + 0xc]
push dword [ecx]
push str._nException_0x_x_at_0x_p_in__s__RVA_0x_x__thread__d___flags_0x_x__exception_information_0__0x_p__exception_information_1__0x_p_n
call fcn.3000a570
add esp, 0x24
jmp 0x3000720d
test edx, edx
jne 0x300071c6
push dword [ecx + 4]
push dword [esp + 0x10]
push dword [ecx + 0xc]
push dword [ecx]
push str._nException_0x_x_at_0x_p__thread__d__flags_0x_x_n
call fcn.3000a570
add esp, 0x14
jmp 0x3000720d
cmp edx, 1
jne 0x300071e9
push dword [ecx + 0x14]
push dword [ecx + 4]
push dword [esp + 0x14]
push dword [ecx + 0xc]
push dword [ecx]
push str._nException_0x_x_at_0x_p__thread__d__flags_0x_x__exception_information_0x_p_n
call fcn.3000a570
add esp, 0x18
jmp 0x3000720d
cmp edx, 2
jne 0x3000720d
push dword [ecx + 0x18]
push dword [ecx + 0x14]
push dword [ecx + 4]
push dword [esp + 0x18]
push dword [ecx + 0xc]
push dword [ecx]
push str._nException_0x_x_at_0x_p__thread__d__flags_0x_x__exception_information_0__0x_p__exception_information_1__0x_p_n
call fcn.3000a570
add esp, 0x1c
mov eax, dword [edi + 4]
push dword [eax + 0xb4]
push dword [eax + 0xc4]
push dword [eax + 0x9c]
push dword [eax + 0xa0]
push dword [eax + 0xa8]
push dword [eax + 0xac]
push dword [eax + 0xa4]
push dword [eax + 0xb0]
push str.EAX_0x_x_EBX_0x_x_ECX_0x_x_EDX_0x_x_ESI_0x_x_EDI_0x_x_ESP_0x_x_EBP_0x_x_n
call fcn.3000a570
mov ecx, dword [edi]
add esp, 0x24
mov ecx, dword [ecx + 0xc]
call fcn.30016c80
cmp dword [0x3026e000], 0
je 0x30007268
mov ecx, dword [edi + 4]
call fcn.30007610
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret