joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d0c2
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x41d0e9
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00410be4
test eax, eax
je 0x41d0e9
call fcn.00410c75
test eax, eax
mov dword [esp + 0xc], eax
jne 0x41d0f0
xor eax, eax
jmp 0x41d1ff
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + 0x34]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebp
push edi
push 0x40
mov ebp, 0x3000
push ebp
push eax
push ecx
call ebx
mov edi, eax
test edi, edi
jne 0x41d128
push 0x40
push ebp
push dword [esp + 0x20]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x41d128
xor eax, eax
jmp 0x41d1fc
push dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.00415409
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp dword [eax + 0xa0], ebx
jbe 0x41d155
cmp dword [eax + 0xa4], ebx
jbe 0x41d155
push edi
mov ecx, esi
call fcn.0041093c
test eax, eax
je 0x41d121
push edi
mov ecx, esi
call fcn.00410a5e
test eax, eax
jne 0x41d170
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41d121
mov eax, dword [esi + 0x14]
mov dword [eax + 0x34], edi
mov eax, dword [esi + 0x14]
test byte [eax + 0x17], 0x20
je 0x41d189
mov eax, dword [eax + 0x28]
add eax, edi
mov dword [esi + 4], eax
jmp 0x41d1c0
mov ebx, dword [esi]
mov ebp, dword [esi + 0xc]
push str.DllMain
mov ecx, esi
mov dword [esi], 0x200
mov dword [esi + 0xc], edi
call fcn.00410872
test eax, eax
mov dword [esi + 4], eax
jne 0x41d1b9
push str._dllMain_12
mov ecx, esi
call fcn.00410872
mov dword [esi + 4], eax
mov dword [esi], ebx
mov dword [esi + 0xc], ebp
xor ebx, ebx
mov eax, dword [esi + 4]
xor ebp, ebp
inc ebp
cmp eax, ebx
je 0x41d1ee
push ebx
push ebp
push edi
call eax
test eax, eax
jne 0x41d1ee
push ebx
push ebx
push edi
call dword [esi + 4]
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 4], ebx
jmp 0x41d121
mov dword [esi + 0xc], edi
mov dword [esi], ebp
mov dword [0x4e2fb0], esi
mov eax, dword [esi + 0xc]
pop edi
pop ebp
pop ebx
pop esi
ret 8
Function at 0x423293
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa4
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push edi
push 0x4ca640
lea ecx, [ebp + 0x64]
sar esi, 0x10
call fcn.004505eb
mov ebx, dword [ebp + 0x74]
push esi
push dword [ebx]
call fcn.00412f88
pop ecx
pop ecx
push 0x20a
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x74], eax
call fcn.004465ac
push dword [ebp + 0x68]
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [ebp + 0x78]
push edi
lea ecx, [ebp - 0x38]
call fcn.00410611
push edi
lea ecx, [ebp - 0x38]
call fcn.00410e13
push dword [ebp + 0x68]
mov eax, dword [edi + 0x14]
push 0x4ca518
mov dword [ebp - 0x24], eax
call fcn.00445c44
movzx eax, si
push eax
lea ecx, [ebp - 0x38]
mov word [ebp - 0xc], si
call fcn.00444f3a
mov ecx, dword [ebp + 0x7c]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x74]
push 0
push ebx
call fcn.00422b50
movzx esi, ax
or esi, dword [ebp + 0x7c]
add esp, 0x14
mov edi, 0x4e3d84
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp + 0xc], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea ecx, [ebp - 0x38]
call fcn.00436e8d
lea ecx, [ebp + 8]
call fcn.0043fe25
lea ecx, [ebp + 0x68]
call fcn.0043fe25
lea ecx, [ebp + 0x64]
call fcn.0043fe25
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x42b135
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x20a
lea ecx, [ebp - 4]
call fcn.004465ac
mov eax, dword [ebp - 4]
mov word [eax], 0x20
mov eax, dword [ebp - 4]
and word [eax + 2], 0
mov eax, dword [ebp - 4]
push 0x208
add eax, 2
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.System32OnShutdown.wcs
lea ecx, [ebp - 4]
call fcn.004465fa
mov bl, byte [ebp + 0xc]
test bl, 0x20
mov esi, str.unknown
je 0x42b190
mov esi, 0x4c7974
test bl, 0x10
je 0x42b19a
mov esi, str.reboot
test bl, 2
je 0x42b1a4
mov esi, str.logout
test bl, 4
je 0x42b1ae
mov esi, str.suspend
test bl, 8
je 0x42b1b8
mov esi, str.hiber
test bl, 0x40
je 0x42b1c2
mov esi, str.poweroff
test bl, bl
jns 0x42b1cb
mov esi, str.lock
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
lea ecx, [ebp - 4]
mov edi, eax
call fcn.004465fa
push 0x4c7598
lea ecx, [ebp - 4]
call fcn.004465fa
cmp dword [ebp + 8], 0
je 0x42b1fd
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.004465fa
push dword [ebp - 4]
mov esi, 0x4e3110
mov ecx, esi
call fcn.004236b4
push str._25INDATA
lea ecx, [ebp - 8]
call fcn.004505eb
mov eax, dword [ebp - 4]
lea eax, [eax + edi*2]
push eax
lea ecx, [ebp - 8]
call fcn.004465fa
test bl, 0x70
je 0x42b237
push dword [ebp - 8]
mov ecx, esi
call fcn.004236b4
lea ecx, [ebp - 8]
call fcn.0043fe25
lea ecx, [ebp - 4]
call fcn.0043fe25
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42d140
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov byte [ebp - 1], bl
jmp 0x42d15b
inc byte [ebp - 1]
inc eax
inc eax
mov dword [ebp + 8], eax
cmp word [eax], 0x2a
je 0x42d153
lea eax, [ebp + 8]
push eax
call fcn.00408f31
mov al, byte [ebp - 1]
mov byte [0x4e300a], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 5]
push eax
lea edi, [ebp - 3]
lea esi, [ebp - 4]
lea eax, [ebp + 8]
mov byte [ebp - 3], 0x2a
mov byte [ebp - 5], bl
mov byte [ebp - 4], 1
mov byte [ebp - 2], bl
call fcn.0041b547
mov eax, dword [ebp + 8]
add esp, 0x10
cmp word [eax], bx
je 0x42d284
mov esi, 0x4e3d84
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebp - 1], bl
je 0x42d1d4
cmp dword [0x4e2fc0], ebx
je 0x42d1d4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x42d2e0
mov eax, dword [ebp + 8]
movsx ecx, byte [ebp - 3]
mov byte [0x4e12d1], 0xff
movzx edx, word [eax]
cmp ecx, edx
mov byte [0x4e2ffd], 1
jne 0x42d1fe
movzx eax, word [eax + 2]
cmp ecx, eax
jne 0x42d1fe
mov byte [0x4e12d1], bl
mov edi, dword [ebp - 0x10]
push 0x4e2c24
push 0x10000
push edi
push 0x428081
push 0x100000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x10], eax
cmp word [edi], bx
jne 0x42d243
cmp byte [0x4e2ffd], bl
je 0x42d25f
call esi
sub eax, dword [ebp - 0x10]
cmp eax, 0x30d40
jae 0x42d25f
push ebx
push 1
push ebx
mov ecx, 0x4e3110
call fcn.0041195d
jmp 0x42d236
cmp byte [ebp - 2], bl
je 0x42d2e0
test byte [ebp - 4], 0x40
je 0x42d2e0
jmp 0x42d27a
push ebx
push ebx
push 1
mov ecx, 0x4e3110
call fcn.0041195d
cmp dword [0x4e2fc0], ebx
jne 0x42d26c
jmp 0x42d2e0
movsx eax, byte [ebp - 2]
push eax
movsx eax, byte [ebp - 5]
push eax
lea esi, [ebp - 0xc]
mov eax, esi
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 0xbb8
call fcn.004134c2
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call edi
cmp byte [ebp - 2], bl
mov dword [ebp - 0x14], eax
je 0x42d2dc
mov esi, 0x4e2fc0
mov dword [ebp - 0x10], 0xfa0
jmp 0x42d2dc
call edi
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jae 0x42d2e0
push ebx
push ebx
push 0xa
mov ecx, 0x4e3110
call fcn.0041195d
cmp dword [esi], ebx
jne 0x42d2c4
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x43ff9c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x43ffc5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x441077
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
push 4
pop edi
push edi
push 0x20019
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00440fbc
mov esi, eax
add esp, 0x14
cmp esi, 5
je 0x4410cd
test esi, esi
jne 0x4410d5
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 5
jne 0x4410d5
test edi, edi
je 0x4410d5
xor edi, edi
jmp 0x441084
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x4410db
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
mov ecx, dword [ebp + 8]
je 0x44110a
push 4
push 0x20006
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ecx
call fcn.00440fbc
mov ecx, dword [ebp - 4]
add esp, 0x14
test eax, eax
jne 0x441134
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 4], 0
mov esi, eax
je 0x441131
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x441136
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
mov ecx, dword [ebp + 8]
je 0x441162
push 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ecx
call fcn.00440fbc
mov ecx, dword [ebp - 4]
add esp, 0x14
test eax, eax
jne 0x441181
push esi
push dword [ebp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp - 4], 0
mov esi, eax
je 0x44117e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x4418ab
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4e3300], 0
push edi
mov edi, ecx
jne 0x441aca
and dword [ebp - 4], 0
push esi
push 4
push 2
push str.SeDebugPrivilege
call fcn.004139d3
lea eax, [ebp - 4]
push eax
push 0x4e32fc
mov esi, str.WS2_32.DLL
push esi
push str.WSAStartup
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e3304
push esi
push str.shutdown
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e3308
push esi
push str.closesocket
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e330c
push esi
push str.connect
call fcn.0044131f
add esp, 0x4c
lea eax, [ebp - 4]
push eax
push 0x4e3310
push esi
push str.send
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e3314
push esi
push str.select
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e3318
push esi
push str.recvfrom
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e331c
push esi
push str.sendto
call fcn.0044131f
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4e3320
push esi
push str.bind
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e3324
push esi
push str.listen
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e3328
push esi
push str.accept
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e3330
push esi
push str.getsockname
call fcn.0044131f
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4e332c
push esi
push str.getpeername
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e3334
push esi
push str.ioctlsocket
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e3338
push esi
push str.setsockopt
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e333c
push esi
push str.ntohl
call fcn.0044131f
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4e3340
push esi
push str.htonl
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e3344
push esi
push str.htons
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e3348
push esi
push str.inet_addr
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e334c
push esi
push str.gethostbyname
call fcn.0044131f
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4e3350
push esi
push str.inet_ntoa
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e3354
push esi
push str.WSAGetLastError
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e3358
push esi
push str.__WSAFDIsSet
call fcn.0044131f
lea eax, [ebp - 4]
push eax
push 0x4e3300
push esi
push str.socket
call fcn.0044131f
add esp, 0x40
pop esi
mov eax, edi
pop edi
leave
ret
Function at 0x442c10
Capabilities:
Check for time delay via gettickcount
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor eax, eax
mov byte [ebp - 0x24], 0
and dword [ebp - 8], 0
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], 0xc
call fcn.00442bf1
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
call edi
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], eax
je 0x442c8c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
jmp 0x442c80
test ebx, ebx
jle 0x442c8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x442c8a
call edi
sub eax, dword [ebp - 4]
cmp ebx, eax
jbe 0x442c8a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x442c60
pop esi
pop ebx
push 0
push 0x80
push 3
lea eax, [ebp - 0x10]
push eax
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop edi
leave
ret

Function at 0x442d0c
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 0x442da6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4e3440]
mov edx, dword [0x4e3444]
mov ecx, eax
or ecx, edx
jne 0x442ec4
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0x12c]
push edi
push eax
call fcn.004b4520
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x128]
mov ecx, 0x50000
cmp ecx, eax
sbb cl, cl
inc cl
mov byte [0x4e1355], cl
xor ecx, ecx
shld ecx, eax, 0x10
shl eax, 0x10
mov esi, eax
movzx eax, word [ebp - 0x124]
cdq
or esi, eax
movzx eax, word [ebp - 0x120]
or ecx, edx
shld ecx, esi, 0x10
cdq
shl esi, 0x10
or ecx, edx
or esi, eax
cmp ecx, 6
mov dword [0x4e3440], esi
mov dword [0x4e3444], ecx
jb 0x442ebe
ja 0x442e4d
cmp esi, 0x20000
jb 0x442ebe
lea eax, [ebp - 0x10]
push eax
push 0x4e3434
push str.NTDLL.DLL
push str.RtlGetNtVersionNumbers
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.0044131f
mov eax, dword [0x4e3434]
add esp, 0x10
cmp eax, edi
je 0x442e8b
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
call eax
mov eax, dword [ebp - 8]
xor ecx, ecx
shld ecx, eax, 0x10
shl eax, 0x10
mov esi, eax
movzx eax, word [ebp - 0xc]
cdq
or esi, eax
movzx eax, word [ebp - 4]
or ecx, edx
shld ecx, esi, 0x10
cdq
shl esi, 0x10
or esi, eax
or ecx, edx
mov dword [0x4e3440], esi
mov dword [0x4e3444], ecx
pop edi
mov eax, esi
mov edx, ecx
pop esi
leave
ret
Function at 0x443295
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 0x4432a9
lea ebx, [ebp + 0x10]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jl 0x4432ec
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 0x4432e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x4432ec
cmp dword [ebp + 0x10], edi
jne 0x4432ec
dec dword [esi + 0x14]
jns 0x4432b1
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jge 0x44330c
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 0x443310
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x44377a
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 0x443a3f
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 0x443a9e
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x443abb
mov eax, dword [esi + 0x14]
mul dword [esi + 0x10]
push edi
push dword [esi + 0xc]
push edx
push eax
call fcn.004b4630
push dword [esi + 4]
push dword [esi]
push edx
push eax
call fcn.004b4630
pop edi
pop ebx
leave
ret
Function at 0x443c2d
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push 0xc0
push ebx
push esi
mov dword [eax], ebx
mov edi, esi
call fcn.004b4520
add esp, 0xc
push ebx
lea eax, [ebp + 0xc]
push eax
push 0x100000
push esi
push ebx
push ebx
push 0x70050
push dword [ebp + 8]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x443d1f
push ebx
lea eax, [ebp + 0xc]
push eax
push 0xfff70
push esi
push ebx
push ebx
push 0x7400c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x443d29
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
lea edx, [eax - 1]
cmp edx, ebx
mov dword [ecx], eax
lea edi, [esi + 0x90]
jl 0x443d0d
lea eax, [edx + edx*8]
mov ecx, edx
shl eax, 4
shl ecx, 5
inc edx
lea eax, [eax + edi + 0x40]
lea ecx, [ecx + esi + 0x10]
mov dword [ebp - 4], edx
mov edx, dword [ecx - 8]
mov dword [eax - 8], edx
mov edx, dword [ecx - 4]
mov dword [eax - 4], edx
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 8], edx
mov dl, byte [ecx + 0x13]
mov byte [eax + 0xc], dl
mov dword [eax - 0x10], ebx
mov dl, byte [ecx + 0x11]
mov byte [eax + 0x11], dl
mov edx, dword [ecx + 8]
mov dword [eax + 0x14], edx
mov dl, byte [ecx + 0x10]
mov byte [eax + 0x10], dl
mov dl, byte [ecx + 0x12]
mov byte [eax + 0x12], dl
sub ecx, 0x20
sub eax, 0x90
dec dword [ebp - 4]
jne 0x443cc3
mov eax, dword [esi + 4]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [edi], ebx
mov eax, dword [eax]
mov dword [edi + 4], eax
jmp 0x443d27
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x444193
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 0x4441da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 4], edi
je 0x4441dd
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 0x44420a
xor eax, eax
jmp 0x444292
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.004b6a75
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 0x444289
cmp dword [ebp - 4], esi
jne 0x444287
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 0x44434d
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4443aa
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.00414839
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 0x4443ab
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 2
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
jle 0x4443d2
push dword [ebp + 0x10]
push edi
push esi
call fcn.00402d7a
add esp, 0xc
test al, al
je 0x4443d2
mov eax, dword [ebp + 0x10]
jmp 0x4443f1
mov ax, word [esi]
cmp ax, word [edi]
jne 0x4443ef
mov ax, word [edi + 2]
cmp word [esi + 2], ax
jne 0x4443ef
cmp ax, 0x3a
jne 0x4443ef
push 2
pop eax
jmp 0x4443f1
xor eax, eax
push 0
lea eax, [esi + eax*2]
push eax
push edi
call fcn.00444297
add esp, 0xc
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
pop ebp
ret