joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f6e18
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4f6e20
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4f6fbc
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 8]
mov edx, 0x4f6fd4
mov eax, esi
call fcn.004f4ca0
mov edx, dword [ebp - 8]
lea eax, [ebx + 0xc]
call fcn.00404928
lea ecx, [ebp - 0xc]
mov edx, 0x4f6fe8
mov eax, esi
call fcn.004f4ca0
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0x28]
call fcn.00404928
lea ecx, [ebp - 0x10]
mov edx, 0x4f7000
mov eax, esi
call fcn.004f4ca0
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x10]
call fcn.00404928
lea ecx, [ebp - 0x14]
mov edx, 0x4f701c
mov eax, esi
call fcn.004f4ca0
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x14]
call fcn.00404928
lea ecx, [ebp - 0x18]
mov edx, 0x4f7038
mov eax, esi
call fcn.004f4ca0
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x24]
call fcn.00404928
lea ecx, [ebp - 0x20]
mov edx, 0x4f7050
mov eax, esi
call fcn.004f4ca0
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00409624
mov eax, dword [ebp - 0x1c]
or edx, 0xffffffff
call fcn.00409bf0
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x24]
mov edx, 0x4f7068
mov eax, esi
call fcn.004f4ca0
mov eax, dword [ebp - 0x24]
call fcn.004ee388
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x28]
mov edx, 0x4f7078
mov eax, esi
call fcn.004f4ca0
mov eax, dword [ebp - 0x28]
call fcn.004ee388
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 4]
mov edx, 0x4f7090
mov eax, esi
call fcn.004f4ca0
mov eax, dword [ebp - 4]
call fcn.004edf3c
test al, al
je 0x4f6f73
mov eax, dword [ebp - 4]
call fcn.00409bb4
mov edi, eax
test edi, edi
jl 0x4f6f69
call fcn.0040bee0
mov dword [ebp - 0x2c], edi
fild dword [ebp - 0x2c]
fdiv dword [0x4f7098]
faddp st(1)
fstp qword [ebx + 0x38]
wait
jmp 0x4f6f7f
xor eax, eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
jmp 0x4f6f7f
mov eax, dword [ebp - 4]
call fcn.004ee388
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4f70a4
mov eax, esi
call fcn.004f4ca0
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x48]
call fcn.00404928
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6fc3
lea eax, [ebp - 0x30]
call fcn.004048d4
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.004048f8
ret

Function at 0x507dc4
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 0x507de9
cmp dword [esp + 4], 5
jb 0x507de9
mov al, 1
jmp 0x507deb
xor eax, eax
add esp, 0x94
ret
Function at 0x51bd93
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 0x576926
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x51bdeb
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 0x576947
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x51bde1
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x51bdef
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x52a1c4
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 0x52a27b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404db0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x52a206
call fcn.004042f4
jmp 0x52a282
mov eax, ebx
call fcn.00402b84
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.00404db0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x52a22f
call fcn.004042f4
jmp 0x52a282
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x52a28c
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x52a250
call fcn.004042f4
jmp 0x52a282
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 0x52a282
mov eax, dword [ebp - 8]
call fcn.00402bb4
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52a4f0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x52a561
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x168]
xor ecx, ecx
mov edx, 0x160
call fcn.0040333c
cmp dword [ebp - 4], 0
jne 0x52a533
mov word [ebp - 6], 0
lea eax, [ebp - 6]
mov dword [ebp - 4], eax
or ebx, 0x4008
push ebx
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov ebx, dword [ebp - 0x164]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52a56d
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52a850
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
push 0x52a9fc
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x52a9f4
xor eax, eax
push ebp
push 0x52a9ed
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 0x52aa08
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
test esi, esi
jne 0x52a8c8
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 0x52aa08
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
test edi, edi
jne 0x52a909
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.00433780
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.00433780
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.00433780
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.00433780
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
mov byte [0x576b6c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52a9f4
cmp dword [ebp - 4], 0
je 0x52a9ec
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 0x52aa0c
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.0052a1b8
test al, al
je 0x52aa39
cmp dword [0x57912c], 0x40047
jl 0x52aa39
cmp byte [0x576b6c], 0
jne 0x52aa39
call fcn.0052a850
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x576b70]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x52aa9c
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x52aa91
mov word [esp], 0
mov eax, dword [esi*4 + 0x576b70]
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 0x52aa55
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.0052a1b8
test al, al
je 0x52aa39
cmp dword [0x57912c], 0x40047
jl 0x52aa39
cmp byte [0x576b6c], 0
jne 0x52aa39
call fcn.0052a850
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x576b70]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x52aa9c
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x52aa91
mov word [esp], 0
mov eax, dword [esi*4 + 0x576b70]
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 0x53537c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x535384
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x5354d1
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x5353da
lea edx, [ebp - 4]
mov eax, dword [0x576e78]
call fcn.00406d84
cmp ebx, 1
jbe 0x535411
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, 0x5354e8
call fcn.0040ad58
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00404bb8
jmp 0x535411
lea eax, [ebp - 4]
mov edx, 0x5354f8
call fcn.0040496c
cmp ebx, 1
jbe 0x535411
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, 0x535508
call fcn.0040ad58
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00404bb8
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 4]
call fcn.00404bfc
mov eax, dword [ebp - 0x18]
call fcn.00404db0
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x535499
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
jne 0x535449
mov bl, 1
jmp 0x5354a9
push 0
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0040d4f4
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 [0x577580]
call fcn.00406d84
mov eax, dword [ebp - 0x24]
mov ecx, 1
pop edx
call fcn.0052b8cc
mov eax, dword [ebp - 0x1c]
mov cx, word [0x53550c]
xor edx, edx
call fcn.00447d20
mov bl, 2
jmp 0x5354a9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.00404928
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5354d8
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.004048f8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048f8
ret

