joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57a284
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7133a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x364
mov dword [ebp - 0x14], 0x114
xor eax, eax
mov al, byte [0x7d2e18]
test eax, eax
jne 0x57a2e1
mov byte [ebp - 0x12c], 0
lea ecx, [ebp - 0x12c]
push ecx
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x12c]
push edx
mov ecx, dword [ebp + 8]
call fcn.004ebaa4
jmp 0x57a34f
mov word [ebp - 0x358], 0
lea eax, [ebp - 0x358]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x358]
push ecx
lea edx, [ebp - 0x364]
push edx
call fcn.004edc90
add esp, 8
mov dword [ebp - 0x368], eax
mov eax, dword [ebp - 0x368]
mov dword [ebp - 0x36c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x36c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004ebb28
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x364]
call fcn.004125e0
mov edx, dword [ebp + 8]
push edx
call fcn.005747da
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x57a376
cmp dword [ebp - 0x10], 0x114
jae 0x57a376
mov dword [ebp - 0x370], 1
jmp 0x57a380
mov dword [ebp - 0x370], 0
mov al, byte [ebp - 0x370]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5832a1
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7136db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
lea ecx, [ebp - 0x14]
call fcn.004e4660
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x12], al
mov cx, word [ebp + 0x10]
mov word [ebp - 0x10], cx
mov edx, dword [ebp + 8]
mov word [edx + 2], 0x63
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0
lea ecx, [ebp - 0x20]
call fcn.0053b170
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00585360
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x30
call fcn.0053b5e0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x50
call fcn.0053b5e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004e6c40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x586edf
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], 0x67452301
mov edx, dword [ebp + 8]
mov dword [edx + 0x24], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], 0x10325476
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], 0xc3d2e1f0
pop ebp
ret
Function at 0x5953c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x714315
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00595960
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0xc
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00595ab0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x18]
mov byte [edx + 0x18], cl
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x19]
mov byte [edx + 0x19], cl
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x1a]
mov byte [edx + 0x1a], cl
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x1b]
mov byte [edx + 0x1b], cl
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x1c]
mov byte [edx + 0x1c], cl
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x1d]
mov byte [edx + 0x1d], cl
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp + 8]
add edx, 0x24
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.004ecc41
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x30]
mov dword [ecx + 0x30], edx
mov eax, dword [eax + 0x34]
mov dword [ecx + 0x34], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x5ab3b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x71539c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.005aba80
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00511890
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x14], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x15], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x5af870
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
push ebx
mov bl, byte [str._MY_PATH_]
xor eax, eax
mov cl, byte [edx]
push esi
cmp cl, bl
push edi
sete al
inc eax
mov edi, edx
mov esi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x1c]
push esi
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret

Function at 0x5af930
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x18], 0
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5af99b
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x5af972
dec eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
lea eax, [esp + 0x18]
push eax
push esi
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x5afd30
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x5afd4a
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x5afd55
mov byte [eax], 0
xor eax, eax
ret
Function at 0x5b15e0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x71549b
push eax
mov eax, 0x200c
mov dword fs:[0], esp
call fcn.00450100
push ebx
mov ebx, dword [esp + 0x2020]
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 0x104
jl 0x5b1676
lea ecx, [esp + 0xc]
add esi, 8
call fcn.005b08c0
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x2024], 0
call fcn.005b0a40
mov edi, eax
test edi, edi
je 0x5b1653
push esi
push edi
push ebx
call fcn.005ba420
add esp, 0xc
jmp 0x5b1655
mov edi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x2020], 0xffffffff
call fcn.005b08e0
mov eax, esi
jmp 0x5b167d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x2018]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2018
ret

