joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c0378
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 1
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
call sub.IMAGEHLP.DLL_ImageDirectoryEntryToData
mov ebx, eax
test ebx, ebx
je 0x5c0416
jmp 0x5c03b9
mov esi, dword [ebp + 8]
add esi, edi
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_lstrcmpiA
test eax, eax
je 0x5c03c0
add ebx, 0x14
mov edi, dword [ebx + 0xc]
test edi, edi
jne 0x5c03a3
cmp dword [ebx + 0xc], 0
je 0x5c0416
mov eax, dword [ebp + 8]
add eax, dword [ebx + 0x10]
mov ebx, eax
jmp 0x5c0411
mov esi, ebx
mov eax, dword [esi]
cmp eax, dword [ebp - 8]
sete al
neg al
sbb edi, edi
test edi, edi
je 0x5c040e
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_VirtualProtectEx
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
jmp 0x5c0416
add ebx, 4
cmp dword [ebx], 0
jne 0x5c03d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5d0320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0043192c
cmp ebx, dword [ebp - 8]
jge 0x5d0383
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00431da4
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00431da4
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00431dd0
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x5d0349
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x5d038c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0043192c
cmp ebx, dword [ebp - 8]
jge 0x5d03ef
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00431da4
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00431da4
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00431dd0
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x5d03b5
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x5d2874
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 0x5d292b
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 0x5d28b6
call fcn.00404ec8
jmp 0x5d2932
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 0x5d28df
call fcn.00404ec8
jmp 0x5d2932
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5d2940
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x5d2900
call fcn.00404ec8
jmp 0x5d2932
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 0x5d2932
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 0x5d2b8c
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 0x5d2bf4
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 0x5d2bc9
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 0x5d2c00
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5d2ee0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
push 0x5d308c
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5d3084
xor eax, eax
push ebp
push 0x5d307d
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 6], 0
push 0x4001
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x5d3098
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
test esi, esi
jne 0x5d2f58
push 0x4009
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
lea eax, [ebp - 6]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
push 0x4000
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x5d3098
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
test edi, edi
jne 0x5d2f99
push 0x4008
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
lea eax, [ebp - 6]
push eax
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
mov edx, ebx
mov eax, esi
call fcn.0042bdc0
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
mov edx, ebx
mov eax, edi
call fcn.0042bdc0
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
mov edx, ebx
mov eax, esi
call fcn.0042bdc0
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
mov edx, ebx
mov eax, edi
call fcn.0042bdc0
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
mov byte [0x65e838], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d3084
cmp dword [ebp - 4], 0
je 0x5d307c
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 0x5d309c
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.005d2868
test al, al
je 0x5d30c9
cmp dword [0x667ed0], 0x40047
jl 0x5d30c9
cmp byte [0x65e838], 0
jne 0x5d30c9
call fcn.005d2ee0
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x65e83c]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x5d312c
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x5d3121
mov word [esp], 0
mov eax, dword [esi*4 + 0x65e83c]
or eax, 0x4000
or eax, 8
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x5db550
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x5db558
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x5db6a5
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x5db5ae
lea edx, [ebp - 4]
mov eax, dword [0x6600ac]
call fcn.00407b3c
cmp ebx, 1
jbe 0x5db5e5
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x5db6bc
call fcn.0040bc98
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00405798
jmp 0x5db5e5
lea eax, [ebp - 4]
mov edx, 0x5db6cc
call fcn.00405564
cmp ebx, 1
jbe 0x5db5e5
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x5db6dc
call fcn.0040bc98
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00405798
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 4]
call fcn.004057e4
mov eax, dword [ebp - 0x18]
call fcn.0040595c
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x5db66d
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
jne 0x5db61d
mov bl, 1
jmp 0x5db67d
push 0
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0040e99c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x6607b8]
call fcn.00407b3c
mov eax, dword [ebp - 0x24]
mov ecx, 1
pop edx
call fcn.005d3ec8
mov eax, dword [ebp - 0x1c]
movzx ecx, word [0x5db6e0]
xor edx, edx
call fcn.0047b8d0
mov bl, 2
jmp 0x5db67d
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 0x5db6ac
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.004054f0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004054f0
ret

