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

Disassembly:
mov eax, 0x4aa7d8
call fcn.004a80c4
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x206
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x21e]
push ebx
mov dword [ebp - 0x18], ebx
push eax
mov word [ebp - 0x220], bx
call fcn.00478160
add esp, 0xc
mov ecx, 0x4da2a0
call fcn.00405f43
xor edi, edi
inc edi
push edi
push 0x23
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x18], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
lea eax, [ebp - 0x220]
jne 0x45602e
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, ebx
je 0x456088
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.0040611b
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov eax, esi
call fcn.00406e57
mov dword [ebp - 4], edi
mov edi, 0x4b95bc
push edi
push eax
call fcn.00405b3d
test eax, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.00405d7c
cmp byte [ebp - 0xd], bl
je 0x456027
push edi
push esi
call fcn.00406e34
push str.All_UsersApplication_Data_
jmp 0x45606f
push eax
push esi
call fcn.0040611b
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov eax, esi
call fcn.00406e57
mov edi, 0x4b95bc
push edi
push eax
mov dword [ebp - 4], 2
call fcn.00405b3d
test eax, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.00405d7c
cmp byte [ebp - 0xd], bl
je 0x456075
push edi
push esi
call fcn.00406e34
push str.winmasterzskich_
push esi
call fcn.00406e34
push dword [esi]
call fcn.00451cac
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4563cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x456467
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
mov ebx, str.svrid
push ebx
push eax
call edi
cmp dword [ebp - 8], 1
je 0x45640e
cmp dword [ebp - 8], 2
jne 0x456465
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405e12
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00405ca7
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push 0
push ebx
push dword [eax]
call edi
test eax, eax
jne 0x456464
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x456456
push eax
call fcn.0047b2ea
pop ecx
mov edx, esi
call fcn.00405c86
mov dword [ebp - 0xc], 1
pop esi
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x45646e
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x45649d
push dword [esp + 8]
call fcn.0047b2ea
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push edi
push str.svrid
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x45649d
inc edi
mov eax, edi
pop edi
ret 4
Function at 0x456b0a
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4ab9fe
call fcn.004a80c4
sub esp, 0xe0
mov eax, dword [0x4da2a0]
push ebx
push esi
push edi
mov esi, 0x4da2a0
xor edi, edi
mov ecx, esi
mov dword [ebp - 0x24], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
mov eax, dword [0x4da2a0]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0xc6
lea eax, [ebp - 0xea]
push edi
mov byte [ebp - 4], 1
push eax
mov word [ebp - 0xec], di
call fcn.00478160
mov eax, dword [0x4da2a0]
add esp, 0xc
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov eax, dword [0x4da2a0]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.00457280
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00405e52
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405d7c
mov eax, edi
call fcn.0040527a
lea eax, [ebp - 0x14]
push eax
call fcn.0045730b
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00405e52
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405d7c
push dword [ebp - 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x64
lea eax, [ebp - 0xec]
push eax
mov esi, 0x4b94e0
push esi
push str.Version
push str.Common
call ebx
test eax, eax
je 0x456cd5
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040611b
lea eax, [ebp - 0x10]
call fcn.0040527a
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x14]
push eax
push 2
pop edx
lea eax, [ebp - 0x10]
call fcn.004067bd
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00405e52
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405d7c
push esi
push 0x4b94dc
mov eax, edi
push eax
call fcn.00454c0d
push esi
push 0x4be630
mov eax, edi
push eax
call fcn.00454c0d
push dword [ebp - 0x20]
lea eax, [ebp - 0xec]
push 0x64
push eax
push esi
push str.version
push str.infos
call ebx
test eax, eax
je 0x456cd5
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040611b
lea eax, [ebp - 0x14]
push eax
push 6
pop ecx
lea eax, [ebp - 0x10]
call fcn.00406e57
mov byte [ebp - 4], 7
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00406de3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405d7c
push dword [ebp - 0x18]
call fcn.0047bd3a
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405d7c
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405d7c
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405d7c
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405d7c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x457280
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4ab95a
call fcn.004a80c4
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004066a8
pop ecx
xor esi, esi
inc esi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0040527a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405bf0
add eax, 0x10
mov dword [edi], eax
push 0x4be464
push edi
mov dword [ebp - 0x14], esi
call fcn.00406e34
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4572ee
lea eax, [ebp - 0x10]
call fcn.00405e52
push str.ressrcchsuplive.svr
push edi
call fcn.00406e34
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405d7c
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x45730b
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4ab95a
call fcn.004a80c4
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004066a8
pop ecx
xor esi, esi
inc esi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0040527a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405bf0
add eax, 0x10
mov dword [edi], eax
push str.datawmain.ini
push edi
mov dword [ebp - 0x14], esi
call fcn.00406e34
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x457379
lea eax, [ebp - 0x10]
call fcn.00405e52
push str.ressrcchswmain.ini
push edi
call fcn.00406e34
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405d7c
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4573bf
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc
Function at 0x45745d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push edi
xor eax, eax
cmp ecx, ebx
lea edi, [ebp - 0x13]
mov byte [ebp - 0x14], bl
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
je 0x457539
cmp word [ecx], bx
je 0x457539
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
je 0x457539
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x45752f
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
test eax, eax
je 0x45752f
lea ecx, [ebp - 0x14]
call fcn.00457575
test eax, eax
je 0x45752f
add esi, 0xfffffffc
lea eax, [esi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45752f
mov eax, dword [ebp + 8]
push ebx
push ebx
push 4
push dword [ebp - 8]
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [ebp - 8]
call edi
test eax, eax
je 0x45752f
mov edx, dword [ebp - 4]
call fcn.00457540
test eax, eax
jge 0x45752f
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x457540
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x45756f
test esi, esi
jbe 0x45756f
mov ecx, esi
shr ecx, 2
push 0
pop eax
je 0x45755e
xor dword [edx + eax*4], 0xd8d8d8d8
inc eax
cmp eax, ecx
jb 0x457552
shl eax, 2
jmp 0x457568
xor byte [eax + edx], 0xd8
inc eax
cmp eax, esi
jb 0x457563
xor eax, eax
ret
mov eax, 0x80004005
ret

Function at 0x457599
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x4575b7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
or dword [esi + 0xc], 0xffffffff
ret
Function at 0x457612
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
xor ebx, ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x457634
xor eax, eax
inc eax
jmp 0x45769e
cmp dword [edi], esi
je 0x45763d
xor ebx, ebx
inc ebx
jmp 0x457682
lea eax, [ebp - 8]
push eax
push 0x4be77c
push 1
push esi
push 0x4be76c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x45765c
push 2
jmp 0x457681
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x457671
push 3
jmp 0x457681
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x457682
push 4
pop ebx
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x45768f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x45769c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x4579fb
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov eax, 0x4abf3a
call fcn.004a80c4
sub esp, 0x280
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
xor edi, edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
call fcn.00405f00
push edi
push 2
mov dword [ebp - 4], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x20], esi
jne 0x457a58
push 0xfffffffffffffffe
pop esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405d7c
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push 0x228
lea eax, [ebp - 0x288]
push edi
push eax
call fcn.00478160
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
push esi
mov dword [ebp - 0x28c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x457a93
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffd
jmp 0x457a39
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0045484e
mov byte [ebp - 4], 1
jmp 0x457aad
xor edi, edi
mov eax, dword [ebp - 0x284]
cmp eax, dword [ebp - 0x24]
je 0x457ba0
cmp eax, edi
je 0x457ba0
cmp eax, 4
je 0x457ba0
push eax
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, edi
je 0x457ba0
mov eax, dword [0x4da2a0]
mov ecx, 0x4da2a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
call fcn.00457fdd
test eax, eax
push ebx
je 0x457b22
lea eax, [ebp - 0x2c]
push eax
lea edi, [ebp - 0x5c]
call fcn.004548b8
lea edi, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00405e52
mov eax, dword [ebp - 0x2c]
jmp 0x457b3e
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0045495e
lea edi, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00405e52
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00405d7c
mov esi, dword [ebp + 8]
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x457b8d
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx - 0xc]
cmp ecx, eax
jl 0x457b8d
push eax
push esi
push edx
call fcn.0047f2fb
add esp, 0xc
test eax, eax
jne 0x457b8d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
je 0x457b87
push dword [ebp - 0x284]
call fcn.00454bdf
cmp eax, 1
pop ecx
jne 0x457b8a
inc dword [ebp - 0x14]
inc dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
call fcn.00405d7c
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x457aab
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x457bcc
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
lea esi, [ebp - 0x3c]
call fcn.00450476
lea esi, [ebp - 0x5c]
call fcn.00454774
mov esi, dword [ebp - 0x14]
jmp 0x457a3a
Function at 0x457ed1
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4a9e67
call fcn.004a80c4
sub esp, 0x68
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x70]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x18], ebx
call fcn.00478160
xor eax, eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x4da2a0]
xor edi, edi
inc edi
add esp, 0xc
mov ecx, 0x4da2a0
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x48], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push 0x4be878
call fcn.00407174
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push ebx
neg esi
push ebx
sbb esi, esi
push ebx
and esi, 0xa
mov word [ebp - 0x44], si
mov esi, dword [ebp - 0x14]
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x457f66
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x28], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x457f79
push dword [ebp - 0x28]
call edi
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x24], ebx
je 0x457f86
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], ebx
lea eax, [esi - 0x10]
call fcn.00405d7c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x458029
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4c9888
call fcn.004a80e4
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x4580d3
push eax
push eax
mov ebx, str._TEMP_
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x4580d3
cmp esi, 0x103
ja 0x4580d3
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004777af
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4580cf
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.00478160
add esp, 0xc
push esi
push dword [ebp - 0x24]
push ebx
call edi
test eax, eax
je 0x4580cf
mov ecx, 0x103
cmp eax, ecx
ja 0x4580cf
push eax
push dword [ebp - 0x24]
push ecx
push dword [ebp + 8]
call fcn.0047def4
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x4580cf
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x4580e2
push dword [ebp - 0x1c]
call fcn.0047a324
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004a811f
ret
Function at 0x4580eb
Capabilities:
Create directory
Delete directory

Disassembly:
mov eax, 0x4a9e79
call fcn.004a80c4
push ebx
push esi
push edi
and dword [ebp - 4], 0
push str._access
lea eax, [ebp + 8]
push eax
call fcn.00406e34
mov ebx, dword [ebp + 8]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
test edi, edi
je 0x45812d
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x458134
call esi
cmp eax, 5
je 0x458137
xor edi, edi
inc edi
lea eax, [ebx - 0x10]
call fcn.00405d7c
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x458150
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4a9e55
call fcn.004a80c4
sub esp, 0x70
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov ebx, ecx
jne 0x458170
xor eax, eax
jmp 0x4582b1
mov eax, dword [0x4da2a0]
mov ecx, 0x4da2a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push 0x4be878
call fcn.00407174
add esp, 0xc
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.0040aa07
test eax, eax
jne 0x458295
push 0x40
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x7c], 0x44
call fcn.00478160
and dword [ebp - 0x34], 0
xor eax, eax
add esp, 0xc
neg ebx
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
sbb ebx, ebx
and ebx, 5
stosd dword es:[edi], eax
mov word [ebp - 0x4c], bx
xor ebx, ebx
push str.userenv.dll
stosd dword es:[edi], eax
mov dword [ebp - 0x74], str.Winsta0Default
mov dword [ebp - 0x24], 0x30
mov dword [ebp + 8], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x45823f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x1c]
mov esi, eax
call edi
cmp esi, ebx
mov dword [ebp - 0x18], eax
je 0x45823f
push ebx
push dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x45823c
mov dword [ebp - 0x24], 0x430
jmp 0x45823f
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x24]
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x34], ebx
mov edi, eax
je 0x45826e
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], ebx
je 0x45827c
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x458287
push dword [ebp + 8]
call dword [ebp - 0x18]
cmp dword [ebp - 0x1c], ebx
je 0x458295
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x14], 0
je 0x4582a4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405d7c
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4582c0
Capabilities:
Check os version
Create process on windows

Disassembly:
mov eax, 0x4a9e43
call fcn.004a80c4
sub esp, 0x184
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x4582e1
xor eax, eax
jmp 0x458494
mov eax, dword [0x4da2a0]
mov ecx, 0x4da2a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push 0x4be878
call fcn.00407174
push 0x110
lea eax, [ebp - 0x18c]
push ebx
push eax
call fcn.00478160
add esp, 0x18
lea eax, [ebp - 0x190]
push eax
mov dword [ebp - 0x190], 0x114
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x458346
cmp dword [ebp - 0x18c], 6
jne 0x458346
inc esi
cmp esi, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea esi, [ebp - 0x10]
jne 0x45835a
call fcn.0040aa07
jmp 0x45835f
call fcn.0040a9b7
cmp eax, ebx
jne 0x458478
push 0x40
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], 0x44
call fcn.00478160
push dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 5
mov dword [ebp - 0x4c], 1
mov word [ebp - 0x48], ax
call fcn.0040aa72
add esp, 0x10
test al, al
jne 0x4583c4
cmp dword [ebp - 0x10], ebx
je 0x4583ba
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0040abec
pop ecx
push str.userenv.dll
mov dword [ebp - 0x70], str.Winsta0Default
mov dword [ebp - 0x14], 0x30
mov dword [ebp + 8], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x458423
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x1c]
mov esi, eax
call edi
cmp esi, ebx
mov edi, eax
je 0x458423
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x458420
mov dword [ebp - 0x14], 0x430
jmp 0x458423
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], eax
je 0x458453
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], ebx
je 0x458461
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x45846a
push dword [ebp + 8]
call edi
cmp dword [ebp - 0x1c], ebx
je 0x458478
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], ebx
je 0x458486
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405d7c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret