joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000aabf
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10061060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
xor eax, eax
inc eax
mov ecx, esi
shl eax, cl
test ebx, eax
je 0x1000ab52
push 0x3a
lea eax, [esi + 0x61]
mov word [ebp - 0x24], ax
pop eax
mov word [ebp - 0x22], ax
push 0x5c
pop eax
mov word [ebp - 0x20], ax
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x1e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1000ab52
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x38], ecx
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
mov dword [ebp - 0x40], ecx
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
push ecx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1000ab52
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
adc dword [ebp - 0x2c], eax
inc esi
cmp esi, 0x1a
jl 0x1000aae2
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003186a
leave
ret
Function at 0x1000dec1
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x10062f08], esi
je 0x1000def9
push dword [0x1006bfec]
mov dword [0x10062f08], esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
push esi
push esi
push 0x1000db6e
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x1000e315
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push 0
push str.Shell_TrayWnd
mov esi, eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x1000e33d
push 0x10050cd0
call fcn.10002018
jmp 0x1000e355
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
call fcn.1000ece0
pop ecx
mov eax, esi
pop esi
leave
ret

Function at 0x1000e6ea
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
inc esi
push str.StartSystemLockLog
mov dword [0x1006b5b4], esi
call fcn.10013ae0
xor eax, eax
pop ecx
cmp dword [0x1006b5b8], eax
jne 0x1000e726
push eax
push eax
push eax
push 0x1000e61b
push eax
push eax
mov dword [0x1006b5b8], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
ret
Function at 0x1000f1ac
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004d3fa
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x10061060]
xor eax, esp
mov dword [esp + 0x4f8], eax
push ebx
push esi
push edi
mov eax, dword [0x10061060]
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 0x1000f358
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x14], ebx
jbe 0x1000f349
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.10033d90
add esp, 0xc
push 0x478
lea eax, [esp + 0x90]
push ebx
push eax
call fcn.10033d90
mov eax, dword [0x1006c108]
add esp, 0xc
mov dword [esp + 0x24], ebx
mov esi, dword [esi]
cmp eax, ebx
jne 0x1000f2af
mov eax, dword [0x1006c104]
cmp eax, ebx
jne 0x1000f29a
push str.winsta.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1006c104], eax
cmp eax, ebx
je 0x1000f2c4
push str.WinStationQueryInformationW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1006c108], eax
cmp eax, ebx
je 0x1000f2c4
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.1000ec6e
pop ecx
pop ecx
mov dword [esp + 0x518], ebx
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x1000f320
cmp word [ecx], bx
je 0x1000f316
mov eax, dword [esp + 0xac]
or eax, dword [esp + 0xb0]
je 0x1000f316
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x1000f30b
lea eax, [esp + 0x2c]
push eax
call fcn.1000ee4d
pop ecx
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x1000f320
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
or dword [esp + 0x518], 0xffffffff
push ebx
push 1
lea esi, [esp + 0x30]
call fcn.1000233d
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
add edi, 0xc
cmp eax, dword [esp + 0x14]
jb 0x1000f221
cmp dword [esp + 0x10], ebx
je 0x1000f358
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.1003186a
mov esp, ebp
pop ebp
ret

Function at 0x10013ede
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 0x10013f17
push dword [ebp + 0x10]
push dword [ebp - 4]
push str.thread__d_created:__s
call fcn.10013975
add esp, 0xc
mov eax, edi
pop edi
leave
ret 0xc
Function at 0x100155d8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
cmp dword [eax + 0x14], 0
je 0x1001567d
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 0x1001561e
mov eax, dword [esi + 4]
jmp 0x10015621
lea eax, [esi + 4]
xor ebx, ebx
push ebx
call fcn.1002553d
test eax, eax
push esi
lea eax, [ebp - 0x1c]
push eax
je 0x1001564e
call fcn.100299f4
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x10015644
mov eax, dword [eax + 4]
jmp 0x10015647
add eax, 4
mov edi, str.servAddr
jmp 0x10015668
call fcn.100299f4
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x10015660
mov eax, dword [eax + 4]
jmp 0x10015663
add eax, 4
mov edi, str.servHost
mov esi, eax
call fcn.10026e4a
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.10002245
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100156c0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x10061060]
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.10033d90
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.10002018
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1003186a
add ebp, 0x190
leave
ret
Function at 0x10015804
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x10061060]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x24
mov eax, 0x100490d1
call fcn.10032d91
mov ebx, dword [ebp + 0x238]
mov edi, dword [ebp + 0x230]
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push esi
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esi
call fcn.10033d90
add esp, 0xc
push 0x104
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 0x234]
cmp eax, 1
jne 0x10015875
push str.projonepodlp
jmp 0x1001588b
cmp eax, 2
jne 0x10015881
push str.projonepotcm
jmp 0x1001588b
cmp eax, 3
jne 0x100158ad
push str.gxsoftgxtcm
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ebx, esi
je 0x100158a4
push ebx
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x1c]
push eax
jmp 0x10015956
cmp eax, esi
jne 0x10015951
push esi
lea eax, [ebp]
push 3
push eax
call fcn.10015804
add esp, 0xc
mov dword [ebp - 4], esi
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x100158d3
lea eax, [ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x100158f7
push ebx
push 3
push edi
call fcn.10015804
add esp, 0xc
push esi
push 1
lea esi, [ebp]
call fcn.1000233d
jmp 0x1001595d
push esi
lea eax, [ebp - 0x30]
push 2
push eax
call fcn.10015804
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 1
call fcn.10002290
push ebx
push 1
lea esi, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.1000233d
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x10015931
lea eax, [ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push dword [ebp - 0x10]
test eax, eax
je 0x1001594d
push 2
push edi
call fcn.10015804
add esp, 0xc
push ebx
jmp 0x100158eb
push 1
jmp 0x10015941
push 0x10050cd0
mov esi, edi
call fcn.10002018
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.1003186a
add ebp, 0x228
leave
ret
Function at 0x10015a45
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10061060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x41c], edi
cmp ebx, edi
jne 0x10015a72
push 0x10050cd0
jmp 0x10015b12
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jg 0x10015a68
xor eax, eax
push 0x40e
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push edi
push eax
call fcn.10033d90
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call fcn.1002757b
cmp word [ebp - 0x418], di
je 0x10015a68
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.projone
lea eax, [ebp - 0x418]
push eax
call edi
push ebx
lea eax, [ebp - 0x418]
push eax
call edi
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10015af2
push 6
lea eax, [ebp - 0x418]
push eax
xor eax, eax
call fcn.10024e0f
lea edi, [ebp - 0x418]
call fcn.10024807
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, edi
jne 0x10015b11
mov eax, 0x10050cd0
push eax
call fcn.10002018
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1003186a
leave
ret
Function at 0x1002444d
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
sub esp, 0xa94
mov eax, dword [0x10061060]
xor eax, ebp
mov dword [ebp - 4], 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 [ebp - 0xa88], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ebp - 0xa84], eax
mov dword [ebp - 0xa80], ecx
mov dword [ebp - 0xa8c], edx
test esi, esi
je 0x10024672
test eax, eax
jne 0x1002449e
test ecx, ecx
je 0x10024672
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x100244f4
cmp ax, 0x5c
je 0x100244f4
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push eax
call fcn.10033d90
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [ebp - 0x828]
push eax
call edi
lea esi, [ebp - 0x828]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10024672
test al, 0x10
je 0x10024672
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x418]
push eax
call ebx
push 0x100559f4
lea eax, [ebp - 0x418]
push eax
call edi
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa90], eax
cmp eax, 0xffffffff
je 0x10024672
mov dword [ebp - 0xa7c], 1
push 0x10052fc8
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10024637
push 0x100559f8
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10024637
cmp dword [ebp - 0xa78], 0xffffffff
je 0x10024637
push esi
lea eax, [ebp - 0x210]
push eax
call ebx
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
test byte [ebp - 0xa78], 0x10
je 0x10024617
cmp dword [ebp - 0xa80], 0
je 0x100245db
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa80]
test eax, eax
je 0x10024654
cmp dword [ebp + 0xc], 0
je 0x10024637
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push dword [ebp - 0xa80]
push dword [ebp - 0xa88]
push dword [ebp - 0xa84]
push dword [ebp + 0xc]
push eax
call fcn.1002444d
push 2
pop ecx
cmp eax, ecx
jne 0x10024637
mov dword [ebp - 0xa7c], ecx
jmp 0x1002465e
cmp dword [ebp - 0xa84], 0
je 0x10024637
push dword [ebp - 0xa88]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa84]
test eax, eax
je 0x10024654
lea eax, [ebp - 0xa78]
push eax
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10024557
jmp 0x1002465e
mov dword [ebp - 0xa7c], 2
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xa7c]
jmp 0x10024674
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003186a
leave
ret 0x18
Function at 0x10024685
Capabilities:
Enumerate files on windows

