joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58edf0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xb0], 0
je 0x58ee4d
cmp byte [ebx + 0xd7], 0
jne 0x58ee4d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x178]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00407de0
mov eax, dword [esi]
test eax, eax
je 0x58ee3a
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x58ee5a
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00408038
jmp 0x58ee5a
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00408038
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5905f8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x590666
mov eax, esi
call fcn.004fa0cc
test al, al
je 0x590666
mov eax, dword [ebx + 0x88]
call fcn.004f9d18
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x590666
mov eax, dword [ebx + 0x88]
mov edx, dword [eax]
call dword [edx + 0x110]
test al, al
je 0x59065a
push 0
mov eax, dword [ebx + 0x88]
call fcn.004f9d18
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x88]
call fcn.004f0c8c
jmp 0x590666
mov cl, 1
mov edx, dword [ebx + 0x78]
mov eax, ebx
call fcn.00590430
pop esi
pop ebx
ret
Function at 0x59a5fc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x59a642
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0059a548
mov eax, dword [ebp - 4]
call fcn.00408d1c
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59a649
lea eax, [ebp - 4]
call fcn.00407c58
ret

Function at 0x59a650
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00408d1c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x59a66c
test al, 0x10
je 0x59a671
xor eax, eax
pop ebx
pop ebp
ret
mov al, 1
pop ebx
pop ebp
ret

Function at 0x59a6a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00408d1c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x59a6c9
test al, 0x10
je 0x59a6c9
test ah, 4
je 0x59a6ce
xor eax, eax
pop ebx
pop ebp
ret
mov al, 1
pop ebx
pop ebp
ret

Function at 0x59a6d4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00407d3c
xor eax, eax
push ebp
push 0x59a7d3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00408220
mov ebx, pe_nt_image_headers32
mov eax, edi
mov ecx, ebx
xor edx, edx
call fcn.00407de0
cmp dword [ebp + 0xc], 0
je 0x59a753
mov eax, dword [ebp + 0xc]
call fcn.00408d1c
push eax
push ebx
mov eax, edi
call fcn.00408210
push eax
mov eax, dword [ebp - 4]
call fcn.00408d1c
push eax
mov eax, dword [ebp - 0xc]
call fcn.00408d1c
push eax
mov eax, dword [ebp - 8]
call fcn.00408d1c
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
mov esi, eax
jmp 0x59a77e
push ebx
mov eax, edi
call fcn.00408210
push eax
mov eax, dword [ebp - 4]
call fcn.00408d1c
push eax
mov eax, dword [ebp - 0xc]
call fcn.00408d1c
push eax
mov eax, dword [ebp - 8]
call fcn.00408d1c
push eax
call sub.kernel32.dll_GetProfileStringW
mov esi, eax
test esi, esi
je 0x59a79a
mov eax, dword [edi]
call fcn.00408d1c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call fcn.00408174
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
mov eax, ebx
sub eax, 8
cmp esi, eax
jl 0x59a7ab
cmp ebx, 0x10000
jl 0x59a7b6
mov eax, edi
mov edx, esi
call fcn.00408e98
jmp 0x59a7bd
add ebx, ebx
jmp 0x59a70c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59a7da
lea eax, [ebp - 4]
call fcn.00407c58
ret
Function at 0x59a8a4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
mov word [ebp - 0x10], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x59a8ee
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00408d1c
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00408d1c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00408d1c
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x59a912
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00408d1c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00408d1c
push eax
call sub.kernel32.dll_GetProfileStringW
push ebx
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_lstrcmpW
test eax, eax
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x59a984
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov ebx, edx
mov esi, eax
mov word [ebp - 0x200], 0
test ebx, ebx
je 0x59a9ca
mov eax, ebx
call fcn.00408d1c
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x59a9fc
push 0
mov eax, esi
call fcn.00408d1c
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
jmp 0x59a9ea
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x59a9fc
push 0
mov eax, esi
call fcn.00408d1c
push eax
call sub.kernel32.dll_GetProfileStringW
cmp word [ebp - 0x200], 0
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x59add0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x59ae65
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x59ae1b
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00407de0
jmp 0x59ae4f
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x59ae32
lea eax, [ebp - 4]
call fcn.00407c58
jmp 0x59ae45
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0059ac20
mov ebx, eax
test esi, esi
je 0x59ae45
dec esi
jmp 0x59ae22
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00408038
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59ae6c
lea eax, [ebp - 4]
call fcn.00407c58
ret

Function at 0x59b240
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.00423474
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x59b270
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.00423474
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x59b34c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x59b3c9
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x59b3a7
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 6
jb 0x59b3a7
lea eax, [ebp - 8]
call fcn.0059b270
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00599cf0
lea eax, [ebp - 4]
mov edx, 0x59b3e4
call fcn.00408f18
mov eax, dword [ebp - 4]
mov edx, esi
call fcn.0059a144
jmp 0x59b3ae
mov eax, esi
call fcn.00407c58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59b3d0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407cb8
ret

