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

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, eax
xor edx, edx
mov eax, 0x3e8
div dword [esi + 0x800]
mov edx, ecx
sub edx, dword [0x4ab5e8]
cmp edx, eax
jae 0x40176a
xor eax, eax
pop esi
ret 4
movzx eax, word [esi + 0x812]
imul eax, dword [esi + 0x808]
cdq
push ebx
mov ebx, dword [esi + 0xc2c]
and edx, 7
add eax, edx
push ebp
push edi
mov edi, eax
mov eax, dword [esi + 0x80c]
cdq
xor eax, edx
sub eax, edx
sar edi, 3
xor ebp, ebp
test eax, eax
mov dword [0x4ab5e8], ecx
jle 0x4017ca
mov eax, dword [esp + 0x14]
push edi
push eax
push ebx
call fcn.0045d280
mov eax, dword [esi + 0x80c]
add dword [esp + 0x20], edi
cdq
xor eax, edx
add ebp, 1
sub eax, edx
add esp, 0xc
add ebx, edi
cmp ebp, eax
jl 0x4017a3
mov ecx, dword [esi + 0x818]
mov edx, dword [esi + 0xc2c]
mov eax, dword [esi + 0xc30]
push 0
push 0
push 0x10
push ecx
mov ecx, dword [esi + 0xc3c]
push edx
push 1
push eax
push ecx
call sub.AVIFIL32.dll_AVIStreamWrite
add dword [esi + 0xc30], 1
pop edi
pop ebp
pop ebx
pop esi
ret 4
Function at 0x401ff0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, eax
shr ecx, 4
xor ecx, esi
and ecx, 0xf0f0f0f
xor esi, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, esi
and ecx, 0xffff
xor esi, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, esi
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
add ecx, ecx
add ecx, ecx
xor esi, ecx
mov ecx, esi
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor ecx, esi
rol ecx, 1
mov esi, ecx
xor ecx, eax
and ecx, 0xaaaaaaaa
xor esi, ecx
xor ecx, eax
rol ecx, 1
push edi
mov edi, ecx
mov dword [esp + 0x10], 8
jmp 0x402070
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x48d100]
or ecx, dword [ebx*4 + 0x48d300]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x48d500]
and eax, 0x3f
or ecx, dword [eax*4 + 0x48d700]
mov eax, dword [edx]
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x48d200]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x48d400]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x48d600]
and eax, 0x3f
or ebx, dword [eax*4 + 0x48d800]
add edx, 4
or ebx, ecx
xor edi, ebx
mov eax, edi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x48d100]
or ecx, dword [ebx*4 + 0x48d300]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x48d500]
and eax, 0x3f
or ecx, dword [eax*4 + 0x48d700]
mov eax, dword [edx]
xor eax, edi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x48d200]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x48d400]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x48d600]
and eax, 0x3f
or ebx, dword [eax*4 + 0x48d800]
add edx, 4
or ebx, ecx
xor esi, ebx
sub dword [esp + 0x10], 1
jne 0x402070
ror esi, 1
mov eax, esi
xor eax, edi
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, edi
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
lea edx, [ecx*4]
mov ecx, esi
shr ecx, 0x10
xor eax, edx
mov edx, dword [esp + 0x18]
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
pop esi
xor ecx, eax
pop ebp
mov dword [edx + 4], ecx
pop ebx
pop ecx
ret
Function at 0x403050
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x24c
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x248], eax
mov eax, dword [esp + 0x250]
push ebp
push 0x104
lea ecx, [esp + 0x14c]
push ecx
xor ebp, ebp
push ebp
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4030a0
lea edx, [esp + 0x148]
push 0x5c
push edx
call fcn.0045c1e0
add esp, 8
test eax, eax
jne 0x4030ba
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0045c20d
add esp, 0x24c
ret 4
mov byte [eax], 0
lea eax, [esp + 0x148]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4030c7
sub eax, edx
cmp byte [esp + eax + 0x147], 0x5c
push edi
je 0x4030fa
lea edi, [esp + 0x14c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4030e7
mov ax, word [0x485b00]
mov word [edi], ax
lea eax, [esp + 0x14c]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x403104
mov ecx, dword [str..dsm]
mov dx, word [0x47591c]
mov dword [eax], ecx
push esi
mov word [eax + 4], dx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403140
xor eax, eax
jmp 0x40317c
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x40]
push edx
push 0
push 0x143
push eax
call edi
lea ecx, [esp + 0x14]
push ecx
push esi
add ebp, 1
call ebx
test eax, eax
jne 0x403150
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
pop ebx
mov ecx, dword [esp + 0x254]
pop esi
pop edi
pop ebp
xor ecx, esp
call fcn.0045c20d
add esp, 0x24c
ret 4
Function at 0x403620
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2f0]
test eax, eax
je 0x403639
push eax
mov eax, dword [esi + 0x2e8]
call eax
add esp, 4
mov eax, dword [esi + 0x2f4]
test eax, eax
je 0x40364f
mov ecx, dword [esi + 0x2e8]
push eax
call ecx
add esp, 4
push 0
mov ecx, esi
mov dword [esi + 0x2f0], 0
mov dword [esi + 0x2f4], 0
call fcn.00402f70
mov edx, dword [esi + 0x2d0]
call edx
test eax, eax
je 0x4036a2
mov eax, dword [esi + 0x1c4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
lea eax, [esi + 0x1c8]
setne bl
cmp byte [eax], 0
je 0x40369d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, bl
pop ebx
pop esi
ret
xor al, al
pop esi
ret

Function at 0x403900
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [esp + 0x250]
push edi
push 0x104
lea eax, [esp + 0x14c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
jmp 0x403940
mov cl, byte [eax + 0x4759a8]
mov byte [esp + eax + 0x44], cl
add eax, 1
test cl, cl
jne 0x403940
lea edi, [esp + 0x44]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x403958
mov cx, word [0x475a10]
mov eax, esi
mov word [edi], cx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403970
lea edi, [esp + 0x44]
sub eax, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x403982
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x10], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x148]
lea eax, [esp + 0x44]
push ecx
mov dword [esp + 0x18], str.runas
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
xor ecx, esp
call fcn.0045c20d
add esp, 0x248
ret
Function at 0x404670
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0x4759b4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045c20d
add esp, 0x144
ret

Function at 0x404700
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x128
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x124], eax
push str.RealSvc
push str.net_stop___s_
lea eax, [esp + 8]
push 0x124
push eax
call fcn.0045cd9d
add esp, 0x10
push 0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0045c20d
add esp, 0x128
ret

Function at 0x404760
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0x4759c4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045c20d
add esp, 0x144
ret

Function at 0x4047f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x128
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x124], eax
push str.RealSvc
push str.net_start___s_
lea eax, [esp + 8]
push 0x124
push eax
call fcn.0045cd9d
add esp, 0x10
push 0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0045c20d
add esp, 0x128
ret

Function at 0x404850
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0x4759d4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045c20d
add esp, 0x144
ret
Function at 0x4048e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0x4759e0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045c20d
add esp, 0x144
ret

Function at 0x404970
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0x4759ec
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045c20d
add esp, 0x144
ret
Function at 0x405500
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push str.Control_PanelDesktop
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40554f
mov edx, dword [esp]
lea ecx, [esp + 4]
push ecx
push 0x4902e8
push eax
push eax
push str.WallpaperStyle
push edx
mov dword [esp + 0x1c], 0xa
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret

Function at 0x405560
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push str.Control_PanelDesktop
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4055b6
mov eax, 0x4902e8
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405588
mov ecx, dword [esp]
sub eax, edx
push eax
push 0x4902e8
push 1
push 0
push str.WallpaperStyle
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x405990
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0x104
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x405a8a
push 0x104
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4059f0
lea edx, [esp + 0xc]
push 0x5c
push edx
call fcn.0045c1e0
add esp, 8
test eax, eax
je 0x405aec
mov byte [eax], 0
lea eax, [esp + 0xc]
mov byte [ebx], 0
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405a00
mov edi, ebx
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x405a10
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x405a30
mov ax, word [0x485b00]
mov word [edi], ax
add ebx, 0xffffffff
mov al, byte [ebx + 1]
add ebx, 1
test al, al
jne 0x405a46
mov ecx, dword [str.ultravnc.ini]
mov dword [ebx], ecx
mov edx, dword [0x475e6c]
mov dword [ebx + 4], edx
mov eax, dword [0x475e70]
mov dword [ebx + 8], eax
mov cl, byte [0x475e74]
pop edi
pop esi
mov byte [ebx + 0xc], cl
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0045c20d
add esp, 0x108
ret
lea eax, [esp + 0xc]
mov byte [ebx], 0
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405a93
mov edi, ebx
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x405aa3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add ebx, 0xffffffff
mov edi, edi
mov al, byte [ebx + 1]
add ebx, 1
test al, al
jne 0x405ac0
mov edx, dword [str.ultravnc.ini]
mov dword [ebx], edx
mov eax, dword [0x475e6c]
mov dword [ebx + 4], eax
mov ecx, dword [0x475e70]
mov dword [ebx + 8], ecx
mov dl, byte [0x475e74]
mov byte [ebx + 0xc], dl
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045c20d
add esp, 0x108
ret
Function at 0x405b10
Capabilities:
Create process on windows
Find taskbar

Disassembly:
sub esp, 0x268
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x264], eax
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x170]
push eax
push 0
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov cl, byte [esp + eax + 0x16c]
mov byte [esp + eax + 0x68], cl
add eax, 1
test cl, cl
jne 0x405b40
lea eax, [esp + 0x68]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405b60
mov ecx, dword [str.__settingshelper]
mov edx, dword [0x475e9c]
mov dword [eax], ecx
mov ecx, dword [0x475ea0]
mov dword [eax + 4], edx
mov edx, dword [0x475ea4]
mov dword [eax + 8], ecx
mov cl, byte [0x475ea8]
lea edi, [esp + 0x68]
mov dword [eax + 0xc], edx
mov byte [eax + 0x10], cl
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x405ba0
mov dx, word [0x475a10]
mov eax, ebp
mov word [edi], dx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x405bb8
lea edi, [esp + 0x68]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x405bd0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x44
lea eax, [esp + 0x28]
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], 0
call fcn.0045c220
xor eax, eax
add esp, 0xc
push eax
push str.Shell_TrayWnd
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x5c], 5
mov dword [esp + 0x34], str.Winsta0Default
mov dword [esp + 0x2c], 0x44
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x405cd7
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405cd7
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x405cd7
lea edx, [esp + 0xc]
push edx
push 0x2000000
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 8
push 0
push 0
push 0
lea edx, [esp + 0x88]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405cc6
push eax
call esi
cmp edi, 0x522
jne 0x405cd7
push ebp
call fcn.00403900
add esp, 4
mov ecx, dword [esp + 0x270]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0045c20d
add esp, 0x268
ret

Function at 0x405d70
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 0xc
Function at 0x405d90
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0x475e64
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret 0x10

Function at 0x405e90
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
cmp dword [esi + 4], 0
jne 0x405eae
push str.34F673E0_878F_11D5_B98A_00B0D07B8C7C
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x405ed5
push 0
push 0
push 0
push 6
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x405ecf
xor bl, bl
mov dword [esi + 0x109b4], eax
pop esi
mov al, bl
pop ebx
ret
Function at 0x408900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x470d58
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48ea40]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x30]
mov ebx, dword [esi + 0x18]
cmp dword [esi + 0x14], ebx
lea ebp, [esi + 0x10]
jbe 0x40893d
call fcn.0045cf74
mov eax, dword [ebp + 4]
cmp eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
jbe 0x408952
call fcn.0045cf74
mov eax, dword [esp + 0x14]
push ebx
push ebp
push eax
push ebp
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.00408630
mov eax, dword [esi + 0x30]
cmp dword [esi + 0x2c], eax
lea ebx, [esi + 0x28]
mov dword [esp + 0x18], eax
jbe 0x408976
call fcn.0045cf74
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
mov dword [esp + 0x14], eax
jbe 0x40898b
call fcn.0045cf74
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push ebx
push eax
push ebx
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
call fcn.00408630
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
mov dword [esp + 0x14], eax
jbe 0x4089b0
call fcn.0045cf74
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
mov dword [esp + 0x18], eax
jbe 0x4089c5
call fcn.0045cf74
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ecx
push esi
push eax
push esi
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.00408630
mov eax, dword [edi + 0x10]
mov dword [esi + 0x20], eax
mov ecx, dword [edi + 0x14]
lea eax, [edi + 4]
push eax
lea edx, [esp + 0x34]
mov dword [esi + 0x24], ecx
push edx
lea ecx, [edi + 0xc]
call fcn.00407230
cmp dword [edi + 0x14], 0
mov dword [esp + 0x28], 0
setle al
cmp dword [edi + 0x10], 0
setle cl
push eax
push ecx
push ebp
lea ecx, [esp + 0x3c]
call fcn.00407ad0
push 1
push 1
push ebx
lea ecx, [edi + 4]
call fcn.00407ad0
push 1
push 1
push esi
lea ecx, [edi + 8]
call fcn.00407ad0
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.004070e0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4

Function at 0x408a60
Capabilities:
Find taskbar

Disassembly:
push ecx
call fcn.0043c700
cmp eax, 4
je 0x408b04
call fcn.0043c700
cmp eax, 5
je 0x408b04
call fcn.00448170
test eax, eax
jne 0x408aa6
push 0x4902fc
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
neg eax
sbb eax, eax
and eax, 2
pop ecx
ret
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x408abb
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push ecx
push eax
mov dword [esp + 8], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp]
test eax, eax
je 0x408ab7
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [0x490300], eax
je 0x408ab7
push 0x4902fc
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, 2
pop ecx
ret
mov eax, 1
pop ecx
ret