joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4518d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.0044dfe0
push 0x3c
lea eax, [ebp - 0x450]
push 0
push eax
call fcn.004906c0
mov eax, dword [ebp + 0xc]
add esp, 0x14
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x450]
mov dword [ebp - 0x450], 0x3c
push eax
mov dword [ebp - 0x44c], 0x40
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0x4afcc8
mov dword [ebp - 0x43c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
test eax, eax
jne 0x451974
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x10], 0
je 0x451988
push 0xffffffffffffffff
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
Function at 0x4519f0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
push ebx
mov ebx, dword [eax + 0x318]
push esi
push edi
xor edi, edi
test ebx, ebx
jne 0x451a0b
mov ebx, dword [eax + 0x3c]
mov esi, dword [0x4e028c]
test esi, esi
je 0x451ad2
mov edi, dword [ebp + 0xc]
lea esp, [esp]
cmp dword [eax + 0x318], 0
je 0x451a41
mov eax, dword [esi + 0x318]
test eax, eax
je 0x451a41
push ebx
push eax
call fcn.00491646
add esp, 8
test eax, eax
je 0x451a56
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x451abf
push ebx
push eax
call fcn.00491646
add esp, 8
test eax, eax
jne 0x451abf
push dword [esi + 0x31c]
call fcn.0048faf7
add esp, 4
cmp word [edi], 0
je 0x451a7b
push edi
call fcn.0048faa4
add esp, 4
mov dword [esi + 0x31c], eax
jmp 0x451a85
mov dword [esi + 0x31c], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push 0xffffffffffffffff
push 0x1053
push dword [0x4e5184]
mov dword [ebp - 0x14], esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x451abf
push 0xffffffffffffffff
push eax
push 0x7eb
push dword [0x4e5180]
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [esi + 0x5b0]
mov eax, dword [ebp + 8]
test esi, esi
jne 0x451a20
xor edi, edi
mov ecx, dword [0x4e4cd4]
test ecx, ecx
je 0x451b43
cmp dword [ecx], 0
je 0x451b32
xor eax, eax
push ebx
push dword [eax + ecx]
call fcn.00491646
add esp, 8
test eax, eax
je 0x451b09
mov ecx, dword [0x4e4cd4]
inc edi
lea eax, [edi*8]
cmp dword [eax + ecx], 0
jne 0x451ae3
jmp 0x451b32
mov eax, dword [0x4e4cd4]
push dword [eax + edi*8 + 4]
call fcn.0048faf7
push dword [ebp + 0xc]
call fcn.0048faa4
mov ecx, dword [0x4e4cd4]
add esp, 8
mov dword [ecx + edi*8 + 4], eax
mov ecx, dword [0x4e4cd4]
test ecx, ecx
je 0x451b43
lea esi, [edi*8]
cmp dword [esi + ecx], 0
jne 0x451b8e
lea eax, [edi*8 + 0x10]
push eax
push ecx
call fcn.0048fbc1
push ebx
mov dword [0x4e4cd4], eax
lea esi, [edi*8]
call fcn.0048faa4
mov ecx, dword [0x4e4cd4]
push dword [ebp + 0xc]
mov dword [esi + ecx], eax
call fcn.0048faa4
mov ecx, dword [0x4e4cd4]
add esp, 0x10
mov dword [esi + ecx + 4], eax
mov eax, dword [0x4e4cd4]
mov dword [esi + eax + 8], 0
lea eax, [ebp - 4]
push eax
push 0x4bc8f0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x451c06
mov edx, dword [0x4e4cd4]
add edx, esi
mov esi, dword [edx + 4]
cmp word [esi], ax
jne 0x451bd1
push dword [edx]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451bd6
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push dword [edx]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451c10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10048
call fcn.00492790
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x451c9b
lea eax, [ebp - 0x10048]
mov dword [ebp - 0x10048], 5
push eax
push 0
push 0x104d
push edi
mov dword [ebp - 0x10044], VariantInit
mov dword [ebp - 0x10034], 0x4bc674
mov dword [ebp - 0x10028], 1
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4e524c]
test eax, eax
jne 0x451cb5
push 0x7f02
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x4e524c], eax
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0
mov dword [ebp - 0x10014], eax
lea eax, [ebp - 0x10010]
push eax
push 0x10008
lea eax, [ebp - 0x1000c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x451d43
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea esp, [esp]
mov eax, dword [ebp - 0x10010]
test eax, eax
je 0x451d42
push eax
lea eax, [ebp - 0x1000c]
push eax
push 3
push edi
call fcn.0044e460
add esp, 0x10
cmp dword [ebp - 0x10010], 0x10008
jne 0x451d22
push 1
push 0
push 0xfffffffffffffffe
push esi
call ebx
push 0
lea eax, [ebp - 0x10010]
push eax
push 0x10008
lea eax, [ebp - 0x1000c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x451cf0
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10014]
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
Function at 0x452340
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push ebx
push esi
push eax
push 0x4bb9b0
push SysReAllocStringLen
xor ebx, ebx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x45244f
push edi
mov edi, dword [0x4e51e4]
cmp dword [edi], ebx
je 0x45239b
mov eax, edi
mov eax, dword [eax]
inc esi
lea edx, [eax + 2]
jmp 0x452380
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x452380
sub eax, edx
sar eax, 1
inc eax
add ebx, eax
cmp dword [edi + esi*4], 0
lea eax, [edi + esi*4]
jne 0x452375
inc ebx
test esi, esi
jne 0x4523be
push 0x4bc8d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
push eax
mov dword [ebp - 0x10], eax
call fcn.0048fb2f
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [edi], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x452429
xor esi, esi
push dword [edi]
push ebx
push eax
call fcn.004911bd
mov edi, dword [0x4e51e4]
add esp, 0xc
mov edx, dword [ebp - 8]
inc edx
mov dword [ebp - 8], edx
mov ecx, dword [esi + edi]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452400
mov eax, dword [ebp - 0xc]
sub ecx, esi
sar ecx, 1
lea esi, [edx*4]
add edi, esi
lea eax, [eax + ecx*2]
add eax, 2
cmp dword [edi], 0
mov dword [ebp - 0xc], eax
jne 0x4523e1
push dword [ebp - 0x10]
xor ecx, ecx
push dword [ebp - 0x14]
mov word [eax], cx
push 7
push ecx
push 0x4bc8d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4529e0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4e4ee4], 0
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
mov dword [ebp - 0x14], 0
jne 0x452ae3
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 2
push dword [ebp - 0x10]
call edi
mov esi, dword [ebp - 0x18]
push esi
call fcn.0048fb2f
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x452abe
xor edi, edi
cmp edi, dword [ebx]
jae 0x452ab7
lea esi, [ebx + 8]
jmp 0x452a90
push dword [esi - 4]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x452aad
mov eax, dword [esi]
test al, 4
je 0x452aad
test eax, 0xffffffef
jne 0x452ab5
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x452a90
cmp edi, dword [ebx]
setne byte [0x4e4ee5]
push ebx
call fcn.0048faf7
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov byte [0x4e4ee4], 1
pop ebx
mov ecx, dword [ebp - 4]
mov al, byte [0x4e4ee5]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret

Function at 0x453ea0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebx + 0xc]
mov dword [ebp - 0x24], eax
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x453f07
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x453f00
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebx + 0xc]
jne 0x453ef2
cmp dword [ebp - 0x18], esi
je 0x453f1f
lea eax, [ebp - 0x20]
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x453ee5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret 0x14
push esi
push 1
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x453f00
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x453f4f
call esi
push edi
call esi
jmp 0x453f07
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret 0x14
Function at 0x454bd0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4acd4b
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x4dc6e0]
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 ebx, dword [ebp + 0xc]
mov dword [ebp - 0x458], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x454], eax
xor eax, eax
mov dword [ebp - 0x1a], 4
mov dword [ebp - 0x16], 0xffffffff
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x460], eax
push dword [edi + 8]
mov dword [ebp - 4], eax
push 8
mov word [ebp - 0x28], ax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x454cbc
lea eax, [ebp - 0x450]
mov dword [ebp - 0x450], 0x428
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x454cb5
mov eax, dword [ebp - 0x448]
cmp eax, dword [edi + 8]
jne 0x454ca4
mov ecx, dword [ebx]
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x1c]
push eax
push 0x4bd628
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x454]
mov eax, dword [ebp - 0x43c]
push dword [ebp - 0x458]
cdq
push edx
push eax
push ebx
call dword [ecx + 0xc]
test eax, eax
je 0x454cdf
lea eax, [ebp - 0x450]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x454c62
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80004005
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.0048fc6c
mov esp, ebp
pop ebp
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x454cc1
Function at 0x454cf0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x63c], eax
xor edi, edi
push dword [esi + 8]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x454e36
lea eax, [ebp - 0x638]
mov dword [ebp - 0x638], 0x428
push eax
push ebx
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x454d50
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x454e36
mov eax, dword [ebp - 0x630]
cmp eax, dword [esi + 8]
jne 0x454d95
lea eax, [ebp - 0x618]
mov ecx, 0x4ba59c
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x454d8c
test dx, dx
je 0x454d88
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x454d8c
add ecx, 4
add eax, 4
test dx, dx
jne 0x454d66
xor eax, eax
jmp 0x454d91
sbb eax, eax
or eax, 1
test eax, eax
je 0x454da8
lea eax, [ebp - 0x638]
push eax
push ebx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x454d50
jmp 0x454de2
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x418]
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x618]
push eax
call esi
sub edi, eax
lea eax, [ebp - 0x418]
push edi
push eax
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.00455b10
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x454e05
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00455a70
push 8
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x454ded
mov ecx, dword [ebp - 0x63c]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret 0x14

Function at 0x455210
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 1
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
jne 0x455234
mov eax, 0x80004005
pop esi
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x456f70
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4acfc0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4dc6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x4bd51c
push 0x4bd538
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.0043e5f0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x18]
call fcn.0045a510
push 0x4bcf00
push 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0045a620
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
call fcn.00459f10
push 0x4bcf00
lea ecx, [ebp - 0x34]
call fcn.00459f30
test eax, eax
setne al
mov byte [0x4e4ee8], al
test al, al
je 0x45704b
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x4e4ee8], 0
je 0x45704b
mov eax, dword [0x4e4ef0]
mov dword [0x4e4ef8], eax
mov eax, dword [0x4e4ef4]
push 0x4e4ef0
mov dword [0x4e4efc], eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0x4bd3e0
push 0
mov ecx, 0x4e4f14
call fcn.0045a620
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0044d570
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.0043e790
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 0x4580d0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x45814d
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push esi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x458146
jmp 0x458110
mov eax, dword [ebp - 0x18]
mov ecx, 0x4e4f48
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
movzx eax, byte [0x4e4f50]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.00457ee0
lea eax, [ebp - 0x20]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x458110
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
Function at 0x4589c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [ebp + 8]
push ebx
mov ebx, ecx
cmp byte [ebx + 0x4d0], al
jne 0x4589db
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [ebx + 0x4b8], 0
push esi
jne 0x458a35
push edi
push 0x4afdb0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push 0x4be254
push edi
call esi
push 0x4be260
push edi
mov dword [0x4e4f54], eax
call esi
push 0x4be270
push edi
mov dword [0x4e4f58], eax
call esi
push 0x4be27c
push edi
mov dword [0x4e4f5c], eax
call esi
mov dword [0x4e4f60], eax
mov byte [ebx + 0x4b8], 1
pop edi
cmp dword [0x4e4f54], 0
jne 0x458a4b
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov dword [ebx], 0x4b0
mov dword [ebx + 0x2c], 0x20000
mov ecx, 0x2000000
mov dword [ebx + 0x44], 1
cmp dword [0x4dfca4], 3
mov dword [ebx + 0x28], 1
cmovge eax, ecx
or eax, 0x100
mov dword [ebx + 0x40], eax
cmp dword [0x4dfca4], 3
jge 0x458a95
movdqu xmm0, xmmword [0x4bd800]
movdqu xmmword [ebx + 0x18], xmm0
mov dword [ebx + 0x70], 0x78
lea esi, [ebx + 0x78]
mov dword [ebx + 0x6c], 0x280
mov ecx, 0x4be230
cmp dword [0x4dfca4], 3
mov eax, 0x4be214
cmovl eax, ecx
push eax
push 0x104
push esi
call fcn.004911bd
push 0x4af9b8
lea eax, [ebx + 0x280]
push 0x104
push eax
call fcn.004911bd
mov eax, dword [ebx + 0x48]
add esp, 0x18
or eax, 0x10100
mov dword [ebx + 0x48], eax
cmp dword [0x4dfca4], 3
jl 0x458af9
or eax, 2
mov dword [ebx + 0x48], eax
cmp byte [ebp + 8], 0
je 0x458b5c
push ebx
push esi
lea eax, [ebx + 0x4b0]
push eax
call dword [0x4e4f54]
mov esi, eax
test esi, esi
je 0x458b20
cmp esi, 0xb7
jne 0x458bb0
lea eax, [ebp - 4]
mov byte [ebx + 0x4d0], 1
push eax
xor esi, esi
push esi
push ebx
push 0x458280
push esi
push esi
call fcn.004929fc
add esp, 0x18
mov dword [ebx + 0x4c0], eax
cmp dword [0x4dfca4], 3
jl 0x458bb0
call fcn.004580d0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [ebx + 0x4bc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 1
push ebx
push esi
push dword [ebx + 0x4b4]
push dword [ebx + 0x4b0]
call dword [0x4e4f58]
push 0xffffffffffffffff
push dword [ebx + 0x4c0]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebx + 0x4c0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx + 0x4bc]
mov dword [ebx + 0x4c0], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45a620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push dword [edi]
call fcn.0048f453
add esp, 4
mov dword [edi], 0
test esi, esi
je 0x45a66e
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push esi
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
je 0x45a678
jmp 0x45a761
mov dword [ebp - 0x20c], reloc.OLEAUT32.dll_SysReAllocStringLen
push 0x100
lea eax, [ebp - 0x204]
mov ecx, edi
push eax
push ebx
call fcn.0045a530
test eax, eax
je 0x45a761
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x208]
push eax
xor esi, esi
mov dword [ebp - 0x208], 0
push esi
push esi
push esi
lea eax, [ebp - 0x204]
mov dword [edi], esi
push eax
push dword [ebp - 0x20c]
call ebx
test eax, eax
je 0x45a726
cmp eax, 0xea
jne 0x45a751
push dword [edi]
call fcn.0049243b
mov eax, dword [ebp - 0x208]
add esp, 4
cmp eax, esi
jbe 0x45a6ec
lea esi, [eax + 0x1000]
jmp 0x45a6f2
add esi, 0x1000
push esi
call fcn.0048f2de
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x45a751
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x208], esi
push ecx
push eax
push 0
push 0
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x20c]
call ebx
test eax, eax
jne 0x45a6c5
mov eax, dword [edi]
cmp dword [eax], 0x450050
jne 0x45a751
cmp dword [eax + 4], 0x460052
jne 0x45a751
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret 8
push dword [edi]
call fcn.0049243b
add esp, 4
mov dword [edi], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret 8