Function at 0x59b630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x59b766
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x59b750
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x59b68d
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x59b750
cmp dword [ebp - 0x14], 0
jne 0x59b6a2
mov eax, dword [ebp - 0xc]
call fcn.00407c58
mov bl, 1
jmp 0x59b750
cmp dword [ebp - 0x14], 0x70000000
jb 0x59b6b0
call fcn.00427c94
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00407de0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00408210
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x59b656
test eax, eax
jne 0x59b750
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x59b6fe
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x59b750
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x59b706
dec esi
test esi, esi
je 0x59b715
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x59b705
cmp dword [ebp - 0x10], 7
jne 0x59b720
test esi, esi
je 0x59b720
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00408e98
cmp dword [ebp - 0x10], 7
jne 0x59b743
test esi, esi
je 0x59b743
lea eax, [ebp - 4]
call fcn.00408210
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00408038
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59b76d
lea eax, [ebp - 4]
call fcn.00407c58
ret
Function at 0x59b798
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete bl
test bl, bl
je 0x59b81a
test esi, esi
je 0x59b7cb
cmp word [esi], 0
jne 0x59b81a
mov eax, dword [0x66275c]
cmp dword [eax], 2
je 0x59b81a
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0xc], 2
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov edi, eax
test edi, edi
je 0x59b808
cmp edi, 0xea
jne 0x59b81a
test edi, edi
jne 0x59b817
cmp word [ebp - 8], 0
jne 0x59b817
mov bl, 1
jmp 0x59b81a
inc esi
jmp 0x59b7d9
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x59b884
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp al, 2
je 0x59b89a
push esi
push ebx
call sub.advapi32.dll_RegDeleteKeyW
jmp 0x59b8dc
cmp dword [0x66a5a4], 0
jne 0x59b8bd
push 0x59b8e0
push 0x59b900
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040f500
mov dword [0x66a5a4], eax
cmp dword [0x66a5a4], 0
je 0x59b8d7
push 0
push pe_nt_image_headers32
push esi
push ebx
call dword [0x66a5a4]
jmp 0x59b8dc
mov eax, 0x7f
pop esi
pop ebx
pop ebp
ret
Function at 0x59b91c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x59ba8f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x59b950
mov eax, dword [ebp - 0x10]
cmp word [eax], 0
jne 0x59b95a
mov ebx, 0x57
jmp 0x59ba79
mov eax, dword [0x66275c]
cmp dword [eax], 2
jne 0x59ba68
push 0
push 8
lea eax, [ebp - 0x14]
push eax
movzx eax, byte [ebp - 5]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.0059b85c
test eax, eax
jne 0x59ba68
xor eax, eax
push ebp
push 0x59ba61
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, pe_nt_image_headers32
xor edx, edx
call fcn.00407de0
xor eax, eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x59b9b5
sub ebx, 4
mov ebx, dword [ebx]
mov dword [ebp - 0x1c], ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
call fcn.00408210
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov esi, eax
cmp esi, 0xea
jne 0x59ba20
mov edi, dword [ebp - 4]
test edi, edi
je 0x59b9f0
sub edi, 4
mov edi, dword [edi]
cmp edi, 0x10000
jge 0x59ba4a
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x59ba0f
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407de0
jmp 0x59b9a9
test esi, esi
jne 0x59ba4a
mov eax, dword [ebp - 4]
call fcn.00408d1c
mov ecx, eax
movzx eax, byte [ebp - 5]
mov edx, dword [ebp - 0x14]
call fcn.0059b91c
test eax, eax
je 0x59b9a9
inc dword [ebp - 0x18]
jmp 0x59b9a9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59ba68
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
movzx eax, byte [ebp - 5]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.0059b884
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59ba96
lea eax, [ebp - 4]
call fcn.00407c58
ret
Function at 0x59c848
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x59c8e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x66275c]
cmp dword [eax], 2
jne 0x59c88b
push 1
mov eax, esi
call fcn.00408d1c
push eax
mov eax, edi
call fcn.00408d1c
push eax
call sub.kernel32.dll_MoveFileExW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x59c8cf
mov eax, esi
call fcn.00408d1c
mov edx, eax
lea eax, [ebp - 4]
call fcn.00408d84
mov eax, dword [ebp - 4]
call fcn.00422a6c
mov ebx, eax
test bl, bl
jne 0x59c8b4
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
jne 0x59c8cf
mov eax, esi
call fcn.00408d1c
push eax
mov eax, edi
call fcn.00408d1c
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59c8ec
lea eax, [ebp - 4]
call fcn.00407c58
ret

Function at 0x59d830
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor edx, edx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], edx
ret
Function at 0x5a0d10
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x66a5e8
mov eax, esi
mov edx, 8
test al, 1
je 0x5a0d2c
shr eax, 1
xor eax, 0xedb88320
jmp 0x5a0d2e
shr eax, 1
dec edx
jne 0x5a0d1f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x5a0d18
pop esi
ret

Function at 0x5a0d44
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x66a5e4], 0
jne 0x5a0d6a
call fcn.005a0d10
push 1
push 0x66a5e4
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x5a0d94
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x66a5e8]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x5a0d70
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5b4980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
lea edi, [ebp - 0xd]
mov bl, 1
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0x18]
dec esi
test esi, esi
jl 0x5b4b30
inc esi
mov eax, dword [ebp + 8]
push eax
mov eax, edi
mov edx, 5
call fcn.005b35b0
pop ecx
test al, al
jne 0x5b49c7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.005b4c68
xor ebx, ebx
jmp 0x5b4b30
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
cmp eax, dword [edi]
ja 0x5b49e5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.005b4c68
xor ebx, ebx
jmp 0x5b4b30
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 4]
mov edx, dword [edi]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
call fcn.005cbbd8
test eax, eax
jne 0x5b4a1c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.005b4c68
xor ebx, ebx
jmp 0x5b4b30
test byte [edi + 4], 1
je 0x5b4b29
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 4]
mov edx, 4
call fcn.005b35b0
pop ecx
test al, al
jne 0x5b4a50
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.005b4c68
xor ebx, ebx
jmp 0x5b4b30
mov edx, dword [0x5b098c]
mov eax, 0xc
call fcn.00409d30
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5b4afb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00408840
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00408218
mov edx, dword [ebp - 4]
call fcn.005b35b0
pop ecx
test al, al
jne 0x5b4abe
mov edx, dword [0x5b098c]
mov eax, dword [ebp - 8]
call fcn.00409d44
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.005b4c68
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b4b30
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.005abf84
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 8]
call fcn.005ac3b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b4b29
dec esi
jne 0x5b499e
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5bf8d8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x5bf955
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.005ac65c
mov eax, dword [ebp - 4]
call fcn.005abf84
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x30]
mov ebx, dword [eax + 0xc]
dec ebx
cmp ebx, 0
jl 0x5bf93c
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 4]
mov esi, dword [eax + ebx*4]
mov eax, dword [esi + 4]
cmp eax, dword [ebp - 8]
jne 0x5bf936
mov eax, dword [esi]
mov edx, dword [ebp - 4]
call fcn.0040868c
je 0x5bf93f
dec ebx
cmp ebx, 0xffffffff
jne 0x5bf919
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bf95c
lea eax, [ebp - 4]
call fcn.00407c7c
ret
Function at 0x5e5a20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.00423474
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5e8cf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
mov byte [0x66ae58], 0
mov eax, dword [0x66275c]
cmp dword [eax], 2
jne 0x5e8d32
mov dword [ebp - 0x114], 0x114
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x5e8d32
cmp dword [ebp - 0x110], 5
setae byte [0x66ae58]
mov esp, ebp
pop ebp
ret

Function at 0x5e9cd4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.00423474
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5eb964
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
push ebx
xor edx, edx
mov dword [ebp - 0x25c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5eba36
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0x258]
push eax
lea edx, [ebp - 0x25c]
mov eax, ebx
call fcn.00599cf0
lea eax, [ebp - 0x25c]
mov edx, 0x5eba54
call fcn.00408f18
mov eax, dword [ebp - 0x25c]
call fcn.00408d1c
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x5eba1d
xor eax, eax
push ebp
push 0x5eba16
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
call fcn.005eb910
test al, al
je 0x5eb9eb
mov byte [ebp - 1], 1
jmp 0x5eb9ff
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x5eb9d6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5eba1d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5eba3d
lea eax, [ebp - 0x25c]
call fcn.00407c58
ret

Function at 0x5eba58
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd4c
push ebx
push esi
mov ebx, edx
mov esi, eax
push 0x200
push 0x2b4
lea eax, [ebp - 0x2b4]
push eax
push 0
mov eax, esi
call fcn.00408d1c
push eax
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x5eba9f
mov eax, ebx
lea edx, [ebp - 0x2a8]
mov ecx, 0x104
call fcn.00408dc0
jmp 0x5ebaa6
mov eax, ebx
call fcn.00407c58
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5ebaac
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd4c
push ebx
push esi
mov ebx, edx
mov esi, eax
movzx eax, bl
mov eax, dword [eax*4 + 0x6616b8]
or eax, 0x4001
push eax
push 0x2b4
lea eax, [ebp - 0x2b4]
push eax
push 0
mov eax, esi
call fcn.00408d1c
push eax
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x5ebaf2
mov eax, dword [ebp - 0x2b0]
jmp 0x5ebaf4
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret