joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431e56
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4ad0b8], 0
push edi
mov edi, ecx
jne 0x432085
and dword [ebp - 4], 0
test byte [0x4ada94], 4
jne 0x431e8c
or byte [0x4ada94], 8
push 2
push str.SeDebugPrivilege
call fcn.0040f24d
pop ecx
pop ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x4ad0b4
mov esi, str.WS2_32.DLL
push esi
push str.WSAStartup
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0bc
push esi
push str.shutdown
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0c0
push esi
push str.closesocket
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0c4
push esi
push str.connect
call fcn.00431911
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4ad0c8
push esi
push str.send
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0cc
push esi
push str.select
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0d0
push esi
push str.recvfrom
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0d4
push esi
push str.sendto
call fcn.00431911
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4ad0d8
push esi
push str.bind
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0dc
push esi
push str.listen
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0e0
push esi
push str.accept
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0e8
push esi
push str.getsockname
call fcn.00431911
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4ad0e4
push esi
push str.getpeername
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0ec
push esi
push str.ioctlsocket
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0f0
push esi
push str.setsockopt
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0f4
push esi
push str.ntohl
call fcn.00431911
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4ad0f8
push esi
push str.htonl
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0fc
push esi
push str.htons
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad100
push esi
push str.inet_addr
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad104
push esi
push str.gethostbyname
call fcn.00431911
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4ad108
push esi
push str.inet_ntoa
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad10c
push esi
push str.WSAGetLastError
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad110
push esi
push str.__WSAFDIsSet
call fcn.00431911
lea eax, [ebp - 4]
push eax
push 0x4ad0b8
push esi
push str.socket
call fcn.00431911
add esp, 0x40
pop esi
mov eax, edi
pop edi
leave
ret

Function at 0x433072
Capabilities:
Find taskbar

Disassembly:
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.TrayNotifyWnd
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExA]
ret
Function at 0x433417
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov esi, ecx
jne 0x43342b
lea ebx, [ebp + 0x10]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jl 0x43346e
mov eax, dword [esi + 4]
push edi
lea ecx, [ebp + 0x10]
push ecx
push 0x1000
push eax
push dword [esi]
mov dword [esi + 8], edi
mov dword [ebp + 0x10], edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, edi
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0xc], ecx
jne 0x433464
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x43346e
cmp dword [ebp + 0x10], edi
jne 0x43346e
dec dword [esi + 0x14]
jns 0x433433
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jge 0x43348e
lea ecx, [eax + 1]
mov dword [esi + 8], ecx
mov ecx, dword [esi + 4]
mov al, byte [eax + ecx]
mov ecx, dword [ebp + 8]
mov byte [ecx], al
xor eax, eax
inc eax
mov dword [ebx], eax
jmp 0x433492
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4339a6
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x108
push esi
push edi
mov ax, word [ebp + 0x7c]
push 0x20
pop ecx
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerMountPoints_
lea edi, [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x21
pop ecx
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerMountPoints2_
lea edi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov word [ebp + 0x6e], ax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x10]
push eax
mov edi, 0x80000001
push edi
call esi
lea eax, [ebp - 0x94]
push eax
push edi
call esi
pop edi
pop esi
add ebp, 0x74
leave
ret

Function at 0x433c53
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x7405c
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call ebx
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x18
push esi
push edi
push edi
push 0x70000
push dword [ebp + 8]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call ebx
cmp dword [ebp - 8], edi
je 0x433cb2
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x433ccf
mov eax, dword [esi + 0x14]
mul dword [esi + 0x10]
push edi
push dword [esi + 0xc]
push edx
push eax
call fcn.0047fe80
push dword [esi + 4]
push dword [esi]
push edx
push eax
call fcn.0047fe80
pop edi
pop ebx
leave
ret
Function at 0x433ed8
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push 0xc0
push esi
push ebx
mov dword [edi], esi
call fcn.0047fd70
add esp, 0xc
push esi
lea eax, [ebp + 0x10]
push eax
push 0x100000
push ebx
push esi
push esi
push 0x70050
push dword [ebp + 8]
mov dword [ebp + 0x10], esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x433f20
mov eax, dword [ebx + 4]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x43428a
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x318], esi
mov ecx, 0xc3
lea edi, [ebp - 0x314]
rep stosd dword es:[edi], eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
xor edi, edi
inc edi
test eax, eax
jne 0x4342d1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 4], edi
je 0x4342d4
mov dword [ebp - 4], esi
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push esi
push 0x2200000
push 3
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x434301
xor eax, eax
jmp 0x434389
push dword [ebp + 0xc]
mov dword [ebp - 0x318], 0xa0000003
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push dword [ebp + 0xc]
shl eax, 1
mov word [ebp - 0x30e], ax
mov eax, dword [ebp - 0x30e]
add eax, 2
mov word [ebp - 0x30c], ax
lea eax, [ebp - 0x308]
push eax
call fcn.00482615
movzx eax, word [ebp - 0x30e]
pop ecx
pop ecx
push esi
lea ecx, [ebp - 8]
push ecx
push esi
add eax, 0xc
push esi
mov dword [ebp - 0x314], eax
add eax, 8
push eax
lea eax, [ebp - 0x318]
push eax
push 0x900a4
push ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x434380
cmp dword [ebp - 4], esi
jne 0x43437e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4343b7
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x434414
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea esi, [eax + eax + 2]
push esi
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push esi
push dword [esp + 0x10]
push eax
call fcn.004102e0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
ret
Function at 0x43444a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_VirtualProtect]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x40
mov esi, ecx
push 0xc
push dword [esi]
lea edi, [esi + 4]
call ebx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x12
push edi
call ebx
push 0x12
push 0x499bfc
push edi
call fcn.004102e0
mov ecx, dword [ebp + 8]
lea eax, [edi + 0xe]
sub ecx, eax
sub ecx, 4
mov dword [eax], ecx
mov esi, dword [esi + 0x18]
add esp, 0xc
test esi, esi
je 0x4344ae
push edi
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4344ae
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4349af
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
mov dword [ebp + 0x14], 0x80
jbe 0x434a3e
push ebx
mov ebx, 0x200
push dword [ebp + 0x18]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x434a08
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4349fe
cmp dword [ebp + 0x14], eax
jg 0x4349fb
mov eax, edi
jmp 0x4349fe
dec dword [ebp + 0x14]
add dword [esi], eax
add dword [ebp + 0xc], eax
sub dword [ebp + 0x10], eax
jmp 0x434a37
and dword [ebp + 0x14], 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x70
jne 0x434a3d
cmp edi, ebx
jbe 0x434a3d
cmp dword [ebp + 0x10], ebx
jbe 0x434a34
add edi, 0x1ff
shr edi, 1
cmp edi, ebx
jbe 0x434a37
and edi, 0xfffffe00
jmp 0x434a37
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
ja 0x4349cf
pop ebx
xor eax, eax
cmp eax, dword [esi]
pop edi
sbb eax, eax
neg eax
pop esi
leave
ret

Function at 0x434ab9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and dword [0x4ad268], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test byte [ebp - 0xef], 0x80
je 0x434ae6
or dword [0x4ad268], 2
test byte [ebp - 0xf0], 0x80
je 0x434af6
or dword [0x4ad268], 4
test byte [ebp - 0xee], 0x80
je 0x434b06
or dword [0x4ad268], 1
test byte [ebp - 0xa5], 0x80
je 0x434b16
or dword [0x4ad268], 8
test byte [ebp - 0xa4], 0x80
je 0x434b26
or dword [0x4ad268], 8
leave
ret
Function at 0x43541b
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x435453
cmp dword [ebp + 0xc], 2
jb 0x435468
cmp dword [ebp + 0xc], 3
jbe 0x43544c
cmp dword [ebp + 0xc], 5
jne 0x435468
mov dword [ebp - 4], 0x4958f8
jmp 0x435453
mov dword [ebp - 4], 0x495908
push 0x12
push esi
push esi
push dword [ebp - 4]
call dword [0x4acdc0]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x43546f
xor eax, eax
jmp 0x4355b4
push ebx
push edi
push 0x1c
pop ecx
xor eax, eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], esi
lea edi, [ebp - 0x28]
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
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
lea eax, [ebp - 0x30]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0x58], ecx
call edi
test eax, eax
je 0x435590
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push esi
push dword [ebp + 0x10]
call edi
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
call ebx
cmp dword [ebp - 8], esi
je 0x435575
cmp dword [ebp - 8], 0x400
ja 0x435575
push 0x1c
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x474], 6
call fcn.0047fd70
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x74], 0x1c
call ebx
test eax, eax
je 0x435575
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x435575
push esi
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x3c]
push ecx
push esi
push esi
push 0x2d1080
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x43556c
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x38]
je 0x43559d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc dword [ebp - 0xc]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push esi
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x4354af
push dword [ebp + 0x10]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
jmp 0x4355b2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x60]
pop edi
pop ebx
pop esi
leave
ret

