joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42dfcb
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 0x42dfe6
inc byte [ebp - 1]
inc eax
inc eax
mov dword [ebp + 8], eax
cmp word [eax], 0x2a
je 0x42dfde
lea eax, [ebp + 8]
push eax
call fcn.00405444
mov al, byte [ebp - 1]
mov byte [0x4c8f46], 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.0041c162
mov eax, dword [ebp + 8]
add esp, 0x10
cmp word [eax], bx
je 0x42e10f
mov esi, 0x4c9c14
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp byte [ebp - 1], bl
je 0x42e05f
cmp dword [0x4c8efc], ebx
je 0x42e05f
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
jmp 0x42e16b
mov eax, dword [ebp + 8]
movsx ecx, byte [ebp - 3]
mov byte [0x4c72a1], 0xff
movzx edx, word [eax]
cmp ecx, edx
mov byte [0x4c8f39], 1
jne 0x42e089
movzx eax, word [eax + 2]
cmp ecx, eax
jne 0x42e089
mov byte [0x4c72a1], bl
mov edi, dword [ebp - 0x10]
push 0x4c8bd0
push 0x10000
push edi
push 0x42ba29
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 0x42e0ce
cmp byte [0x4c8f39], bl
je 0x42e0ea
call esi
sub eax, dword [ebp - 0x10]
cmp eax, 0x7d0
jae 0x42e0ea
push ebx
push ebx
push 0x14
mov ecx, 0x4c9048
call fcn.00414c28
jmp 0x42e0c1
cmp byte [ebp - 2], bl
je 0x42e16b
test byte [ebp - 4], 0x40
je 0x42e16b
jmp 0x42e105
push ebx
push ebx
push 1
mov ecx, 0x4c9048
call fcn.00414c28
cmp dword [0x4c8efc], ebx
jne 0x42e0f7
jmp 0x42e16b
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.00411df0
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
add esp, 0xc
call edi
cmp byte [ebp - 2], bl
mov dword [ebp - 0x14], eax
je 0x42e167
mov esi, 0x4c8efc
mov dword [ebp - 0x10], 0xfa0
jmp 0x42e167
call edi
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jae 0x42e16b
push ebx
push ebx
push 0xa
mov ecx, 0x4c9048
call fcn.00414c28
cmp dword [esi], ebx
jne 0x42e14f
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x4306a0
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 0x4b2554
lea ecx, [ebp + 0x64]
sar esi, 0x10
call fcn.00448399
mov ebx, dword [ebp + 0x74]
push esi
push dword [ebx]
call fcn.004118b6
pop ecx
pop ecx
push 0x20a
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x74], eax
call fcn.0043fdb8
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.0040f413
push edi
lea ecx, [ebp - 0x38]
call fcn.0040fc00
push dword [ebp + 0x68]
mov eax, dword [edi + 0x14]
push 0x4b242c
mov dword [ebp - 0x24], eax
call fcn.0043f62b
movzx eax, si
push eax
lea ecx, [ebp - 0x38]
mov word [ebp - 0xc], si
call fcn.0043e808
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.00423c50
movzx esi, ax
or esi, dword [ebp + 0x7c]
add esp, 0x14
mov edi, 0x4c9c14
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.00430616
lea ecx, [ebp + 8]
call fcn.00439cfd
lea ecx, [ebp + 0x68]
call fcn.00439cfd
lea ecx, [ebp + 0x64]
call fcn.00439cfd
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x439dc6
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 0x439def
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x43ad75
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.0043ad24
mov esi, eax
add esp, 0x14
cmp esi, 5
je 0x43adcb
test esi, esi
jne 0x43add3
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 0x43add3
test edi, edi
je 0x43add3
xor edi, edi
jmp 0x43ad82
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x43add9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 4
push 0x20006
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043ad24
add esp, 0x14
test eax, eax
jne 0x43ae23
push esi
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_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x43ae25
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043ad24
add esp, 0x14
test eax, eax
jne 0x43ae62
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x43b515
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4c920c], 0
push edi
mov edi, ecx
jne 0x43b734
and dword [ebp - 4], 0
push esi
push 4
push 2
push str.SeDebugPrivilege
call fcn.00412301
lea eax, [ebp - 4]
push eax
push 0x4c9208
mov esi, str.WS2_32.DLL
push esi
push str.WSAStartup
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c9210
push esi
push str.shutdown
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c9214
push esi
push str.closesocket
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c9218
push esi
push str.connect
call fcn.0043afc7
add esp, 0x4c
lea eax, [ebp - 4]
push eax
push 0x4c921c
push esi
push str.send
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c9220
push esi
push str.select
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c9224
push esi
push str.recvfrom
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c9228
push esi
push str.sendto
call fcn.0043afc7
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4c922c
push esi
push str.bind
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c9230
push esi
push str.listen
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c9234
push esi
push str.accept
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c923c
push esi
push str.getsockname
call fcn.0043afc7
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4c9238
push esi
push str.getpeername
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c9240
push esi
push str.ioctlsocket
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c9244
push esi
push str.setsockopt
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c9248
push esi
push str.ntohl
call fcn.0043afc7
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4c924c
push esi
push str.htonl
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c9250
push esi
push str.htons
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c9254
push esi
push str.inet_addr
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c9258
push esi
push str.gethostbyname
call fcn.0043afc7
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4c925c
push esi
push str.inet_ntoa
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c9260
push esi
push str.WSAGetLastError
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c9264
push esi
push str.__WSAFDIsSet
call fcn.0043afc7
lea eax, [ebp - 4]
push eax
push 0x4c920c
push esi
push str.socket
call fcn.0043afc7
add esp, 0x40
pop esi
mov eax, edi
pop edi
leave
ret
Function at 0x43c6c0
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.0043c6a1
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
pop ecx
call edi
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], eax
je 0x43c73c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_WaitNamedPipeW]
jmp 0x43c730
test ebx, ebx
jle 0x43c73a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x43c73a
call edi
sub eax, dword [ebp - 4]
cmp ebx, eax
jbe 0x43c73a
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x43c710
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 0x43c75c
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 0x43c7f6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4c9c40]
mov edx, dword [0x4c9c44]
mov ecx, eax
or ecx, edx
jne 0x43c8fc
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0x12c]
push edi
push eax
call fcn.0049a7e0
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]
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 [0x4c9c40], esi
mov dword [0x4c9c44], ecx
jb 0x43c8f6
ja 0x43c88c
cmp esi, 0x20000
jb 0x43c8f6
lea eax, [ebp - 0x10]
push eax
push 0x4c9344
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.0043afc7
mov eax, dword [0x4c9344]
add esp, 0x10
cmp eax, edi
je 0x43c8ca
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
call eax
movzx ecx, word [ebp - 0xc]
mov eax, dword [ebp - 8]
shl eax, 0x10
or eax, ecx
mov esi, eax
movzx eax, word [ebp - 4]
xor ecx, ecx
shld ecx, esi, 0x10
cdq
shl esi, 0x10
or esi, eax
or ecx, edx
mov dword [0x4c9c40], esi
mov dword [0x4c9c44], ecx
pop edi
mov eax, esi
mov edx, ecx
pop esi
leave
ret
Function at 0x43ccab
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 0x43ccbf
lea ebx, [ebp + 0x10]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jl 0x43cd02
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 0x43ccf8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x43cd02
cmp dword [ebp + 0x10], edi
jne 0x43cd02
dec dword [esi + 0x14]
jns 0x43ccc7
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jge 0x43cd22
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 0x43cd26
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x43d3e8
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 0x43d6a4
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 0x43d703
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x43d720
mov eax, dword [esi + 0x14]
mul dword [esi + 0x10]
push edi
push dword [esi + 0xc]
push edx
push eax
call fcn.0049a8f0
push dword [esi + 4]
push dword [esi]
push edx
push eax
call fcn.0049a8f0
pop edi
pop ebx
leave
ret
Function at 0x43d8f8
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.0049a7e0
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 0x43d940
mov eax, dword [ebx + 4]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x43dcc1
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 0x43dd08
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 4], edi
je 0x43dd0b
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 0x43dd38
xor eax, eax
jmp 0x43ddc0
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.0049cd25
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 0x43ddb7
cmp dword [ebp - 4], esi
jne 0x43ddb5
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 0x43de20
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43de7d
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.00413203
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 0x43de7e
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 0x43dea5
push dword [ebp + 0x10]
push edi
push esi
call fcn.0040e912
add esp, 0xc
test al, al
je 0x43dea5
mov eax, dword [ebp + 0x10]
jmp 0x43dec4
mov ax, word [esi]
cmp ax, word [edi]
jne 0x43dec2
mov ax, word [edi + 2]
cmp word [esi + 2], ax
jne 0x43dec2
cmp ax, 0x3a
jne 0x43dec2
push 2
pop eax
jmp 0x43dec4
xor eax, eax
push 0
lea eax, [esi + eax*2]
push eax
push edi
call fcn.0043ddc5
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

Function at 0x43df20
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 0x4b51bc
push edi
call fcn.00413203
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 0x43df84
push edi
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x43df84
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x43e5b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
and dword [esi], 0
push edi
mov dword [ebp + 0x10], 0x80
mov edi, ebx
test ebx, ebx
ja 0x43e5da
xor eax, eax
cmp eax, dword [esi]
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
pop ebp
ret
and dword [ebp + 0x14], 0
push 0
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x43e611
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x43e608
cmp dword [ebp + 0x10], eax
jg 0x43e605
mov eax, edi
jmp 0x43e608
dec dword [ebp + 0x10]
add dword [esi], eax
add dword [ebp + 0xc], eax
sub ebx, eax
jmp 0x43e5c9
and dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x70
jne 0x43e5cd
mov eax, dword [ebp + 0x18]
cmp edi, eax
jbe 0x43e5cd
cmp ebx, eax
jbe 0x43e5c7
lea edi, [edi + eax - 1]
shr edi, 1
cmp edi, eax
jbe 0x43e5c9
and edi, 0xfffffe00
jmp 0x43e5c9

Function at 0x43e6ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and dword [0x4c93cc], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test byte [ebp - 0xef], 0x80
je 0x43e6d9
or dword [0x4c93cc], 2
test byte [ebp - 0xf0], 0x80
je 0x43e6e9
or dword [0x4c93cc], 4
test byte [ebp - 0xee], 0x80
je 0x43e6f9
or dword [0x4c93cc], 1
test byte [ebp - 0xa5], 0x80
je 0x43e709
or dword [0x4c93cc], 8
test byte [ebp - 0xa4], 0x80
je 0x43e719
or dword [0x4c93cc], 8
leave
ret
Function at 0x43f3ac
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 0x43f3e4
cmp dword [ebp + 0xc], 2
jb 0x43f3f9
cmp dword [ebp + 0xc], 3
jbe 0x43f3dd
cmp dword [ebp + 0xc], 5
jne 0x43f3f9
mov dword [ebp - 4], 0x4afdac
jmp 0x43f3e4
mov dword [ebp - 4], 0x4afdbc
push 0x12
push esi
push esi
push dword [ebp - 4]
call dword [0x4c8ec4]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x43f400
xor eax, eax
jmp 0x43f545
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 0x43f521
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 0x43f506
cmp dword [ebp - 8], 0x400
ja 0x43f506
push 0x1c
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x474], 6
call fcn.0049a7e0
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 0x43f506
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 0x43f506
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 0x43f4fd
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x38]
je 0x43f52e
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 0x43f440
push dword [ebp + 0x10]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
jmp 0x43f543
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 0x43f67b
Capabilities:
Set environment variable

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, dword [esp + 0xc]
push esi
call fcn.0043f62b
push dword [esp + 0xc]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
pop esi
ret 8