joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ffa94
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.0x5ffb2e.0
jmp dword [ecx*4 + 0x5ffac7]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5ffaf9
sub dl, 8
je 0x5ffb08
jmp case.0x5ffb2e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5ff740
jmp case.0x5ffb2e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5ff798
jmp case.0x5ffb2e.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x5ffb2e.0
movzx ecx, byte [ecx + 0x5ffb35]
jmp dword [ecx*4 + 0x5ffb46]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5ff844
jmp case.0x5ffb2e.0
cmp dl, 3
jne 0x5ffb73
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5ff898
jmp case.0x5ffb2e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5ff854
jmp case.0x5ffb2e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5ff8dc
jmp case.0x5ffb2e.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5ffb9e
sub dl, 8
je 0x5ffbaa
jmp case.0x5ffb2e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5ff908
jmp case.0x5ffb2e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5ff974
jmp case.0x5ffb2e.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5ffbc9
sub dl, 8
je 0x5ffbd5
jmp case.0x5ffb2e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5ffa30
jmp case.0x5ffb2e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5ffa58
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 0x5ffc79
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.005fecd4
test eax, eax
je 0x5ffc79
mov eax, ebx
call fcn.005ffc84
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 0x5ffc12
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5ffc84
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 0x5ffcb5
dec al
je 0x5ffcf0
dec al
je 0x5ffd35
dec al
je 0x5ffd9e
jmp 0x5ffe28
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x5ffe28
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 0x5ffcc5
jmp 0x5ffe28
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5ffe28
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 0x5ffd00
jmp 0x5ffe28
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5ffe28
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 0x5ffd64
xor ebp, ebp
jmp 0x5ffd74
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 0x5ffd7d
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 0x5ffd45
jmp 0x5ffe28
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5ffe28
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 0x5ffdf7
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.005fd094
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 0x5ffdb2
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x60c054
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
test dl, dl
je 0x60c069
add esp, 0xfffffff0
call fcn.004048cc
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0040594c
xor eax, eax
push ebp
push 0x60c144
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.006060a0
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.0041ef94
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.0041ef94
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.0041ef94
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.0041ef94
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.0041efd0
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 0x60c14b
lea eax, [ebp - 4]
call fcn.004054cc
ret
Function at 0x6121f0
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 0x612367
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x612380
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.00405520
push 0xffffffffffffffff
mov ecx, 0x612390
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, 0x6123ac
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x34], eax
mov ecx, 0x6123cc
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.0061ec1c
mov byte [ebx + 0xc], al
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x6123e8
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.0061eb08
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, 0x6123fc
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.0061eb08
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, 0x612414
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.0061eb08
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, 0x612430
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.0061ec1c
mov byte [ebx + 0x48], al
mov ecx, 0x612444
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.00605bec
mov byte [ebx + 0x49], al
push 0xffffffffffffffff
mov ecx, 0x612458
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, 0x612478
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, 0x61249c
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, 0x6124b8
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, 0x6124d4
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 0x61236e
lea eax, [ebp - 4]
call fcn.004054cc
ret
Function at 0x639ffc
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 0x63a0b3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.0040595c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x63a03e
call fcn.00404ec8
jmp 0x63a0ba
mov eax, ebx
call fcn.00402fe8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.0040595c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x63a067
call fcn.00404ec8
jmp 0x63a0ba
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x63a0c8
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x63a088
call fcn.00404ec8
jmp 0x63a0ba
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 0x63a0ba
mov eax, dword [ebp - 8]
call fcn.00403004
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x63a314
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 0x63a37c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, 0x160
call fcn.00403cd4
test ebx, ebx
jne 0x63a351
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 0x63a388
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x63a60c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
push 0x63a770
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x63a766
xor eax, eax
push ebp
push 0x63a75f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4001
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push 0x63a77c
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
push 0x4000
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push 0x63a77c
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 [0x65fd5c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63a766
cmp dword [ebp - 4], 0
je 0x63a75e
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 0x640744
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x64074c
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x6408af
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x6407ad
lea edx, [ebp - 8]
mov eax, dword [0x6600b0]
call fcn.00407b3c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0063de10
cmp ebx, 1
jbe 0x6407e4
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, 0x6408c8
call fcn.0040bc98
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00405798
jmp 0x6407e4
lea eax, [ebp - 4]
mov edx, 0x6408d8
call fcn.00405564
cmp ebx, 1
jbe 0x6407e4
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, 0x6408e8
call fcn.0040bc98
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.00405798
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 4]
call fcn.004057e4
mov eax, dword [ebp - 0x1c]
call fcn.0040595c
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x640877
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
jne 0x64081c
mov bl, 1
jmp 0x640887
push 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040e99c
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 [0x6607c0]
call fcn.00407b3c
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0063de10
mov eax, dword [ebp - 0x28]
mov ecx, 1
pop edx
call fcn.0063b55c
mov eax, dword [ebp - 0x20]
movzx ecx, word [0x6408ec]
xor edx, edx
call fcn.0047b8d0
mov bl, 2
jmp 0x640887
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.00405520
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6408b6
lea eax, [ebp - 0x2c]
mov edx, 6
call fcn.004054f0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004054f0
ret

