joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455a14
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x455a2c
mov eax, dword [esp + 4]
add eax, ecx
xor byte [eax], 0x88
inc ecx
cmp ecx, dword [esp + 8]
jl 0x455a1c
ret 8

Function at 0x455b19
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4aa2dd
call fcn.004a8254
sub esp, 0x10
mov eax, dword [0x4da2a0]
or dword [ebp - 0x18], 0xffffffff
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x4da2a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x14]
push eax
push ecx
push edi
call fcn.00453ce8
push edi
mov ebx, eax
call fcn.0047f6c4
add esp, 0x10
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
movzx eax, word [esi + 0x34]
push edx
push dword [ebp - 0x14]
push ebx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str._s_d__x__x__x.ich
call fcn.00407037
mov ebx, dword [esi + 0x1c]
mov esi, dword [esi + 0x14]
add esp, 0x18
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x455be7
push edi
lea ecx, [ebp + 8]
push ecx
push ebx
push esi
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x455bd6
cmp dword [ebp + 8], ebx
jne 0x455bd6
mov dword [ebp - 0x14], 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x455be7
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x456140
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4aa899
call fcn.004a8254
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.00478300
add esp, 0xc
mov ecx, 0x4da2a0
call fcn.00405ea3
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 0x45620c
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, ebx
je 0x456266
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.0040607b
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov eax, esi
call fcn.00406d1a
mov dword [ebp - 4], edi
mov edi, 0x4b95bc
push edi
push eax
call fcn.00405a9e
test eax, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.00405cd2
cmp byte [ebp - 0xd], bl
je 0x456205
push edi
push esi
call fcn.00406cf7
push str.All_UsersApplication_Data_
jmp 0x45624d
push eax
push esi
call fcn.0040607b
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov eax, esi
call fcn.00406d1a
mov edi, 0x4b95bc
push edi
push eax
mov dword [ebp - 4], 2
call fcn.00405a9e
test eax, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.00405cd2
cmp byte [ebp - 0xd], bl
je 0x456253
push edi
push esi
call fcn.00406cf7
push str.winmasterzskich_
push esi
call fcn.00406cf7
push dword [esi]
call fcn.0045821f
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 0x4565ca
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 0x456665
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 0x45660c
cmp dword [ebp - 8], 2
jne 0x456663
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405d72
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00405bfd
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 0x456662
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 0x456654
push eax
call fcn.0047b48a
pop ecx
mov edx, esi
call fcn.00405bdc
mov dword [ebp - 0xc], 1
pop esi
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x45666c
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x45669b
push dword [esp + 8]
call fcn.0047b48a
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 0x45669b
inc edi
mov eax, edi
pop edi
ret 4
Function at 0x456d08
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4abbfe
call fcn.004a8254
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.00478300
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.0045747e
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00405db2
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405cd2
mov eax, edi
call fcn.00405257
lea eax, [ebp - 0x14]
push eax
call fcn.00457509
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00405db2
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405cd2
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 0x456ed3
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040607b
lea eax, [ebp - 0x10]
call fcn.00405257
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.00406680
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00405db2
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405cd2
push esi
push 0x4b94dc
mov eax, edi
push eax
call fcn.00454deb
push esi
push 0x4be758
mov eax, edi
push eax
call fcn.00454deb
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 0x456ed3
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040607b
lea eax, [ebp - 0x14]
push eax
push 6
pop ecx
lea eax, [ebp - 0x10]
call fcn.00406d1a
mov byte [ebp - 4], 7
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00406ca6
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405cd2
push dword [ebp - 0x18]
call fcn.0047be33
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405cd2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405cd2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405cd2
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 0x45747e
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4abb5a
call fcn.004a8254
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.0040656b
pop ecx
xor esi, esi
inc esi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.00405257
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405b51
add eax, 0x10
mov dword [edi], eax
push 0x4be58c
push edi
mov dword [ebp - 0x14], esi
call fcn.00406cf7
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4574ec
lea eax, [ebp - 0x10]
call fcn.00405db2
push str.ressrcchsuplive.svr
push edi
call fcn.00406cf7
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd2
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x457509
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4abb5a
call fcn.004a8254
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.0040656b
pop ecx
xor esi, esi
inc esi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.00405257
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405b51
add eax, 0x10
mov dword [edi], eax
push str.datawmain.ini
push edi
mov dword [ebp - 0x14], esi
call fcn.00406cf7
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x457577
lea eax, [ebp - 0x10]
call fcn.00405db2
push str.ressrcchswmain.ini
push edi
call fcn.00406cf7
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd2
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4575bd
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 0x45765b
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 0x457737
cmp word [ecx], bx
je 0x457737
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 0x457737
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x45772d
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 0x45772d
lea ecx, [ebp - 0x14]
call fcn.00457773
test eax, eax
je 0x45772d
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 0x45772d
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 0x45772d
mov edx, dword [ebp - 4]
call fcn.0045773e
test eax, eax
jge 0x45772d
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 0x45773e
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x45776d
test esi, esi
jbe 0x45776d
mov ecx, esi
shr ecx, 2
push 0
pop eax
je 0x45775c
xor dword [edx + eax*4], 0xd8d8d8d8
inc eax
cmp eax, ecx
jb 0x457750
shl eax, 2
jmp 0x457766
xor byte [eax + edx], 0xd8
inc eax
cmp eax, esi
jb 0x457761
xor eax, eax
ret
mov eax, 0x80004005
ret

Function at 0x457797
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x4577b5
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 0x457810
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 0x457832
xor eax, eax
inc eax
jmp 0x45789c
cmp dword [edi], esi
je 0x45783b
xor ebx, ebx
inc ebx
jmp 0x457880
lea eax, [ebp - 8]
push eax
push 0x4be8a4
push 1
push esi
push 0x4be894
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x45785a
push 2
jmp 0x45787f
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 0x45786f
push 3
jmp 0x45787f
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x457880
push 4
pop ebx
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x45788d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x45789a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x457bf9
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov eax, 0x4ac100
call fcn.004a8254
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.00405e60
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 0x457c56
push 0xfffffffffffffffe
pop esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405cd2
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.00478300
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 0x457c91
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffd
jmp 0x457c37
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00454a2c
mov byte [ebp - 4], 1
jmp 0x457cab
xor edi, edi
mov eax, dword [ebp - 0x284]
cmp eax, dword [ebp - 0x24]
je 0x457d9e
cmp eax, edi
je 0x457d9e
cmp eax, 4
je 0x457d9e
push eax
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, edi
je 0x457d9e
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.004582fc
test eax, eax
push ebx
je 0x457d20
lea eax, [ebp - 0x2c]
push eax
lea edi, [ebp - 0x5c]
call fcn.00454a96
lea edi, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00405db2
mov eax, dword [ebp - 0x2c]
jmp 0x457d3c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00454b3c
lea edi, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00405db2
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00405cd2
mov esi, dword [ebp + 8]
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x457d8b
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx - 0xc]
cmp ecx, eax
jl 0x457d8b
push eax
push esi
push edx
call fcn.0047f475
add esp, 0xc
test eax, eax
jne 0x457d8b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
je 0x457d85
push dword [ebp - 0x284]
call fcn.00454dbd
cmp eax, 1
pop ecx
jne 0x457d88
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.00405cd2
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x457ca9
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x457dca
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
lea esi, [ebp - 0x3c]
call fcn.004506d2
lea esi, [ebp - 0x5c]
call fcn.00454952
mov esi, dword [ebp - 0x14]
jmp 0x457c38
Function at 0x458150
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4a9ee5
call fcn.004a8254
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.00478300
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 0x4be9a0
call fcn.00407037
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 0x4581e5
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x28], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4581f8
push dword [ebp - 0x28]
call edi
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x24], ebx
je 0x458205
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], ebx
lea eax, [esi - 0x10]
call fcn.00405cd2
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 0x45821f
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4aa2dd
call fcn.004a8254
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00405e60
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45826a
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd2
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x45824b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x45824b
lea ecx, [ebp - 0x10]
call fcn.00406519
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x4582a1
xor esi, esi
jmp 0x45824e
push eax
call fcn.0045821f
test eax, eax
pop ecx
je 0x45829d
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x45824b
call edi
cmp eax, ebx
jne 0x45829d
jmp 0x45824b
Function at 0x458348
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4c98c8
call fcn.004a8274
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x4583f2
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 0x4583f2
cmp esi, 0x103
ja 0x4583f2
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.0047794d
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4583ee
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.00478300
add esp, 0xc
push esi
push dword [ebp - 0x24]
push ebx
call edi
test eax, eax
je 0x4583ee
mov ecx, 0x103
cmp eax, ecx
ja 0x4583ee
push eax
push dword [ebp - 0x24]
push ecx
push dword [ebp + 8]
call fcn.0047e044
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x4583ee
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x458401
push dword [ebp - 0x1c]
call fcn.0047a4c4
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004a82af
ret

Function at 0x45840a
Capabilities:
Create directory
Delete directory

Disassembly:
mov eax, 0x4a9b5e
call fcn.004a8254
push ebx
push esi
push edi
and dword [ebp - 4], 0
push str._access
lea eax, [ebp + 8]
push eax
call fcn.00406cf7
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 0x45844c
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x458453
call esi
cmp eax, 5
je 0x458456
xor edi, edi
inc edi
lea eax, [ebx - 0x10]
call fcn.00405cd2
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45846f
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4a9ed3
call fcn.004a8254
sub esp, 0x70
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov ebx, ecx
jne 0x45848f
xor eax, eax
jmp 0x4585d0
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 0x4be9a0
call fcn.00407037
add esp, 0xc
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.0040a8db
test eax, eax
jne 0x4585b4
push 0x40
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x7c], 0x44
call fcn.00478300
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 0x45855e
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 0x45855e
push ebx
push dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x45855b
mov dword [ebp - 0x24], 0x430
jmp 0x45855e
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 0x45858d
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], ebx
je 0x45859b
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x4585a6
push dword [ebp + 8]
call dword [ebp - 0x18]
cmp dword [ebp - 0x1c], ebx
je 0x4585b4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x14], 0
je 0x4585c3
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405cd2
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret