joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ff0
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
push ebx
push edi
push 1
push str.lstDrives
lea edi, [esi + 0x358]
push edi
call fcn.0041c413
push 1
push str.lstFiles
push edi
mov dword [esi + 0x4f8], eax
call fcn.0041c413
cmp dword [esi + 0x4f8], 0
mov dword [esi + 0x4fc], eax
je 0x404114
test eax, eax
je 0x404114
push 1
push str.lblCopying
push edi
call fcn.0041c413
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xe0]
push 0
call eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x10], eax
call fcn.0040efd2
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404094
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 4
lea edx, [esp + 0x24]
push edx
push 0x222054
push ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040e3d6
lea eax, [esi + 0x14]
push esi
push eax
call fcn.00403480
mov ecx, dword [esi + 4]
add esp, 8
push 0
push 0x3e8
push 1
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, esi
call fcn.00404120
push 1
push str.layMain
push edi
call fcn.0041c413
cmp dword [esi + 0x4d8], 0
mov edx, dword [eax]
mov edx, dword [edx + 0xe0]
setne cl
movzx ecx, cl
push ecx
mov ecx, eax
call edx
push 1
push str.layEmpty
push edi
call fcn.0041c413
cmp dword [esi + 0x4d8], 0
mov edx, dword [eax]
mov edx, dword [edx + 0xe0]
sete cl
movzx ecx, cl
push ecx
mov ecx, eax
call edx
pop edi
pop ebx
add esp, 0xc
ret
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404970
Capabilities:
Check if file exists
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x469879
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x481330]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x481330]
xor eax, esp
push eax
lea eax, [esp + 0x310]
mov dword fs:[0], eax
mov esi, ecx
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404b44
mov ebx, 1
test byte [0x486834], bl
jne 0x4049fb
or dword [0x486834], ebx
mov dword [esp + 0x318], 0
call fcn.00407490
push 0x46af00
call fcn.00451990
add esp, 4
mov dword [esp + 0x318], 0xffffffff
xor eax, eax
mov word [esp + 0x3c], ax
mov eax, esi
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404a17
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x40]
call fcn.00401f60
lea ecx, [esp + 0x30]
push ecx
mov edi, esi
mov dword [esp + 0x31c], ebx
call fcn.00406110
mov esi, dword [eax]
mov ebp, dword [eax + 4]
lea edx, [esp + 0x20]
push edx
call fcn.00406170
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x18], ecx
call fcn.00406110
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebp
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
push esi
mov byte [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
push edx
push ecx
push ebx
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.004096d0
add esp, 0x1c
mov eax, edi
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004069f0
mov esi, dword [esp + 0x14]
mov edi, dword [0x4867fc]
test esi, esi
je 0x404ab2
cmp esi, dword [0x4867e4]
je 0x404ab7
call fcn.00451615
mov ebx, dword [esp + 0x18]
cmp ebx, edi
je 0x404adb
test esi, esi
jne 0x404ad7
call fcn.00451615
cmp ebx, dword [esi + 0x18]
jne 0x404ad2
call fcn.00451615
mov esi, dword [ebx + 0x28]
jmp 0x404b2e
mov esi, dword [esi]
jmp 0x404ac8
push 0x2b0
lea eax, [esp + 0x5c]
push 0
push eax
mov dword [esp + 0x60], 0
call fcn.00455920
mov edx, dword [esp + 0x28]
add esp, 0xc
push 0x101
push 0x2b4
lea ecx, [esp + 0x5c]
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp dword [esp + 0x54], 0
je 0x404b2a
lea eax, [esp + 0x38]
push eax
call fcn.004068a0
mov ecx, dword [esp + 0x54]
mov dword [eax], ecx
mov esi, dword [esp + 0x54]
cmp dword [esp + 0x50], 8
jb 0x404b42
mov edx, dword [esp + 0x3c]
push edx
call fcn.0045164f
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x310]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2f8]
xor ecx, esp
call fcn.00451137
add esp, 0x308
ret
Function at 0x4057e0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x46ad5b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x481330]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x481330]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x274]
xor ebx, ebx
lea eax, [esp + 0x38]
mov dword [esp + 0x14], ebx
mov edi, dword [ebp + 4]
push eax
call fcn.0040b98b
add esp, 4
mov dword [esp + 0x26c], ebx
cmp dword [esp + 0x4c], ebx
je 0x4059da
push 0x206
lea eax, [esp + 0x5a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x60], dx
call fcn.00455920
mov esi, 8
add esp, 0xc
cmp dword [ebp + 0x4b8], esi
jb 0x405878
mov eax, dword [ebp + 0x4a4]
jmp 0x40587e
lea eax, [ebp + 0x4a4]
push 0x104
push eax
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], esi
jae 0x40589d
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405927
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4058f8
mov edx, dword [ebp + 4]
push 0x10
push 0x46e39c
push 0x46e3a4
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x50], esi
jb 0x4059ee
mov eax, dword [esp + 0x3c]
push eax
jmp 0x4059e6
mov esi, dword [ebp + 4]
lea ecx, [esp + 0x54]
push ecx
push 0x46e3bc
push 0x24
mov edi, 0x46e3e0
call fcn.0040a7bf
add esp, 0xc
cmp eax, 6
je 0x405927
lea esi, [esp + 0x38]
call fcn.00409790
jmp 0x4059ee
push 0x44
call fcn.00451743
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
xor edi, edi
mov byte [esp + 0x26c], 1
cmp esi, edi
je 0x405978
lea edx, [esp + 0x54]
lea eax, [esp + 0x1c]
call fcn.00401860
push ebp
push edi
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x278], 2
mov ebx, 1
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x24], ebx
call fcn.004055f0
mov esi, eax
jmp 0x40597a
xor esi, esi
mov dword [esp + 0x26c], edi
test bl, 1
je 0x4059ad
cmp dword [esp + 0x34], 8
jb 0x40599a
mov eax, dword [esp + 0x20]
push eax
call fcn.0045164f
add esp, 4
xor ecx, ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], cx
push 1
push str.lblCopying
lea edx, [ebp + 0x358]
push edx
call fcn.0041c413
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xe0]
push 1
call eax
mov eax, dword [ebp + 4]
push esi
call fcn.0040e484
add esp, 4
cmp dword [esp + 0x50], 8
jb 0x4059ee
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0045164f
add esp, 4
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00451137
add esp, 0x25c
ret 4
Function at 0x409a8e
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 [0x481330]
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 0x409cb3
test eax, eax
jne 0x409adf
test ecx, ecx
je 0x409cb3
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x409b35
cmp ax, 0x5c
je 0x409b35
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push eax
call fcn.00455920
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 0x409cb3
test al, 0x10
je 0x409cb3
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x418]
push eax
call ebx
push 0x46e678
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 0x409cb3
mov dword [ebp - 0xa7c], 1
push 0x46e67c
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x409c78
push 0x46e06c
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x409c78
cmp dword [ebp - 0xa78], 0xffffffff
je 0x409c78
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 0x409c58
cmp dword [ebp - 0xa80], 0
je 0x409c1c
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa80]
test eax, eax
je 0x409c95
cmp dword [ebp + 0xc], 0
je 0x409c78
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.00409a8e
push 2
pop ecx
cmp eax, ecx
jne 0x409c78
mov dword [ebp - 0xa7c], ecx
jmp 0x409c9f
cmp dword [ebp - 0xa84], 0
je 0x409c78
push dword [ebp - 0xa88]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa84]
test eax, eax
je 0x409c95
lea eax, [ebp - 0xa78]
push eax
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409b98
jmp 0x409c9f
mov dword [ebp - 0xa7c], 2
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xa7c]
jmp 0x409cb5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00451137
leave
ret 0x18
Function at 0x409cc6
Capabilities:
Enumerate files on windows

