joyce8/EMBER2024-capa huggingface dataset:
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 0x4260b8
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 0x4260b8
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 0x4262f8
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 0x403747
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 0x4037f5
push 3
cdq
pop ebx
idiv ebx
test edx, edx
jne 0x403797
mov eax, dword [ebp - 4]
movzx edx, byte [eax + edi]
shr edx, 2
jmp 0x4037e0
cmp edx, 1
jne 0x4037b9
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 0x4037e6
mov eax, dword [ebp - 4]
cmp edx, 2
jne 0x4037ea
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 0x403781
cmp dword [ebp - 8], 1
jne 0x403815
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 0x40382c
cmp dword [ebp - 8], 2
jne 0x403832
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 0x40383d
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 0x403971
cmp dword [ebp + 0xc], eax
je 0x403971
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 0x4038f1
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 0x40390b
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 0x40390b
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 0x40396c
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 0x403d31
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 0x403e45
cmp dword [ebp + 0xc], ebx
je 0x403e45
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 0x403e45
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 0x403e45
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x403df0
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x403df0
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 0x403e45
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x403df5
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 0x403da4
cmp dword [ebp - 0xc], ebx
jne 0x403e45
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
cmp edi, ebx
je 0x403e40
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 0x403a37
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 0x403e47
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403efb
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 0x403f0e
pop esi
ret
push edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x403f3f
push str.DllRegisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403f38
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 0x4041b5
Capabilities:
Check if file exists
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
mov dword [ebp - 4], esi
je 0x40427a
cmp word [ebx], si
je 0x40427a
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
call fcn.00403e89
test eax, eax
pop ecx
je 0x404275
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], si
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push str.System32Drivers
push eax
call esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop edi
je 0x40426b
lea eax, [ebp - 0x20c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
push eax
call fcn.00403ec2
pop ecx
mov eax, dword [ebp - 4]
jmp 0x40427c
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x404aa9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
je 0x404b32
cmp dword [ebp + 0xc], esi
je 0x404b32
mov edx, 0xff
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x3fc]
mov dword [ebp - 0x400], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x400]
push 8
mov ecx, esi
pop edi
test cl, 1
je 0x404af4
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x404af6
shr ecx, 1
dec edi
jne 0x404ae5
mov dword [eax], ecx
inc esi
add eax, 4
cmp esi, 0x100
jb 0x404ae0
xor ecx, ecx
or eax, 0xffffffff
cmp dword [ebp + 0xc], ecx
jbe 0x404b2d
movzx esi, byte [ecx + ebx]
mov edi, eax
and edi, edx
xor esi, edi
shr eax, 8
mov esi, dword [ebp + esi*4 - 0x400]
xor eax, esi
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x404b11
not eax
pop edi
jmp 0x404b34
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x404b38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, eax
je 0x404b57
cmp dword [ebp + 0xc], eax
je 0x404b57
jbe 0x404b57
mov dl, byte [ebp + 0x10]
xor byte [eax + ecx], dl
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x404b4b
pop ebp
ret
Function at 0x404b59
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 0x404c55
cmp dword [ebp + 0xc], edx
je 0x404c55
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 0x404bd9
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404c1c
call section..text
cmp eax, 8
jge 0x404c1c
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 0x404c4d
lea eax, [ebp - 0x214]
mov dword [ebp - 0xc], ebx
push eax
mov eax, dword [ebp + 0xc]
dec eax
push 0x4260b8
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 0x404c59
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 0x404d1a
inc ebx
add esi, 8
cmp ebx, 4
jb 0x404c9c
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 0x427704
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 0x404d12
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 0x404d0b
Function at 0x404d25
Capabilities:
Get common file path

Disassembly:
mov eax, 0x420124
call fcn.0041fac0
sub esp, 0x214
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x404e30
cmp dword [ebp + 0xc], ebx
je 0x404e30
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.00404b59
pop ecx
test eax, eax
pop ecx
jne 0x404d8e
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 0x404dd5
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 0x404dde
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x14], eax
mov eax, dword [0x426084]
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.00404e3f
pop edi
pop esi
test eax, eax
je 0x404e20
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
je 0x404e20
push eax
mov eax, dword [ebp + 0xc]
dec eax
push 0x4260b8
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.004070f4
mov eax, ebx
jmp 0x404e32
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405354
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x4201e8
call fcn.0041fac0
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 0x40539c
xor eax, eax
jmp 0x405507
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 0x4054fa
cmp dword [ebp - 0x2c], esi
jne 0x4054fa
mov eax, dword [0x426084]
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 0x427880
push eax
call fcn.00406c3f
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 0x4054d7
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 0x4054ce
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 0x4054ce
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 0x4054c8
mov eax, dword [ebp - 0x28]
push 1
mov ecx, eax
pop edx
and ecx, edx
cmp ecx, edx
jne 0x4054bb
mov dword [ebp - 0x24], 2
jmp 0x4054cb
and eax, 4
cmp eax, 4
jne 0x4054cb
mov dword [ebp - 0x24], edx
jmp 0x4054cb
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.004070f4
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 0x4053b3
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 0x4055cd
Capabilities:
Get disk information

Disassembly:
mov eax, 0x420240
call fcn.0041fac0
sub esp, 0x50
mov eax, dword [0x426084]
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.00406c3f
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 0x405655
mov eax, dword [0x426084]
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.00406c3f
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
call fcn.00406a39
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
jmp 0x4056b4
push edi
lea eax, [ebp - 0x10]
push str._c:_
push eax
call fcn.00406c3f
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 0x4056ca
mov eax, dword [0x426084]
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.00406c3f
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.00406a39
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.004070f4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004070f4
push 1
pop eax
jmp 0x4056d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004070f4
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8