joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494830
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
mov byte [ebp - 0x16], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_ResetEvent
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ConnectNamedPipe
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0x15], 0
je 0x4948a3
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
mov ecx, 0x49494c
mov edx, 0x494970
call fcn.0043f6a0
push 0x49494c
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.0043faa0
mov eax, dword [ebp - 0x14]
sub eax, 0x217
je 0x4948b6
sub eax, 0x1ce
je 0x4948fc
jmp 0x494902
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_SetEvent
test eax, eax
jne 0x494930
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x14], eax
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
mov ecx, 0x49494c
mov edx, 0x4949b4
call fcn.0043f6a0
push 0x49494c
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.0043faa0
jmp 0x494936
mov byte [ebp - 0x16], 1
jmp 0x494930
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
mov ecx, 0x49494c
mov edx, 0x494970
call fcn.0043f6a0
push 0x49494c
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.0043faa0
jmp 0x494936
mov al, byte [ebp - 0x16]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret

Function at 0x494c30
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x494d0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
push 0x1388
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
push 0xff
push 6
push 0x40000003
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00407214
push eax
call sub.kernel32.dll_CreateNamedPipeW
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0xffffffff
jne 0x494ce2
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x40]
mov edx, 0x494d28
call fcn.00407404
mov edx, dword [ebp - 0x18]
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
mov ecx, 0x494d6c
call fcn.0043f720
push 0x494d6c
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov dl, 2
call fcn.0043faa0
jmp 0x494cf5
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00494830
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494d12
lea eax, [ebp - 0x18]
call fcn.00406610
ret
Function at 0x498940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x498cc9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x498987
push 2
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00407214
push eax
call sub.kernel32.dll_LoadLibraryExW_1
mov dword [ebp - 0x28], eax
jmp 0x498990
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x498cab
xor eax, eax
push ebp
push 0x498ac0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ax, word [eax + 0xc]
push eax
push 1
push 0x10
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_FindResourceExW
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4989d0
call fcn.00405dfc
jmp 0x498cab
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4989f0
call fcn.00405dfc
jmp 0x498cab
xor eax, eax
push ebp
push 0x498a99
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x10
xor ecx, ecx
call fcn.00407034
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00406af0
test eax, eax
jle 0x498a82
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x498a7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00406af0
push eax
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.00406bb4
mov edx, eax
mov eax, dword [ebp - 0x34]
pop ecx
call fcn.00404860
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498a82
mov eax, dword [ebp - 0x30]
call fcn.0040bc2c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498aa0
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_FreeResource
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498cd0
lea eax, [ebp - 0x14]
call fcn.00406610
lea eax, [ebp - 0xc]
call fcn.00406610
ret
Function at 0x4c5530
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c5657
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x40]
mov edx, 0x24
call fcn.0042b030
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetSystemInfo_1
xor eax, eax
push ebp
push 0x4c562b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5dda2c]
cmp dword [eax], 0
je 0x4c5621
push 1
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4c54fc]
call fcn.00408510
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x5dda2c]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0xc]
mov ecx, 0x18
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4c54fc]
call fcn.00408510
add esp, 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x5dda2c]
mov eax, dword [eax]
call eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jb 0x4c561b
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*8 + 4]
sub eax, 1
jae 0x4c5613
inc dword [ebp - 0x18]
inc dword [ebp - 0x14]
dec dword [ebp - 0x1c]
jne 0x4c55fe
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c5635
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c565e
lea eax, [ebp - 8]
mov edx, dword [0x4c54fc]
call fcn.0040851c
ret
Function at 0x4c6a10
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c6b80
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00450870
mov eax, dword [ebp - 8]
call fcn.00408364
test eax, eax
jl 0x4c6b5c
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [edx + ecx*4]
call fcn.00406a1c
cmp dword [ebp - 0xc], 0
je 0x4c6b50
mov eax, dword [ebp - 0xc]
call fcn.00407214
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 3
jne 0x4c6b50
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407214
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x4c6b50
mov eax, dword [0x5e8ac4]
call fcn.0040835c
inc eax
push eax
mov eax, 0x5e8ac4
mov ecx, 1
mov edx, dword [0x4c3c44]
call fcn.00408510
add esp, 4
mov eax, dword [0x5e8ac4]
call fcn.00408364
lea eax, [eax + eax*2]
mov edx, dword [0x5e8ac4]
mov ecx, dword [ebp - 0xc]
mov cx, word [ecx]
mov word [edx + eax*8], cx
mov eax, dword [0x5e8ac4]
call fcn.00408364
lea eax, [eax + eax*2]
mov edx, dword [0x5e8ac4]
mov ecx, dword [ebp - 0x18]
mov dword [edx + eax*8 + 0x10], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edx + eax*8 + 0x14], ecx
mov eax, dword [0x5e8ac4]
call fcn.00408364
lea eax, [eax + eax*2]
mov edx, dword [0x5e8ac4]
mov ecx, dword [ebp - 0x20]
mov dword [edx + eax*8 + 8], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [edx + eax*8 + 0xc], ecx
inc dword [ebp - 4]
dec dword [ebp - 0x2c]
jne 0x4c6a4f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6b87
lea eax, [ebp - 0xc]
call fcn.00406610
lea eax, [ebp - 8]
mov edx, dword [0x427a7c]
call fcn.0040851c
ret
Function at 0x4d1780
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4d17d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call dword [0x5e8ae4]
pop ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00406f64
push eax
call sub.kernel32.dll_RemoveDirectoryA
mov eax, dword [ebp - 4]
add eax, 8
call fcn.00406610
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00406634
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.00406634
pop ecx
pop ebp
ret

Function at 0x4d2080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d2158
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 5], 0
je 0x4d20b6
or dword [ebp - 4], 0x8000
call fcn.004d1c40
test al, al
je 0x4d20e5
test byte [ebp - 3], 0x80
je 0x4d20e5
lea eax, [ebp - 0x218]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
and eax, 0xffff7fff
push eax
push 0
call sub.shell32.dll_SHGetFolderPathW
mov dword [ebp - 0x10], eax
jmp 0x4d20ec
mov dword [ebp - 0x10], 0x80004005
cmp dword [ebp - 0x10], 0
je 0x4d210b
lea eax, [ebp - 0x218]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
call sub.shell32.dll_SHGetFolderPathW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4d2137
lea eax, [ebp - 0x21c]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.004072c0
mov eax, dword [ebp - 0x21c]
mov edx, dword [ebp - 0xc]
call fcn.004280f0
jmp 0x4d213f
mov eax, dword [ebp - 0xc]
call fcn.00406610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d215f
lea eax, [ebp - 0x21c]
call fcn.00406610
ret
Function at 0x4eb140
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4eb282
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 0xb], eax
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, 0x1f
ja 0x4eb178
bt dword [ebp - 0xb], eax
jae case.0x4eb1d5.0
mov ax, word [ebp - 4]
add ax, 0x41
mov word [ebp - 6], ax
lea eax, [ebp - 0x18]
mov dx, word [ebp - 6]
call fcn.0040722c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov ecx, 0x4eb29c
call fcn.00407404
lea eax, [ebp - 0x10]
mov ecx, 0x4eb2ac
mov edx, dword [ebp - 0x14]
call fcn.00407404
mov eax, dword [ebp - 0x10]
call fcn.00407214
push eax
call sub.kernel32.dll_GetDriveTypeW
mov byte [ebp - 7], al
xor eax, eax
mov al, byte [ebp - 7]
cmp eax, 6
ja case.0x4eb1d5.0
jmp dword [eax*4 + 0x4eb1dc]
mov eax, dword [ebp + 8]
push eax
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.004eb090
pop ecx
jmp case.0x4eb1d5.0
mov eax, dword [ebp + 8]
push eax
mov dl, 1
mov eax, dword [ebp - 0x14]
call fcn.004eb090
pop ecx
jmp case.0x4eb1d5.0
mov eax, dword [ebp + 8]
push eax
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.004eb090
pop ecx
jmp case.0x4eb1d5.0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x20]
test byte [eax + 0x28], 1
jne case.0x4eb1d5.0
mov eax, dword [ebp + 8]
push eax
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.004eb090
pop ecx
jmp case.0x4eb1d5.0
mov eax, dword [ebp + 8]
push eax
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.004eb090
pop ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x1a
jne 0x4eb16c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eb289
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00406670
ret
Function at 0x4fd650
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fd7f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push dword [eax + 8]
mov edx, 0x4fd810
mov eax, dword [ebp - 8]
call fcn.00443580
call fcn.004437c0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00409dc4
mov eax, dword [ebp - 0xc]
push eax
mov edx, 0x4fd824
mov eax, dword [ebp - 8]
call fcn.00443580
pop edx
call fcn.004436f0
mov edx, 0x4fd838
mov eax, dword [ebp - 8]
call fcn.00443580
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x14]
call fcn.00443770
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.00409dc4
mov eax, dword [ebp - 0x10]
push eax
mov edx, 0x4fd854
mov eax, dword [ebp - 8]
call fcn.00443580
pop edx
call fcn.004436f0
mov eax, dword [ebp - 4]
push dword [eax + 0x24]
push dword [eax + 0x20]
mov edx, 0x4fd874
mov eax, dword [ebp - 8]
call fcn.00443580
call fcn.004437c0
mov edx, 0x4fd8a4
mov eax, dword [ebp - 8]
call fcn.00443580
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
call fcn.004436f0
mov edx, 0x4fd8c0
mov eax, dword [ebp - 8]
call fcn.00443580
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2c]
call fcn.004436f0
mov edx, 0x4fd8d8
mov eax, dword [ebp - 8]
call fcn.00443580
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x30]
call fcn.004436f0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00409dc4
mov eax, dword [ebp - 0x14]
push eax
mov edx, 0x4fd900
mov eax, dword [ebp - 8]
call fcn.00443580
pop edx
call fcn.004436f0
mov edx, 0x4fd91c
mov eax, dword [ebp - 8]
call fcn.00443580
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x38]
call fcn.004436f0
mov eax, dword [ebp - 4]
push dword [eax + 0x44]
push dword [eax + 0x40]
mov edx, 0x4fd940
mov eax, dword [ebp - 8]
call fcn.00443580
call fcn.004437c0
mov eax, dword [ebp - 4]
push dword [eax + 0x4c]
push dword [eax + 0x48]
mov edx, 0x4fd974
mov eax, dword [ebp - 8]
call fcn.00443580
call fcn.004437c0
mov eax, dword [ebp - 4]
push dword [eax + 0x54]
push dword [eax + 0x50]
mov edx, 0x4fd9c8
mov eax, dword [ebp - 8]
call fcn.00443580
call fcn.004437c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fd7fe
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00406670
ret
Function at 0x5192d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004069d4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00406ae4
test eax, eax
jle 0x519353
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ax, word [eax + edx*2 - 2]
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x10]
dec eax
shl eax, 3
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
and ecx, 0x3f
call fcn.004080cc
and ax, word [ebp - 6]
xor word [ebp - 0x16], ax
mov eax, dword [ebp - 0xc]
call fcn.00406bac
mov edx, dword [ebp - 0x10]
mov cx, word [ebp - 0x16]
mov word [eax + edx*2 - 2], cx
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x519303
mov esp, ebp
pop ebp
ret 8

