joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a67f4
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.00431a7c
cmp ebx, dword [ebp - 8]
jge 0x4a6857
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00431fbc
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00431fbc
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00431ffc
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4a681d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4a6860
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.00431a7c
cmp ebx, dword [ebp - 8]
jge 0x4a68c3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00431fbc
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00431fbc
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00431ffc
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4a6889
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b045c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4b048a
mov eax, ebx
call fcn.004b0f14
cmp dword [ebx + 0x3c], 0
je 0x4b0483
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4b04fb
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4b04ed
cmp dword [ebx + 8], 0
je 0x4b04ac
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4b04be
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b04ed
cmp dword [ebx + 8], 0
je 0x4b049f
cmp eax, 3
je 0x4b04d1
dec eax
jne 0x4b049f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4b049f
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4b049f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4b0519
cmp dword [ebx + 0x10], 0xcc
je 0x4b0519
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004b0524
pop ebx
ret
Function at 0x50d4c0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, ecx
push esp
push edx
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404ad0
add esp, 0x10c
pop ebx
ret

Function at 0x50d4fc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, edx
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00404ad0
mov eax, dword [ebx]
call fcn.00404b3c
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
jne 0x50d547
mov eax, dword [ebx]
call fcn.00404b3c
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404dd4
add esp, 0x100
pop ebx
ret

Function at 0x50d550
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, edx
push esp
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00404ad0
mov eax, dword [ebx]
call fcn.00404b3c
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
jne 0x50d597
mov eax, dword [ebx]
call fcn.00404b3c
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404dd4
add esp, 0x100
pop ebx
ret

Function at 0x50d5bc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, edx
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
je 0x50d60d
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404ad0
mov eax, dword [ebx]
call fcn.00404b3c
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
jne 0x50d623
mov eax, dword [ebx]
call fcn.00404b3c
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404dd4
jmp 0x50d623
mov ecx, 0x50d634
mov dl, 1
mov eax, dword [0x408808]
call fcn.0040e758
call fcn.00404204
add esp, 0x108
pop ebx
ret
Function at 0x511de8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
test dl, dl
je 0x511e02
add esp, 0xfffffff0
call fcn.00403cd8
mov dword [ebp - 4], ecx
mov ebx, edx
mov dword [ebp - 8], eax
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 8]
xor eax, eax
push ebp
push 0x511ee5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x18], edx
mov dl, 1
mov eax, dword [0x4201c0]
call fcn.00403944
mov edx, dword [esi]
mov dword [edx + 8], eax
mov eax, dword [esi]
add eax, 0xc
mov edx, dword [ebp - 4]
call fcn.004048bc
mov eax, dword [esi]
mov word [eax + 0x1c], di
push 0
push 0
mov eax, dword [esi]
call fcn.005131ec
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x30], edx
mov eax, dword [esi]
cmp word [eax + 0x1c], 0xffff
jne 0x511e6c
push ebp
call fcn.00511bf0
pop ecx
push edi
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
xor edx, edx
mov eax, dword [esi]
call fcn.005123d8
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [esi]
call fcn.004263c4
mov eax, dword [esi]
cmp word [eax + 0x1c], 0xffff
je 0x511ecf
push 0
push 0
mov dl, 2
mov eax, dword [esi]
call fcn.00512c54
mov eax, dword [esi]
lea edx, [eax + 0x30]
mov ecx, 4
mov eax, dword [esi]
call fcn.00512c44
mov eax, dword [esi]
lea edx, [eax + 0x34]
mov ecx, 4
mov eax, dword [esi]
call fcn.00512c44
push 0
push 0
xor edx, edx
mov eax, dword [esi]
call fcn.00512c54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x511eec
lea eax, [ebp - 0xc]
call fcn.00404868
ret
Function at 0x5297c4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x88], 2
jne 0x5297fb
cmp dword [ebp - 0x94], 5
jb 0x5297fb
mov byte [ebp - 1], 1
jmp 0x5297ff
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x53ef07
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x59896e
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x53ef5f
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x59898f
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x53ef55
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x53ef63
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x550aec
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 0x550ba3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404d34
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x550b2e
call fcn.004042b0
jmp 0x550baa
mov eax, ebx
call fcn.00402828
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.00404d34
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x550b57
call fcn.004042b0
jmp 0x550baa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x550bb4
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x550b78
call fcn.004042b0
jmp 0x550baa
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 0x550baa
mov eax, dword [ebp - 8]
call fcn.00402848
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x550e00
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 0x550e68
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, 0x160
call fcn.004031e8
test ebx, ebx
jne 0x550e3d
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 0x550e74
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x551158
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
push 0x551304
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5512fc
xor eax, eax
push ebp
push 0x5512f5
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 0x551310
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
test esi, esi
jne 0x5511d0
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 0x551310
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
test edi, edi
jne 0x551211
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.0043a1e8
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.0043a1e8
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.0043a1e8
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.0043a1e8
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
mov byte [0x598bbc], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5512fc
cmp dword [ebp - 4], 0
je 0x5512f4
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 0x551314
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.00550ae0
test al, al
je 0x551341
cmp dword [0x59c0f0], 0x40047
jl 0x551341
cmp byte [0x598bbc], 0
jne 0x551341
call fcn.00551158
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x598bc0]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x5513a4
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x551399
mov word [esp], 0
mov eax, dword [esi*4 + 0x598bc0]
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 0x55b0a8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x55b0b0
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x55b1fd
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x55b106
lea edx, [ebp - 4]
mov eax, dword [0x598e78]
call fcn.00406e78
cmp ebx, 1
jbe 0x55b13d
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, 0x55b214
call fcn.0040b354
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00404b44
jmp 0x55b13d
lea eax, [ebp - 4]
mov edx, 0x55b224
call fcn.00404900
cmp ebx, 1
jbe 0x55b13d
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, 0x55b234
call fcn.0040b354
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00404b44
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 4]
call fcn.00404b88
mov eax, dword [ebp - 0x18]
call fcn.00404d34
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x55b1c5
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
jne 0x55b175
mov bl, 1
jmp 0x55b1d5
push 0
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0040ddb0
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 [0x599484]
call fcn.00406e78
mov eax, dword [ebp - 0x24]
mov ecx, 1
pop edx
call fcn.00552130
mov eax, dword [ebp - 0x1c]
mov cx, word [0x55b238]
xor edx, edx
call fcn.0045312c
mov bl, 2
jmp 0x55b1d5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.004048bc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55b204
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.0040488c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040488c
ret

Function at 0x55b874
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, ecx
mov esi, eax
test edx, 0x40000000
jne 0x55b896
mov edx, ebx
mov eax, dword [0x599480]
call fcn.00406e78
jmp 0x55b8cd
push 0x408
push 0x160
lea eax, [esp + 8]
push eax
push 0
push esi
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x55b8c6
mov eax, ebx
lea edx, [esp + 0x110]
mov ecx, 0x50
call fcn.00404ad0
jmp 0x55b8cd
mov eax, ebx
call fcn.00404868
add esp, 0x160
pop esi
pop ebx
ret
Function at 0x55c250
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 0x55c283
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x55c27c
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d24
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 8]
mov edx, dword [0x401120]
call fcn.004055a0
xor eax, eax
push ebp
push 0x55c411
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x55c3d9
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 4]
push 0x55c438
push dword [esi]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00404bfc
mov eax, dword [ebp - 0x158]
call fcn.00404d34
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x55c3cd
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x55c3b2
test al, 2
jne 0x55c3b2
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0x55c438
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00404ad0
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00404bfc
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x10]
call fcn.00550c64
call fcn.0041f194
test al, al
je 0x55c370
or edi, 0xffffffff
jmp 0x55c37f
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00550e00
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.00550bc8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00404ad0
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 0x55c305
push ebx
call sub.kernel32.dll_FindClose_1
add esi, 4
dec dword [ebp - 0x14]
jne 0x55c2c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55c418
lea eax, [ebp - 0x164]
mov edx, 4
call fcn.0040488c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x401120]
call fcn.00405478
lea eax, [ebp - 4]
call fcn.00404868
ret
Function at 0x55d574
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x55d60b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x700f0037
mov eax, dword [0x599370]
cmp dword [eax + 4], 0x60000
jl 0x55d5ac
or dword [ebp - 4], 0x400000
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0055d6a0
mov eax, dword [ebp - 8]
call fcn.0055b42c
test al, al
je 0x55d5dc
mov eax, dword [ebp - 8]
call fcn.00404d34
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x55d5dc
and dword [ebp - 4], 0xfffbffff
lea eax, [ebp - 4]
push eax
lea eax, [ebx + 0xc]
push eax
push 1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x428]
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 0x55d612
lea eax, [ebp - 8]
call fcn.00404868
ret

Function at 0x5610cc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00404d34
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
je 0x56110d
dec eax
je 0x5610ef
sub eax, 2
je 0x56110d
jmp 0x56111e
mov al, byte [ebx]
call fcn.005525d4
test al, al
je 0x56111e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xffa1
call fcn.00403b70
jmp 0x56111e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xffa1
call fcn.00403b70
pop esi
pop ebx
pop ebp
ret

Function at 0x561124
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 0x5611d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3f8], 0
jne 0x561172
push 0x465
mov eax, dword [ebp - 4]
call fcn.00463824
mov ecx, eax
mov dl, 1
mov eax, dword [0x55d83c]
call fcn.0055d8a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x3f8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3f8]
call fcn.0055dd70
lea eax, [ebp - 8]
mov edx, 0x5611e8
call fcn.00404900
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x5611bd
test bl, 1
je 0x5611b6
lea eax, [ebp - 8]
call fcn.00404d8c
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.005610cc
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x56119a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5611da
lea eax, [ebp - 8]
call fcn.00404868
ret
Function at 0x561d6c
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.00404d24
xor eax, eax
push ebp
push 0x561e8a
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 0x561e5d
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.00404d34
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x561e3a
test byte [ebp - 0x14c], 0x10
jne 0x561e1d
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00404ad0
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.00409660
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 0x561de0
push ebx
call sub.kernel32.dll_FindClose_1
mov byte [ebp - 5], 1
jmp 0x561e46
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 0x561e64
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x5669f8
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, eax
mov al, byte [ebx + 4]
sub al, 1
jb 0x566a06
je 0x566a0b
jmp 0x566a30
mov eax, dword [ebx + 8]
pop ebx
ret
cmp dword [ebx + 8], 0
jne 0x566a2b
lea eax, [ebx + 8]
push eax
xor eax, eax
mov al, byte [ebx + 0xc]
push eax
mov eax, dword [0x599394]
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 0x56a708
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x56a80d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41fed0]
call fcn.00403944
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x4881b8]
call fcn.0048837c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x56a7eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.004884ac
mov edx, 0x56a824
mov eax, dword [ebp - 8]
call fcn.004886b4
test al, al
je 0x56a7cd
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00488adc
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x56a7cd
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00488cdc
mov eax, dword [ebp - 0xc]
call fcn.00404d34
push eax
lea ecx, [ebp - 0x14]
mov edx, ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00404d34
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
inc ebx
dec esi
jne 0x56a78a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56a7f2
mov eax, dword [ebp - 4]
call fcn.00403974
mov eax, dword [ebp - 8]
call fcn.00403974
ret

Function at 0x56a864
Capabilities:
Get hostname

Disassembly:
add esp, 0xfffffefc
lea eax, [esp + 4]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004031e8
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, 0x59c298
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.00404ad0
add esp, 0x104
ret