joyce8/EMBER2024-capa huggingface dataset:
Function at 0x563414
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x5634ae.0
jmp dword [ecx*4 + 0x563447]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x563479
sub dl, 8
je 0x563488
jmp case.0x5634ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5630c0
jmp case.0x5634ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x563118
jmp case.0x5634ae.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x5634ae.0
movzx ecx, byte [ecx + 0x5634b5]
jmp dword [ecx*4 + 0x5634c6]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5631c4
jmp case.0x5634ae.0
cmp dl, 3
jne 0x5634f3
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x563218
jmp case.0x5634ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5631d4
jmp case.0x5634ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x56325c
jmp case.0x5634ae.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x56351e
sub dl, 8
je 0x56352a
jmp case.0x5634ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x563288
jmp case.0x5634ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5632f4
jmp case.0x5634ae.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x563549
sub dl, 8
je 0x563555
jmp case.0x5634ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5633b0
jmp case.0x5634ae.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5633d8
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
mov esi, edx
add esi, dword [eax + 0x44c]
mov dword [ebp - 0x10], esi
mov esi, ecx
test esi, esi
jb 0x5635f9
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00562654
test eax, eax
je 0x5635f9
mov eax, ebx
call fcn.00563604
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x563592
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x563604
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x563635
dec al
je 0x563670
dec al
je 0x5636b5
dec al
je 0x56371e
jmp 0x5637a8
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x5637a8
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x563645
jmp 0x5637a8
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5637a8
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x563680
jmp 0x5637a8
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5637a8
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x5636e4
xor ebp, ebp
jmp 0x5636f4
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x5636fd
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x5636c5
jmp 0x5637a8
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5637a8
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x563777
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00560fac
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x563732
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x56dda4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
test dl, dl
je 0x56ddb9
add esp, 0xfffffff0
call fcn.004042e8
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405368
xor eax, eax
push ebp
push 0x56de94
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00567df0
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.0041e70c
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x24], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.0041e70c
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x3c], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.0041e70c
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x34], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.0041e70c
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x2c], eax
push 0
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0041e748
push esi
lea edi, [esi + 0x40]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov dword [esi + 0xc], 0xffffffff
mov byte [esi + 0x52], 0
mov byte [esi + 0x53], 0
mov byte [esi + 0x54], 0
mov byte [esi + 0x55], 0
mov byte [esi + 0x50], 0
mov byte [esi + 0x51], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56de9b
lea eax, [ebp - 4]
call fcn.00404ee8
ret
Function at 0x573f40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5740b7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x5740d0
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 4]
lea eax, [ebx + 8]
call fcn.00404f3c
push 0xffffffffffffffff
mov ecx, 0x5740e0
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x30], eax
push 0xffffffffffffffff
mov ecx, 0x5740fc
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x34], eax
mov ecx, 0x57411c
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.0057dba8
mov byte [ebx + 0xc], al
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x574138
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.0057da94
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0xd]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x57414c
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.0057da94
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x1d]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x574164
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.0057da94
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov ecx, 0x574180
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.0057dba8
mov byte [ebx + 0x48], al
mov ecx, 0x574194
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.0056793c
mov byte [ebx + 0x49], al
push 0xffffffffffffffff
mov ecx, 0x5741a8
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x4c], eax
push 0xffffffffffffffff
mov ecx, 0x5741c8
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x50], eax
push 0
mov ecx, 0x5741ec
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x54], eax
push 0
mov ecx, 0x574208
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x58], eax
push 0xff
mov ecx, 0x574224
mov edx, dword [ebx + 4]
mov eax, esi
mov esi, dword [eax]
call dword [esi + 8]
mov dword [ebx + 0x5c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5740be
lea eax, [ebp - 4]
call fcn.00404ee8
ret
Function at 0x594ca8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x594d5f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00405378
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x594cea
call fcn.004048e4
jmp 0x594d66
mov eax, ebx
call fcn.00402f9c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.00405378
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x594d13
call fcn.004048e4
jmp 0x594d66
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x594d74
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x594d34
call fcn.004048e4
jmp 0x594d66
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x594d66
mov eax, dword [ebp - 8]
call fcn.00402fb8
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x594fc0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x595028
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, 0x160
call fcn.00403814
test ebx, ebx
jne 0x594ffd
mov word [ebp - 2], 0
lea ebx, [ebp - 2]
or esi, 0x4008
push esi
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push ebx
call sub.shell32.dll_SHGetFileInfoA
mov ebx, dword [ebp - 0x160]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x595034
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5952b8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
push 0x59541c
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x595412
xor eax, eax
push ebp
push 0x59540b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4001
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push 0x595428
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
push 0x4000
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push 0x595428
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
push 0x8000
push 0x10
push 0x10
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
push ebx
push 0xffffffffffffffff
push esi
call sub.comctl32.dll_ImageList_ReplaceIcon
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
push ebx
push 0xffffffffffffffff
push edi
call sub.comctl32.dll_ImageList_ReplaceIcon
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x10
push 0x10
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
push ebx
push 0xffffffffffffffff
push esi
call sub.comctl32.dll_ImageList_ReplaceIcon
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
push ebx
push 0xffffffffffffffff
push edi
call sub.comctl32.dll_ImageList_ReplaceIcon
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
mov byte [0x5b476c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x595412
cmp dword [ebp - 4], 0
je 0x59540a
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x59b3f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x59b3f8
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x59b55b
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x59b459
lea edx, [ebp - 8]
mov eax, dword [0x5b49e0]
call fcn.00407524
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00598abc
cmp ebx, 1
jbe 0x59b490
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x59b574
call fcn.0040b4d8
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.004051b4
jmp 0x59b490
lea eax, [ebp - 4]
mov edx, 0x59b584
call fcn.00404f80
cmp ebx, 1
jbe 0x59b490
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x59b594
call fcn.0040b4d8
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.004051b4
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 4]
call fcn.00405200
mov eax, dword [ebp - 0x1c]
call fcn.00405378
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x59b523
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
jne 0x59b4c8
mov bl, 1
jmp 0x59b533
push 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040e1dc
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x5b5058]
call fcn.00407524
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00598abc
mov eax, dword [ebp - 0x28]
mov ecx, 1
pop edx
call fcn.00596208
mov eax, dword [ebp - 0x20]
movzx ecx, word [0x59b598]
xor edx, edx
call fcn.0047c07c
mov bl, 2
jmp 0x59b533
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.00404f3c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59b562
lea eax, [ebp - 0x2c]
mov edx, 6
call fcn.00404f0c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404f0c
ret

Function at 0x59bc00
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov ebx, ecx
mov esi, eax
xor eax, eax
push ebp
push 0x59bc9a
push dword fs:[eax]
mov dword fs:[eax], esp
test edx, 0x40000000
jne 0x59bc4c
lea edx, [ebp - 0x164]
mov eax, dword [0x5b5054]
call fcn.00407524
mov eax, dword [ebp - 0x164]
mov edx, ebx
call fcn.00598abc
jmp 0x59bc81
push 0x408
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
push esi
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x59bc7a
mov eax, ebx
lea edx, [ebp - 0x50]
mov ecx, 0x50
call fcn.00405158
jmp 0x59bc81
mov eax, ebx
call fcn.00404ee8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59bca1
lea eax, [ebp - 0x164]
call fcn.00404ee8
ret
Function at 0x59c694
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x158], ebx
mov ebx, ecx
test ebx, ebx
js 0x59c6c7
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x59c6c0
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00405368
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 4]
mov edx, dword [0x401128]
call fcn.00405dac
xor eax, eax
push ebp
push 0x59c858
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x59c820
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 8]
push 0x59c880
push dword [esi]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.0040527c
mov eax, dword [ebp - 0x158]
call fcn.00405378
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x59c814
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x59c7f9
test al, 2
jne 0x59c7f9
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push 0x59c880
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00405158
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.0040527c
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x10]
call fcn.00594e24
test eax, 0x80000000
setne al
test al, al
je 0x59c7b7
or edi, 0xffffffff
jmp 0x59c7c6
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00594fc0
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.00594d88
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00405158
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov ecx, edi
mov edi, dword [eax]
call dword [edi + 0x3c]
lea eax, [ebp - 0x154]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x59c749
push ebx
call sub.kernel32.dll_FindClose_1
add esi, 4
dec dword [ebp - 0x14]
jne 0x59c70c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59c85f
lea eax, [ebp - 0x164]
mov edx, 4
call fcn.00404f0c
lea eax, [ebp - 8]
call fcn.00404ee8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x401128]
call fcn.00405c6c
ret

Function at 0x59da40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x59dac2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x700f0037
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0059db48
mov eax, dword [ebp - 4]
call fcn.0059b76c
test al, al
je 0x59da93
mov eax, dword [ebp - 4]
call fcn.00405378
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x59da93
and dword [ebp - 8], 0xfffbffff
lea eax, [ebp - 8]
push eax
lea eax, [ebx + 0xc]
push eax
push 1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x410]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59dac9
lea eax, [ebp - 4]
call fcn.00404ee8
ret
Function at 0x59dae8
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov esi, edx
mov ebx, eax
cmp dword [ebx + 0x14], 0
jne 0x59db33
push 0x208
push 0x160
lea eax, [esp + 8]
push eax
push 0
mov eax, ebx
call fcn.0059da1c
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x59db33
lea eax, [esp + 0xc]
call fcn.0040ad7c
mov ecx, eax
lea edx, [esp + 0xc]
lea eax, [ebx + 0x14]
call fcn.00404fd8
mov eax, esi
mov edx, dword [ebx + 0x14]
call fcn.00404f3c
add esp, 0x160
pop esi
pop ebx
ret

Function at 0x5a1670
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405368
xor eax, eax
push ebp
push 0x5a16cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405378
push eax
call sub.kernel32.dll_GetDriveTypeA
add eax, 0xfffffffd
sub eax, 2
jb 0x5a16a7
dec eax
jne 0x5a16b9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
mov si, 0xff9c
call fcn.00404180
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a16d6
lea eax, [ebp - 4]
call fcn.00404ee8
ret

Function at 0x5a16dc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a178b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x410], 0
jne 0x5a172a
push 0x465
mov eax, dword [ebp - 4]
call fcn.00464ef4
mov ecx, eax
mov dl, 1
mov eax, dword [0x59dce0]
call fcn.0059dd4c
mov edx, dword [ebp - 4]
mov dword [edx + 0x410], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x410]
call fcn.0059e214
lea eax, [ebp - 8]
mov edx, 0x5a17a0
call fcn.00404f80
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x5a1775
test bl, 1
je 0x5a176e
lea eax, [ebp - 8]
call fcn.004053d8
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.005a1670
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x5a1752
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a1792
lea eax, [ebp - 8]
call fcn.00404ee8
ret