Function at 0x535b48
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, ecx
mov esi, eax
test edx, 0x40000000
jne 0x535b6a
mov edx, ebx
mov eax, dword [0x57757c]
call fcn.00406d84
jmp 0x535ba1
push 0x408
push 0x160
lea eax, [esp + 8]
push eax
push 0
push esi
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x535b9a
mov eax, ebx
lea edx, [esp + 0x110]
mov ecx, 0x50
call fcn.00404b44
jmp 0x535ba1
mov eax, ebx
call fcn.004048d4
add esp, 0x160
pop esi
pop ebx
ret
Function at 0x536528
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 0x53655b
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x536554
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.00404da0
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 8]
mov edx, dword [0x401138]
call fcn.00405630
xor eax, eax
push ebp
push 0x5366e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x5366b1
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 4]
push 0x536710
push dword [esi]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00404c70
mov eax, dword [ebp - 0x158]
call fcn.00404db0
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5366a5
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x53668a
test al, 2
jne 0x53668a
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0x536710
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00404b44
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00404c70
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x10]
call fcn.0052a348
call fcn.0041be2c
test al, al
je 0x536648
or edi, 0xffffffff
jmp 0x536657
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0052a4f0
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.0052a2ac
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00404b44
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 0x5365dd
push ebx
call sub.kernel32.dll_FindClose_1
add esi, 4
dec dword [ebp - 0x14]
jne 0x5365a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5366f0
lea eax, [ebp - 0x164]
mov edx, 4
call fcn.004048f8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x401138]
call fcn.004054f0
lea eax, [ebp - 4]
call fcn.004048d4
ret
Function at 0x53785c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x537929
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 0x53790c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x700f0037
mov eax, dword [0x577440]
cmp dword [eax + 4], 0x60000
jl 0x5378ac
or dword [ebp - 4], 0x400000
lea edx, [ebp - 8]
mov eax, ebx
call fcn.005379bc
mov eax, dword [ebp - 8]
call fcn.00535700
test al, al
je 0x5378dc
mov eax, dword [ebp - 8]
call fcn.00404db0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x5378dc
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 0x537913
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x53b404
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00404db0
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
je 0x53b445
dec eax
je 0x53b427
sub eax, 2
je 0x53b445
jmp 0x53b456
mov al, byte [ebx]
call fcn.0052bd7c
test al, al
je 0x53b456
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xffa1
call fcn.00403bac
jmp 0x53b456
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xffa1
call fcn.00403bac
pop esi
pop ebx
pop ebp
ret

Function at 0x53b45c
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 0x53b50b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3f8], 0
jne 0x53b4aa
push 0x465
mov eax, dword [ebp - 4]
call fcn.00455908
mov ecx, eax
mov dl, 1
mov eax, dword [0x537b58]
call fcn.00537bc4
mov edx, dword [ebp - 4]
mov dword [edx + 0x3f8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3f8]
call fcn.005380a4
lea eax, [ebp - 8]
mov edx, 0x53b520
call fcn.0040496c
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x53b4f5
test bl, 1
je 0x53b4ee
lea eax, [ebp - 8]
call fcn.00404e08
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.0053b404
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x53b4d2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53b512
lea eax, [ebp - 8]
call fcn.004048d4
ret
Function at 0x53c0ac
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.00404da0
xor eax, eax
push ebp
push 0x53c1ca
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 0x53c19d
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.00404db0
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x53c17a
test byte [ebp - 0x14c], 0x10
jne 0x53c15d
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00404b44
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.004094f4
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 0x53c120
push ebx
call sub.kernel32.dll_FindClose_1
mov byte [ebp - 5], 1
jmp 0x53c186
call sub.kernel32.dll_GetLastError
cmp eax, 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53c1a4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x540d3c
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
mov ebx, eax
mov al, byte [ebx + 4]
sub al, 1
jb 0x540d4b
je 0x540d53
jmp 0x540d7b
mov eax, dword [ebx + 8]
mov dword [esp], eax
jmp 0x540d80
cmp dword [ebx + 8], 0
jne 0x540d73
lea eax, [ebx + 8]
push eax
xor eax, eax
mov al, byte [ebx + 0xc]
push eax
mov eax, dword [0x577460]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebx + 8]
mov dword [esp], eax
jmp 0x540d80
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
pop edx
pop ebx
ret
Function at 0x544aac
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 0x544bb1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41cc1c]
call fcn.00403974
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x470e20]
call fcn.00470f8c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x544b8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.00471068
mov edx, 0x544bc8
mov eax, dword [ebp - 8]
call fcn.004711f4
test al, al
je 0x544b71
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004715ac
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x544b71
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.00471768
mov eax, dword [ebp - 0xc]
call fcn.00404db0
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.00404db0
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
inc ebx
dec esi
jne 0x544b2e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x544b96
mov eax, dword [ebp - 4]
call fcn.004039a4
mov eax, dword [ebp - 8]
call fcn.004039a4
ret

Function at 0x544c08
Capabilities:
Get hostname

Disassembly:
add esp, 0xfffffefc
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x100
call fcn.0040333c
mov dword [esp], 0x100
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, 0x5792d4
lea edx, [esp + 4]
mov ecx, 0x100
call fcn.00404b44
add esp, 0x104
ret
Function at 0x546c64
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 0x546dc7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x44
call fcn.0040333c
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 + 0x576c94]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
lea eax, [ebp - 0x58]
call fcn.00404bfc
mov eax, dword [ebp - 0x58]
call fcn.00404db0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00404db0
push eax
call sub.kernel32.dll_CreateProcessA
call fcn.0040f574
mov ebx, eax
mov eax, dword [ebp - 0x50]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
test ebx, ebx
je 0x546d54
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 + 0x576c94]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
lea eax, [ebp - 0x68]
call fcn.00404bfc
mov eax, dword [ebp - 0x68]
call fcn.00404db0
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 6
lea edx, [ebp - 0x64]
xor ecx, ecx
mov eax, 0x546ddc
call fcn.0040ad58
mov eax, dword [ebp - 0x5c]
call fcn.00546414
pop ecx
jmp 0x546d9f
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 + 0x576c94]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 8]
lea eax, [ebp - 0x70]
call fcn.00404bfc
mov eax, dword [ebp - 0x70]
call fcn.00404db0
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 6
lea edx, [ebp - 0x64]
xor ecx, ecx
mov eax, 0x546dfc
call fcn.0040ad58
mov eax, dword [ebp - 0x6c]
call fcn.00546414
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546dce
lea eax, [ebp - 0x70]
mov edx, 3
call fcn.004048f8
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004048f8
ret