Function at 0x5dbd20
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, ecx
mov esi, eax
test edx, 0x40000000
jne 0x5dbd42
mov edx, ebx
mov eax, dword [0x6607b4]
call fcn.00407b3c
jmp 0x5dbd79
push 0x408
push 0x160
lea eax, [esp + 8]
push eax
push 0
push esi
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x5dbd72
mov eax, ebx
lea edx, [esp + 0x110]
mov ecx, 0x50
call fcn.0040573c
jmp 0x5dbd79
mov eax, ebx
call fcn.004054cc
add esp, 0x160
pop esi
pop ebx
ret
Function at 0x5dc6fc
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 0x5dc72f
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x5dc728
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 0x5dc8bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x5dc885
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 8]
push 0x5dc8e4
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 0x5dc879
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x5dc85e
test al, 2
jne 0x5dc85e
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push 0x5dc8e4
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.005d29f0
call fcn.0041186c
test al, al
je 0x5dc81c
or edi, 0xffffffff
jmp 0x5dc82b
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.005d2b8c
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.005d2954
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 0x5dc7b1
push ebx
call sub.kernel32.dll_FindClose_1
add esi, 4
dec dword [ebp - 0x14]
jne 0x5dc774
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5dc8c4
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 0x5dda24
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5ddaf1
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5ddad4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x700f0037
mov eax, dword [0x660a1c]
cmp dword [eax + 4], 0x60000
jl 0x5dda74
or dword [ebp - 8], 0x400000
lea edx, [ebp - 4]
mov eax, ebx
call fcn.005ddb84
mov eax, dword [ebp - 4]
call fcn.005db8d4
test al, al
je 0x5ddaa4
mov eax, dword [ebp - 4]
call fcn.0040595c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x5ddaa4
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 + 0x468]
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 0x5ddadb
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x5e15ec
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0040595c
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
je 0x5e162e
dec eax
je 0x5e160f
sub eax, 2
je 0x5e162e
jmp 0x5e163f
movzx eax, byte [ebx]
call fcn.005d436c
test al, al
je 0x5e163f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9e
call fcn.00404764
jmp 0x5e163f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9e
call fcn.00404764
pop esi
pop ebx
pop ebp
ret