Function at 0x523e20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x523e3b
add esp, 0xfffffff0
call fcn.004052fc
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x523eff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x78], edx
mov dl, 1
mov eax, dword [0x427108]
call fcn.0042a560
mov edx, dword [ebp - 4]
mov dword [edx + 0xb0], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0051f3e0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0059c950
mov eax, dword [ebp - 4]
add eax, 0x24
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x2c]
call fcn.00406a70
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x30], ecx
mov ecx, dword [edx + 0x14]
mov dword [eax + 0x34], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0xb4], 1
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00523d70
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 4]
mov edx, dword [edx + 0x10]
add edx, 0xc
call fcn.005a0820
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523f06
lea eax, [ebp - 0x14]
call fcn.00406610
lea eax, [ebp - 0x10]
call fcn.00406634
ret
Function at 0x5567d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
mov edx, dword [0x5566f8]
call fcn.004078d0
xor eax, eax
push ebp
push 0x55689e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x5566ac]
call fcn.00408510
add esp, 4
lea eax, [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push 0x556730
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 0x14]
call fcn.0040835c
test eax, eax
jne 0x55683a
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x556882
mov eax, dword [ebp - 0x14]
call fcn.00408364
test eax, eax
jl 0x55687a
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x556872
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0xc], eax
jmp 0x556882
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x556851
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5568a5
lea eax, [ebp - 0x18]
mov edx, dword [0x5566f8]
call fcn.004079a8
ret

Function at 0x55a560
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x50]
mov edx, 0x44
call fcn.0042b030
mov dword [ebp - 0x50], 0x44
lea eax, [ebp - 0x60]
mov edx, 0x10
call fcn.0042b030
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407214
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x55a5d7
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x577c70
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x577c78
push ecx
xor eax, eax
push ebp
push 0x577e62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax]
call dword [edx + 0xb8]
cmp edx, 0
jne 0x577cad
cmp eax, 0x80000000
ja 0x577cb3
jmp 0x577e3a
jle 0x577e3a
lea edx, [ebp - 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0041d9e0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov ecx, 0x577e7c
call fcn.00407404
lea eax, [ebp - 8]
mov edx, 0x105
call fcn.0040732c
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
call fcn.00406ae4
push eax
mov eax, dword [ebp - 8]
call fcn.00407214
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407214
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
jne 0x577d7d
push 0x577e8c
lea edx, [ebp - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 4
call fcn.0047a2f0
push dword [ebp - 0x28]
push 0x577eec
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax]
call dword [ecx + 0x98]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.0040748c
mov edx, dword [ebp - 0x24]
mov eax, dword [0x5ddb4c]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0043f720
jmp 0x577e3a
mov eax, dword [ebp - 8]
call fcn.00407214
mov edx, eax
lea eax, [ebp - 8]
call fcn.0040726c
mov edx, 0x577f1c
mov eax, dword [ebp - 8]
call fcn.00428240
test eax, eax
jne 0x577db0
mov dword [ebp - 0x10], 0x80000000
mov dword [ebp - 0xc], 0
jmp 0x577e00
mov edx, 0x577f34
mov eax, dword [ebp - 8]
call fcn.00428240
test eax, eax
jne 0x577dd1
mov dword [ebp - 0x10], 0x80000000
mov dword [ebp - 0xc], 0
jmp 0x577e00
mov edx, 0x577f48
mov eax, dword [ebp - 8]
call fcn.00428240
test eax, eax
jne 0x577df2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 1
jmp 0x577e00
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x577e0e
cmp dword [ebp - 0x10], 0
jbe 0x577e3a
jmp 0x577e10
jle 0x577e3a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax]
call dword [edx + 0xb8]
cmp edx, dword [ebp - 0xc]
jne 0x577e2a
cmp eax, dword [ebp - 0x10]
jbe 0x577e3a
jmp 0x577e2c
jle 0x577e3a
mov eax, dword [ebp + 8]
add eax, 0xffffffdc
mov edx, dword [ebp - 4]
call fcn.00406a1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x577e69
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.00406670
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406670
ret