Disassembly:
push 0x6bc
mov eax, 0x100496e9
call fcn.10032dfa
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.10017b35
xor esi, esi
inc esi
mov dword [ebp - 4], esi
test edi, edi
jne 0x100246d3
lea eax, [ebp - 0x6a0]
push eax
push ebx
call fcn.10017b6b
jmp 0x100247e9
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 0x100247dc
push 0x10052fc8
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100247b5
push 0x100559f8
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100247b5
cmp dword [ebp - 0x670], 0xffffffff
je 0x100247b5
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.10002018
mov eax, esi
push eax
lea eax, [ebp - 0x6a0]
push eax
lea ebx, [ebp - 0x6c8]
mov byte [ebp - 4], 2
call fcn.10017e27
push 0
push 1
mov byte [ebp - 4], 1
call fcn.1000233d
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 0x10024718
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x6a0]
push eax
push ebx
call fcn.10017b6b
lea eax, [ebp - 0x6a0]
push eax
mov dword [ebp - 0x678], esi
mov byte [ebp - 4], 0
call fcn.10017567
mov eax, ebx
call fcn.10032e7d
ret
Function at 0x10024807
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10061060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
je 0x10024901
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x10024901
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.10033d90
add esp, 0xc
lea esi, [ebp - 0x210]
mov ecx, edi
call fcn.100252bf
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1002487e
shr eax, 4
not eax
and eax, 1
jmp 0x10024903
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.10024911
test eax, eax
je 0x10024901
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 0x100248e3
mov dword [ebp - 0x41c], 1
cmp eax, 0xffffffff
jne 0x100248e9
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x420]
call fcn.1000316d
xor eax, eax
cmp byte [ebp - 0x41c], bl
setne al
jmp 0x10024903
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1003186a
leave
ret
Function at 0x10024c1a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.10040400
mov eax, dword [0x10061060]
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 0x10024df8
cmp eax, ebx
je 0x10024df8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10024c72
mov dword [ebp - 0x2020], 1
jmp 0x10024df8
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 0x10024de2
cmp esi, 0xffffffff
je 0x10024de2
cmp eax, ebx
je 0x10024de2
cmp eax, 0xffffffff
je 0x10024de2
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 0x10024de2
lea eax, [ebp - 0x202c]
push eax
push dword [ebp - 0x2014]
call edi
test eax, eax
je 0x10024de2
mov eax, dword [ebp - 0x2034]
cmp eax, dword [ebp - 0x202c]
jne 0x10024de2
mov eax, dword [ebp - 0x2030]
cmp eax, dword [ebp - 0x2028]
jne 0x10024de2
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
mov dword [ebp - 0x2018], ebx
push esi
jmp 0x10024dcc
cmp dword [ebp - 0x2018], ebx
je 0x10024dd8
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 0x10024de2
mov ecx, dword [ebp - 0x2018]
cmp ecx, dword [ebp - 0x201c]
jne 0x10024de2
lea edi, [ebp - 0x100c]
lea esi, [ebp - 0x200c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10024dae
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10024de2
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 0x10024d56
jmp 0x10024de2
mov dword [ebp - 0x2020], 1
lea eax, [ebp - 0x2014]
call fcn.1000316d
lea eax, [ebp - 0x2010]
call fcn.1000316d
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2020]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003186a
leave
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10024e25
xor eax, eax
jmp 0x10024e38
or eax, dword [esp + 0xc]
not esi
and eax, esi
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret 8
Function at 0x10024eee
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 0x10024f1a
call fcn.10024807
test eax, eax
jne 0x10024f1a
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 0x10024f3a
cmp esi, 0xffffffff
jne 0x10024f52
cmp dword [ebp - 8], ebx
jne 0x10024f46
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xc]
call fcn.1000316d
mov eax, ebx
jmp 0x10024f13
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 0x10024f76
cmp dword [ebp - 4], edi
jne 0x10024f76
xor ebx, ebx
inc ebx
jmp 0x10024f46
cmp dword [ebp - 8], ebx
jne 0x10024f46
or dword [ebp - 0xc], 0xffffffff
cmp esi, 0xffffffff
je 0x10024f8f
cmp esi, ebx
je 0x10024f8f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
jmp 0x10024f40

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

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x10024fbc
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 + 0x100636f8]
inc ecx
cmp ecx, dword [esp + 0xc]
jl 0x10024f9d
pop esi
not eax
ret 8

Function at 0x1002536e
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x10061060]
xor eax, ebp
mov dword [ebp + 0x19c], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], ebx
test edi, edi
je 0x10025445
test ebx, ebx
je 0x10025445
mov esi, str.deviceMup_
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, edi
jne 0x100253ca
push ebx
push 0x10055ab4
push esi
mov eax, edi
call fcn.10026b0a
xor eax, eax
inc eax
jmp 0x10025447
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x80], eax
xor ebx, ebx
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x80]
test ecx, eax
je 0x1002543f
push 0x3a
lea eax, [ebx + 0x61]
mov word [ebp + 0x194], ax
pop eax
mov word [ebp + 0x196], ax
xor eax, eax
push 0x206
lea edi, [ebp + 0x198]
push eax
stosd dword es:[edi], eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.10033d90
add esp, 0xc
push 0x104
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x1002543f
push dword [ebp - 0x78]
lea esi, [ebp - 0x74]
call fcn.10026c06
test eax, eax
jne 0x1002545f
inc ebx
cmp ebx, 0x1a
jl 0x100253d5
xor eax, eax
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003186a
add ebp, 0x1a0
leave
ret
push dword [ebp - 0x7c]
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x78]
jmp 0x100253c0