joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ebafc
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd4c
push ebx
mov ebx, eax
movzx eax, bl
mov eax, dword [eax*4 + 0x6616c0]
or eax, 0x4011
push eax
push 0x2b4
lea eax, [ebp - 0x2b4]
push eax
push 0x10
push 0x5ebb44
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x5ebb3c
mov eax, dword [ebp - 0x2b0]
jmp 0x5ebb3e
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5ebe60
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
call sub.kernel32.dll_GetVersion_1
mov dx, 0xff
and dx, ax
cmp dx, 5
jne 0x5ebee5
shr ax, 8
cmp ax, 1
jb 0x5ebee5
mov bl, 1
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x5ebef0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5ebee7
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x5ebf68
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x5ebeda
cmp dword [ebp - 8], 4
jne 0x5ebeda
cmp dword [ebp - 0x10], 4
jne 0x5ebeda
cmp dword [ebp - 0xc], 0
setne bl
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x5ebee7
xor ebx, ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5ebfe8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
test dl, dl
je 0x5ebffc
add esp, 0xfffffff0
call fcn.00406610
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.004f3f60
mov eax, dword [0x5ec09c]
not eax
and dword [esi + 0x58], eax
mov edx, 0x79
mov eax, esi
call fcn.004f03a0
mov edx, 0x61
mov eax, esi
call fcn.004f03d4
xor edx, edx
mov eax, esi
call fcn.004f0f98
mov dl, 1
mov eax, esi
call fcn.004f9ff4
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 6
jae 0x5ec058
mov dx, 0xfffe
mov eax, esi
call fcn.004f0fe0
push 0
lea eax, [ebp - 0x5c]
push eax
push 0x5c
push 0x1f
call sub.user32.dll_SystemParametersInfoW
test eax, eax
je 0x5ec07e
lea eax, [ebp - 0x5c]
push eax
call sub.gdi32.dll_CreateFontIndirectW
mov edx, eax
mov eax, dword [esi + 0x6c]
call fcn.004d3670
mov eax, esi
test bl, bl
je 0x5ec093
call fcn.00406668
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5ec0a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
call sub.comctl32.dll_InitCommonControls_1
mov edx, edi
mov eax, esi
call fcn.004f581c
mov ecx, 0x5ec134
mov edx, edi
mov eax, esi
call fcn.004f5748
mov eax, dword [edi + 4]
or eax, 0x2000000
or eax, 0x4000000
or eax, 4
or eax, 1
or eax, 0x20
or eax, 8
mov dword [edi + 4], eax
call fcn.005ebe60
mov ebx, eax
mov byte [esi + 0x290], bl
test bl, bl
je 0x5ec105
mov eax, dword [edi + 4]
or eax, 0x200
or eax, 0x400
mov dword [edi + 4], eax
jmp 0x5ec122
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 6
jb 0x5ec11e
or dword [edi + 4], 0x200
jmp 0x5ec122
or dword [edi + 4], 2
or dword [edi + 8], 0x200
and dword [edi + 0x24], 0xfffffffc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5ed188
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd90
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5ed354
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5ed327
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
test eax, eax
je 0x5ed1e5
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x5ed223
mov eax, ebx
call fcn.005ebda8
test al, al
jne 0x5ed203
mov byte [ebp - 5], 0
call fcn.00407448
jmp 0x5ed32e
lea edx, [ebp - 0x264]
mov eax, ebx
call fcn.005eba58
mov ecx, dword [ebp - 0x264]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.005ed5b8
mov byte [ebp - 5], 1
lea eax, [ebp - 0x260]
push eax
lea edx, [ebp - 0x268]
mov eax, ebx
call fcn.00599cf0
lea eax, [ebp - 0x268]
mov edx, 0x5ed374
call fcn.00408f18
mov eax, dword [ebp - 0x268]
call fcn.00408d1c
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x5ed310
xor eax, eax
push ebp
push 0x5ed309
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
call fcn.005eb910
test al, al
je 0x5ed2de
lea eax, [ebp - 4]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.00408dc0
lea edx, [ebp - 0x270]
mov eax, ebx
call fcn.00599cf0
lea eax, [ebp - 0x270]
mov edx, dword [ebp - 4]
call fcn.00408f18
mov eax, dword [ebp - 0x270]
lea edx, [ebp - 0x26c]
call fcn.005eba58
mov eax, dword [ebp - 0x26c]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.005ecb84
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x5ed277
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ed310
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ed32e
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ed35b
lea eax, [ebp - 0x270]
mov edx, 4
call fcn.00407cb8
lea eax, [ebp - 4]
call fcn.00407c58
ret
Function at 0x5ed650
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5ed846
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x5ed6d5
lea edx, [ebp - 0x264]
mov eax, edi
call fcn.0059a2c4
mov eax, dword [ebp - 0x264]
push eax
lea edx, [ebp - 0x268]
mov eax, ebx
call fcn.00599cf0
mov eax, dword [ebp - 0x268]
pop edx
call fcn.00599f1c
test eax, eax
jne 0x5ed6d5
lea edx, [ebp - 4]
mov eax, edi
call fcn.0059a298
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5ed814
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
push eax
lea edx, [ebp - 0x26c]
mov eax, ebx
call fcn.00599cf0
lea eax, [ebp - 0x26c]
mov edx, 0x5ed860
call fcn.00408f18
mov eax, dword [ebp - 0x26c]
call fcn.00408d1c
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x5ed7fd
xor eax, eax
push ebp
push 0x5ed7f6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
call fcn.005eb910
test al, al
je 0x5ed7c7
lea eax, [ebp - 8]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.00408dc0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00599f1c
test eax, eax
je 0x5ed7c7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.005ecc78
test eax, eax
jne 0x5ed7c7
lea edx, [ebp - 0x274]
mov eax, ebx
call fcn.00599cf0
lea eax, [ebp - 0x274]
mov edx, dword [ebp - 8]
call fcn.00408f18
mov eax, dword [ebp - 0x274]
lea edx, [ebp - 0x270]
call fcn.005eba58
mov eax, dword [ebp - 0x270]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.005ecb84
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x5ed73d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ed7fd
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ed81b
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x5edb1c
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 0x5f0f10
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
ret
Function at 0x5f1c1c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00408d1c
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jle 0x5f1cbe
mov eax, ebx
call fcn.00404b80
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5f1cb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x5f1ca1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5f1ce0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x5f1ca1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f1cd5
mov eax, dword [ebp - 0x10]
call fcn.00404b9c
ret
mov eax, dword [0x66275c]
cmp dword [eax], 1
je 0x5f1cd5
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.005f1a40
mov byte [ebp - 5], al
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5f21d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.005f217c
test al, al
jne 0x5f21f1
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x5f223f
xor eax, eax
push ebp
push 0x5f222f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, esi
call fcn.00408d1c
push eax
call sub.kernel32.dll_CreateDirectoryW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2236
lea eax, [ebp - 0xc]
call fcn.005f21bc
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5f2248
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.005f217c
test al, al
jne 0x5f226c
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x5f22d2
xor eax, eax
push ebp
push 0x5f22c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x24]
push eax
push edi
push esi
call sub.kernel32.dll_CreateProcessW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f22c9
lea eax, [ebp - 0xc]
call fcn.005f21bc
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x5f22e0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.005f217c
test al, al
jne 0x5f2304
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x5f235c
xor eax, eax
push ebp
push 0x5f234c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, edi
call fcn.00408d1c
push eax
mov eax, esi
call fcn.00408d1c
push eax
call sub.kernel32.dll_CopyFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2353
lea eax, [ebp - 0xc]
call fcn.005f21bc
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5f2368
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.005f217c
test al, al
jne 0x5f2389
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x5f23d5
xor eax, eax
push ebp
push 0x5f23c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00408d1c
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f23cc
lea eax, [ebp - 0xc]
call fcn.005f21bc
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5f2540
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.005f217c
test al, al
jne 0x5f2563
mov dword [ebp - 4], 0xffffffff
jmp 0x5f25af
xor eax, eax
push ebp
push 0x5f259f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00408d1c
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f25a6
lea eax, [ebp - 0xc]
call fcn.005f21bc
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5f26e4
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.005f217c
test al, al
jne 0x5f2708
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x5f275c
xor eax, eax
push ebp
push 0x5f274c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00408d1c
push eax
mov eax, esi
call fcn.00408d1c
push eax
call sub.kernel32.dll_MoveFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2753
lea eax, [ebp - 0xc]
call fcn.005f21bc
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5f2768
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
test edi, edi
jne 0x5f278b
test esi, 4
je 0x5f278b
xor edi, edi
jmp 0x5f2794
mov eax, edi
call fcn.00408d1c
mov edi, eax
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.005f217c
test al, al
jne 0x5f27a9
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x5f27f8
xor eax, eax
push ebp
push 0x5f27e8
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push edi
mov eax, dword [ebp - 4]
call fcn.00408d1c
push eax
call sub.kernel32.dll_MoveFileExW
mov dword [ebp - 8], eax
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f27ef
lea eax, [ebp - 0x10]
call fcn.005f21bc
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5f2874
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.005f217c
test al, al
jne 0x5f2895
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x5f28e1
xor eax, eax
push ebp
push 0x5f28d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00408d1c
push eax
call sub.kernel32.dll_RemoveDirectoryW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f28d8
lea eax, [ebp - 0xc]
call fcn.005f21bc
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5f28ec
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.005f217c
test al, al
jne 0x5f2910
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x5f295d
xor eax, eax
push ebp
push 0x5f294d
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, esi
call fcn.00408d1c
push eax
call sub.kernel32.dll_SetFileAttributesW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2954
lea eax, [ebp - 0xc]
call fcn.005f21bc
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5f3734
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x5f373c
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x5f3829
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0059b400
mov edx, dword [ebp - 8]
mov ecx, 0x5f3844
xor eax, eax
call fcn.005f349c
push 0
mov eax, dword [ebp - 4]
call fcn.00408d1c
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x5f37f7
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0xb7
je 0x5f3756
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x3b
call fcn.005a1474
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.0042218c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0059c40c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x70
call fcn.005a1444
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x41d324]
call fcn.00427ca0
call fcn.00407354
jmp 0x5f3756
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00408038
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f3830
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00407cb8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407cb8
ret
Function at 0x5f51d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
call fcn.00407d3c
xor eax, eax
push ebp
push 0x5f52b4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x18], 0
jne 0x5f5217
lea edx, [ebp + 0x18]
mov eax, edi
call fcn.0059a204
cmp dword [ebp + 0x18], 0
jne 0x5f5217
lea eax, [ebp + 0x18]
call fcn.0059b270
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.004053f4
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
test ebx, ebx
je 0x5f5242
mov eax, ebx
call fcn.00408d1c
mov dword [ebp - 0x34], eax
mov eax, edi
call fcn.00408d1c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.00408d1c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
call fcn.00408d1c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x5f5284
call sub.kernel32.dll_GetLastError_2
mov dword [esi], eax
jmp 0x5f529e
mov dword [esi], 0x103
mov eax, dword [ebp - 8]
test eax, eax
je 0x5f529e
push esi
movzx edx, byte [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
call fcn.005f4e70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f52bb
lea eax, [ebp + 0x18]
call fcn.00407c58
ret

Function at 0x5f54f4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
mov ebx, eax
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x5f5526
mov eax, ebx
lea edx, [ebp - 0x24]
mov ecx, 0x10
call fcn.00408dc0
jmp 0x5f552d
mov eax, ebx
call fcn.00407c58
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5f5534
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
mov dword [ebp - 4], 0x101
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x206]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x5f556f
mov eax, ebx
lea edx, [ebp - 0x206]
mov ecx, 0x101
call fcn.00408dc0
jmp 0x5f5576
mov eax, ebx
call fcn.00407c58
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5f5584
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov eax, dword [0x66275c]
cmp dword [eax], 2
jne 0x5f55ed
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x5f55ad
xor eax, eax
jmp 0x5f55fc
lea eax, [ebp - 0x10]
push eax
push 0x5f5600
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_2
test eax, eax
je 0x5f55ed
xor eax, eax
jmp 0x5f55fc
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x5f5628
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x5f5682
inc esi
xor edi, edi
cmp edi, 1
jne 0x5f564e
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_2
jmp 0x5f565c
cmp edi, 1
jle 0x5f565c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_2
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005f2368
test eax, eax
jne 0x5f5682
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x5f5682
call sub.kernel32.dll_GetLastError_2
cmp eax, 3
je 0x5f5682
inc edi
dec esi
jne 0x5f563e
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x5f5ef8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
mov esi, eax
push 0
push 2
lea eax, [ebp - 4]
push eax
call fcn.0059b624
and eax, 0x7f
mov ecx, dword [eax*4 + 0x661728]
mov edx, 0x80000002
xor eax, eax
call fcn.0059b85c
test eax, eax
jne 0x5f5f43
mov eax, esi
call fcn.00408d1c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteValueW
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
call fcn.00408d1c
push eax
call sub.gdi32.dll_RemoveFontResourceW
test eax, eax
je 0x5f5f64
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
pop esi
pop ebx
pop ecx
pop ebp
ret