Function at 0x5b16a0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x7154bb
push eax
mov eax, 0x200c
mov dword fs:[0], esp
call fcn.00450100
push ebx
mov ebx, dword [esp + 0x2020]
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 0x104
jl 0x5b173e
lea ecx, [esp + 0xc]
add esi, 8
call fcn.005b08c0
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x2024], 0
call fcn.005b0a40
mov edi, eax
test edi, edi
je 0x5b1713
push esi
push edi
push ebx
call fcn.005ba420
add esp, 0xc
jmp 0x5b1715
mov edi, ebx
mov eax, dword [esp + 0x202c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x2020], 0xffffffff
call fcn.005b08e0
mov eax, esi
jmp 0x5b174d
mov ecx, dword [esp + 0x202c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x2018]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2018
ret
Function at 0x5b1860
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7154db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x200c
call fcn.00450100
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
je 0x5b1971
cmp byte [esi], 0
je 0x5b1971
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov ebx, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 8], ebx
mov edi, ecx
lea ecx, [ebp - 0x201c]
call fcn.005b08c0
cmp edi, 0x104
mov byte [ebp - 4], 1
jl 0x5b18f3
add edi, 8
lea ecx, [ebp - 0x201c]
push edi
call fcn.005b0a40
mov ebx, eax
test ebx, ebx
je 0x5b18f0
push edi
push ebx
push esi
call fcn.005ba420
add esp, 0xc
mov esi, ebx
mov ebx, dword [ebp + 8]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x5b1931
push 0x20
call fcn.005c4990
mov esi, eax
add esp, 4
cmp esi, 0xa1
jne 0x5b1933
cmp byte [ebx], 0x5c
jne 0x5b1933
cmp byte [ebx + 1], 0x5c
jne 0x5b1933
add ebx, 2
push 0x5c
push ebx
call fcn.004502e0
add esp, 8
test eax, eax
jne 0x5b1933
xor esi, esi
lea ecx, [ebp - 0x201c]
mov byte [ebp - 4], 0
call fcn.005b08e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov esi, 0x57
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b1990
Capabilities:
Delete directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7154fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x240c
call fcn.00450100
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
je 0x5b1add
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
je 0x5b19f1
mov al, byte [edi + esi - 1]
dec edi
push eax
call fcn.0041ac70
add esp, 4
test eax, eax
je 0x5b19f1
mov byte [edi + esi], 0
cmp byte [esi], 0
je 0x5b1add
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [ebp - 0x241c]
call fcn.005b08c0
cmp edi, 0x104
mov byte [ebp - 4], 1
jl 0x5b1a41
add edi, 8
lea ecx, [ebp - 0x241c]
push edi
call fcn.005b0a40
mov ebx, eax
test ebx, ebx
je 0x5b1a41
push edi
push ebx
push esi
call fcn.005ba420
add esp, 0xc
mov esi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call ebx
test eax, eax
jne 0x5b1aa0
push 0x20
call fcn.005c4990
mov edi, eax
add esp, 4
cmp edi, 5
je 0x5b1a8e
cmp edi, 0x20
jne 0x5b1aa2
lea ecx, [ebp - 0x410]
push 0x400
push ecx
call fcn.0043c800
add esp, 8
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call ebx
test eax, eax
je 0x5b1aa2
jmp 0x5b1aa0
push 0x10
push esi
call fcn.005b16a0
add esp, 8
push esi
call ebx
test eax, eax
je 0x5b1aa2
xor edi, edi
lea ecx, [ebp - 0x241c]
mov byte [ebp - 4], 0
call fcn.005b08e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov edi, 0x57
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5b1df0
Capabilities:
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x71553b
push eax
mov eax, 0x200c
mov dword fs:[0], esp
call fcn.00450100
push ebx
mov ebx, dword [esp + 0x2020]
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 0x104
jl 0x5b1e84
lea ecx, [esp + 0xc]
add esi, 8
call fcn.005b08c0
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x2024], 0
call fcn.005b0a40
mov edi, eax
test edi, edi
je 0x5b1e63
push esi
push edi
push ebx
call fcn.005ba420
add esp, 0xc
jmp 0x5b1e65
mov edi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x2020], 0xffffffff
call fcn.005b08e0
jmp 0x5b1e8d
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, eax
pop edi
test esi, esi
pop esi
pop ebx
je 0x5b1eab
xor eax, eax
mov ecx, dword [esp + 0x200c]
mov dword fs:[0], ecx
add esp, 0x2018
ret
push 0x15
call fcn.005c4990
mov ecx, dword [esp + 0x2010]
add esp, 4
mov dword fs:[0], ecx
add esp, 0x2018
ret
Function at 0x5b1ed0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x5b1f3d
mov bl, byte [esp + 0x20]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x5b1f47
lea eax, [esp + 0x10]
push 8
push eax
push 0x77fb30
call fcn.005be860
mov cl, byte [esp + 0x1c]
push 0x15
add cl, bl
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
call fcn.0041a860
add esp, 0x1c
cmp eax, 4
jne 0x5b1f51
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x5b1efb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0x15
call fcn.005c4990
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x5b2880
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5b28ab
cmp esi, dword [esp + 0x10]
jne 0x5b28ab
xor eax, eax
pop esi
ret
push 0x1e
call fcn.005c4990
add esp, 4
pop esi
ret

Function at 0x5b28c0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5b28eb
cmp esi, dword [esp + 0x10]
jne 0x5b28eb
xor eax, eax
pop esi
ret
push 0x70
call fcn.005c4990
add esp, 4
pop esi
ret

Function at 0x5b2a40
Capabilities:
Get file system object information

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push 0x160
push ecx
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
ret
Function at 0x5b2a60
Capabilities:
Get file system object information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x7155ab
push eax
mov eax, 0x2170
mov dword fs:[0], esp
call fcn.00450100
push ebx
push esi
push edi
call fcn.005c4e00
test al, al
je 0x5b2b32
mov ebx, dword [esp + 0x218c]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 0x104
jl 0x5b2b1c
lea ecx, [esp + 0x170]
add esi, 8
call fcn.005b08c0
push esi
lea ecx, [esp + 0x174]
mov dword [esp + 0x2188], 0
call fcn.005b0a40
mov edi, eax
test edi, edi
je 0x5b2ae6
push esi
push edi
push ebx
call fcn.005ba420
add esp, 0xc
jmp 0x5b2ae8
mov edi, ebx
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
je 0x5b2afe
mov esi, dword [esp + 0xc]
jmp 0x5b2b01
or esi, 0xffffffff
lea ecx, [esp + 0x170]
mov dword [esp + 0x2184], 0xffffffff
call fcn.005b08e0
mov eax, esi
jmp 0x5b2b8b
lea ecx, [esp + 0xc]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
je 0x5b2b76
mov eax, dword [esp + 0xc]
jmp 0x5b2b8b
mov ecx, 0x58
xor eax, eax
lea edi, [esp + 0x10]
push 0x2000
lea edx, [esp + 0x14]
push 0x160
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2194]
push edx
push 0x20
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
and eax, 0xffff
sub eax, 0x454e
je 0x5b2b86
sub eax, 2
je 0x5b2b82
sub eax, 0x14fd
je 0x5b2b7b
or eax, 0xffffffff
jmp 0x5b2b8b
mov eax, 1
jmp 0x5b2b8b
xor eax, eax
jmp 0x5b2b8b
mov eax, 2
mov ecx, dword [esp + 0x217c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x217c
ret
Function at 0x5b2bb0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x7155cb
push eax
mov eax, 0x214c
mov dword fs:[0], esp
call fcn.00450100
push ebx
push esi
push edi
lea ecx, [esp + 0x14c]
call fcn.005b08c0
mov ebx, dword [esp + 0x2168]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x2160], 0
mov esi, ecx
cmp esi, 0x104
jl 0x5b2c29
add esi, 8
lea ecx, [esp + 0x14c]
push esi
call fcn.005b0a40
mov edi, eax
test edi, edi
je 0x5b2c29
push esi
push edi
push ebx
call fcn.005ba420
add esp, 0xc
mov ebx, edi
mov ecx, 0x50
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5b2c92
push 3
call fcn.005c4990
mov edi, eax
add esp, 4
cmp edi, 2
je 0x5b2c5f
cmp edi, 0x12
jne 0x5b2c61
xor edi, edi
lea ecx, [esp + 0x14c]
mov dword [esp + 0x2160], 0xffffffff
call fcn.005b08e0
mov ecx, dword [esp + 0x2158]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2158
ret
mov ebx, dword [esp + 0x2170]
push ebp
mov ebp, dword [esp + 0x2170]
lea ecx, [esp + 0x10]
push ebx
push ecx
xor edi, edi
call ebp
add esp, 8
test eax, eax
jne 0x5b2cd1
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x5b2cd1
lea eax, [esp + 0x10]
push ebx
push eax
call ebp
add esp, 8
test eax, eax
je 0x5b2cb2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
jmp 0x5b2c61

Function at 0x5b3770
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0x80
push 3
mov esi, ecx
push 1
push SysReAllocString
push esi
push eax
call fcn.005b2720
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x5b3803
mov edx, dword [esi]
lea ecx, [esp + 0xc]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov eax, dword [esp + 0x10]
push 1
push edi
push edi
push eax
call fcn.0044fa70
xor ecx, ecx
add eax, ebx
adc edx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
pop ebx
or edx, eax
je 0x5b380a
mov eax, dword [esi]
push ecx
push ecx
push ecx
push 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x5b37f6
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
jne 0x5b380a
mov ecx, esi
call fcn.005b38f0
mov edi, eax
test edi, edi
je 0x5b380a
mov ecx, esi
call fcn.005b3820
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x5b3b70
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x5b3bc0
mov ecx, dword [ecx]
mov eax, 0x103
cmp ecx, 0xffffffff
je 0x5b3bc2
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [esp + 0xc]
je 0x5b3ba5
cmp esi, eax
je 0x5b3bc0
test eax, eax
je 0x5b3baf
neg eax
pop esi
ret 8
push 0x103
call fcn.005c4990
add esp, 4
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x5b3d00
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, dword [esi]
xor eax, eax
cmp ecx, 0xffffffff
jne 0x5b3d1f
mov ecx, dword [esp + 0x10]
mov dword [ecx], edi
mov dword [ecx + 4], edi
pop edi
pop esi
pop ecx
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5b3d57
push edi
call fcn.005c4990
add esp, 4
cmp eax, edi
je 0x5b3d59
mov ecx, dword [esp + 0x10]
mov dword [ecx], edi
mov dword [ecx + 4], edi
pop edi
pop esi
pop ecx
ret 4
xor eax, eax
mov edi, dword [esp + 8]
xor edx, edx
xor ecx, ecx
or edx, esi
or edi, ecx
mov ecx, dword [esp + 0x10]
mov dword [ecx], edx
mov dword [ecx + 4], edi
pop edi
pop esi
pop ecx
ret 4
Function at 0x5b8e90
Capabilities:
Query environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x71573b
push eax
mov eax, 0x2010
mov dword fs:[0], esp
call fcn.00450100
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
mov dword [esp + 4], ebx
je 0x5b8f77
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.005b08c0
mov al, byte [ebx]
mov dword [esp + 0x2028], 0
test al, al
mov esi, ebx
je 0x5b8f59
mov al, byte [esi]
cmp al, 0x3d
je 0x5b8f44
test al, al
mov ebp, esi
je 0x5b8efb
cmp al, 0x3d
je 0x5b8efb
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x5b8eef
mov al, byte [esi]
test al, al
je 0x5b8f06
cmp al, 0x3d
jne 0x5b8f06
inc esi
mov edi, esi
sub edi, ebp
test edi, edi
jle 0x5b8f44
dec edi
test edi, edi
jle 0x5b8f44
push edi
lea ecx, [esp + 0x18]
call fcn.005b0a40
inc edi
mov ebx, eax
push edi
push ebx
push ebp
call fcn.005be860
mov eax, dword [esp + 0x2040]
push eax
push esi
push ebx
call dword [esp + 0x2048]
mov ebx, dword [esp + 0x28]
add esp, 0x18
test eax, eax
jne 0x5b8f59
cmp byte [esi], 0
je 0x5b8f51
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x5b8f49
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x5b8ee3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea ecx, [esp + 0x14]
mov dword [esp + 0x2028], 0xffffffff
call fcn.005b08e0
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x2014]
pop ebx
mov dword fs:[0], ecx
add esp, 0x201c
ret