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

Disassembly:
push 0x1c
mov eax, 0x427ce4
call fcn.00411b33
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x40b97d
mov edi, dword [esi]
jmp 0x40b97f
mov edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b992
shr al, 4
and al, 1
jmp 0x40ba07
push ecx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0040c11a
pop ecx
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x40b9ac
mov eax, dword [esi]
jmp 0x40b9ae
mov eax, esi
push dword [esi + 0x10]
push eax
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404b96
test eax, eax
je 0x40b9f7
lea ecx, [ebp - 0x28]
call fcn.0040b965
test al, al
je 0x40b9f7
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40b9f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b9f7
mov ecx, esi
call fcn.0040b947
test al, al
je 0x40b9f7
mov bl, 1
jmp 0x40b9f9
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00403b4c
mov al, bl
call fcn.00411ae2
ret

Function at 0x40be16
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x42867b
call fcn.00411b33
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push 0x40
push 0
push eax
call fcn.00413be0
add esp, 0xc
mov dword [ebp - 0x80], 0x44
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov edx, edi
push ecx
lea ecx, [ebp - 0x28]
movdqu xmmword [ebp - 0x38], xmm0
call fcn.004050f7
and dword [ebp - 4], 0
mov dword [esp], 0x42feac
call fcn.00401147
pop ecx
push eax
push 0x42feac
lea ecx, [ebp - 0x28]
call fcn.00404a16
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00404970
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x40be9c
mov edi, dword [edi]
lea ecx, [ebp - 0x38]
xor esi, esi
push ecx
lea ecx, [ebp - 0x80]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40bec4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40bee1
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x40bee1
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00403b4c
mov eax, esi
call fcn.00411ae2
ret
Function at 0x40c330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x428786
call fcn.00411b00
mov edi, ecx
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40c3bd
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push esi
test edi, edi
jne 0x40c369
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40c3bd
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x40c378
push esi
jmp 0x40c361
push edi
lea ecx, [ebp - 0x18]
call fcn.0040c3c5
push edi
mov edi, dword [ebp - 0x18]
push ebx
push edi
call fcn.00411390
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
add esp, 0xc
cmp ecx, eax
je 0x40c3ab
mov eax, dword [ecx]
mov dword [ecx], edi
mov edi, eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x40c3bd
push edi
call fcn.0040d5bc
pop ecx
call fcn.00411ace
ret 8
Function at 0x423e90
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x434558]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00413e15
mov dword [ebp - 0x14], eax
cmp dword [0x436a58], esi
jne 0x423f83
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x423f10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x424063
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x424063
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x424063
push eax
call ebx
push 0x42f8e0
push edi
mov dword [0x436a58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x436a5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x436a60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x436a68], eax
test eax, eax
je 0x423f80
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x436a64], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x423fa8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x423f9b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x423fbd
push 4
pop eax
jmp 0x424065
cmp dword [ebp - 0x14], esi
je 0x423fbd
push dword [0x436a58]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x423fa2
mov eax, dword [0x436a64]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x42401b
cmp dword [0x436a68], edi
je 0x42401b
push eax
call ebx
push dword [0x436a68]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42401b
test eax, eax
je 0x42401b
call ecx
test eax, eax
je 0x424010
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x424010
test byte [ebp - 8], 1
jne 0x42401b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x42404b
mov eax, dword [0x436a5c]
cmp eax, edi
je 0x424048
push eax
call ebx
test eax, eax
je 0x424048
call eax
mov esi, eax
test esi, esi
je 0x424048
mov eax, dword [0x436a60]
cmp eax, edi
je 0x424048
push eax
call ebx
test eax, eax
je 0x424048
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x436a58]
call ebx
test eax, eax
je 0x424063
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x424065
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d5c1
mov esp, ebp
pop ebp
ret
Function at 0x4012b0
Capabilities:
Schedule task via itaskservice

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x8c
lea eax, [ebp - 0x4c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x406480
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x406320
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
js 0x4013e1
mov eax, dword [ebp - 0x4c]
mov word [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov word [ebp - 0x28], 0
mov edx, dword [eax]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp - 0x14]
mov word [ebp - 0x38], 0
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x1c], ecx
mov word [ebp - 0x48], 0
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x48]
mov dword [esp + 4], ecx
mov ecx, dword [ebp - 0x44]
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp], eax
call dword [edx + 0x28]
sub esp, 0x44
test eax, eax
js 0x4013d8
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x18]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x1c]
mov ebx, eax
mov eax, dword [ebp - 0x4c]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
test ebx, ebx
push eax
js 0x4013f0
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
test byte [section..data], 1
jne 0x401408
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
test byte [section..data], 1
je 0x4013e1
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.GetFolder_failed:__08lx_n
jmp 0x401414
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Connect_failed:__08lx_n
mov dword [esp + 8], str.get_tasks_root_folder
mov dword [esp + 4], 0x404000
mov dword [esp], 0
call fcn.00401260
xor eax, eax
jmp 0x4013e3
Function at 0x4031a0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x403210
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
and eax, 0xff
inc eax
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401f30
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x41067b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x41068a
pop dword [ebp - 0x40]
mov eax, 0x7582cea4
add eax, 0x8abe37e6
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x90487087
sub dword [ebp - 0x50], 0x41f62b3c
mov dword [ebp - 0x4c], 0x13664015
sub dword [ebp - 0x4c], 0xe132f3d0
mov dword [ebp - 0x48], 0x53be55dc
sub dword [ebp - 0x48], 0x77211ae
mov dword [ebp - 0x44], 0x4bfb3299
sub dword [ebp - 0x44], 0x4bfb3299
lea eax, [ebp - 0x50]
push eax
mov eax, 0xf9db633b
add eax, 0x666cd39
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x4ec69f04
sub dword [ebp - 0x50], 0xda5435ae
mov dword [ebp - 0x4c], 0x368dc289
add dword [ebp - 0x4c], 0xade9eec
mov dword [ebp - 0x48], 0xdbbc9da1
sub dword [ebp - 0x48], 0x784d3135
mov dword [ebp - 0x44], 0x461af822
sub dword [ebp - 0x44], 0x461af822
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x6ba5054d
add eax, 0x949d2bd7
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3a993
push 0
call eax
mov ecx, 0x3b79
mov ebx, eax
mov esi, 0x825d1f27
add esi, 0x7de624d9
add esi, dword [ebp - 0x40]
mov edx, 0x716a2d12
add edx, 0x3588046b
sub dword [ebp - 0x1c], 0xd32a666b
mov edi, dword [esi]
sub dword [ebp - 0x10], esi
xor edi, edx
xor dword [ebp - 0x2c], 0xc7572c38
mov dword [ebx], edi
add dword [ebp - 4], esi
add ebx, 4
add esi, 4
loop 0x4107a6
add eax, 0x4bcd34a
sub eax, 0x4bbf293
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7d8
lea eax, [ebp - 4]
push ebx
push edi
push eax
mov ebx, 0xf013f
xor edi, edi
push ebx
push edi
push str.HARDWAREUEFIESRT_embrconfig
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40106b
jmp 0x40103e
lea eax, [ebp - 0x7d8]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edi
push edi
push edi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x3e8
push eax
lea eax, [ebp - 0x7d8]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40102e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
push str.HARDWAREUEFIESRT_embrconfig
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
pop edi
pop ebx
leave
ret
Function at 0x401294
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0x3e80
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 4], 0x3e8
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.00401081
test eax, eax
je 0x40130e
push esi
mov esi, dword [ebp - 4]
test esi, esi
je 0x40130d
push edi
mov edi, ebx
mov eax, 0x7273
cmp word [edi + 4], ax
jne 0x401304
cmp dword [edi], 0xffffffff
je 0x401304
push dword [edi]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
test eax, eax
je 0x401304
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 0x10
sub esi, 1
jne 0x4012cf
pop edi
pop esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
leave
ret