Disassembly:
push 0x6c0
mov eax, 0x4695c3
call fcn.004522ba
mov ebx, dword [ebp + 8]
and dword [ebp - 0x67c], 0
lea eax, [ebp - 0x6a4]
mov edi, ecx
push eax
mov dword [ebp - 0x680], ebx
mov dword [ebp - 0x684], edi
call fcn.0040bd4a
xor esi, esi
inc esi
mov dword [ebp - 4], esi
test edi, edi
jne 0x409d2d
lea eax, [ebp - 0x6a4]
push eax
push ebx
call fcn.0040bd80
lea eax, [ebp - 0x6a4]
push eax
mov dword [ebp - 0x67c], esi
mov byte [ebp - 4], 0
call fcn.0040be2b
mov eax, ebx
jmp 0x409e5e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x21c]
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str..________.dirty
lea eax, [ebp - 0x21c]
push eax
call ebx
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x678], eax
cmp eax, 0xffffffff
je 0x409e30
push 0x46e67c
lea eax, [ebp - 0x648]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x409e09
push 0x46e06c
lea eax, [ebp - 0x648]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x409e09
cmp dword [ebp - 0x674], 0xffffffff
je 0x409e09
push dword [ebp - 0x684]
lea eax, [ebp - 0x424]
push eax
call edi
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x424]
push eax
call ebx
lea edx, [ebp - 0x424]
lea eax, [ebp - 0x6c0]
call fcn.00401860
lea eax, [ebp - 0x6c0]
push eax
lea eax, [ebp - 0x6cc]
push eax
lea eax, [ebp - 0x6a4]
push eax
mov byte [ebp - 4], 2
call fcn.0040be53
lea esi, [ebp - 0x6c0]
mov byte [ebp - 4], 1
call fcn.00409790
xor esi, esi
inc esi
lea eax, [ebp - 0x674]
push eax
push dword [ebp - 0x678]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409d74
push dword [ebp - 0x678]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x6a4]
push eax
push dword [ebp - 0x680]
call fcn.0040bd80
lea eax, [ebp - 0x6a4]
push eax
mov dword [ebp - 0x67c], esi
mov byte [ebp - 4], 0
call fcn.0040be2b
mov eax, dword [ebp - 0x680]
call fcn.0045233d
ret
Function at 0x409e64
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x481330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
je 0x409f5e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x409f5e
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.00455920
add esp, 0xc
lea esi, [ebp - 0x210]
mov ecx, edi
call fcn.0040aacf
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409edb
shr eax, 4
not eax
and eax, 1
jmp 0x409f60
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.00409f6e
test eax, eax
je 0x409f5e
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 0x409f40
mov dword [ebp - 0x41c], 1
cmp eax, 0xffffffff
jne 0x409f46
mov dword [ebp - 0x41c], ebx
lea ecx, [ebp - 0x420]
call fcn.004011a0
xor eax, eax
cmp byte [ebp - 0x41c], bl
setne al
jmp 0x409f60
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00451137
leave
ret
Function at 0x40a2f5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x481330]
xor eax, esp
mov dword [esp + 0x420], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a391
test al, 0x10
je 0x40a391
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, 0x104
push edi
push ebx
lea eax, [esp + 0x18]
push eax
call esi
push edi
push dword [esp + 0x10]
lea eax, [esp + 0x220]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp + 0x10]
push eax
call esi
lea eax, [esp + 0x218]
push eax
call esi
and dword [esp + 0x420], 0
and dword [esp + 0x424], 0
lea eax, [esp + 0x10]
push eax
mov eax, 0x40a3aa
push eax
lea ecx, [esp + 0x18]
push ecx
push eax
push 1
push ebx
call fcn.00409a8e
jmp 0x40a393
xor eax, eax
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00451137
mov esp, ebp
pop ebp
ret 8
Function at 0x40a471
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.004643e0
mov eax, dword [0x481330]
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 0x40a64f
cmp eax, ebx
je 0x40a64f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a4c9
mov dword [ebp - 0x2020], 1
jmp 0x40a64f
push ebx
push ebx
push 3
push ebx
push ebx
mov esi, SysReAllocString
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 0x40a639
cmp esi, 0xffffffff
je 0x40a639
cmp eax, ebx
je 0x40a639
cmp eax, 0xffffffff
je 0x40a639
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 0x40a639
lea eax, [ebp - 0x202c]
push eax
push dword [ebp - 0x2014]
call edi
test eax, eax
je 0x40a639
mov eax, dword [ebp - 0x2034]
cmp eax, dword [ebp - 0x202c]
jne 0x40a639
mov eax, dword [ebp - 0x2030]
cmp eax, dword [ebp - 0x2028]
jne 0x40a639
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
mov dword [ebp - 0x2018], ebx
push esi
jmp 0x40a623
cmp dword [ebp - 0x2018], ebx
je 0x40a62f
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 0x40a639
mov ecx, dword [ebp - 0x2018]
cmp ecx, dword [ebp - 0x201c]
jne 0x40a639
lea edi, [ebp - 0x100c]
lea esi, [ebp - 0x200c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40a605
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40a639
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 0x40a5ad
jmp 0x40a639
mov dword [ebp - 0x2020], 1
lea ecx, [ebp - 0x2014]
call fcn.004011a0
lea ecx, [ebp - 0x2010]
call fcn.004011a0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2020]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00451137
leave
ret 4
Function at 0x40aa55
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x481330]
xor eax, ebp
mov dword [ebp + 0x84], eax
push 0x103
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call fcn.00455920
add esp, 0xc
push 0x104
lea eax, [ebp - 0x80]
push eax
call fcn.0040a9be
mov eax, 0x179b06cc
xor ecx, ecx
push esi
movzx edx, byte [ebp + ecx - 0x80]
movzx esi, al
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4832b0]
inc ecx
cmp ecx, 0x24
jl 0x40aa9d
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
not eax
pop esi
call fcn.00451137
add ebp, 0x88
leave
ret

Function at 0x40ab32
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x481330]
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.0040b4ef
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x40ab64
mov eax, dword [eax + 4]
jmp 0x40ab67
add eax, 4
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x40], ebx
call fcn.00401830
cmp ebx, esi
je 0x40ab92
cmp ebx, 0xffffffff
jne 0x40abac
lea ecx, [ebp - 0x40]
call fcn.004011a0
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00451137
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 0x40abf8
or esi, 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004011a0
mov eax, esi
jmp 0x40ab9d
mov esi, dword [ebp - 0x20]
jmp 0x40abec

Function at 0x40abfd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x481330]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [esi], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
xor eax, eax
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 0x3a
mov byte [ebp - 0x16], 0x5c
lea edi, [ebp - 0x15]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x40ac42
cmp eax, 3
je 0x40ac42
xor eax, eax
inc eax
jmp 0x40ac5a
push ebx
call fcn.0040ab32
pop ecx
mov ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
je 0x40ac5a
inc eax
cmp ecx, 7
jne 0x40ac5a
mov dword [esi], eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop ebx
call fcn.00451137
leave
ret 4
Function at 0x40b02d
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x481330]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, fcn.0040b0cf
push esi
test eax, eax
je 0x40b0ba
push 0x424
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00455920
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 0x40b0b1
cmp esi, 0xffffffff
je 0x40b0b1
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x40b0ad
push edi
lea eax, [esp + 0xc]
push eax
call fcn.0040b0cf
test eax, eax
je 0x40b0b1
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x40b093
lea ecx, [esp + 4]
call fcn.004011a0
mov ecx, dword [esp + 0x434]
pop esi
xor ecx, esp
call fcn.00451137
mov esp, ebp
pop ebp
ret 4

Function at 0x40b575
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [0x481330]
xor eax, esp
mov dword [esp], eax
push ebx
mov ebx, dword [esp + 0xc]
test esi, esi
je 0x40b592
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x40b594
xor eax, eax
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [esp + 4]
neg eax
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.00451137
pop ecx
ret 4