joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ac130
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c528
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x61308c]
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 dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4ac20b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ac18e
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4ac1dd
push eax
push eax
mov edx, ebx
lea ecx, [ebp - 0x28]
call fcn.0044b7f0
add esp, 8
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x4ac1b7
mov eax, dword [eax]
push 0
push ecx
mov ecx, dword [ebp - 0x2c]
mov edx, eax
push 0x30
mov ecx, dword [ecx + 0x14]
call fcn.004f40d0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00409540
jmp 0x4ac20b
call fcn.00415660
cmp byte [ebp + 0x18], 0
push 0
mov ecx, dword [eax]
je 0x4ac1f4
push 0
push 0
mov edx, esi
jmp 0x4ac1f9
push 1
push esi
xor edx, edx
call fcn.004fc9e0
add esp, 0xc
test al, al
jne 0x4ac20b
push esi
call edi
add esp, 4
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.005120a1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4aeeb0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568c68
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x61308c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
push 0x20c
call fcn.005120b2
mov esi, eax
add esp, 4
test esi, esi
jne 0x4aeef5
xor edi, edi
jmp 0x4aef4a
mov dword [esi], 0
lea ecx, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
lea edx, [esi + 4]
cmovae ecx, dword [ebp + 0xc]
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x4aef10
push esi
push 0x4aef90
test edi, edi
je 0x4aef34
push edi
call dword [sym.imp.USER32.dll_EnumChildWindows]
jmp 0x4aef3a
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [esi]
push 0x20c
push esi
call fcn.00512108
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x20]
cmp eax, 8
jb 0x4aef66
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00404be0
xor eax, eax
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
mov eax, edi
mov dword [ebp + 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4afc60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568f06
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x61308c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
push 0
push 1
push 0
mov dword [esi], vtable.base_thread.0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.CThreadSystemRestore.0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov word [eax], cx
mov byte [ebp - 4], 3
mov dword [esi + 0x2c], 0xffffffff
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 0x4b2170
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5694ab
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x61308c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CThreadUnzipComent.0
mov dword [ebp - 4], 0
lea esi, [edi + 0x20]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4b21c6
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00404be0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4b21dc
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], vtable.base_thread.0
test eax, eax
je 0x4b2205
push eax
call esi
mov dword [edi + 0xc], 0
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4b2216
push eax
call esi
mov dword [edi + 0x10], 0
mov eax, dword [edi + 8]
test eax, eax
je 0x4b2234
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp eax, 1
jne 0x4b2234
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b25c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5695ba
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x61308c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push 0
push 1
push 0
mov dword [edi], vtable.base_thread.0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
lea eax, [edi + 0x18]
push 0x7d0
mov dword [ebp - 0x14], eax
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push eax
mov dword [edi], vtable.CControlPanelThread.0
call esi
mov byte [ebp - 4], 2
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov byte [ebp - 4], 3
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov byte [ebp - 4], 4
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov byte [ebp - 4], 5
lea eax, [edi + 0x54]
push 0x7d0
push eax
mov dword [ebp - 0x14], eax
call esi
mov byte [ebp - 4], 7
lea esi, [edi + 0x6c]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00425ca0
mov dword [esi], eax
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 0x4b26e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56964a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x61308c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CControlPanelThread.0
mov dword [ebp - 4], 5
lea esi, [edi + 0x6c]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 8
mov ecx, esi
mov eax, dword [esi]
push eax
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.00485c00
mov byte [ebp - 4], 5
push dword [esi]
call fcn.0051209c
add esp, 4
mov byte [ebp - 4], 4
lea eax, [edi + 0x54]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push eax
call esi
mov byte [ebp - 4], 3
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x4b2787
mov eax, dword [edi + 0x50]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.0041d6d0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x4b27b6
mov eax, dword [edi + 0x44]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.0041d6d0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x4b27e5
mov eax, dword [edi + 0x38]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.0041d6d0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov byte [ebp - 4], 0
lea eax, [edi + 0x18]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], vtable.base_thread.0
test eax, eax
je 0x4b281a
push eax
call esi
mov dword [edi + 0xc], 0
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4b282b
push eax
call esi
mov dword [edi + 0x10], 0
mov eax, dword [edi + 8]
test eax, eax
je 0x4b2849
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp eax, 1
jne 0x4b2849
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b3550
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x61308c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x25c]
push edi
mov edi, dword [ebp + 8]
push 0x40
push 0
push eax
call fcn.0052d340
mov eax, 1
mov dword [ebp - 0x260], 0x44
push 0x208
mov word [ebp - 0x230], ax
xorps xmm0, xmm0
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x20c]
push 0
push eax
movups xmmword [ebp - 0x21c], xmm0
call fcn.0052d340
push esi
push 0x5bf86c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004081b0
add esp, 0x28
shl edi, 4
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [edi + 0x5bf8cc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0x7530
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005120a1
mov esp, ebp
pop ebp
ret 8
Function at 0x4b3e50
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569961
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x61308c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CDocNetInstallThread.0
mov dword [ebp - 4], 2
lea edi, [esi + 0x40]
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x4b3e9f
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00404be0
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x4b3eb5
mov edi, dword [edi]
xor eax, eax
mov word [edi], ax
mov byte [ebp - 4], 1
lea eax, [esi + 0x24]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [ebp - 4], 0
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4b3efe
mov eax, dword [esi + 0x20]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.0041d6d0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], vtable.base_thread.0
test eax, eax
je 0x4b3f22
push eax
call edi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4b3f33
push eax
call edi
mov dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x4b3f51
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp eax, 1
jne 0x4b3f51
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b43c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569a70
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x61308c]
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 esi, dword [ebp + 8]
lea ecx, [ebp - 0x44]
push str.CDocNetInstallThread::OffInstallDotNet
call fcn.00415950
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x18], 0
lea eax, [edi + 0x40]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x4b443e
push 0xffffffffffffffff
push 0
push eax
call fcn.004048d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push 1
push 0x5bfb04
call fcn.00406f60
lea eax, [esi + esi*2]
mov edx, dword [eax*4 + 0x5bfcd4]
cmp word [edx], 0
jne 0x4b4465
xor ecx, ecx
jmp 0x4b447f
mov ecx, edx
lea ebx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b4470
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00406f60
push 0
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4b44ce
cmp eax, 0x80
je 0x4b44ce
cmp eax, 0xffffffff
je 0x4b44ce
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b44ce
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call fcn.004b47c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4b44e7
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00415860
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.005120a1
mov esp, ebp
pop ebp
ret 4
Function at 0x4b47c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x61308c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x25c]
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0x40
push 0
push eax
call fcn.0052d340
mov eax, 1
mov dword [ebp - 0x260], 0x44
push 0x208
mov word [ebp - 0x230], ax
xorps xmm0, xmm0
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x20c]
push 0
push eax
movups xmmword [ebp - 0x21c], xmm0
call fcn.0052d340
push esi
push 0x5bfba4
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004081b0
add esp, 0x28
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [edi + edi*2]
push dword [eax*4 + 0x5bfcd8]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push dword [ebx + 0xc]
call esi
test eax, eax
je 0x4b48a3
cmp eax, 0x80
je 0x4b48a3
cmp eax, 0xffffffff
je 0x4b48a3
push 0xc8
push dword [ebp - 0x21c]
call esi
cmp eax, 0x102
je 0x4b4878
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005120a1
mov esp, ebp
pop ebp
ret 8

Function at 0x4b4990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x61308c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x418], 0
push 0
push eax
call fcn.0052d340
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0052d340
add esp, 0x18
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x420], 4
call fcn.0040ded0
mov esi, eax
cmp esi, 4
je 0x4b4a47
cmp esi, 8
je 0x4b4a47
cmp esi, 0x800
je 0x4b4a2a
cmp esi, 0x400
je 0x4b4a2a
mov eax, 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005120a1
mov esp, ebp
pop ebp
ret
push str.SoftwareMicrosoftNET_Framework_SetupNDP_v4Full
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0053531f
push str.Release
jmp 0x4b4a62
push 0x5bfbe0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0053531f
push str.Install
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0053531f
add esp, 0x18
lea eax, [ebp - 0x418]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b4b02
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b4b02
cmp dword [ebp - 0x41c], eax
je 0x4b4b02
cmp esi, 4
je 0x4b4aee
cmp esi, 8
je 0x4b4aee
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005120a1
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005120a1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.005120a1
mov esp, ebp
pop ebp
ret
Function at 0x4b5020
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569c21
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x61308c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push 0
push 1
push 0
mov dword [edi], vtable.base_thread.0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
lea eax, [edi + 0x18]
push 0x7d0
push eax
mov dword [edi], vtable.CDrvDownloadThread.0
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [ebp - 4], 2
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov byte [ebp - 4], 3
lea esi, [edi + 0x40]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00425ca0
mov dword [esi], eax
mov byte [ebp - 4], 6
mov byte [edi + 0x30], 1
mov byte [edi + 0x48], 0
mov dword [edi + 0x4c], 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 esp, ebp
pop ebp
ret

Function at 0x4b5110
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569c81
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x61308c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CDrvDownloadThread.0
mov dword [ebp - 4], 2
lea esi, [edi + 0x40]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 5
mov ecx, esi
mov eax, dword [esi]
push eax
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.00425b70
mov byte [ebp - 4], 2
push dword [esi]
call fcn.0051209c
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x34]
test ecx, ecx
je 0x4b51a0
mov eax, dword [edi + 0x3c]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.0041d6d0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov byte [ebp - 4], 0
lea eax, [edi + 0x18]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], vtable.base_thread.0
test eax, eax
je 0x4b51d9
push eax
call esi
mov dword [edi + 0xc], 0
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4b51ea
push eax
call esi
mov dword [edi + 0x10], 0
mov eax, dword [edi + 8]
test eax, eax
je 0x4b5208
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp eax, 1
jne 0x4b5208
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b62e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569f78
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x61308c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [edi], vtable.base_thread.0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
call esi
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
lea eax, [edi + 0x18]
push 0x7d0
push eax
mov dword [edi], vtable.CDrvOperateMgrThread.0
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [ebp - 4], 2
lea ecx, [edi + 0x34]
call fcn.004b5020
mov byte [ebp - 4], 3
lea ecx, [edi + 0x84]
call fcn.004cb890
mov byte [ebp - 4], 4
lea ecx, [edi + 0xc0]
call fcn.004c57b0
mov byte [ebp - 4], 5
lea ecx, [edi + 0x100]
call fcn.004b25c0
mov byte [ebp - 4], 6
mov dword [edi + 0x174], 0
mov dword [edi + 0x178], 0
mov dword [edi + 0x17c], 0
mov byte [ebp - 4], 7
xor eax, eax
mov dword [edi + 0x1e0], 7
mov dword [edi + 0x1dc], 0
mov word [edi + 0x1cc], ax
mov byte [ebp - 4], 8
mov dword [edi + 0x1ec], eax
mov dword [edi + 0x1f0], eax
mov dword [edi + 0x1f4], eax
mov byte [ebp - 4], 9
mov dword [edi + 0x1f8], eax
mov dword [edi + 0x1fc], eax
mov dword [edi + 0x200], eax
mov byte [ebp - 4], 0xa
mov dword [edi + 0x188], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x1ac], eax
mov dword [edi + 0x18c], eax
mov dword [edi + 0x190], eax
mov dword [edi + 0x194], eax
mov dword [edi + 0x198], eax
mov dword [edi + 0x19c], eax
mov dword [edi + 0x1a0], eax
mov word [edi + 0x1c0], ax
mov dword [edi + 0x180], eax
mov dword [edi + 0x1b0], eax
mov dword [edi + 0x1b4], eax
mov dword [edi + 0x1b8], eax
mov dword [edi + 0x204], eax
mov dword [edi + 0x210], eax
mov dword [edi + 0x208], eax
mov dword [edi + 0x20c], eax
mov word [edi + 0x214], ax
mov dword [edi + 0x1a4], eax
mov dword [edi + 0x1a8], eax
push eax
push eax
push 1
push eax
mov dword [edi + 0x218], eax
mov word [edi + 0x1c3], ax
mov dword [edi + 0x1c8], eax
call esi
push 0
push 0
push 1
push 0
mov dword [edi + 0x1e8], eax
mov dword [edi + 0x1bc], 0x42
mov dword [edi + 0x21c], 0
mov dword [edi + 0x220], 0
call esi
mov dword [edi + 0x224], eax
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