joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40363a
Capabilities:
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
mov ebx, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x2498374], 0x594
push edi
mov dword [ebp - 0x10], ecx
jne 0x403671
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [0x4c71c8]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4c71cc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00403633
mov eax, dword [0x4c71d0]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x4c71d4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x2498374], 0xc
mov dword [ebp - 4], eax
jne 0x403719
lea eax, [ebp - 0x448]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402c4c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
mov word [ebp - 0x14], ax
lea edi, [ebp - 0x12]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x848]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x2498374]
cmp eax, 0xfa9
jne 0x403735
mov dword [0x2498370], 0xedeb2e40
cmp eax, 0x3eb
jne 0x403742
mov dword [0x247a090], esi
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add eax, edi
shr edi, cl
mov dword [ebp - 0x20], eax
mov dword [0x249836c], 0xf4ea3dee
add edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
xor dword [ebp - 4], eax
xor edi, dword [ebp - 4]
cmp dword [0x2498374], 0x213
jne 0x40377f
push 0x402c78
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub ebx, edi
cmp dword [0x2498374], 0xc
jne 0x403791
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
mov eax, ebx
lea ecx, [ebp - 4]
call fcn.0040362d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
lea edx, [eax + ebx]
mov eax, dword [ebp - 4]
mov edi, ebx
shr edi, cl
mov ecx, dword [ebp - 0x2c]
add eax, ecx
xor eax, edx
add edi, dword [ebp - 0x24]
cmp dword [0x2498374], 0x121
mov dword [ebp - 4], eax
jne 0x4037dc
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push 0x402c94
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
mov eax, dword [ebp - 4]
xor eax, edi
sub dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
call fcn.00403626
dec dword [ebp - 0x18]
jne 0x4036aa
cmp dword [0x2498374], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
jne 0x403811
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403b60
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c457b
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push esi
push edi
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push edi
push edi
push edi
push edi
push edi
call ebx
cmp esi, 0x2b259d
jle 0x403bb3
cmp dword [esp + 0x10], 0x785074d5
jne 0x403bbc
inc esi
cmp esi, 0x1c1b
jl 0x403b8b
cmp dword [0x2498374], 0x400
jne 0x403c17
lea eax, [esp + 0x2c]
call fcn.00404626
push edi
push edi
mov dword [esp + 0x5c], edi
call fcn.00405dd5
push edi
call fcn.00406339
add esp, 0xc
push edi
call fcn.00406408
pop ecx
push edi
push edi
call fcn.00405d5c
pop ecx
pop ecx
lea eax, [esp + 0x14]
push eax
call fcn.0040464b
lea eax, [esp + 0x14]
push eax
call fcn.00404687
or dword [esp + 0x54], 0xffffffff
lea esi, [esp + 0x2c]
call fcn.00404643
mov eax, dword [0x4c7854]
mov dword [0x2498374], eax
mov eax, dword [0x4c782c]
mov dword [0x2498dd8], eax
call fcn.004038f7
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
push edi
push edi
push edi
push edi
push edi
call ebx
cmp esi, 0x2b259d
jle 0x403c53
cmp dword [esp + 0x10], 0x785074d5
jne 0x403c5c
inc esi
cmp esi, 0x11915
jl 0x403c32
mov eax, dword [0x247a094]
mov dword [0x2498368], eax
call eax
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x406bab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c62c0]
jne 0x406bb5
repz ret
jmp fcn.0040b0ec
Function at 0x40f285
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004085fc
and dword [ebp - 4], 0
cmp dword [0x4c8710], 0
mov ebx, eax
jne 0x40f336
push 0x402b4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f3e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402b40
push edi
call esi
test eax, eax
je 0x40f3e7
push eax
call fcn.0040858a
mov dword [esp], 0x402b30
push edi
mov dword [0x4c8710], eax
call esi
push eax
call fcn.0040858a
mov dword [esp], 0x402b1c
push edi
mov dword [0x4c8714], eax
call esi
push eax
call fcn.0040858a
mov dword [esp], 0x402b00
push edi
mov dword [0x4c8718], eax
call esi
push eax
call fcn.0040858a
pop ecx
mov dword [0x4c8720], eax
test eax, eax
je 0x40f336
push 0x402ae8
push edi
call esi
push eax
call fcn.0040858a
pop ecx
mov dword [0x4c871c], eax
mov eax, dword [0x4c871c]
cmp eax, ebx
je 0x40f38e
cmp dword [0x4c8720], ebx
je 0x40f38e
push eax
call fcn.00408605
push dword [0x4c8720]
mov esi, eax
call fcn.00408605
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f38e
test edi, edi
je 0x40f38e
call esi
test eax, eax
je 0x40f385
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f385
test byte [ebp - 0xc], 1
jne 0x40f38e
or dword [ebp + 0x10], 0x200000
jmp 0x40f3c7
mov eax, dword [0x4c8714]
cmp eax, ebx
je 0x40f3c7
push eax
call fcn.00408605
pop ecx
test eax, eax
je 0x40f3c7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f3c7
mov eax, dword [0x4c8718]
cmp eax, ebx
je 0x40f3c7
push eax
call fcn.00408605
pop ecx
test eax, eax
je 0x40f3c7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c8710]
call fcn.00408605
pop ecx
test eax, eax
je 0x40f3e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f3e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402b80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40f044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40f03c]
sub esp, 4
test ebx, ebx
je 0x402bcb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402bc4
test esi, esi
je 0x402bc4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402ba0
mov dword [esp], 0x40f044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402db0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402e00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402ed8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x402e3e
cmp eax, 4
jne 0x402e60
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x402e4e
cmp edx, 4
je 0x402e4e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402db0
Function at 0x4a4854
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor ebx, ebx
mov dword [ebp - 0x114], 0x114
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4a48a0
cmp dword [ebp - 0x104], 2
jne 0x4a48a0
cmp dword [ebp - 0x110], 5
ja 0x4a489e
cmp dword [ebp - 0x110], 5
jne 0x4a48a0
cmp dword [ebp - 0x10c], 1
jb 0x4a48a0
mov bl, 1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4aab6c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x509438
mov eax, esi
mov edx, 8
test al, 1
je 0x4aab88
shr eax, 1
xor eax, 0xedb88320
jmp 0x4aab8a
shr eax, 1
dec edx
jne 0x4aab7b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4aab74
pop esi
ret

Function at 0x4aaba0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x509434], 0
jne 0x4aabc3
call fcn.004aab6c
push 1
push 0x509434
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x4aabee
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x509438]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4aabc9
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4ab758
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 0x4ac444
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.004064d4
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jle 0x4ac4e6
mov eax, ebx
call fcn.00403018
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4ac4df
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 0x4ac4c9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4ac508
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4ac4c9
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 0x4ac4fd
mov eax, dword [ebp - 0x10]
call fcn.00403034
ret
mov eax, dword [0x503000]
cmp dword [eax], 1
je 0x4ac4fd
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004ac268
mov byte [ebp - 5], al
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ac710
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.004ac6c4
test al, al
jne 0x4ac731
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4ac77f
xor eax, eax
push ebp
push 0x4ac76f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateDirectoryW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac776
lea eax, [ebp - 0xc]
call fcn.004ac700
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ac788
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.004ac6c4
test al, al
jne 0x4ac7ac
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4ac812
xor eax, eax
push ebp
push 0x4ac802
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
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac809
lea eax, [ebp - 0xc]
call fcn.004ac700
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x4ac820
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.004ac6c4
test al, al
jne 0x4ac844
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4ac89c
xor eax, eax
push ebp
push 0x4ac88c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, edi
call fcn.004064d4
push eax
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_CopyFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac893
lea eax, [ebp - 0xc]
call fcn.004ac700
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ac8a8
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.004ac6c4
test al, al
jne 0x4ac8c9
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4ac915
xor eax, eax
push ebp
push 0x4ac905
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac90c
lea eax, [ebp - 0xc]
call fcn.004ac700
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4aca80
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.004ac6c4
test al, al
jne 0x4acaa3
mov dword [ebp - 4], 0xffffffff
jmp 0x4acaef
xor eax, eax
push ebp
push 0x4acadf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acae6
lea eax, [ebp - 0xc]
call fcn.004ac700
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4acc24
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.004ac6c4
test al, al
jne 0x4acc48
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4acc9c
xor eax, eax
push ebp
push 0x4acc8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004064d4
push eax
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acc93
lea eax, [ebp - 0xc]
call fcn.004ac700
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4acca8
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 0x4acccb
test esi, 4
je 0x4acccb
xor edi, edi
jmp 0x4accd4
mov eax, edi
call fcn.004064d4
mov edi, eax
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004ac6c4
test al, al
jne 0x4acce9
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4acd38
xor eax, eax
push ebp
push 0x4acd28
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push edi
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileExW
mov dword [ebp - 8], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acd2f
lea eax, [ebp - 0x10]
call fcn.004ac700
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4acdb4
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.004ac6c4
test al, al
jne 0x4acdd5
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4ace21
xor eax, eax
push ebp
push 0x4ace11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_RemoveDirectoryW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ace18
lea eax, [ebp - 0xc]
call fcn.004ac700
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ace2c
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.004ac6c4
test al, al
jne 0x4ace50
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4ace9d
xor eax, eax
push ebp
push 0x4ace8d
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_SetFileAttributesW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ace94
lea eax, [ebp - 0xc]
call fcn.004ac700
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ad9e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4ad9e8
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4adad5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0047f39c
mov edx, dword [ebp - 8]
mov ecx, 0x4adaf0
xor eax, eax
call fcn.004ad748
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4adaa3
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x4ada02
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.004ab2a8
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.0040d060
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00480350
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x68
call fcn.004ab278
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x40aa00]
call fcn.00411834
call fcn.00404a74
jmp 0x4ada02
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4adadc
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00406440
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406440
ret
Function at 0x4af474
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.00406430
xor eax, eax
push ebp
push 0x4af558
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x18], 0
jne 0x4af4bb
lea edx, [ebp + 0x18]
mov eax, edi
call fcn.0047e240
cmp dword [ebp + 0x18], 0
jne 0x4af4bb
lea eax, [ebp + 0x18]
call fcn.0047f214
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403540
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
test ebx, ebx
je 0x4af4e6
mov eax, ebx
call fcn.004064d4
mov dword [ebp - 0x34], eax
mov eax, edi
call fcn.004064d4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.004064d4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
call fcn.004064d4
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 0x4af528
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
jmp 0x4af542
mov dword [esi], 0x103
mov eax, dword [ebp - 8]
test eax, eax
je 0x4af542
push esi
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ebp + 0x14]
call fcn.004af114
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af55f
lea eax, [ebp + 0x18]
call fcn.00406438
ret

Function at 0x4af75c
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffdc
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4af78a
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x10
call fcn.00406630
jmp 0x4af793
mov eax, ebx
xor edx, edx
call fcn.00406448
add esp, 0x24
pop ebx
ret

Function at 0x4af798
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
mov dword [esp], 0x101
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x4af7c9
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x101
call fcn.00406630
jmp 0x4af7d2
mov eax, ebx
xor edx, edx
call fcn.00406448
add esp, 0x208
pop ebx
ret

Function at 0x4af7e4
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x503000]
cmp dword [eax], 2
jne 0x4af84c
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4af807
xor eax, eax
jmp 0x4af85b
lea eax, [esp + 8]
push eax
push 0x4af860
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x4af84c
xor eax, eax
jmp 0x4af85b
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret