joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a81b
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10052e38
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x10069060]
xor eax, esp
mov dword [esp + 0x4f8], eax
push ebx
push esi
push edi
mov eax, dword [0x10069060]
xor eax, esp
push eax
lea eax, [esp + 0x510]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
push 1
push ebx
push ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x1001a9c7
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x14], ebx
jbe 0x1001a9b8
xor edi, edi
mov eax, dword [esp + 0x10]
lea esi, [edi + eax]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push 5
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
push dword [esi]
push ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
push 0x47
lea eax, [esp + 0x49]
push ebx
push eax
mov byte [esp + 0x50], bl
call fcn.10038cf0
add esp, 0xc
push 0x478
lea eax, [esp + 0x90]
push ebx
push eax
call fcn.10038cf0
mov eax, dword [0x1006d7b8]
add esp, 0xc
mov dword [esp + 0x24], ebx
mov esi, dword [esi]
cmp eax, ebx
jne 0x1001a91e
mov eax, dword [0x1006d7b4]
cmp eax, ebx
jne 0x1001a909
push str.winsta.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1006d7b4], eax
cmp eax, ebx
je 0x1001a933
push str.WinStationQueryInformationW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1006d7b8], eax
cmp eax, ebx
je 0x1001a933
lea ecx, [esp + 0x24]
push ecx
push 0x4c0
lea ecx, [esp + 0x4c]
push ecx
push 8
push esi
push ebx
call eax
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.1001a2f9
pop ecx
pop ecx
mov dword [esp + 0x518], ebx
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x1001a98f
cmp word [ecx], bx
je 0x1001a985
mov eax, dword [esp + 0xac]
or eax, dword [esp + 0xb0]
je 0x1001a985
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x1001a97a
lea eax, [esp + 0x2c]
push eax
call fcn.1001a4d1
pop ecx
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x1001a98f
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
or dword [esp + 0x518], 0xffffffff
push ebx
push 1
lea esi, [esp + 0x30]
call fcn.100021ef
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
add edi, 0xc
cmp eax, dword [esp + 0x14]
jb 0x1001a890
cmp dword [esp + 0x10], ebx
je 0x1001a9c7
push dword [esp + 0x10]
call sub.WTSAPI32.dll_WTSFreeMemory
xor eax, eax
inc eax
mov ecx, dword [esp + 0x510]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f8]
xor ecx, esp
call fcn.100366e3
mov esp, ebp
pop ebp
ret

Function at 0x1001b2f8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x1001b331
push dword [ebp + 0x10]
push dword [ebp - 4]
push str.thread__d_created:__s
call fcn.1001ad95
add esp, 0xc
mov eax, edi
pop edi
leave
ret 0xc
Function at 0x1001c7a1
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
cmp dword [eax + 0x14], 0
je 0x1001c846
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
push edi
push str.servAddr
mov ebx, str.Softwareprojonepodlp_
push ebx
mov edi, reloc.WS2_32.dll_bind
push edi
call esi
push str.servHost
push ebx
push edi
call esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 0x10
jb 0x1001c7e7
mov eax, dword [esi + 4]
jmp 0x1001c7ea
lea eax, [esi + 4]
xor ebx, ebx
push ebx
call fcn.1002be97
test eax, eax
push esi
lea eax, [ebp - 0x1c]
push eax
je 0x1001c817
call fcn.100305ba
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x1001c80d
mov eax, dword [eax + 4]
jmp 0x1001c810
add eax, 4
mov edi, str.servAddr
jmp 0x1001c831
call fcn.100305ba
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x1001c829
mov eax, dword [eax + 4]
jmp 0x1001c82c
add eax, 4
mov edi, str.servHost
mov esi, eax
call fcn.1002d8e6
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.100020f3
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001c889
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x10069060]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
mov esi, ecx
call fcn.10038cf0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Logsignored
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x7c]
push eax
call fcn.10001ec7
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100366e3
add ebp, 0x190
leave
ret
Function at 0x1001c902
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x10069060]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 4
mov eax, 0x1004e2e1
call fcn.10037cf1
mov edi, dword [ebp + 0x230]
mov esi, dword [ebp + 0x238]
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.10038cf0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [ebp + 0x234], 1
jne 0x1001c96e
push str.projonepodlp
jmp 0x1001c97c
cmp dword [ebp + 0x234], 2
jne 0x1001c99b
push str.projonepotcm
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp esi, ebx
je 0x1001c995
push esi
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x1c]
push eax
jmp 0x1001c9ee
cmp dword [ebp + 0x234], ebx
jne 0x1001c9e9
push ebx
lea eax, [ebp]
push 2
push eax
call fcn.1001c902
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x1001c9c1
lea eax, [ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
test eax, eax
je 0x1001c9e5
push 2
push edi
call fcn.1001c902
add esp, 0xc
push ebx
push 1
lea esi, [ebp]
call fcn.100021ef
jmp 0x1001c9f5
push 1
jmp 0x1001c9cf
push 0x10056d70
mov esi, edi
call fcn.10001ec7
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.100366e3
add ebp, 0x228
leave
ret

Function at 0x1001cacc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10069060]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x41c], 0
push esi
push edi
mov esi, ecx
test ebx, ebx
jne 0x1001caf8
push 0x10056d70
jmp 0x1001cb78
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jg 0x1001caee
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.10038cf0
add esp, 0xc
push 0x208
lea edi, [ebp - 0x418]
call fcn.1002e59c
cmp word [ebp - 0x418], 0
je 0x1001caee
mov eax, edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.projone
push eax
call edi
push ebx
lea eax, [ebp - 0x418]
push eax
call edi
lea edi, [ebp - 0x418]
call fcn.1002afa8
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, edi
jne 0x1001cb77
mov eax, 0x10056d70
push eax
call fcn.10001ec7
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100366e3
leave
ret
Function at 0x1002ac0c
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa94
mov eax, dword [0x10069060]
xor eax, esp
mov dword [esp + 0xa90], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
test esi, esi
je 0x1002ae0d
test eax, eax
jne 0x1002ac5c
test ecx, ecx
je 0x1002ae0d
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x1002acb7
cmp ax, 0x5c
je 0x1002acb7
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x690], ax
lea eax, [esp + 0x692]
push eax
call fcn.10038cf0
add esp, 0xc
lea eax, [esp + 0x688]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [esp + 0x68c]
push eax
call edi
lea esi, [esp + 0x688]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1002ae0d
test al, 0x10
je 0x1002ae0d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [esp + 0x484]
push eax
call ebx
push 0x1005ca04
lea eax, [esp + 0x484]
push eax
call edi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x1002ae0d
mov dword [esp + 0x10], 1
push 0x10058ef8
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1002addc
push 0x1005ca08
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1002addc
cmp dword [esp + 0x28], 0xffffffff
je 0x1002addc
push esi
lea eax, [esp + 0x27c]
push eax
call ebx
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x27c]
push eax
call edi
test byte [esp + 0x28], 0x10
je 0x1002adc1
cmp dword [esp + 0x14], 0
je 0x1002ad8e
push dword [esp + 0x24]
lea eax, [esp + 0x27c]
push eax
call dword [esp + 0x1c]
test eax, eax
je 0x1002adf5
cmp dword [ebp + 0xc], 0
je 0x1002addc
push dword [esp + 0x24]
lea eax, [esp + 0x27c]
push dword [esp + 0x18]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [ebp + 0xc]
push eax
call fcn.1002ac0c
push 2
pop ecx
cmp eax, ecx
jne 0x1002addc
mov dword [esp + 0x10], ecx
jmp 0x1002adfd
cmp dword [esp + 0x18], 0
je 0x1002addc
push dword [esp + 0x1c]
lea eax, [esp + 0x27c]
push eax
call dword [esp + 0x20]
test eax, eax
je 0x1002adf5
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1002ad17
jmp 0x1002adfd
mov dword [esp + 0x10], 2
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
jmp 0x1002ae0f
xor eax, eax
mov ecx, dword [esp + 0xa9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100366e3
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1002ae26
Capabilities:
Enumerate files on windows

Disassembly:
push 0x6bc
mov eax, 0x1004ea2f
call fcn.10037d5a
and dword [ebp - 0x678], 0
lea eax, [ebp - 0x6a0]
mov ebx, ecx
mov edi, edx
push eax
mov dword [ebp - 0x67c], ebx
mov dword [ebp - 0x680], edi
call fcn.1000d857
xor esi, esi
inc esi
mov dword [ebp - 4], esi
test edi, edi
jne 0x1002ae74
lea eax, [ebp - 0x6a0]
push eax
push ebx
call fcn.1000d88d
jmp 0x1002af8a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
call edi
push str..________.dirty
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x674], eax
cmp eax, 0xffffffff
je 0x1002af7d
push 0x10058ef8
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1002af56
push 0x1005ca08
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1002af56
cmp dword [ebp - 0x670], 0xffffffff
je 0x1002af56
push dword [ebp - 0x680]
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
lea esi, [ebp - 0x6bc]
call fcn.10001ec7
mov eax, esi
push eax
lea eax, [ebp - 0x6a0]
push eax
lea ebx, [ebp - 0x6c8]
mov byte [ebp - 4], 2
call fcn.1000dc3c
push 0
push 1
mov byte [ebp - 4], 1
call fcn.100021ef
mov ebx, dword [ebp - 0x67c]
xor esi, esi
inc esi
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1002aeb9
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x6a0]
push eax
push ebx
call fcn.1000d88d
lea eax, [ebp - 0x6a0]
push eax
mov dword [ebp - 0x678], esi
mov byte [ebp - 4], 0
call fcn.1000d31e
mov eax, ebx
call fcn.10037ddd
ret
Function at 0x1002afa8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10069060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
je 0x1002b0a2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x1002b0a2
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.10038cf0
add esp, 0xc
lea esi, [ebp - 0x210]
mov ecx, edi
call fcn.1002bb34
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1002b01f
shr eax, 4
not eax
and eax, 1
jmp 0x1002b0a4
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea esi, [ebp - 0x418]
call fcn.1002b0b2
test eax, eax
je 0x1002b0a2
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x1002b084
mov dword [ebp - 0x41c], 1
cmp eax, 0xffffffff
jne 0x1002b08a
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x420]
call fcn.10002f50
xor eax, eax
cmp byte [ebp - 0x41c], bl
setne al
jmp 0x1002b0a4
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100366e3
leave
ret
Function at 0x1002b403
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.10045780
mov eax, dword [0x10069060]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x201c], eax
mov dword [ebp - 0x2020], ebx
cmp edi, ebx
je 0x1002b5e1
cmp eax, ebx
je 0x1002b5e1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1002b45b
mov dword [ebp - 0x2020], 1
jmp 0x1002b5e1
push ebx
push ebx
push 3
push ebx
push ebx
mov esi, closesocket
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
push ebx
push ebx
push 3
push ebx
push ebx
push esi
push dword [ebp - 0x201c]
mov dword [ebp - 0x2010], eax
call edi
mov esi, dword [ebp - 0x2010]
mov dword [ebp - 0x2014], eax
cmp esi, ebx
je 0x1002b5cb
cmp esi, 0xffffffff
je 0x1002b5cb
cmp eax, ebx
je 0x1002b5cb
cmp eax, 0xffffffff
je 0x1002b5cb
xor eax, eax
mov dword [ebp - 0x2034], ebx
lea edi, [ebp - 0x2030]
stosd dword es:[edi], eax
mov dword [ebp - 0x202c], ebx
lea edi, [ebp - 0x2028]
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea eax, [ebp - 0x2034]
push eax
push esi
call edi
test eax, eax
je 0x1002b5cb
lea eax, [ebp - 0x202c]
push eax
push dword [ebp - 0x2014]
call edi
test eax, eax
je 0x1002b5cb
mov eax, dword [ebp - 0x2034]
cmp eax, dword [ebp - 0x202c]
jne 0x1002b5cb
mov eax, dword [ebp - 0x2030]
cmp eax, dword [ebp - 0x2028]
jne 0x1002b5cb
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
mov dword [ebp - 0x2018], ebx
push esi
jmp 0x1002b5b5
cmp dword [ebp - 0x2018], ebx
je 0x1002b5c1
push ebx
lea eax, [ebp - 0x201c]
push eax
push dword [ebp - 0x2018]
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 0x2014]
mov dword [ebp - 0x201c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002b5cb
mov ecx, dword [ebp - 0x2018]
cmp ecx, dword [ebp - 0x201c]
jne 0x1002b5cb
lea edi, [ebp - 0x100c]
lea esi, [ebp - 0x200c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1002b597
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x1002b5cb
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002b53f
jmp 0x1002b5cb
mov dword [ebp - 0x2020], 1
lea eax, [ebp - 0x2014]
call fcn.10002f50
lea eax, [ebp - 0x2010]
call fcn.10002f50
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2020]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100366e3
leave
ret 4

Function at 0x1002b5f8
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1002b60f
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
ret
test al, 1
je 0x1002b61e
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret
Function at 0x1002b764
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1002b790
call fcn.1002afa8
test eax, eax
jne 0x1002b790
pop edi
pop esi
pop ebx
leave
ret 0xc
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, ebx
je 0x1002b7b0
cmp esi, 0xffffffff
jne 0x1002b7c8
cmp dword [ebp - 8], ebx
jne 0x1002b7bc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xc]
call fcn.10002f50
mov eax, ebx
jmp 0x1002b789
mov edi, dword [ebp + 0x10]
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002b7ec
cmp dword [ebp - 4], edi
jne 0x1002b7ec
xor ebx, ebx
inc ebx
jmp 0x1002b7bc
cmp dword [ebp - 8], ebx
jne 0x1002b7bc
or dword [ebp - 0xc], 0xffffffff
cmp esi, 0xffffffff
je 0x1002b805
cmp esi, ebx
je 0x1002b805
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
jmp 0x1002b7b6

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

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x1002b832
push esi
mov edx, dword [esp + 8]
movzx edx, byte [ecx + edx]
movzx esi, al
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x1006bc08]
inc ecx
cmp ecx, dword [esp + 0xc]
jl 0x1002b813
pop esi
not eax
ret 8

Function at 0x1002bbe4
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x10069060]
xor eax, ebp
mov dword [ebp - 8], eax
movsx eax, byte [ebp + 8]
push ebx
push esi
push edi
push eax
push str.__c:
lea esi, [ebp - 0x60]
call fcn.1002d81e
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x1002bc16
mov eax, dword [eax + 4]
jmp 0x1002bc19
add eax, 4
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov ebx, eax
push 1
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x40], ebx
call fcn.100020f3
cmp ebx, esi
je 0x1002bc47
cmp ebx, 0xffffffff
jne 0x1002bc61
lea eax, [ebp - 0x40]
call fcn.10002f50
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100366e3
leave
ret
push 0x28
pop edx
push 9
pop ecx
xor eax, eax
push esi
mov dword [ebp - 0x3c], edx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
push edx
lea eax, [ebp - 0x3c]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x2d1400
push ebx
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1002bcad
or esi, 0xffffffff
lea eax, [ebp - 0x40]
call fcn.10002f50
mov eax, esi
jmp 0x1002bc52
mov esi, dword [ebp - 0x20]
jmp 0x1002bca1
Function at 0x1002bcb2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10069060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], ebx
test edi, edi
je 0x1002bda0
test ebx, ebx
je 0x1002bda0
cmp dword [ebp + 8], 0
je 0x1002bda0
mov esi, str.deviceMup_
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, edi
jne 0x1002bd1c
push ebx
push 0x1005cac8
push esi
mov ecx, edi
mov eax, dword [ebp + 8]
call fcn.1002d61c
xor eax, eax
inc eax
jmp 0x1002bda2
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x220], eax
xor ebx, ebx
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x220]
test ecx, eax
je 0x1002bd9a
push 0x3a
lea eax, [ebx + 0x61]
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
push 0x206
lea edi, [ebp - 8]
push eax
stosd dword es:[edi], eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.10038cf0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x1002bd9a
push dword [ebp - 0x218]
lea esi, [ebp - 0x214]
call fcn.1002d71a
test eax, eax
jne 0x1002bdb3
inc ebx
cmp ebx, 0x1a
jl 0x1002bd2a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100366e3
leave
ret 4
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
jmp 0x1002bd0c

Function at 0x1002c5aa
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x10069060]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, fcn.1002cd06
push esi
test eax, eax
je 0x1002c637
push 0x424
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10038cf0
add esp, 0xc
push dword [ebp + 8]
mov dword [esp + 0xc], 0x428
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 4], esi
test esi, esi
je 0x1002c62e
cmp esi, 0xffffffff
je 0x1002c62e
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x1002c62a
push edi
lea eax, [esp + 0xc]
push eax
call fcn.1002cd06
test eax, eax
je 0x1002c62e
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x1002c610
lea eax, [esp + 4]
call fcn.10002f50
mov ecx, dword [esp + 0x434]
pop esi
xor ecx, esp
call fcn.100366e3
mov esp, ebp
pop ebp
ret 4