Function at 0x5e1644
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 0x5e16f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x430], 0
jne 0x5e1692
push 0x465
mov eax, dword [ebp - 4]
call fcn.00465948
mov ecx, eax
mov dl, 1
mov eax, dword [0x5ddd20]
call fcn.005ddd8c
mov edx, dword [ebp - 4]
mov dword [edx + 0x430], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x430]
call fcn.005de26c
lea eax, [ebp - 8]
mov edx, 0x5e1708
call fcn.00405564
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x5e16dd
test bl, 1
je 0x5e16d6
lea eax, [ebp - 8]
call fcn.004059bc
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.005e15ec
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x5e16ba
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e16fa
lea eax, [ebp - 8]
call fcn.004054cc
ret
Function at 0x5e2290
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0040594c
xor eax, eax
push ebp
push 0x5e23ae
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5e2381
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
or eax, 1
push eax
call sub.kernel32.dll_SetErrorMode
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
call fcn.0040595c
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5e235e
test byte [ebp - 0x14c], 0x10
jne 0x5e2341
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.0040573c
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.0040a150
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x5e2304
push ebx
call sub.kernel32.dll_FindClose_1
mov byte [ebp - 5], 1
jmp 0x5e236a
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e2388
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x5e6f88
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, eax
movzx eax, byte [ebx + 4]
sub al, 1
jb 0x5e6f97
je 0x5e6f9c
jmp 0x5e6fc0
mov eax, dword [ebx + 8]
pop ebx
ret
cmp dword [ebx + 8], 0
jne 0x5e6fbb
lea eax, [ebx + 8]
push eax
movzx eax, byte [ebx + 0xc]
push eax
mov eax, dword [0x660674]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebx + 8]
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x5f78c4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x5f78f7
movzx eax, byte [ebx]
mov edx, dword [0x65ec64]
cmp al, byte [edx]
jne 0x5f78f7
cmp dword [ebp + 8], 0x38
je 0x5f7901
mov eax, 0xfffffffa
jmp 0x5f7ac7
lea eax, [esi + 0x18]
call fcn.004054cc
cmp dword [esi + 0x20], 0
jne 0x5f791b
mov dword [esi + 0x20], 0x5f77d4
xor eax, eax
mov dword [esi + 0x28], eax
cmp dword [esi + 0x24], 0
jne 0x5f7928
mov dword [esi + 0x24], 0x5f77cc
cmp dword [ebp - 4], 0xffffffff
jne 0x5f7935
mov dword [ebp - 4], 6
test edi, edi
jge 0x5f7942
mov dword [ebp - 0xc], 1
neg edi
cmp dword [ebp + 0x14], 1
jl 0x5f7976
cmp dword [ebp + 0x14], 9
jg 0x5f7976
cmp dword [ebp - 8], 8
jne 0x5f7976
cmp edi, 8
jl 0x5f7976
cmp edi, 0xf
jg 0x5f7976
cmp dword [ebp - 4], 0
jl 0x5f7976
cmp dword [ebp - 4], 9
jg 0x5f7976
cmp dword [ebp + 0x10], 0
jl 0x5f7976
cmp dword [ebp + 0x10], 2
jle 0x5f7980
mov eax, 0xfffffffe
jmp 0x5f7ac7
mov eax, esi
mov ecx, 0x16bc
mov edx, 1
call fcn.005f77e0
mov ebx, eax
test ebx, ebx
jne 0x5f79a1
mov eax, 0xfffffffc
jmp 0x5f7ac7
mov dword [esi + 0x1c], ebx
mov dword [ebx], esi
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x18], eax
mov eax, edi
mov dword [ebx + 0x28], eax
mov ecx, eax
mov edx, 1
shl edx, cl
mov dword [ebx + 0x24], edx
dec edx
mov dword [ebx + 0x2c], edx
mov eax, dword [ebp + 0x14]
add eax, 7
mov dword [ebx + 0x48], eax
mov ecx, eax
mov edx, 1
shl edx, cl
mov dword [ebx + 0x44], edx
dec edx
mov dword [ebx + 0x4c], edx
mov eax, dword [ebx + 0x48]
add eax, 3
dec eax
mov ecx, 3
xor edx, edx
div ecx
mov dword [ebx + 0x50], eax
mov eax, esi
mov ecx, 2
mov edx, dword [ebx + 0x24]
call fcn.005f77e0
mov dword [ebx + 0x30], eax
mov eax, esi
mov ecx, 2
mov edx, dword [ebx + 0x24]
call fcn.005f77e0
mov dword [ebx + 0x38], eax
mov eax, esi
mov ecx, 2
mov edx, dword [ebx + 0x44]
call fcn.005f77e0
mov dword [ebx + 0x3c], eax
mov ecx, dword [ebp + 0x14]
add ecx, 6
mov edi, 1
shl edi, cl
mov dword [ebx + 0x1690], edi
mov eax, esi
mov ecx, 4
mov edx, edi
call fcn.005f77e0
mov dword [ebx + 8], eax
mov edx, dword [ebx + 0x1690]
add edx, edx
add edx, edx
mov dword [ebx + 0xc], edx
cmp dword [ebx + 0x30], 0
je 0x5f7a6c
cmp dword [ebx + 0x38], 0
je 0x5f7a6c
cmp dword [ebx + 0x3c], 0
je 0x5f7a6c
cmp dword [ebx + 8], 0
jne 0x5f7a87
lea eax, [esi + 0x18]
mov edx, 0x65ecec
call fcn.00405730
mov eax, esi
call fcn.005f7e74
mov eax, 0xfffffffc
jmp 0x5f7ac7
mov edx, dword [ebx + 0x1690]
shr edx, 1
lea eax, [eax + edx*2]
mov dword [ebx + 0x1698], eax
mov eax, dword [ebx + 0x1690]
lea eax, [eax + eax*2]
mov edx, dword [ebx + 8]
lea eax, [edx + eax]
mov dword [ebx + 0x168c], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x7c], eax
movzx eax, byte [ebp - 8]
mov byte [ebx + 0x1d], al
mov eax, esi
call fcn.005f7af8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x5f8178
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x34]
sub esi, dword [ebx + 0x6c]
sub esi, dword [ebx + 0x64]
test esi, esi
jne 0x5f81a1
cmp dword [ebx + 0x64], 0
jne 0x5f81a1
cmp dword [ebx + 0x6c], 0
jne 0x5f81a1
mov esi, edi
jmp 0x5f822d
cmp esi, 0xffffffff
jne 0x5f81ac
dec esi
jmp 0x5f822d
mov eax, dword [ebx + 0x64]
lea edx, [edi + edi]
sub edx, 0x106
cmp eax, edx
jb 0x5f822d
mov eax, dword [ebx + 0x30]
lea edx, [eax + edi]
mov ecx, edi
call fcn.005f77bc
sub dword [ebx + 0x68], edi
sub dword [ebx + 0x64], edi
sub dword [ebx + 0x54], edi
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x5f81f5
movzx ecx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x5f81fa
mov word [edx], 0
dec eax
test eax, eax
jne 0x5f81db
mov eax, edi
mov edx, dword [ebx + 0x38]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x5f8221
movzx ecx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x5f8226
mov word [edx], 0
dec eax
test eax, eax
jne 0x5f8207
add esi, edi
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x5f828b
mov edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x30]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.005f7ef0
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x5f8276
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x30]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x5f828b
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x5f8181
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5fd00c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x669168
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x5fd02e
shr eax, 1
xor eax, 0xedb88320
jmp 0x5fd030
shr eax, 1
dec edx
jne 0x5fd01c
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x5fd015
mov byte [0x669568], 1
pop esi
pop ebx
ret

Function at 0x5fd04c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x669568], 0
jne 0x5fd063
call fcn.005fd00c
mov eax, edi
dec eax
test eax, eax
jl 0x5fd08b
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x669168]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x5fd06d
mov eax, ebx
pop edi
pop esi
pop ebx
ret