joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ca250
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598938
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
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 edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x58], ecx
jb 0x4ca294
mov eax, dword [eax]
push 0
push 0x4820
push 7
push 0x120089
push eax
call fcn.00445490
add esp, 0x14
mov dword [ebp - 0x4c], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::gh_dtor_t__struct_Utils::ResourceHolders::puredrop_and_illhnd_t_void___struct_Utils::ResourceHolders::gh_dtor_t__.0
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x4c], vtable.Utils::ResourceHolders::CDwHandleP.0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4ca3a0
cmp eax, 0xffffffff
je 0x4ca3a0
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4ca3a0
mov eax, dword [ebp - 0x44]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4ca309
test al, 0x10
je 0x4ca309
mov esi, 2
jmp 0x4ca3a8
cmp dword [ebp - 0x24], 0
je 0x4ca319
mov esi, 0xdf
jmp 0x4ca3a8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x58]
push 0
push eax
push 0
push 2
push 0
push dword [ebp - 0x48]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x54], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::gh_dtor_t__struct_Utils::ResourceHolders::puredrop_and_illhnd_t_void___struct_Utils::ResourceHolders::gh_dtor_t__.0
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x54], vtable.Utils::ResourceHolders::CDwHandleP.0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4ca38a
cmp eax, 0xffffffff
je 0x4ca38a
push dword [ebp - 0x20]
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx], eax
test eax, eax
je 0x4ca38a
mov eax, dword [ebp - 0x50]
xor esi, esi
mov dword [ebp - 0x50], 0
mov dword [edi], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0044cb70
jmp 0x4ca3a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0044cb70
jmp 0x4ca3a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::gh_dtor_t__struct_Utils::ResourceHolders::puredrop_and_illhnd_t_void___struct_Utils::ResourceHolders::gh_dtor_t__.0
test eax, eax
je 0x4ca3c9
cmp eax, 0xffffffff
je 0x4ca3c9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x48], 0xffffffff
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 0x10
Function at 0x4ca807
Capabilities:
Set registry value

Disassembly:
cmp dword [0x64ca90], 0
push esi
mov esi, ecx
je 0x4ca833
call fcn.004a0f60
cmp byte [eax + 2], 0
je 0x4ca833
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x4ca822
mov eax, dword [eax]
push eax
push dword [esi + 4]
push 0x5b4720
call fcn.004dec30
add esp, 0xc
cmp dword [esi + 0x20], 8
lea edx, [esi + 0xc]
mov ecx, edx
jb 0x4ca840
mov ecx, dword [edx]
push ebx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ca844
sub ecx, ebx
sar ecx, 1
cmp dword [edx + 0x14], 8
pop ebx
jb 0x4ca85c
mov edx, dword [edx]
lea eax, [ecx*2 + 2]
push eax
push edx
push 2
push 0
push dword [esi + 4]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
pop esi
sete al
ret 4
Function at 0x4d2fb0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push 0
push 0
push eax
push 0
push dword [esi + 8]
mov dword [esp + 0x1c], 4
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d301d
cmp dword [esp + 0x14], 4
jne 0x4d301d
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push dword [esi + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d301d
movzx eax, byte [esp + 0x20]
mov ecx, dword [esp + 0x14]
not eax
test ecx, eax
jne 0x4d301d
mov eax, dword [esp + 0x18]
pop edi
mov byte [eax], cl
mov dword [esi + 0x10], ecx
pop esi
pop ecx
ret 0x14
mov eax, dword [esp + 0x18]
mov cl, byte [esp + 0x1c]
push 4
mov byte [eax], cl
movzx eax, cl
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push 0
push dword [esi + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
pop edi
mov dword [esi + 0x10], eax
pop esi
pop ecx
ret 0x14

Function at 0x4d3050
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push 0
push eax
push 0
push dword [esi + 8]
mov dword [esp + 0x20], 4
push ebx
call edi
test eax, eax
jne 0x4d30db
cmp dword [esp + 0x18], 4
jne 0x4d30db
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push dword [esi + 8]
push ebx
call edi
test eax, eax
jne 0x4d30db
mov eax, dword [esp + 0x24]
test eax, eax
jns 0x4d30c1
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x18], 0
pop edi
setne cl
mov byte [eax], cl
movzx eax, cl
mov dword [esi + 0x10], eax
pop esi
pop ebx
pop ecx
ret 0x14
cmp dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
setae cl
pop edi
mov byte [eax], cl
movzx eax, cl
mov dword [esi + 0x10], eax
pop esi
pop ebx
pop ecx
ret 0x14
mov edi, dword [esp + 0x1c]
mov al, byte [esp + 0x20]
mov byte [edi], al
test al, al
je 0x4d30f9
mov eax, dword [esp + 0x24]
mov ecx, 1
test eax, eax
cmovs eax, ecx
jmp 0x4d30fb
xor eax, eax
push 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push dword [esi + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx eax, byte [edi]
pop edi
mov dword [esi + 0x10], eax
pop esi
pop ebx
pop ecx
ret 0x14
Function at 0x4d3130
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
mov ebx, ecx
push 0
push 0
push eax
push 0
push dword [esi + 8]
mov dword [esp + 0x20], 4
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d3182
cmp dword [esp + 0x18], 4
jne 0x4d3182
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push dword [esi + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4d31a0
movzx eax, byte [esp + 0x20]
push 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push dword [esi + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x28]
test edx, edx
je 0x4d31c3
or ecx, dword [esp + 0x1c]
xor eax, eax
test edx, edx
mov dword [ebx + 0x28], ecx
pop edi
setne al
mov dword [esi + 0x10], eax
pop esi
pop ebx
pop ecx
ret 0x10
mov eax, dword [esp + 0x1c]
not eax
and ecx, eax
xor eax, eax
test edx, edx
mov dword [ebx + 0x28], ecx
pop edi
setne al
mov dword [esi + 0x10], eax
pop esi
pop ebx
pop ecx
ret 0x10

Function at 0x4d31e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push 0
push 0
push eax
push 0
push dword [esi + 8]
mov dword [esp + 0x1c], 4
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d323f
cmp dword [esp + 0x14], 4
jne 0x4d323f
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push dword [esi + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d323f
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x1c]
ja 0x4d323f
cmp ecx, dword [esp + 0x20]
jae 0x4d3260
mov eax, dword [esp + 0x24]
push 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push 0
push dword [esi + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], ecx
mov dword [esi + 0x10], ecx
pop esi
pop ecx
ret 0x18
Function at 0x4d3270
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x41c
mov eax, dword [0x634384]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
mov esi, dword [esp + 0x428]
lea eax, [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push 0
push eax
push 0
push dword [0x633768]
mov dword [esp + 0x20], 0
push esi
mov dword [esp + 0x28], 0x104
call edi
test eax, eax
jne 0x4d3373
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x4d32d2
cmp eax, 2
jne 0x4d3373
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push dword [0x633768]
push esi
call edi
test eax, eax
jne 0x4d3373
cmp dword [esp + 0xc], 2
jne 0x4d3348
call fcn.004c9e00
add eax, 0x24
cmp dword [eax + 0x14], 8
jb 0x4d3308
mov eax, dword [eax]
cmp word [eax], 0
je 0x4d3348
push 0x104
lea eax, [esp + 0x220]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4d33a0
cmp eax, 0x104
jae 0x4d33a0
call fcn.004c9e00
lea ecx, [esp + 0x21c]
push ecx
lea ecx, [eax + 0x24]
call fcn.0041bbe0
jmp 0x4d33a0
call fcn.004c9e00
lea edx, [esp + 0x14]
lea ebx, [edx + 2]
lea ecx, [eax + 0x24]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4d3357
sub edx, ebx
lea eax, [esp + 0x14]
sar edx, 1
push edx
push eax
call fcn.0041bc10
jmp 0x4d33a0
call fcn.004c9e00
mov ebx, dword [eax + 0x34]
add ebx, ebx
call fcn.004c9e00
add eax, 0x24
cmp dword [eax + 0x14], 8
jb 0x4d338d
mov eax, dword [eax]
push ebx
push eax
push 2
push 0
push dword [0x633768]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push dword [0x633740]
mov dword [esp + 0x24], 4
push esi
call edi
test eax, eax
jne 0x4d33ea
cmp dword [esp + 0xc], 4
jne 0x4d33ea
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push dword [0x633740]
push esi
call edi
test eax, eax
je 0x4d340a
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 4
push 0
push dword [0x633740]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
cmp dword [esp + 0xc], ebx
setne bl
call fcn.004a0f60
mov byte [eax + 0x11], bl
call fcn.004a0f60
movzx eax, byte [eax + 0x11]
mov dword [0x633748], eax
call fcn.004c9e00
pop edi
add eax, 0x24
pop esi
pop ebx
cmp eax, 0x633770
je 0x4d3452
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4d3446
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x633770
call fcn.0041bc10
cmp byte [esp + 0x424], 0
je 0x4d346a
call fcn.004c9e00
push 1
mov ecx, eax
call fcn.004e3c60
call fcn.004c9e00
mov ecx, eax
call fcn.004e3bb0
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.005395e6
add esp, 0x41c
ret 8
Function at 0x4dcd10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d290
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x70]
lea esi, [ecx + 0x70]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test al, al
je 0x4dcde9
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x38], eax
mov ax, word [ebp + 0xc]
push 0
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 8
lea eax, [ebp - 0x38]
push eax
push 0x8a004
call fcn.0044c9c0
test eax, eax
jne 0x4dcded
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x4dcded
call esi
push eax
push 1
lea ecx, [ebp - 0x30]
call fcn.00447530
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00447590
push eax
push 1
push 0xfb2
push 3
push 0x6428b4
call fcn.00440860
add esp, 0x14
call fcn.004c9e00
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.00447590
push eax
push str.SpIDer_Guard_event_reply_has_not_been_sent___S_
push esi
call fcn.004e34f0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004100d0
xor al, al
jmp 0x4dcdef
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005395e6
mov esp, ebp
pop ebp
ret 8
Function at 0x4dec60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0xfa1
push 0
push 0x6428b4
call fcn.00440860
add esp, 0x10
call fcn.004c9e00
push 1
mov ecx, eax
call fcn.004e3c60
call fcn.004c9e00
mov esi, eax
mov dword [ebp - 0x30], 0x5ade7c
mov ecx, esi
mov dword [ebp - 0x2c], esi
mov edx, dword [esi]
call dword [edx]
mov dword [ebp - 4], 0
call fcn.004c9e00
push 0x5eaccc
push eax
call fcn.004e35c0
call fcn.004c9e00
push str.________________________________________________________________________________
push eax
call fcn.004e35c0
call fcn.004c9e00
push 0x5eaccc
push eax
call fcn.004e35c0
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004a42e0
add esp, 0x10
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
call fcn.004c9e00
push dword [edi + 0x2c8]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x40]
push ecx
push str.SpIDer_Guard_started___S_CPUs:__u__cores:__u__threads:__u___S_
push eax
call fcn.004e34f0
add esp, 0x1c
mov ecx, edi
call fcn.004ddb90
push 0
mov ecx, edi
call fcn.004d85d0
mov al, 1
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.005395e6
mov esp, ebp
pop ebp
ret
Function at 0x4dff40
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0xa0
push 0xffffffffffffffff
push 0x59d653
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
lea esi, [edi + 4]
mov dword [ebp - 0x10], esi
push 8
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
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov dword [ebp - 4], 1
lea eax, [ebp + 4]
push 0x98
push 0
push eax
mov dword [edi], vtable.spider::CSpiderExcludes.0
mov word [edi + 0x18], 0
call fcn.00551fd0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp]
add esp, 0x10
mov dword [ebp], 0x9c
push eax
call esi
test eax, eax
jne 0x4e0014
lea eax, [ebp]
mov dword [ebp], 0x94
push eax
call esi
test eax, eax
jne 0x4e0014
xor al, al
jmp 0x4e003b
mov eax, dword [ebp + 4]
cmp eax, 5
jne 0x4e0028
cmp dword [ebp + 8], 2
jne 0x4e0031
mov byte [edi + 0x18], 1
jmp 0x4e0031
cmp eax, 6
jb 0x4e0031
mov byte [edi + 0x19], 1
cmp byte [ebp + 0x9a], 2
sete al
mov ecx, dword [ebp + 0xa8]
mov byte [edi + 0x1a], al
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], 0
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 ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.005395e6
lea esp, [ebp + 0xa0]
pop ebp
ret 4
Function at 0x4e2a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59dcf0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
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 - 0x10], esp
mov dword [ebp - 4], 0
push 0
push 0
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0041ba20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0xffffffff
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e2b84
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4e2b84
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
je 0x4e2b15
cmp ecx, 2
jne 0x4e2b84
push 0
shr eax, 1
add eax, 2
push eax
mov ecx, esi
call fcn.0041ba20
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4e2b2e
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e2b96
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4e2b96
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x4e2b5d
cmp eax, 2
jne 0x4e2b96
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4e2b6c
cmp eax, 2
sete al
mov byte [edx], al
cmp dword [esi + 0x14], 8
jb 0x4e2b74
mov esi, dword [esi]
and ecx, 0xfffffffe
xor eax, eax
mov word [ecx + esi], ax
mov dword [ebp - 4], 0xffffffff
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 0
push 0
mov ecx, esi
call fcn.0041ba20
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 0x4e40d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e15b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea edx, [esi + 0x30]
mov dword [ebp - 0x10], 0
mov dword [edx + 4], 0x5ade84
mov dword [ebp - 0x18], edx
mov dword [edx + 0x20], vtable.drweb::if_root_t.0
mov dword [ebp - 4], 0
mov eax, dword [edx + 4]
mov dword [edx], vtable.drweb::if_xlock_t.1.0
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [eax + edx + 4], vtable.drweb::if_xlock_t.0
mov eax, dword [edx + 4]
mov dword [edx], vtable.drweb::critical_section_t.0
mov eax, dword [eax + 4]
mov dword [eax + edx + 4], vtable.drweb::critical_section_t.1.0
lea eax, [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 1
lea ecx, [esi + 0x54]
push 1
call fcn.004dff40
mov byte [ebp - 4], 2
lea ecx, [esi + 0x78]
push 0
call fcn.004dff40
mov byte [ebp - 4], 3
lea ecx, [esi + 0x9c]
push 2
call fcn.004dff40
mov byte [ebp - 4], 4
mov dword [esi + 1], 0x1000000
mov byte [esi], 0
mov dword [esi + 0xa], 0x1010000
mov dword [esi + 0xe], 0
mov word [esi + 0x12], 0
mov byte [esi + 5], 1
mov dword [esi + 0x14], 0xe10
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0x4b
mov dword [esi + 0x24], 0x64
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e4750
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e2e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
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], 1
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov al, byte [ebp + 0xc]
mov byte [esi + 0x18], al
xor eax, eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
mov eax, dword [ebp + 0x10]
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e47f2
sub eax, ebx
lea ecx, [esi + 0x1c]
sar eax, 1
push eax
push dword [ebp + 0x10]
call fcn.0041bc10
mov byte [ebp - 4], 2
lea ecx, [esi + 0x34]
push 0
push 0x7fffffff
push 0
push 0
call fcn.0044bb70
mov byte [ebp - 4], 3
lea ecx, [esi + 0x40]
push 0
push 0
push 1
push 0
call fcn.00441ed0
mov byte [ebp - 4], 4
lea ecx, [esi + 0x4c]
mov dword [ecx + 4], 0x5ade84
mov dword [ebp + 0xc], ecx
mov dword [ecx + 0x20], vtable.drweb::if_root_t.0
mov byte [ebp - 4], 5
mov eax, dword [ecx + 4]
mov dword [ecx], vtable.drweb::if_xlock_t.1.0
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [eax + ecx + 4], vtable.drweb::if_xlock_t.0
mov eax, dword [ecx + 4]
mov dword [ecx], vtable.drweb::critical_section_t.0
mov eax, dword [eax + 4]
mov dword [eax + ecx + 4], vtable.drweb::critical_section_t.1.0
lea eax, [ecx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc