joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40237c
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1428
call fcn.00420e10
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
cmp edx, ebx
mov dword [ebp - 4], ebx
je 0x4024e2
cmp word [edx], bx
je 0x4024e2
cmp dword [ebp + 0xc], ebx
je 0x4024e2
cmp dword [ebp + 0x10], ebx
je 0x4024e2
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x426]
mov word [ebp - 0x428], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4282f4
lea eax, [ebp - 0x428]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1428]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4024e2
mov edx, dword [ebp - 0x10]
push ebx
mov ecx, 0x82
pop eax
lea edi, [ebp - 0x21e]
mov word [ebp - 0x220], bx
shr edx, 2
rep stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
je 0x4024dd
lea eax, [ebp - 0x1428]
push esi
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], edx
jmp 0x402434
xor ebx, ebx
mov eax, dword [ebp + 8]
push dword [eax]
push ebx
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4024cf
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4024c8
lea eax, [ebp - 0x220]
push 0x104
push eax
push dword [ebp - 8]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x4024c8
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xor edi, edi
mov ebx, eax
cmp dword [ebp + 0x10], edi
jle 0x4024cf
mov esi, dword [ebp + 0xc]
push dword [esi]
push ebx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x4024c3
inc edi
add esi, 4
cmp edi, dword [ebp + 0x10]
jl 0x4024a9
jmp 0x4024cf
inc dword [ebp - 4]
jmp 0x4024cf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [ebp + 8], 4
dec dword [ebp - 0xc]
jne 0x402432
pop esi
mov eax, dword [ebp - 4]
jmp 0x4024e4
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x402930
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, edi
je 0x40298b
cmp word [eax], di
je 0x40298b
cmp dword [ebp + 0xc], edi
je 0x40298b
cmp dword [ebp + 0x10], edi
je 0x40298b
lea ecx, [ebp + 8]
push esi
push ecx
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp esi, edi
je 0x402986
cmp dword [ebp + 8], edi
je 0x40297f
push dword [esi]
push 0x4280b8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
jmp 0x40298d
xor eax, eax
pop edi
pop ebp
ret

Function at 0x402990
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x402a3e
cmp dword [ebp + 0xc], esi
je 0x402a3e
cmp dword [ebp + 0x10], esi
je 0x402a3e
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x402a39
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x402a39
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [ebp + 0x10], eax
je 0x402a2f
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402a2f
push edi
push esi
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [ebp + 0xc]
push esi
push eax
push edi
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402a28
cmp edi, dword [ebp + 0xc]
jne 0x402a28
push 1
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
mov eax, esi
pop edi
jmp 0x402a40
xor eax, eax
pop esi
leave
ret

Function at 0x402c74
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402cf6
push edi
mov ecx, 0x81
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4280b8
lea eax, [ebp - 0x208]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x208]
push 5
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x4282f8
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop edi
jle 0x402cf4
push 1
pop esi
mov eax, esi
pop esi
leave
ret
Function at 0x402e57
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 8
mov ebx, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor ebp, ebp
push 1
push ebx
push ebp
push esi
mov dword [esp + 0x24], ebp
call edi
cmp dword [esi], ebp
jne 0x402e8a
push 0xf0000048
push 1
push ebx
push ebp
push esi
call edi
mov eax, dword [esi]
cmp eax, ebp
je 0x402eb9
push dword [esp + 0x1c]
push ebp
push ebp
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x402eb0
mov dword [esp + 0x10], 1
jmp 0x402eb9
push ebp
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40397e
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov eax, ebx
push 3
cdq
pop ecx
xor esi, esi
idiv ecx
lea eax, [ebx + 2]
mov dword [ebp - 8], edx
cdq
idiv ecx
lea eax, [eax*4 + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [ebp + 8]
pop ecx
mov ecx, eax
xor eax, eax
test ebx, ebx
mov dword [ebp - 4], eax
jle 0x403a2c
push 3
cdq
pop ebx
idiv ebx
test edx, edx
jne 0x4039ce
mov eax, dword [ebp - 4]
movzx edx, byte [eax + edi]
shr edx, 2
jmp 0x403a17
cmp edx, 1
jne 0x4039f0
mov eax, dword [ebp - 4]
mov dl, byte [eax + edi - 1]
movzx ebx, byte [eax + edi]
and edx, 3
shl edx, 4
shr ebx, 4
mov dl, byte [edx + ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x403a1d
mov eax, dword [ebp - 4]
cmp edx, 2
jne 0x403a21
movzx ebx, byte [eax + edi]
mov dl, byte [eax + edi - 1]
and edx, 0xf
shr ebx, 6
mov dl, byte [ebx + edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], dl
mov dl, byte [eax + edi]
inc esi
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], dl
inc esi
mov ebx, dword [ebp + 0xc]
inc eax
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x4039b8
cmp dword [ebp - 8], 1
jne 0x403a4c
mov al, byte [edi + ebx - 1]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
inc esi
mov byte [ecx + esi], 0x3d
jmp 0x403a63
cmp dword [ebp - 8], 2
jne 0x403a69
mov al, byte [edi + ebx - 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
inc esi
mov byte [ecx + esi], 0x3d
inc esi
and byte [ecx + esi], 0
pop edi
pop esi
mov eax, ecx
pop ebx
leave
ret
Function at 0x403cf6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6ac
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 4], eax
je 0x403e2a
cmp dword [ebp + 0xc], eax
je 0x403e2a
push ebx
push esi
push edi
mov ecx, 0x81
lea edi, [ebp - 0x29a]
mov word [ebp - 0x29c], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call section..text
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 1
cmp eax, 8
pop ebx
jl 0x403daa
and word [ebp - 0x94], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x92]
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x7e
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x14]
push eax
push str.Progid
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push SysReAllocString
call esi
test eax, eax
jne 0x403dc4
lea eax, [ebp - 0x94]
push eax
push str._s_shellopencommand
lea eax, [ebp - 0x29c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
jmp 0x403dc4
push str.http_shellopencommand
lea eax, [ebp - 0x29c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0xc
and word [ebp - 0x6ac], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x6aa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0x6ac]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x29c]
push 0
push eax
push SysReAllocString
mov dword [ebp - 8], 0x40e
call esi
pop edi
pop esi
test eax, eax
pop ebx
jne 0x403e25
push dword [ebp + 0xc]
lea eax, [ebp - 0x6ac]
push dword [ebp + 8]
push eax
call fcn.00402930
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret
xor eax, eax
leave
ret
Function at 0x4041ea
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x4042fe
cmp dword [ebp + 0xc], ebx
je 0x4042fe
push str.NtQueryInformationProcess
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 3
je 0x4042fe
xor eax, eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
jle 0x4042fe
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x4042a9
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x4042a9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push 0x18
push eax
push ebx
push edi
call dword [ebp - 0x14]
push edi
mov dword [ebp - 0xc], eax
call esi
cmp dword [ebp - 0xc], ebx
jne 0x4042fe
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4042ae
mov ecx, dword [ebp - 4]
inc dword [ebp - 8]
add dword [ebp - 4], 0x24
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jl 0x40425d
cmp dword [ebp - 0xc], ebx
jne 0x4042fe
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
cmp edi, ebx
je 0x4042f9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push ebx
push eax
push 0x403ef0
push ebx
push ebx
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call esi
push 0x493e0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
push 1
pop eax
jmp 0x404300
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404342
Capabilities:
Check if file exists

Disassembly:
push esi
xor esi, esi
push dword [esp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404355
pop esi
ret
push edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x404386
push str.DllRegisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40437f
call eax
mov esi, eax
neg esi
sbb esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
ret

Function at 0x4045fc
Capabilities:
Create process on windows

Disassembly:
call section..text
cmp eax, 9
jge 0x404609
xor eax, eax
ret
xor eax, eax
push eax
push eax
push eax
push dword [esp + 0x10]
push str.taskbarpin
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
ret
Function at 0x404629
Capabilities:
Create process on windows

Disassembly:
call section..text
cmp eax, 9
jge 0x404636
xor eax, eax
ret
xor eax, eax
push eax
push eax
push eax
push dword [esp + 0x10]
push str.taskbarunpin
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
ret

Function at 0x404756
Capabilities:
Create process on windows

Disassembly:
call section..text
cmp eax, 9
jge 0x404763
xor eax, eax
ret
xor eax, eax
push eax
push eax
push eax
push dword [esp + 0x10]
push str.startpin
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
ret

Function at 0x404783
Capabilities:
Create process on windows

Disassembly:
call section..text
cmp eax, 9
jge 0x404790
xor eax, eax
ret
xor eax, eax
push eax
push eax
push eax
push dword [esp + 0x10]
push str.startunpin
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
ret

Function at 0x4050d9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, eax
je 0x4050f8
cmp dword [ebp + 0xc], eax
je 0x4050f8
jbe 0x4050f8
mov dl, byte [ebp + 0x10]
xor byte [eax + ecx], dl
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x4050ec
pop ebp
ret

Function at 0x4050fa
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
xor edx, edx
cmp dword [ebp + 8], edx
mov dword [ebp - 0xc], edx
je 0x4051f6
cmp dword [ebp + 0xc], edx
je 0x4051f6
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x212]
mov word [ebp - 0x214], dx
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push eax
lea eax, [ebp - 4]
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionApp_Pathshao123JuziBrowser.exe
push eax
push edx
push edi
push SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0x206
call esi
test eax, eax
jne 0x40517a
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4051bd
call section..text
cmp eax, 8
jge 0x4051bd
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0x206
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 4]
push eax
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4051ee
lea eax, [ebp - 0x214]
mov dword [ebp - 0xc], ebx
push eax
mov eax, dword [ebp + 0xc]
dec eax
push 0x4280b8
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
leave
ret
Function at 0x4051fa
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
push edi
xor edi, edi
mov eax, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], str.SOFTWAREHintsoft
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], str.SOFTWARESicent
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], str.SOFTWAREGoyoo
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], str.SOFTWARE_
xor ebx, ebx
lea esi, [ebp - 0x28]
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 1
push edi
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4052bb
inc ebx
add esi, 8
cmp ebx, 4
jb 0x40523d
mov word [ebp - 0x230], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x22e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x230]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x230]
push 0x4296f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4052b3
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4052ac

Function at 0x4052c6
Capabilities:
Get common file path

Disassembly:
mov eax, 0x421548
call fcn.00420e60
sub esp, 0x214
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4053d1
cmp dword [ebp + 0xc], ebx
je 0x4053d1
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
mov word [ebp - 0x220], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x103
lea eax, [ebp - 0x220]
push esi
push eax
mov dword [ebp - 0x14], ebx
call fcn.004050fa
pop ecx
test eax, eax
pop ecx
jne 0x40532f
lea eax, [ebp - 0x220]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp - 0x220]
mov esi, dword [sym.imp.MSVCRT.dll_iswalpha]
call esi
test eax, eax
pop ecx
jne 0x405376
push 0x208
lea eax, [ebp - 0x220]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push dword [ebp - 0x220]
call esi
test eax, eax
pop ecx
je 0x40537f
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x14], eax
mov eax, dword [0x428084]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 4], ebx
push dword [ebp - 0x14]
call fcn.004053e0
pop edi
pop esi
test eax, eax
je 0x4053c1
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
je 0x4053c1
push eax
mov eax, dword [ebp + 0xc]
dec eax
push 0x4280b8
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407765
mov eax, ebx
jmp 0x4053d3
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4058f5
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x42160c
call fcn.00420e60
sub esp, 0x448
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 0x208
mov dword [ebp - 0x14], esi
call ebx
test eax, eax
je 0x40593d
xor eax, eax
jmp 0x405aa8
push edi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push esi
push eax
lea eax, [ebp - 0x454]
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x2c], esi
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x405a9b
cmp dword [ebp - 0x2c], esi
jne 0x405a9b
mov eax, dword [0x428084]
inc dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x454]
mov dword [ebp - 4], esi
push eax
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
lea eax, [ebp - 0x18]
push 0x42986c
push eax
call fcn.004072b0
add esp, 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0x20019
push esi
push dword [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x405a78
mov ecx, 0x82
lea edi, [ebp - 0x246]
mov word [ebp - 0x248], si
mov dword [ebp - 0x3c], 0x208
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push str.NetCfgInstanceId
mov dword [ebp - 0x38], 1
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x405a6f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x248]
push ecx
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x405a6f
push 4
mov dword [ebp - 0x28], esi
pop eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push str.Characteristics
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x405a69
mov eax, dword [ebp - 0x28]
push 1
mov ecx, eax
pop edx
and ecx, edx
cmp ecx, edx
jne 0x405a5c
mov dword [ebp - 0x24], 2
jmp 0x405a6c
and eax, 4
cmp eax, 4
jne 0x405a6c
mov dword [ebp - 0x24], edx
jmp 0x405a6c
push 1
pop edx
mov dword [ebp - 0x2c], edx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00407765
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push esi
push eax
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0x1c]
jmp 0x405954
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x405b6e
Capabilities:
Get disk information

Disassembly:
mov eax, 0x421664
call fcn.00420e60
sub esp, 0x50
mov eax, dword [0x428084]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
movzx edi, word [ebp + 0xc]
push edi
lea eax, [ebp - 0x10]
xor ebx, ebx
push str.._c:
push eax
mov dword [ebp - 4], ebx
call fcn.004072b0
add esp, 0xc
lea eax, [ebp - 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0x20
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push ebx
push dword [ebp - 0x10]
call esi
cmp eax, 1
jne 0x405bf6
mov eax, dword [0x428084]
mov dword [ebp + 0xc], eax
push dword [ebp - 0x14]
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
push str._08X
push eax
call fcn.004072b0
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
call fcn.004070aa
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
jmp 0x405c55
push edi
lea eax, [ebp - 0x10]
push str._c:_
push eax
call fcn.004072b0
add esp, 0xc
lea eax, [ebp - 0x5c]
push 0x20
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push ebx
push dword [ebp - 0x10]
call esi
cmp eax, 1
jne 0x405c6b
mov eax, dword [0x428084]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push str._08X
push eax
call fcn.004072b0
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.004070aa
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00407765
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407765
push 1
pop eax
jmp 0x405c79
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407765
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8