Function at 0x640f54
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 0x640fee
push dword fs:[eax]
mov dword fs:[eax], esp
test edx, 0x40000000
jne 0x640fa0
lea edx, [ebp - 0x164]
mov eax, dword [0x6607bc]
call fcn.00407b3c
mov eax, dword [ebp - 0x164]
mov edx, ebx
call fcn.0063de10
jmp 0x640fd5
push 0x408
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
push esi
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x640fce
mov eax, ebx
lea edx, [ebp - 0x50]
mov ecx, 0x50
call fcn.0040573c
jmp 0x640fd5
mov eax, ebx
call fcn.004054cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x640ff5
lea eax, [ebp - 0x164]
call fcn.004054cc
ret
Function at 0x6419e8
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 0x641a1b
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x641a14
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.0040594c
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 4]
mov edx, dword [0x401134]
call fcn.00406390
xor eax, eax
push ebp
push 0x641bac
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x641b74
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 8]
push 0x641bd4
push dword [esi]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00405860
mov eax, dword [ebp - 0x158]
call fcn.0040595c
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x641b68
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x641b4d
test al, 2
jne 0x641b4d
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push 0x641bd4
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.0040573c
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00405860
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x10]
call fcn.0063a178
test eax, 0x80000000
setne al
test al, al
je 0x641b0b
or edi, 0xffffffff
jmp 0x641b1a
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0063a314
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.0063a0dc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.0040573c
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 0x641a9d
push ebx
call sub.kernel32.dll_FindClose_1
add esi, 4
dec dword [ebp - 0x14]
jne 0x641a60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x641bb3
lea eax, [ebp - 0x164]
mov edx, 4
call fcn.004054f0
lea eax, [ebp - 8]
call fcn.004054cc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x401134]
call fcn.00406250
ret

Function at 0x642d94
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 0x642e16
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x700f0037
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00642e9c
mov eax, dword [ebp - 4]
call fcn.00640ac0
test al, al
je 0x642de7
mov eax, dword [ebp - 4]
call fcn.0040595c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x642de7
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 0x642e1d
lea eax, [ebp - 4]
call fcn.004054cc
ret
Function at 0x642e3c
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 0x642e87
push 0x208
push 0x160
lea eax, [esp + 8]
push eax
push 0
mov eax, ebx
call fcn.00642d70
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x642e87
lea eax, [esp + 0xc]
call fcn.0040b53c
mov ecx, eax
lea edx, [esp + 0xc]
lea eax, [ebx + 0x14]
call fcn.004055bc
mov eax, esi
mov edx, dword [ebx + 0x14]
call fcn.00405520
add esp, 0x160
pop esi
pop ebx
ret

Function at 0x6469c4
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.0040594c
xor eax, eax
push ebp
push 0x646a23
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040595c
push eax
call sub.kernel32.dll_GetDriveTypeA
add eax, 0xfffffffd
sub eax, 2
jb 0x6469fb
dec eax
jne 0x646a0d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
mov si, 0xff9c
call fcn.00404764
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x646a2a
lea eax, [ebp - 4]
call fcn.004054cc
ret

Function at 0x646a30
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 0x646adf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x410], 0
jne 0x646a7e
push 0x465
mov eax, dword [ebp - 4]
call fcn.00465948
mov ecx, eax
mov dl, 1
mov eax, dword [0x643034]
call fcn.006430a0
mov edx, dword [ebp - 4]
mov dword [edx + 0x410], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x410]
call fcn.00643568
lea eax, [ebp - 8]
mov edx, 0x646af4
call fcn.00405564
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x646ac9
test bl, 1
je 0x646ac2
lea eax, [ebp - 8]
call fcn.004059bc
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.006469c4
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x646aa6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x646ae6
lea eax, [ebp - 8]
call fcn.004054cc
ret