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

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

Function at 0x452c36
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4ab1e5
call fcn.004a9484
sub esp, 0x10
mov eax, dword [0x4dc148]
or dword [ebp - 0x18], 0xffffffff
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x4dc148
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.00450e0c
push edi
mov ebx, eax
call fcn.0047e049
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.00408cd5
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 0x452d04
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 0x452cf3
cmp dword [ebp + 8], ebx
jne 0x452cf3
mov dword [ebp - 0x14], 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x452d04
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00407f26
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 0x453249
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4ab832
call fcn.004a9484
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.00479200
add esp, 0xc
mov ecx, 0x4dc148
call fcn.004081e4
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 0x453315
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
cmp eax, ebx
je 0x45336f
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.004083bc
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov eax, esi
call fcn.00408995
mov dword [ebp - 4], edi
mov edi, 0x4bbf90
push edi
push eax
call fcn.00407a9e
test eax, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.00407f26
cmp byte [ebp - 0xd], bl
je 0x45330e
push edi
push esi
call fcn.00408830
push str.All_UsersApplication_Data_
jmp 0x453356
push eax
push esi
call fcn.004083bc
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov eax, esi
call fcn.00408995
mov edi, 0x4bbf90
push edi
push eax
mov dword [ebp - 4], 2
call fcn.00407a9e
test eax, eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
call fcn.00407f26
cmp byte [ebp - 0xd], bl
je 0x45335c
push edi
push esi
call fcn.00408830
push str.sysoptasst_askich_
push esi
call fcn.00408830
push dword [esi]
call fcn.0040874e
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 0x453711
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 0x4537ac
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 0x453753
cmp dword [ebp - 8], 2
jne 0x4537aa
push esi
mov esi, dword [ebp + 0xc]
call fcn.00408161
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00408062
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 0x4537a9
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 0x45379b
push eax
call fcn.00479b8e
pop ecx
mov edx, esi
call fcn.0040801e
mov dword [ebp - 0xc], 1
pop esi
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x4537b3
Capabilities:
Set registry value

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