Function at 0x4013e9
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401476
lea eax, [ebp - 4]
push eax
push 0x28
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40146f
lea eax, [ebp - 0xc]
push eax
push 0x4021fc
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40146f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push ebx
push ebx
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40146f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
setne bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4014ca
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push edi
lea eax, [ebp - 0x424]
mov dword [ebp - 4], edx
push eax
push 0x104
mov dword [ebp - 8], ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40158c
lea ecx, [ebp - 0x218]
call fcn.00401321
test eax, eax
je 0x40158c
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x218]
push 0x402220
push eax
call esi
push 0x4022c0
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x424]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x40158b
push ebx
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40158a
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
test esi, esi
cmovne edi, eax
pop ebx
pop esi
mov eax, edi
pop edi
leave
ret

Function at 0x401591
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x44
mov edx, ecx
lea edi, [ebp - 0x58]
pop ecx
push 0x10
xor al, al
mov dword [ebp - 4], edx
rep stosb byte es:[edi], al
pop ecx
lea edi, [ebp - 0x14]
mov dword [ebp - 0x58], 0x44
rep stosb byte es:[edi], al
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
mov esi, ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4015f7
push IsWow64Process
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
xor esi, esi
inc esi
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401613
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jl 0x4015fa
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40174f
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
call fcn.004013e9
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4017a2
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x40225c
push dword [ebp - 8]
call esi
push 0x402274
push dword [ebp - 8]
call esi
push 0x40228c
push dword [ebp - 8]
call esi
call fcn.0040161a
call fcn.00401294
push 0x3e80
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 4], 0x3e8
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.00401081
test eax, eax
je 0x4017fc
push edi
mov edi, dword [ebp - 4]
test edi, edi
je 0x4017fb
mov esi, ebx
mov eax, 0x7277
cmp word [esi + 4], ax
jne 0x4017f3
mov ecx, esi
call fcn.0040122d
add esi, 0x10
sub edi, 1
jne 0x4017e1
pop edi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.004013a0
pop esi
pop ebx
test eax, eax
je 0x40184e
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040147c
pop ecx
pop ecx
test eax, eax
je 0x40184e
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x218]
push eax
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.004014ca
pop ecx
pop ecx
test eax, eax
je 0x40184e
lea ecx, [ebp - 0x218]
call fcn.00401591
call section..text
xor eax, eax
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xd220224
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x10f01bac
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x667c27c0
Capabilities:
Get process heap flags

Disassembly:
sub esp, 0x3c
test edx, edx
mov dword [esp + 0x2c], ebx
mov ebx, ecx
mov ecx, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 0x34], edi
mov edi, eax
mov eax, 0
mov dword [esp + 0x1c], edx
cmove ebx, eax
xor edx, edx
mov dword [esp + 4], edx
mov eax, 0x1c
mov dword [esp + 8], eax
mov dword [esp + 0x30], esi
mov esi, dword fs:[0x18]
mov dword [esp + 0x38], ebp
mov eax, dword [esi + 0x30]
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ecx
xor ecx, ecx
mov dword [eax], edi
sub esp, 0xc
mov ebp, eax
mov dword [eax + 4], 1
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], ebx
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ecx
mov dword [ebp + 8], eax
sub esp, 0xc
test eax, eax
mov edx, dword [esp + 0x1c]
je 0x667c28c2
cmp ebx, 8
mov edi, eax
mov ecx, ebx
mov esi, edx
jae 0x667c2878
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], 0
mov eax, ebp
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
add esp, 0x3c
ret
test al, 1
jne 0x667c28a0
test edi, 2
jne 0x667c28b0
test edi, 4
je 0x667c2850
mov eax, dword [esi]
add edi, 4
add esi, 4
sub ecx, 4
mov dword [edi - 4], eax
jmp 0x667c2850
movzx eax, byte [edx]
inc edi
inc esi
lea ecx, [ebx - 1]
mov byte [edi - 1], al
jmp 0x667c287c
movzx eax, word [esi]
add edi, 2
add esi, 2
sub ecx, 2
mov word [edi - 2], ax
jmp 0x667c2884
mov dword [esp + 8], ebp
xor ebp, ebp
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x667c285c
Function at 0x667c2e70
Capabilities:
Delete registry value
Get process heap flags
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], ebx
mov ebx, dword [ecx]
mov dword [ebp - 8], esi
mov esi, 0xffffffff
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
lock xadd dword [ebx + 4], esi
dec esi
test byte [0x667cc034], 8
jne 0x667c2f50
test esi, esi
jne 0x667c2f37
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
test edx, edx
je 0x667c2ee5
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x667c2f88
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
sub esp, 8
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebx + 0x18]
sub esp, 4
mov dword [esp], eax
call dword [0x667d82bc]
mov eax, dword [ebx + 8]
mov edx, dword fs:[0x18]
mov dword [ebp - 0x1c], edx
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 4
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
xor edx, edx
sub esp, 0xc
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], ebx
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
sub esp, 0xc
mov ecx, dword [ebp - 0x10]
mov eax, esi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x14], esi
mov eax, str._p__refcount__lu._n
mov dword [esp + 0xc], eax
mov eax, str.regstream_Release
mov dword [esp + 8], eax
mov eax, 0x667cc034
mov dword [esp + 0x10], ebx
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x667c2ea6
mov dword [esp + 0x14], ecx
xor edi, edi
mov ecx, dword [ebx + 8]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [esp + 0x10], ecx
mov ecx, 3
mov dword [esp + 0xc], ecx
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
jmp 0x667c2ed3