joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5a90
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x5c
mov eax, dword [0x634384]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
push ebx
push esi
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5b1eac
push 0
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov ebx, eax
test ebx, ebx
je 0x4a5ba9
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x4a5b11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x717
jne 0x4a5b34
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0x409
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x4a5b34
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4a5b34
lea eax, [ecx + eax*2]
cmp eax, ecx
jb 0x4a5b2d
cmp word [eax], 0x20
ja 0x4a5b2d
sub eax, 2
cmp eax, ecx
jae 0x4a5b20
xor ecx, ecx
mov word [eax], cx
jmp 0x4a5b4c
push 0x42
push 0x42
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
push eax
mov dword [esp + 0x10], eax
call fcn.004a5a10
add esp, 8
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.004a5a10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
add esp, 8
mov esi, dword [esp + 8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ecx
push 0
push eax
xor eax, eax
test ecx, ecx
push 0
setne al
add eax, 2
push eax
push 0
push dword [esp + 0x7c]
push 0
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test esi, esi
je 0x4a5ba2
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [esp + 0x60]
pop esi
pop ebx
xor ecx, esp
call fcn.005395e6
add esp, 0x5c
ret
Function at 0x4a9480
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59269e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esi], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 7
mov word [esi + 4], cx
mov dword [ebp - 4], ecx
xor eax, eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
mov byte [ebp - 4], 1
lea ebx, [esi + 0x294]
push 0x250
push eax
mov word [esi + 0x34], ax
mov byte [esi + 0x36], al
mov dword [esi + 0x38], eax
mov byte [esi + 0x290], al
mov dword [esi + 0x298], eax
mov dword [esi + 0x2a0], eax
mov dword [esi + 0x2a4], eax
lea eax, [esi + 0x3c]
push eax
mov dword [esi + 0x28c], 0xffffffff
mov dword [ebx], 0xffffffff
call fcn.00551fd0
add esp, 0xc
mov dword [ebp - 4], 2
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9534
lea eax, [esi + 0x298]
sub ecx, edx
push eax
push ebx
sar ecx, 1
push 0
push edi
mov dword [esi + 0x38], ecx
call fcn.00445620
add esp, 0x10
test eax, eax
je 0x4a95ba
mov dword [ebx], 0xffffffff
mov dword [esi + 0x298], 0
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4a9607
cmp word [edi + eax*2 - 2], 0x5c
je 0x4a9607
mov ecx, edi
inc eax
mov dword [esi + 0x38], eax
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9590
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esi + 4]
call fcn.0041bc10
push 1
push 0x5e9dac
lea ecx, [esi + 4]
call fcn.00437860
jmp 0x4a9629
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x4a956d
test al, 0x10
jne 0x4a956d
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a95d0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esi + 4]
call fcn.0041bc10
push edi
mov byte [esi + 0x290], 0
call fcn.004a9140
add esp, 4
mov dword [esi + 0x2a0], eax
mov dword [esi + 0x2a4], edx
jmp 0x4a9630
mov edx, edi
lea ecx, [edx + 2]
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4a9610
sub edx, ecx
lea ecx, [esi + 4]
sar edx, 1
push edx
push edi
call fcn.0041bc10
mov byte [esi + 0x290], 1
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4abe10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592f90
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
xor edi, edi
mov ebx, dword [ebp + 0x18]
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
test bl, 1
je 0x4abf13
push 0x2e
push eax
call fcn.00552497
add esp, 8
mov dword [ebp + 0x18], eax
mov dword [ebp - 0x10], edi
test eax, eax
je 0x4abf10
push 0x5b22dc
push eax
call fcn.0055c9c2
add esp, 8
test eax, eax
je 0x4abeac
push str..pif
push dword [ebp + 0x18]
mov dword [ebp - 0x10], edi
call fcn.0055c9c2
add esp, 8
test eax, eax
jne 0x4abf10
call fcn.00484b90
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.004fb6b0
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 1
xor edi, edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], edi
xor esi, esi
cmp ecx, eax
je 0x4abf04
call fcn.0044f030
mov ecx, dword [ebp + 0x18]
mov edi, dword [ecx + 4]
mov esi, dword [ecx]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0044f030
mov eax, dword [ebp + 8]
push 1
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.004aba30
add esp, 0x18
test al, al
je 0x4abfbe
cmp esi, edi
je 0x4abf82
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x4abf3e
mov edi, dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4abf56
test al, 0x10
je 0x4abf56
test ebx, 0x200
je 0x4abfa7
push edi
call fcn.004a9140
mov ecx, eax
add esp, 4
or ecx, edx
je 0x4abf82
push 1
push ebx
push dword [ebp + 0x14]
push edx
push eax
push edi
call fcn.004aba30
add esp, 0x18
test al, al
je 0x4abfbe
add esi, 0x18
cmp esi, dword [ebp - 0x10]
jne 0x4abf34
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0044f030
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or ebx, 0x200
push ebx
push dword [ebp + 0x14]
push edi
call fcn.004a8380
add esp, 0xc
mov bl, al
jmp 0x4abf84
xor bl, bl
jmp 0x4abf84
Function at 0x4b0e90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593c20
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4c6010
call fcn.00552218
push 0x4b1510
mov dword [ebp - 0x34], eax
call fcn.005521dd
add esp, 8
mov dword [ebp - 4], 0
mov ecx, 0x6428c8
push fcn.004b0f50
call fcn.004c6500
test al, al
jne 0x4b0f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
lea ecx, [ebp - 0x30]
call fcn.00447530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00447590
push eax
push 1
push 0x11
push 3
push 0x6428b4
call fcn.00440860
add esp, 0x14
lea ecx, [ebp - 0x30]
push 0x202010
push str.Dr.Web_Scanning_Engine
call fcn.00447590
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x62
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]