Disassembly:
mov eax, 0x4ac20f
call fcn.004a9484
sub esp, 0xe0
mov eax, dword [0x4dc148]
push ebx
push esi
push edi
mov esi, 0x4dc148
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 [0x4dc148]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0xc6
lea eax, [ebp - 0xea]
push edi
mov byte [ebp - 4], 1
push eax
mov word [ebp - 0xec], di
call fcn.00479200
mov eax, dword [0x4dc148]
add esp, 0xc
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov eax, dword [0x4dc148]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.004087ee
pop ecx
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004074cd
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407f26
mov eax, edi
call fcn.0040750e
mov eax, edi
lea edi, [ebp - 0x20]
call fcn.004074cd
push str.ressrcchsuplive.svr
lea eax, [ebp - 0x18]
push eax
call fcn.00408830
push str.ressrcchs_asmain.ini
mov eax, edi
push eax
call fcn.00408830
push dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
push 0x64
lea eax, [ebp - 0xec]
push eax
mov esi, 0x4bbfbc
push esi
push str.Version
push str.Common
call ebx
test eax, eax
je 0x453ff6
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004083bc
lea eax, [ebp - 0x10]
call fcn.0040750e
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x1c]
push eax
push 2
pop edx
lea eax, [ebp - 0x10]
call fcn.00408917
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004074cd
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407f26
push esi
push 0x4bbfb8
mov eax, edi
push eax
call fcn.00451f0f
push esi
push 0x4c0a4c
mov eax, edi
push eax
call fcn.00451f0f
push dword [ebp - 0x20]
lea eax, [ebp - 0xec]
push 0x64
push eax
push esi
push 0x4c0870
push str.infos
call ebx
test eax, eax
je 0x453ff6
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004083bc
lea eax, [ebp - 0x1c]
push eax
push 6
pop ecx
lea eax, [ebp - 0x10]
call fcn.00408995
mov byte [ebp - 4], 6
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00408d5e
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407f26
push dword [ebp - 0x14]
call fcn.0047a3ad
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00407f26
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00407f26
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00407f26
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00407f26
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 0x454473
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push edi
push 0x2021f
push str.CLSID2E79D13E_7339_4661_92EA_93AD506EF2E2Implemented_Categories32C1137B_5DAB_4004_993F_46C7C3F7B560
push SysReAllocString
lea edi, [ebp - 4]
call fcn.0045472f
test eax, eax
je 0x4544ab
cmp dword [ebp - 4], 0
je 0x4544a7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x45451c
push dword [esi + 0xc]
lea eax, [ebp - 4]
push 0x4c099c
push eax
call fcn.004546f5
test eax, eax
jne 0x454498
push dword [esi + 0x10]
lea eax, [ebp - 4]
push 0x4c0aec
push eax
call fcn.004546f5
mov eax, dword [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x4c07a4
push dword [ebp - 4]
call edi
mov eax, dword [esi + 8]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.user_type
push dword [ebp - 4]
call edi
cmp dword [ebp - 4], 0
je 0x454519
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
leave
ret

Function at 0x4546d7
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 0x454773
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
test edi, edi
mov esi, eax
je 0x454921
test esi, esi
je 0x454921
push ebx
push ebp
mov dword [esi + 0xf0], 0xa
push 8
push dword [edi]
call fcn.0047e24f
push 8
push dword [edi]
mov dword [esp + 0x20], eax
mov ebp, 0xff00ff00
and dword [esp + 0x20], ebp
call fcn.0047e25d
mov ebx, 0xff00ff
and eax, ebx
or eax, dword [esp + 0x20]
push 8
mov dword [esi], eax
push dword [edi + 4]
call fcn.0047e24f
push 8
push dword [edi + 4]
mov dword [esp + 0x30], eax
and dword [esp + 0x30], ebp
call fcn.0047e25d
and eax, ebx
or eax, dword [esp + 0x30]
push 8
mov dword [esi + 4], eax
push dword [edi + 8]
call fcn.0047e24f
push 8
push dword [edi + 8]
mov dword [esp + 0x40], eax
and dword [esp + 0x40], ebp
call fcn.0047e25d
and eax, ebx
or eax, dword [esp + 0x40]
push 8
mov dword [esi + 8], eax
push dword [edi + 0xc]
call fcn.0047e24f
push 8
push dword [edi + 0xc]
mov dword [esp + 0x50], eax
and dword [esp + 0x50], ebp
call fcn.0047e25d
and eax, ebx
or eax, dword [esp + 0x50]
mov edi, 0xff
mov dword [esi + 0xc], eax
mov ecx, eax
shr eax, 0x10
and eax, edi
mov eax, dword [eax*4 + 0x4b7ec0]
xor eax, 0x1000000
and eax, 0xff000000
movzx edx, ch
mov edx, dword [edx*4 + 0x4b82c0]
and edx, 0xff0000
xor eax, edx
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx*4 + 0x4b7ac0]
xor eax, edx
mov edx, ecx
and edx, edi
mov edx, dword [edx*4 + 0x4b76c0]
mov ebp, 0xff00
and edx, ebp
xor eax, edx
xor eax, dword [esi]
lea ebx, [esi + 4]
mov edx, dword [ebx]
xor edx, eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
xor eax, edx
add esp, 0x40
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edx
xor eax, ecx
mov dword [esi + 0x1c], eax
mov eax, ebx
mov esi, 0x4b97c4
mov edx, dword [eax + 0x18]
add eax, 0x10
mov ebx, edx
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x4b82c0]
shr ebx, 0x10
and ebx, edi
mov ebx, dword [ebx*4 + 0x4b7ec0]
and ecx, 0xff0000
and ebx, 0xff000000
xor ecx, ebx
mov ebx, edx
and edx, edi
mov edx, dword [edx*4 + 0x4b76c0]
shr ebx, 0x18
movzx ebx, byte [ebx*4 + 0x4b7ac0]
xor ecx, ebx
and edx, ebp
xor ecx, edx
xor ecx, dword [eax - 4]
xor ecx, dword [esi]
add esi, 4
mov dword [eax + 0xc], ecx
mov edx, dword [eax]
xor edx, ecx
mov dword [eax + 0x10], edx
mov ecx, dword [eax + 4]
xor ecx, edx
mov dword [eax + 0x14], ecx
mov edx, dword [eax + 8]
xor edx, ecx
cmp esi, 0x4b97e8
mov dword [eax + 0x18], edx
jne 0x4548a9
pop ebp
xor eax, eax
pop ebx
jmp 0x454924
or eax, 0xffffffff
pop edi
pop esi
pop ecx
ret
Function at 0x455072
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 0x455094
xor eax, eax
inc eax
jmp 0x4550fe
cmp dword [edi], esi
je 0x45509d
xor ebx, ebx
inc ebx
jmp 0x4550e2
lea eax, [ebp - 8]
push eax
push 0x4c0b1c
push 1
push esi
push 0x4c0b0c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4550bc
push 2
jmp 0x4550e1
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 0x4550d1
push 3
jmp 0x4550e1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x4550e2
push 4
pop ebx
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x4550ef
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x4550fc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x45545b
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov eax, 0x4ad9b3
call fcn.004a9484
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.004081a1
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 0x4554b8
push 0xfffffffffffffffe
pop esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407f26
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.00479200
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 0x4554f3
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0xfffffffffffffffd
jmp 0x455499
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00451b50
mov byte [ebp - 4], 1
jmp 0x45550d
xor edi, edi
mov eax, dword [ebp - 0x284]
cmp eax, dword [ebp - 0x24]
je 0x455600
cmp eax, edi
je 0x455600
cmp eax, 4
je 0x455600
push eax
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ebx, eax
cmp ebx, edi
je 0x455600
mov eax, dword [0x4dc148]
mov ecx, 0x4dc148
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
call fcn.00455bc7
test eax, eax
push ebx
je 0x455582
lea eax, [ebp - 0x2c]
push eax
lea edi, [ebp - 0x5c]
call fcn.00451bba
lea edi, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.004074cd
mov eax, dword [ebp - 0x2c]
jmp 0x45559e
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00451c60
lea edi, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.004074cd
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00407f26
mov esi, dword [ebp + 8]
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x4555ed
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx - 0xc]
cmp ecx, eax
jl 0x4555ed
push eax
push esi
push edx
call fcn.0047dd95
add esp, 0xc
test eax, eax
jne 0x4555ed
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp eax, 1
je 0x4555e7
push dword [ebp - 0x284]
call fcn.00451ee1
cmp eax, 1
pop ecx
jne 0x4555ea
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.00407f26
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x20]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x45550b
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x45562c
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
lea esi, [ebp - 0x3c]
call fcn.0044d74a
lea esi, [ebp - 0x5c]
call fcn.00451a76
mov esi, dword [ebp - 0x14]
jmp 0x45549a
Function at 0x455a69
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4aac9e
call fcn.004a9484
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.00479200
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 [0x4dc148]
xor edi, edi
inc edi
add esp, 0xc
mov ecx, 0x4dc148
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 0x4c0c10
call fcn.00408cd5
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 0x455afe
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x28], ebx
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x455b11
push dword [ebp - 0x28]
call edi
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x24], ebx
je 0x455b1e
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], ebx
lea eax, [esi - 0x10]
call fcn.00407f26
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 0x455c13
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4cbb08
call fcn.004a94a4
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x455cbd
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 0x455cbd
cmp esi, 0x103
ja 0x455cbd
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.00475e32
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x455cb9
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.00479200
add esp, 0xc
push esi
push dword [ebp - 0x24]
push ebx
call edi
test eax, eax
je 0x455cb9
mov ecx, 0x103
cmp eax, ecx
ja 0x455cb9
push eax
push dword [ebp - 0x24]
push ecx
push dword [ebp + 8]
call fcn.0047e26b
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x455cb9
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x455ccc
push dword [ebp - 0x1c]
call fcn.004791f7
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004a94df
ret
Function at 0x455cd5
Capabilities:
Create directory
Delete directory

Disassembly:
mov eax, 0x4aa46e
call fcn.004a9484
push ebx
push esi
push edi
and dword [ebp - 4], 0
push str._access
lea eax, [ebp + 8]
push eax
call fcn.00408830
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 0x455d17
push ebx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x455d1e
call esi
cmp eax, 5
je 0x455d21
xor edi, edi
inc edi
lea eax, [ebx - 0x10]
call fcn.00407f26
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x455d3a
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4aac8c
call fcn.004a9484
sub esp, 0x70
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov ebx, ecx
jne 0x455d5a
xor eax, eax
jmp 0x455e9b
mov eax, dword [0x4dc148]
mov ecx, 0x4dc148
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 0x4c0c10
call fcn.00408cd5
add esp, 0xc
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.0040be24
test eax, eax
jne 0x455e7f
push 0x40
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x7c], 0x44
call fcn.00479200
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 0x455e29
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 0x455e29
push ebx
push dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x455e26
mov dword [ebp - 0x24], 0x430
jmp 0x455e29
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 0x455e58
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x30], ebx
je 0x455e66
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x455e71
push dword [ebp + 8]
call dword [ebp - 0x18]
cmp dword [ebp - 0x1c], ebx
je 0x455e7f
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp dword [ebp - 0x14], 0
je 0x455e8e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00407f26
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret