joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4efaec
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 0x4efb28
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 0x4efb73
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 0x4efb7c
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 0x4efbc3
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 0x4efbe8
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 0x4efc39
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 0x4efc4f
mov eax, dword [ebx]
call fcn.00404b3c
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404dd4
jmp 0x4efc4f
mov ecx, 0x4efc60
mov dl, 1
mov eax, dword [0x408530]
call fcn.0040d954
call fcn.00404204
add esp, 0x108
pop ebx
ret
Function at 0x4f4414
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 0x4f442e
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 0x4f4511
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 [0x41d1bc]
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.004f5818
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x30], edx
mov eax, dword [esi]
cmp word [eax + 0x1c], 0xffff
jne 0x4f4498
push ebp
call fcn.004f421c
pop ecx
push edi
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
xor edx, edx
mov eax, dword [esi]
call fcn.004f4a04
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [esi]
call fcn.00422134
mov eax, dword [esi]
cmp word [eax + 0x1c], 0xffff
je 0x4f44fb
push 0
push 0
mov dl, 2
mov eax, dword [esi]
call fcn.004f5280
mov eax, dword [esi]
lea edx, [eax + 0x30]
mov ecx, 4
mov eax, dword [esi]
call fcn.004f5270
mov eax, dword [esi]
lea edx, [eax + 0x34]
mov ecx, 4
mov eax, dword [esi]
call fcn.004f5270
push 0
push 0
xor edx, edx
mov eax, dword [esi]
call fcn.004f5280
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4518
lea eax, [ebp - 0xc]
call fcn.00404868
ret
Function at 0x50b354
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x50b379
cmp dword [esp + 4], 5
jb 0x50b379
mov al, 1
jmp 0x50b37b
xor eax, eax
add esp, 0x94
ret
Function at 0x51f013
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 0x57696e
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x51f06b
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 0x57698f
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x51f061
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x51f06f
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x52ed3c
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 0x52edf3
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 0x52ed7e
call fcn.004042b0
jmp 0x52edfa
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 0x52eda7
call fcn.004042b0
jmp 0x52edfa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x52ee04
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x52edc8
call fcn.004042b0
jmp 0x52edfa
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 0x52edfa
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 0x52f050
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 0x52f0b8
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 0x52f08d
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 0x52f0c4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52f3a8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
push 0x52f554
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x52f54c
xor eax, eax
push ebp
push 0x52f545
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 0x52f560
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
test esi, esi
jne 0x52f420
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 0x52f560
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
test edi, edi
jne 0x52f461
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.00432f10
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.00432f10
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.00432f10
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.00432f10
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
mov byte [0x576bbc], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52f54c
cmp dword [ebp - 4], 0
je 0x52f544
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 0x52f564
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.0052ed30
test al, al
je 0x52f591
cmp dword [0x57a0f0], 0x40047
jl 0x52f591
cmp byte [0x576bbc], 0
jne 0x52f591
call fcn.0052f3a8
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x576bc0]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x52f5f4
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x52f5e9
mov word [esp], 0
mov eax, dword [esi*4 + 0x576bc0]
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 0x5392f8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x539300
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x53944d
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x539356
lea edx, [ebp - 4]
mov eax, dword [0x576e78]
call fcn.00406e78
cmp ebx, 1
jbe 0x53938d
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, 0x539464
call fcn.0040aa14
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00404b44
jmp 0x53938d
lea eax, [ebp - 4]
mov edx, 0x539474
call fcn.00404900
cmp ebx, 1
jbe 0x53938d
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, 0x539484
call fcn.0040aa14
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 0x539415
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
jne 0x5393c5
mov bl, 1
jmp 0x539425
push 0
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0040d0fc
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 [0x577484]
call fcn.00406e78
mov eax, dword [ebp - 0x24]
mov ecx, 1
pop edx
call fcn.00530380
mov eax, dword [ebp - 0x1c]
mov cx, word [0x539488]
xor edx, edx
call fcn.00448118
mov bl, 2
jmp 0x539425
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 0x539454
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.0040488c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040488c
ret

Function at 0x539ac4
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, ecx
mov esi, eax
test edx, 0x40000000
jne 0x539ae6
mov edx, ebx
mov eax, dword [0x577480]
call fcn.00406e78
jmp 0x539b1d
push 0x408
push 0x160
lea eax, [esp + 8]
push eax
push 0
push esi
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x539b16
mov eax, ebx
lea edx, [esp + 0x110]
mov ecx, 0x50
call fcn.00404ad0
jmp 0x539b1d
mov eax, ebx
call fcn.00404868
add esp, 0x160
pop esi
pop ebx
ret
Function at 0x53a4a0
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 0x53a4d3
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x53a4cc
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 0x53a661
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x53a629
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 4]
push 0x53a688
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 0x53a61d
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x53a602
test al, 2
jne 0x53a602
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0x53a688
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.0052eeb4
call fcn.0041c1b0
test al, al
je 0x53a5c0
or edi, 0xffffffff
jmp 0x53a5cf
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0052f050
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.0052ee18
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 0x53a555
push ebx
call sub.kernel32.dll_FindClose_1
add esi, 4
dec dword [ebp - 0x14]
jne 0x53a518
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a668
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 0x53b7c4
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 0x53b85b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x700f0037
mov eax, dword [0x577370]
cmp dword [eax + 4], 0x60000
jl 0x53b7fc
or dword [ebp - 4], 0x400000
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0053b8f0
mov eax, dword [ebp - 8]
call fcn.0053967c
test al, al
je 0x53b82c
mov eax, dword [ebp - 8]
call fcn.00404d34
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x53b82c
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 0x53b862
lea eax, [ebp - 8]
call fcn.00404868
ret

Function at 0x53f31c
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 0x53f35d
dec eax
je 0x53f33f
sub eax, 2
je 0x53f35d
jmp 0x53f36e
mov al, byte [ebx]
call fcn.00530824
test al, al
je 0x53f36e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xffa1
call fcn.00403b70
jmp 0x53f36e
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 0x53f374
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 0x53f423
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3f8], 0
jne 0x53f3c2
push 0x465
mov eax, dword [ebp - 4]
call fcn.00455788
mov ecx, eax
mov dl, 1
mov eax, dword [0x53ba8c]
call fcn.0053baf8
mov edx, dword [ebp - 4]
mov dword [edx + 0x3f8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3f8]
call fcn.0053bfc0
lea eax, [ebp - 8]
mov edx, 0x53f438
call fcn.00404900
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x53f40d
test bl, 1
je 0x53f406
lea eax, [ebp - 8]
call fcn.00404d8c
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.0053f31c
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x53f3ea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53f42a
lea eax, [ebp - 8]
call fcn.00404868
ret
Function at 0x53ffbc
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 0x5400da
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 0x5400ad
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 0x54008a
test byte [ebp - 0x14c], 0x10
jne 0x54006d
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.004092dc
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 0x540030
push ebx
call sub.kernel32.dll_FindClose_1
mov byte [ebp - 5], 1
jmp 0x540096
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 0x5400b4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x544c48
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, eax
mov al, byte [ebx + 4]
sub al, 1
jb 0x544c56
je 0x544c5b
jmp 0x544c80
mov eax, dword [ebx + 8]
pop ebx
ret
cmp dword [ebx + 8], 0
jne 0x544c7b
lea eax, [ebx + 8]
push eax
xor eax, eax
mov al, byte [ebx + 0xc]
push eax
mov eax, dword [0x577394]
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 0x548968
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 0x548a6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41cecc]
call fcn.00403944
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x473f48]
call fcn.004740b4
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x548a4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.00474190
mov edx, 0x548a84
mov eax, dword [ebp - 8]
call fcn.0047431c
test al, al
je 0x548a2d
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004746d4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x548a2d
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.00474890
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 0x5489ea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x548a52
mov eax, dword [ebp - 4]
call fcn.00403974
mov eax, dword [ebp - 8]
call fcn.00403974
ret

Function at 0x548ac4
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, 0x57a298
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.00404ad0
add esp, 0x104
ret
Function at 0x54ab28
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
xor eax, eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x58], eax
xor eax, eax
push ebp
push 0x54ac8b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x44
call fcn.004031e8
mov dword [ebp - 0x44], 0x44
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 3]
mov ecx, dword [eax*4 + 0x576cd0]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
lea eax, [ebp - 0x58]
call fcn.00404b88
mov eax, dword [ebp - 0x58]
call fcn.00404d34
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00404d34
push eax
call sub.kernel32.dll_CreateProcessA
call fcn.0040efd8
mov ebx, eax
mov eax, dword [ebp - 0x50]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x54ac18
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 3]
mov ecx, dword [eax*4 + 0x576cd0]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
lea eax, [ebp - 0x68]
call fcn.00404b88
mov eax, dword [ebp - 0x68]
call fcn.00404d34
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 6
lea edx, [ebp - 0x64]
xor ecx, ecx
mov eax, 0x54aca0
call fcn.0040aa14
mov eax, dword [ebp - 0x5c]
call fcn.0054a2d8
pop ecx
jmp 0x54ac63
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 3]
mov ecx, dword [eax*4 + 0x576cd0]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
lea eax, [ebp - 0x70]
call fcn.00404b88
mov eax, dword [ebp - 0x70]
call fcn.00404d34
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 6
lea edx, [ebp - 0x64]
xor ecx, ecx
mov eax, 0x54acc0
call fcn.0040aa14
mov eax, dword [ebp - 0x6c]
call fcn.0054a2d8
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54ac92
lea eax, [ebp - 0x70]
mov edx, 3
call fcn.0040488c
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.0040488c
ret