Function at 0x435799
Capabilities:
Set environment variable

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, dword [esp + 0xc]
push esi
call fcn.00435749
push dword [esp + 0xc]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
pop esi
ret 8
Function at 0x4357ba
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4357dc
xor eax, eax
jmp 0x4358a7
mov eax, dword [esi]
push edi
mov edi, dword [esi + 8]
push ebx
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov esi, dword [esi + 0xc]
push ebx
push str.DISPLAY
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push eax
mov dword [ebp - 4], eax
call ebx
push 0xa
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call ebx
xor ecx, ecx
cmp dword [ebp - 0xc], ecx
jge 0x43581e
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], ecx
jge 0x435826
mov dword [ebp - 8], ecx
cmp edi, dword [ebp - 0x10]
jle 0x43582e
mov edi, dword [ebp - 0x10]
cmp esi, eax
jle 0x435834
mov esi, eax
sub edi, dword [ebp - 0xc]
sub esi, dword [ebp - 8]
cmp edi, ecx
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], esi
jle 0x43589e
cmp esi, ecx
jle 0x43589e
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push dword [ebp - 0x10]
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
push 0xcc0020
push dword [ebp - 8]
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x14]
push edi
call esi
push edi
mov dword [ebp - 0x14], eax
call ebx
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43649f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0x7a
push edi
jbe 0x43655d
cmp word [esi + 2], 0x3a
jne 0x43655d
cmp word [esi + 4], 0
jne 0x43655d
mov eax, dword [ebp + 0x14]
and word [ebp - 0x20c], 0
test eax, eax
je 0x4364df
and dword [eax], 0
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov ax, word [esi]
cmp ax, word [ebp - 0x20c]
jne 0x436536
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
inc edi
cmp edi, 4
jbe 0x436536
cmp dword [ebp + 0xc], edi
jae 0x43651b
mov eax, edi
jmp 0x43656d
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
call fcn.004102e0
add esp, 0xc
lea eax, [edi - 1]
jmp 0x43656d
push 4
pop eax
cmp dword [ebp + 0xc], eax
jb 0x43656d
mov eax, dword [ebp + 0x10]
mov cx, word [esi]
and word [eax + 6], 0
push 3
mov word [eax], cx
mov word [eax + 2], 0x3a
mov word [eax + 4], 0x5c
pop eax
jmp 0x43656d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
pop edi
pop esi
leave
ret
Function at 0x437981
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push 0x2001b
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call fcn.004316e0
add esp, 0x10
cmp eax, esi
jne 0x437acd
test byte [ebp + 0x10], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
je 0x4379cc
push 0x4949a4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jae 0x4379fa
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00435d80
cmp dword [ebp - 0xc], esi
jne 0x437ab9
test byte [ebp + 0x10], 4
push ebx
push edi
mov edi, dword [ebp - 0x1c]
je 0x437a69
mov ebx, dword [ebp - 0x14]
dec ebx
cmp ebx, esi
jl 0x437a69
mov eax, dword [ebp - 8]
push esi
push esi
push esi
lea eax, [eax*4 + 1]
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
mov word [edi], si
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x437a63
cmp word [edi], si
je 0x437a66
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x437a66
mov dword [ebp - 0xc], eax
dec ebx
jns 0x437a29
test byte [ebp + 0x10], 2
je 0x437ab7
mov ebx, dword [ebp - 0x18]
dec ebx
cmp ebx, esi
jl 0x437ab7
mov eax, dword [ebp - 8]
push esi
push esi
push esi
lea eax, [eax*4 + 1]
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
mov word [edi], si
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jne 0x437ab1
cmp word [edi], si
je 0x437ab4
push edi
push dword [ebp - 4]
call dword [0x4ad05c]
cmp eax, esi
je 0x437ab4
mov dword [ebp - 0xc], eax
dec ebx
jns 0x437a77
pop edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.0043092f
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
Function at 0x439eeb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 8], 0xffffffff
push ebx
push esi
push edi
lea eax, [ebp + 8]
push eax
movzx eax, word [0x4acb6c]
or eax, 0x20019
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x439f90
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
push 0xffe
mov ecx, edi
mov dword [esi], 0xffa
call fcn.00435c7d
mov eax, dword [edi]
push esi
mov byte [eax], bl
push dword [edi]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call ebx
cmp eax, 0xea
mov dword [ebp - 4], eax
jne 0x439f7b
add dword [esi], 0xa
mov eax, dword [esi]
add eax, 4
push eax
mov ecx, edi
call fcn.00435c7d
push esi
push dword [edi]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call ebx
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebx, 0xffffffff
cmp dword [ebp - 4], 0
je 0x439f9e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x439f99
mov dword [ecx], eax
lea eax, [ebx - 1]
jmp 0x439fc9
xor ecx, ecx
cmp dword [esi], ecx
jge 0x439fa6
mov dword [esi], ecx
mov eax, dword [edi]
mov edx, dword [esi]
mov byte [eax + edx], 0
mov eax, dword [edi]
add eax, dword [esi]
mov word [eax + 2], cx
mov word [eax], cx
mov eax, dword [esi]
add eax, 5
push eax
mov ecx, edi
call fcn.00435c7d
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43a153
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push edi
jne 0x43a185
mov ax, word [esi]
mov word [ebp - 0xc], ax
mov ax, word [esi + 2]
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x5c
mov word [ebp - 6], bx
mov dword [ebp + 0x10], eax
push 0x209
lea ecx, [ebp - 4]
call fcn.00435d80
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 8
push edi
push str.Device_
mov word [eax], bx
call fcn.004318b1
add esp, 0xc
test al, al
jne 0x43a1de
push 0xc
push edi
push str.DosDevices_
call fcn.004318b1
add esp, 0xc
test al, al
jne 0x43a1de
cmp word [edi], bx
je 0x43a1e2
cmp word [edi + 2], bx
je 0x43a1e2
push 0x3a
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x43a1e2
or dword [ebp + 0x14], 1
push 0xb
push edi
push 0x49b1d0
call fcn.004318b1
mov ebx, dword [sym.imp.KERNEL32.DLL_DefineDosDeviceW]
add esp, 0xc
test al, al
je 0x43a206
and dword [ebp + 0x14], 0xfffffffe
cmp byte [ebp + 0x18], 0
jne 0x43a22d
cmp byte [ebp + 0x18], 0
je 0x43a218
xor eax, eax
mov ax, word [esi]
push eax
call fcn.004339a6
pop ecx
push edi
push esi
push dword [ebp + 0x14]
call ebx
mov esi, eax
test esi, esi
jne 0x43a23e
cmp byte [ebp + 0x18], al
jl 0x43a28a
mov byte [ebp + 0x18], al
push 0x208
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
jmp 0x43a266
cmp byte [ebp + 0x18], 0
jle 0x43a28a
push 0x208
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x43a28a
mov eax, dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
or eax, 0xe
push eax
call ebx
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SetVolumeMountPointW]
cmp byte [ebp + 0x18], 0
mov esi, eax
jl 0x43a28a
test esi, esi
jne 0x43a28a
mov esi, dword [ebp + 0xc]
mov byte [ebp + 0x18], 0xff
jmp 0x43a206
lea ecx, [ebp - 4]
call fcn.0043092f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x43a299
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push esi
xor esi, esi
push esi
push 0x20000000
push 3
push esi
push 3
push 0x100080
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.004045f9
cmp dword [ebp - 4], esi
jne 0x43a2cd
or esi, 0xffffffff
jmp 0x43a308
or dword [ebp - 0xc], 0xffffffff
push esi
lea eax, [ebp - 0x1a0]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x2d1080
push dword [ebp - 4]
mov dword [ebp - 0x1a0], esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x43a2c8
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x43a305
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00402b27
mov eax, esi
pop esi
leave
ret