Function at 0x4b0f50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593c60
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x634384]
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 dword [ebp - 0x10], esp
push 0x4c6010
call fcn.00552218
mov dword [ebp - 0x5c], eax
push 0x4b1510
call fcn.005521dd
add esp, 8
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
call fcn.004e5150
cmp byte [0x6428c5], 0
jne 0x4b1013
push 0x4b1170
mov ecx, 0x6428c8
call fcn.004c6980
test al, al
jne 0x4b0ffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
lea ecx, [ebp - 0x54]
call fcn.00447530
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.00447590
push eax
push 1
push 6
push 3
push 0x6428b4
call fcn.00440860
add esp, 0x14
push 0x61
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 4
mov ecx, 0x6428c8
call fcn.004c6c10
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0
call fcn.0056023f
push eax
call fcn.0055e462
add esp, 8
call fcn.00484c30
mov ecx, eax
call fcn.004c10d0
mov ecx, 0x6428c8
call fcn.00442080
mov dword [ebp - 4], 0
cmp byte [0x6428c5], 0
jne 0x4b1055
push 1
mov ecx, 0x6428c8
call fcn.004c6c10
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4b4590
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59488b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edx, dword [ebp + 8]
mov dword [esi], vtable.Utils::Primitives::CDwHandleX_class_Utils::Primitives::SimpleHandleCloser_.0
mov dword [ebp - 0x14], esi
mov eax, dword [edx + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 4], 0
mov dword [esi + 0xc], vtable.Utils::Primitives::CDwTokenBase.0
mov dword [esi], vtable.Utils::Primitives::CDwToken.0
mov dword [esi + 0xc], vtable.Utils::Primitives::CDwToken.1.0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
xor eax, eax
mov byte [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
mov byte [ebp - 4], 2
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x34], eax
test edi, edi
jne 0x4b463d
push 0xb
push str.UnknownUser
jmp 0x4b4653
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b4642
sub ecx, ebx
sar ecx, 1
push ecx
push edi
lea ecx, [esi + 0x1c]
call fcn.0041bc10
cmp byte [ebp + 0x18], 0
je 0x4b4668
mov ecx, esi
call fcn.004b5200
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4c6550
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597b78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x634384]
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, ecx
push dword [ebx + 0x10]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp + 0xc]
call fcn.00412850
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push dword [ebp + 0x10]
push esi
push edi
push eax
call fcn.004c6690
add esp, 0x10
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004100d0
test esi, esi
jne 0x4c6670
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x28]
call fcn.00412850
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push dword [ebx + 0x10]
call fcn.004125e0
mov dword [ebp - 0x30], vtable.Utils::ResourceHolders::resource_t_struct_HKEY_____struct_Utils::ResourceHolders::kh_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_struct_HKEY_____struct_Utils::ResourceHolders::kh_dtor_t__.0
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], 0x5b3ea4
mov byte [ebp - 4], 3
call fcn.004917e0
push esi
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [eax + 0x40]
lea ecx, [ebp - 0x28]
push esi
or eax, 0xf003f
cmp dword [ebp - 0x14], 0x10
push eax
cmovae ecx, dword [ebp - 0x28]
push esi
push esi
push esi
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4c6641
push 0x2c
push 0x5b3e6c
push 3
push eax
push str.FailureActions
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], vtable.Utils::ResourceHolders::resource_t_struct_HKEY_____struct_Utils::ResourceHolders::kh_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_struct_HKEY_____struct_Utils::ResourceHolders::kh_dtor_t__.0
test eax, eax
je 0x4c665a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004100d0
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 - 0x10]
xor ecx, ebp
call fcn.005395e6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c6ad0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597c98
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ecx + 0x10]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x18], vtable.Utils::ResourceHolders::resource_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x5b3eb4
mov dword [ebp - 4], 1
test ebx, ebx
jne 0x4c6b55
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebx + 3]
mov dword [ebp - 0x18], vtable.Utils::ResourceHolders::resource_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__.0
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 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 0x20], vtable.Utils::ResourceHolders::resource_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__.0
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], 0x5b3eb4
mov byte [ebp - 4], 4
test edi, edi
jne 0x4c6b9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov esi, 3
xor eax, eax
mov dword [ebp - 0x10], ecx
cmp ecx, 0x424
cmove esi, eax
jmp 0x4c6bb8
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
neg eax
sbb esi, esi
and esi, 0xfffffffd
add esi, 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x20], vtable.Utils::ResourceHolders::resource_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__.0
test edi, edi
je 0x4c6bd4
push edi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
push ebx
mov dword [ebp - 0x18], vtable.Utils::ResourceHolders::resource_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__struct_Utils::ResourceHolders::puredrop_and_null_t_struct_SC_HANDLE_____struct_Utils::ResourceHolders::sch_dtor_t__.0
call eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c6f30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597daf
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 4]
mov dword [ebp - 0x14], esi
push 8
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.00539040
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov dword [ebp - 4], 2
lea eax, [edi + 0x18]
push 0x80000400
push eax
mov dword [edi], vtable.CThreadSafeQueue_struct_spider_pool_item_t_.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [ebp - 4], 3
lea ecx, [edi + 0x30]
push 0
push 0
push 1
push 0
mov dword [edi], vtable.CCacheRequestsPool.0
call fcn.00441ed0
mov byte [ebp - 4], 4
lea ecx, [edi + 0x3c]
push 0
push 0
push 1
push 0
call fcn.00441ed0
mov byte [ebp - 4], 5
lea ecx, [edi + 0x48]
push 0
call fcn.0044c790
mov byte [ebp - 4], 6
lea ecx, [edi + 0x54]
push 0
push 4
push edi
push 0x4c6f20
push 0
push 0
call fcn.00446ed0
mov dword [ebp - 4], 0xffffffff
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
Function at 0x4c9200
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
lea eax, [esp + 4]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push edi
mov edi, dword [esp + 0x24]
push eax
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0
push edi
push ebx
mov dword [esp + 0x28], 0
call ebp
test eax, eax
jne 0x4c93b7
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x4c9251
cmp eax, 2
jne 0x4c93b7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c93b7
test al, 1
jne 0x4c93b7
mov esi, dword [esp + 0x28]
shr eax, 1
mov ecx, dword [esi + 0x10]
cmp eax, ecx
ja 0x4c9287
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4c927c
mov ecx, dword [esi]
xor edx, edx
mov dword [esi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x4c9293
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0041bd50
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4c929d
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push edi
push ebx
call ebp
test eax, eax
jne 0x4c93b7
mov ebx, dword [esi + 0x10]
mov ebp, dword [esi + 0x14]
cmp ebx, ebp
jae 0x4c92d9
lea eax, [ebx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ebp, 8
jb 0x4c92cf
mov eax, dword [esi]
xor ecx, ecx
mov dword [eax + ebx*2], ecx
jmp 0x4c9386
mov ecx, 0x7ffffffe
mov eax, ecx
sub eax, ebx
cmp eax, 1
jb 0x4c93c1
lea edi, [ebx + 1]
or edi, 7
cmp edi, ecx
jbe 0x4c92f9
mov edi, ecx
jmp 0x4c9311
mov eax, ebp
shr eax, 1
sub ecx, eax
cmp ebp, ecx
jbe 0x4c930a
mov edi, 0x7ffffffe
jmp 0x4c9311
add eax, ebp
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.0041c0b0
mov dword [esp + 0x18], eax
lea ecx, [ebx + 1]
mov dword [esi + 0x10], ecx
lea ecx, [ebx + ebx]
mov dword [esi + 0x14], edi
lea ebx, [ecx + eax]
push ecx
cmp ebp, 8
jb 0x4c9372
mov edi, dword [esi]
push edi
push eax
call fcn.005514d0
xor eax, eax
lea ebp, [ebp*2 + 2]
add esp, 0xc
mov dword [ebx], eax
cmp ebp, 0x1000
jb 0x4c9366
mov ecx, dword [edi - 4]
add ebp, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x4c93c6
mov edi, ecx
push ebp
push edi
call fcn.00539070
add esp, 8
jmp 0x4c9380
push esi
push eax
call fcn.005514d0
add esp, 0xc
xor eax, eax
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
mov dword [esi], eax
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x4c9390
mov edx, dword [esi]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c9395
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0041bc10
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
call fcn.0041c090
call fcn.00555b08
int3
Function at 0x4ca180
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
push edi
push ebp
push esi
push ebx
push dword [esp + 0x20]
mov edi, ecx
call fcn.004ca250
cmp eax, 0x20
jne 0x4ca23f
mov dword [esi], 0
call fcn.00484b90
push ebx
push edi
lea esi, [edi + 8]
mov ecx, eax
push esi
push dword [esp + 0x20]
call fcn.004fa2f0
test al, al
je 0x4ca23a
mov eax, dword [edi]
test eax, eax
je 0x4ca23a
push dword [ebx]
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp], eax
test eax, eax
jne 0x4ca231
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [edi]
test eax, eax
je 0x4ca203
cmp eax, 0xffffffff
je 0x4ca203
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x4ca228
call fcn.00484b90
push dword [esi + 4]
mov ecx, eax
push dword [esi]
call fcn.004f8800
mov dword [esi], 0
mov dword [esi + 4], 0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov eax, 0x20
pop edi
pop esi
pop ebp
pop ebx
ret 0x10