joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5614f0], eax
je 0x477d8f
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x5614f4]
test eax, eax
jne 0x477f43
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x477dae
lea eax, [esi + 6]
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [esi], 0
jne 0x477dca
mov eax, 6
mov dword [0x5614f8], esi
mov dword [0x5614f4], eax
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
push 0x18
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x477de5
lea esi, [eax + 8]
jmp 0x477f20
mov esi, dword [esi]
test esi, esi
jne 0x477def
xor ebx, ebx
jmp 0x477e46
cmp byte [esi], 0xff
jne 0x477e0c
cmp byte [esi + 1], 0x25
jne 0x477e0c
mov edi, dword [esi + 2]
mov edx, edi
mov ecx, esi
call fcn.00477010
test al, al
je 0x477e0c
mov esi, dword [edi]
cmp byte [esi], 0xeb
jne 0x477e44
movsx eax, byte [esi + 1]
lea esi, [esi + eax + 2]
mov al, byte [esi]
cmp al, 0xff
jne 0x477e39
cmp byte [esi + 1], 0x25
jne 0x477e39
mov edi, dword [esi + 2]
mov edx, edi
mov ecx, esi
call fcn.00477010
test al, al
je 0x477e44
mov esi, dword [edi]
jmp 0x477e44
cmp al, 0xe9
jne 0x477e44
mov ecx, dword [esi + 1]
lea esi, [esi + ecx + 5]
mov ebx, esi
mov ecx, dword [ebp + 0xc]
mov edi, ecx
test ecx, ecx
je 0x477ea4
cmp byte [ecx], 0xff
jne 0x477e6a
cmp byte [ecx + 1], 0x25
jne 0x477e6a
mov esi, dword [ecx + 2]
mov edx, esi
call fcn.00477010
test al, al
je 0x477e6a
mov edi, dword [esi]
cmp byte [edi], 0xeb
jne 0x477ea4
movsx edx, byte [edi + 1]
mov al, byte [edi + edx + 2]
lea edi, [edi + edx + 2]
cmp al, 0xff
jne 0x477e99
cmp byte [edi + 1], 0x25
jne 0x477e99
mov esi, dword [edi + 2]
mov edx, esi
mov ecx, edi
call fcn.00477010
test al, al
je 0x477ea4
mov edi, dword [esi]
jmp 0x477ea4
cmp al, 0xe9
jne 0x477ea4
mov eax, dword [edi + 1]
lea edi, [edi + eax + 5]
movzx eax, byte [ebx + 0x36]
mov esi, dword [ebx + 0x40]
sub esi, eax
test eax, eax
je 0x477f12
cmp eax, 0x1e
ja 0x477f12
cmp dword [ebx + 0x44], edi
jne 0x477f12
lea ecx, [ebp - 4]
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x477ede
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x477f20
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [eax + 8], edx
mov edx, dword [0x561500]
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], esi
mov dword [eax + 4], 1
mov ecx, dword [ebp - 4]
pop edi
pop ebx
mov dword [eax + 0x14], ecx
mov dword [eax], edx
mov dword [0x561500], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [0x5614e8], 0
mov esi, 9
jne 0x477f26
mov dword [0x5614f4], esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x477f36
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp + 8]
pop edi
mov dword [0x5614f8], eax
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4784b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x478583
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, eax
test esi, esi
je 0x478557
cmp esi, 0x104
jae 0x478557
lea ecx, [ebp - 0x210]
push ecx
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x47855f
cmp dword [ebp - 0x210], 0
mov eax, str.SysWOW64_s
jne 0x478530
mov eax, 0x4e1934
push edi
push eax
push 0x1800
push 0
mov edx, 0x104
push 0
sub edx, esi
push edx
lea eax, [ebp + esi*2 - 0x20c]
push eax
call fcn.004781d0
add esp, 0x1c
test eax, eax
jns 0x478572
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x47855f
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b12f6
mov esp, ebp
pop ebp
ret

Function at 0x4788d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x478917
cmp word [esi], cx
je 0x478917
push edi
mov dword [ebp + 0x10], ecx
lea edi, [ebp + 0x10]
mov ecx, 0x3fffffff
mov edx, esi
call fcn.00477f80
pop edi
test eax, eax
js 0x478901
mov ecx, dword [ebp + 0x10]
add ecx, ecx
jmp 0x478903
xor ecx, ecx
test eax, eax
jns 0x478914
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebp
ret
add ecx, 2
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
ret
Function at 0x4794d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bda50
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5603e8]
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 ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
lea edx, [ebp - 0x50]
push edx
push esi
lea edx, [ebp - 0x54]
push edx
push esi
push ecx
push eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x47954a
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
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.004b12f6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x54]
cmp eax, 1
je 0x47955e
cmp eax, 2
je 0x47955e
push 0x65e
jmp 0x479526
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x14
mov edi, eax
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
xor edx, edx
add esp, 4
cmp eax, edx
je 0x479646
mov dword [eax], 0x4e1a48
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 0x10], ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], edx
lea edx, [ebp - 0x28]
push edx
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
lea ecx, [ebp - 0x48]
call fcn.0049ea80
mov ecx, dword [ebp - 0x18]
xor edi, edi
mov byte [ebp - 4], 2
cmp ecx, edi
je 0x4795de
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [ebp - 0x28]
cmp ecx, eax
setne al
movzx eax, al
push eax
call edx
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x48]
cmp eax, edi
jne 0x479601
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.0049efd0
jmp 0x47952c
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
push edx
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, edi
jne 0x47962e
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x48], edi
jmp 0x479630
xor esi, esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.0049efd0
mov eax, esi
jmp 0x47952e
mov dword [ebp - 0x4c], edx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x53bd18
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3
Function at 0x485430
Capabilities:
Patch process command line

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf2d1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5603e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], ax
mov ebx, 1
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 0xc]
push ecx
push esi
push 0x410
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x48549b
mov esi, eax
mov dword [ebp - 0x14], esi
cmp eax, 0xffffffff
jne 0x48549d
xor bl, bl
push str.NtQueryInformationProcess
push 0x4e0124
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0x18
lea edx, [ebp - 0x38]
push edx
push 0
push esi
call eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x485566
test bl, bl
je 0x485566
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 4
lea ecx, [ebp - 0x18]
push ecx
add eax, 0x10
push eax
push esi
call ebx
test eax, eax
je 0x485566
mov eax, dword [ebp - 0x18]
push 0
push 8
lea edx, [ebp - 0x20]
push edx
add eax, 0x40
push eax
push esi
call ebx
test eax, eax
je 0x485566
movzx ebx, word [ebp - 0x20]
add ebx, 2
push ebx
call dword [sym.imp.MSVCR100.dll_malloc]
push ebx
mov edi, eax
push 0
push edi
call sub.MSVCR100.dll_memset
movzx ecx, word [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add esp, 0x10
push 0
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x485559
mov eax, edi
lea edx, [eax + 2]
jmp 0x485540
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x485540
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00405660
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edi, dword [ebp + 8]
add esp, 4
test esi, esi
je 0x485576
cmp esi, 0xffffffff
je 0x485576
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
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 0x485690
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf359
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5603e8]
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, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], esi
mov eax, 1
mov dword [ebp - 4], eax
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], esi
jae 0x4856e8
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x34], eax
cmp eax, esi
je 0x485770
xor ebx, ebx
cmp dword [ebp - 0x30], esi
jle 0x485769
mov ecx, dword [eax + ebx*4]
cmp ecx, esi
je 0x485760
xor edx, edx
mov eax, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], dx
lea esi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x485720
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00405660
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00406850
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 1
jb 0x48575e
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor esi, esi
mov eax, dword [ebp - 0x34]
inc ebx
cmp ebx, dword [ebp - 0x30]
jl 0x485701
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp + 0x20], 8
jb 0x485782
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
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.004b12f6
mov esp, ebp
pop ebp
ret
Function at 0x487030
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x620], edi
mov dword [ebp - 0x618], ebx
mov dword [ebp - 0x608], ecx
mov dword [ebp - 0x60c], ecx
cmp eax, ecx
je 0x4870a5
lea edx, [ebp - 0x60c]
push edx
push 0xf003f
push ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x48709f
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x60c]
lea eax, [ebp - 0x624]
push eax
lea ecx, [ebp - 0x608]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x4871ab
xor ebx, ebx
lea edx, [ebp - 0x62c]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x610]
push eax
lea ecx, [ebp - 0x204]
push ecx
push ebx
push esi
mov dword [ebp - 0x610], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc ebx
test eax, eax
jne 0x48712b
mov ecx, dword [ebp - 0x608]
lea edx, [ebp - 0x204]
push edx
push esi
mov eax, edx
push eax
push ecx
call fcn.00487030
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4870d4
jmp 0x4871ab
xor ebx, ebx
lea ecx, [ecx]
lea edx, [ebp - 0x614]
push edx
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x61c]
push ecx
push 0
lea edx, [ebp - 0x610]
push edx
lea eax, [ebp - 0x604]
push eax
push ebx
push esi
mov dword [ebp - 0x610], 0x100
mov dword [ebp - 0x614], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc ebx
test eax, eax
jne 0x4871a9
mov ecx, dword [ebp - 0x614]
mov eax, dword [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x404]
push edx
mov edx, dword [ebp - 0x608]
push eax
push 0
lea ecx, [ebp - 0x604]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x487130
jmp 0x4871ab
xor edi, edi
mov eax, dword [ebp - 0x60c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4871be
push eax
call esi
mov eax, dword [ebp - 0x608]
test eax, eax
je 0x4871cb
push eax
call esi
test edi, edi
je 0x4871e3
mov eax, dword [ebp - 0x618]
mov ecx, dword [ebp - 0x620]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
Function at 0x487200
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
test ebx, ebx
jne 0x487214
pop edi
xor eax, eax
pop ebx
pop ebp
ret
push esi
push 0x5c
push ebx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x48729d
mov ecx, dword [ebp + 0x10]
add eax, 2
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x487230
sub ecx, esi
sub eax, ebx
mov esi, eax
sar ecx, 1
sar esi, 1
lea eax, [esi + ecx]
lea ecx, [eax + eax + 2]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x487293
add esi, esi
push esi
push ebx
push edi
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp + 0x10]
lea edx, [esi + edi]
add esp, 0xc
sub edx, eax
jmp 0x487280
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x487280
mov eax, edi
jmp 0x4872a0
pop esi
pop edi
mov eax, 8
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0x14], 1
push ebx
jne 0x4872c9
mov esi, dword [ebp + 8]
push esi
push eax
push esi
call fcn.00487030
add esp, 0x10
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4872d7
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [ebp + 0xc]
jmp 0x4872d7
mov ecx, dword [ebp + 8]
push ecx
push eax
push ecx
call fcn.00487030
add esp, 0x10
mov esi, eax
test edi, edi
je 0x4872ed
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x487300
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 4]
push ecx
xor eax, eax
push 0x20006
push eax
push edx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
call edi
mov ebx, dword [ebp + 0x10]
test eax, eax
jne 0x48734d
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
push ebx
push esi
call edi
test eax, eax
jne 0x48734d
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x48735d
push eax
call edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x487367
push eax
call edi
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4873a9
push str.RegRenameKey
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4873a2
mov ecx, dword [ebp + 0xc]
push ebx
push ecx
push esi
call eax
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp + 0xc]
push 1
push ebx
push edx
push esi
call fcn.00487200
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x487620
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [0x561610]
inc ecx
mov dword [0x561610], ecx
cmp ecx, 0x64
jl 0x487687
push esi
lea esi, [eax + 0x1c]
mov dword [0x561610], 0
cmp dword [esi + 0x14], 8
jb 0x48765c
mov eax, dword [esi]
jmp 0x48765e
mov eax, esi
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x487686
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 8]
jbe 0x487686
cmp dword [esi + 0x14], 8
jb 0x48767f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 4
Function at 0x487a30
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf6f9
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5603e8]
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 esi, ecx
mov eax, 7
xor edi, edi
xor ecx, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edi
mov dword [ebp - 0x21c], esi
mov word [esi], cx
xor edx, edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], edi
mov dword [ebp - 4], edi
mov word [esi + 0x1c], dx
push str.__UPD_LogFile_Z_MutxName__
push edi
push edi
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov dword [esi + 0x3c], 0x10000001
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x40], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push 0x5c
push ecx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
add esp, 8
add eax, 2
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x487ad6
sub ecx, edi
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00405660
lea edx, [ebp - 0x218]
push 0x2e
push edx
mov edi, 0x4e768c
call dword [sym.imp.MSVCR100.dll_wcsrchr]
lea ecx, [eax + 2]
add esp, 8
sub ecx, edi
lea ebx, [ebx]
movzx eax, word [edi]
mov word [ecx + edi], ax
add edi, 2
test ax, ax
jne 0x487b10
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x487b30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x487b30
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x1c]
call fcn.00405660
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.004b12f6
mov esp, ebp
pop ebp
ret
Function at 0x488290
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
call fcn.00487f60
test eax, eax
je 0x4883f5
push ebx
mov ebx, 1
push esi
test byte [0x564578], bl
jne 0x4882d8
or dword [0x564578], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [0x564574], eax
mov eax, dword [0x564574]
mov esi, dword [sym.imp.MSVCR100.dll__itow_s]
push 0xa
push 0x10
push 0x564554
push eax
call esi
push 0xa
push 0x10
push 0x564534
push edi
call esi
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xa
push 0x10
push 0x564514
push eax
call esi
mov ecx, 8
mov esi, str.kcrashdumper.exe
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x28]
add esp, 0x10
push ecx
mov dword [0x564510], ebx
mov dword [0x56450c], 0
mov dword [0x564508], 0xc
movsw word es:[edi], word [esi]
call fcn.00487f60
push eax
push str._s_s
push 0x563d08
call fcn.00488250
call fcn.00487f70
push eax
push 0x564534
push 0x564514
push 0x564554
push 0x563d08
push 0x4e99a8
push 0x562c08
call fcn.00488270
add esp, 0x2c
push 0x562bf4
push 0x562bb0
push 0
push 0
push 0
push ebx
push 0
push 0
push 0x562c08
mov edx, 0xa
push 0x563d08
mov dword [0x562bb0], 0x44
mov dword [0x562bdc], ebx
mov word [0x562be0], dx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [0x562ba8], eax
test eax, eax
je 0x4883f3
mov eax, dword [0x562bf4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x562bf8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [0x562bf4]
push edx
call esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004b12f6
mov esp, ebp
pop ebp
ret

Function at 0x4892d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.00433330
call fcn.004333f0
test eax, eax
je 0x4892fe
push str._kso_SendInfoCellect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4892fe
mov ecx, dword [ebp + 8]
push 0
push 0
push ecx
call eax
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x489326
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret