joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cb4
Capabilities:
Switch active desktop

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x104
mov eax, dword [0x41c380]
push ebx
push edi
push 0xd9
mov dword [ebp + 0x70], eax
xor ebx, ebx
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.0040c970
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov dword [0x428e9c], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 7
xor eax, eax
pop ecx
mov byte [ebp + 0x50], bl
lea edi, [ebp + 0x51]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp + 0x50]
push eax
push ebx
mov dword [ebp - 0x90], 0x20
call fcn.00404604
add esp, 0xc
test eax, eax
jl 0x402e19
push esi
push dword [ebp - 0x90]
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040ca30
mov al, byte [ebp - 0x90]
mov esi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
add esp, 0xc
push 0x11
mov byte [ebp - 0x4c], al
lea eax, [ebp - 0x4b]
push eax
push 0x460
push dword [ebp + 0x7c]
call esi
mov edi, dword [ebp + 0x7c]
push 0x11
lea eax, [ebp - 0x3a]
push eax
push 0x462
push edi
call esi
push 0x11
lea eax, [ebp - 0x29]
push eax
push 0x464
push edi
call esi
mov eax, dword [0x428ea4]
cmp eax, ebx
mov dword [ebp - 0x18], eax
pop esi
jle 0x402db9
push ebx
push ebx
push 0xb0
push eax
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
movzx ecx, ax
shr eax, 0x10
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0xc]
push 0x42a5fc
push eax
call fcn.0040c7a0
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 8], ebx
call fcn.004093bc
add esp, 0xc
push 0x402b57
push 0x64
push 1
push edi
call dword [sym.imp.USER32.dll_SetTimer]
push ebx
push 0x10000000
push ebx
push ebx
push ebx
push str.comydesk20
call dword [sym.imp.USER32.dll_CreateDesktopA]
push str.__cp
mov dword [0x428edc], eax
call fcn.004094bf
pop ecx
push dword [0x428edc]
call dword [sym.imp.USER32.dll_SwitchDesktop]
mov ecx, dword [ebp + 0x70]
pop edi
pop ebx
call fcn.0040c95c
add ebp, 0x74
leave
ret
Function at 0x4043de
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0x429f5c
push 0x3ef
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
push eax
call edi
push 0x429f9c
push 0x3ed
push ebx
call esi
push eax
call edi
push 0x42a09c
push 0x474
push ebx
call esi
push eax
call edi
push 0x42a11c
push 0x475
push ebx
call esi
push eax
call edi
push 0x42a0dc
push 0x476
push ebx
call esi
push eax
call edi
push 0x42a15c
push 0x477
push ebx
call esi
push eax
call edi
push 0x42aa3c
push 0x3e8
push ebx
call esi
push eax
call edi
push 0x42a9bc
push 0x3eb
push ebx
call esi
push eax
call edi
push 0x42a67c
push 0x3ee
push ebx
call esi
push eax
call edi
push 0x42a5fc
push 0x3ec
push ebx
call esi
push eax
call edi
push 0x42b01c
push 0x3ea
push ebx
call esi
push eax
call edi
push 0x42a05c
push 0x467
push ebx
call esi
push eax
call edi
push 0x42ab7c
push 0x3fb
push ebx
call esi
push eax
call edi
push 0x42acfc
mov ebp, 0x429
push ebp
push ebx
call esi
push eax
call edi
push 0x42b2dc
push 0x3fa
push ebx
call esi
push eax
call edi
push 0x42ae3c
push 0x3f8
push ebx
call esi
push eax
call edi
push 0x42b2fc
push 0x440
push ebx
call esi
push eax
call edi
mov ecx, 0x42b6a8
call fcn.0040366c
push eax
push 0x472
push ebx
call esi
push eax
call edi
push 0x42adfc
push 0x441
push ebx
call esi
push eax
call edi
push 0x42aebc
push ebx
call edi
push 0
push 0x3fb
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 0
push ebp
push ebx
call esi
push eax
call edi
push 0
push ebp
push ebx
call esi
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x404c69
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
je 0x404c76
mov dword [0x429b64], eax
cmp dword [0x429b18], 0
mov eax, dword [esp + 0xc]
mov dword [0x429b68], eax
jne 0x404cb2
push 0
push 0x404b1a
push dword [esp + 0xc]
push 0x81
push dword [0x429e4c]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x429b18], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x429b18]
ret
Function at 0x40504d
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
xor esi, esi
cmp dword [0x429b74], esi
je 0x4050c3
push str.GetProcessId
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x40509d
push dword [0x429b74]
call eax
push eax
push 0x404f2d
mov dword [0x429b78], esi
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x429b78], esi
jne 0x4050c3
jmp 0x4050bd
lea eax, [ebp - 4]
push eax
push dword [0x429b74]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4050c3
cmp dword [ebp - 4], 0x103
je 0x4050c3
mov dword [0x429b74], esi
call fcn.00404d66
test eax, eax
je 0x405152
cmp dword [0x429b74], esi
jne 0x405128
push 0x3c
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0040c970
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x440
mov dword [ebp - 0x30], str.IEXPLORE.EXE
mov dword [ebp - 0x2c], str.http:__www.abchina.com
mov dword [ebp - 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [ebp - 8]
mov dword [0x429b74], eax
mov dword [0x429b84], 1
jmp 0x40512e
mov dword [0x429b84], esi
push 0x404fcc
push 0x1f4
push 7
push dword [0x429b90]
mov dword [0x429b80], esi
mov dword [0x429b78], esi
call dword [sym.imp.USER32.dll_SetTimer]
pop esi
leave
ret
Function at 0x4056d9
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x41c380]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov ebx, 0x42b6a8
push edi
mov ecx, ebx
mov dword [0x429e4c], eax
call fcn.00403673
mov esi, str.Mgr_
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x48], eax
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x3f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, ebx
stosb byte es:[edi], al
call fcn.00403668
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040c7a0
pop ecx
pop ecx
lea eax, [ebp - 0x44]
push eax
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
cmp edi, esi
je 0x40576b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40576b
cmp dword [0x429b8c], esi
jne 0x405762
mov ecx, ebx
call fcn.00403673
push eax
call fcn.00405230
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405794
push esi
push dword [ebp + 8]
mov eax, 0x80000000
push esi
push esi
push esi
push eax
push esi
push eax
push 0xcf0000
push dword [ebp - 0x48]
push 0x429d80
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
cmp edi, esi
jne 0x405798
xor eax, eax
jmp 0x4057f8
push esi
push edi
mov dword [0x429b90], edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
inc ebx
mov ecx, 0x42cb14
mov dword [0x429e50], ebx
call fcn.004095ab
test eax, eax
je 0x4057cc
push esi
push edi
call dword [0x42cb14]
push dword [0x429b8c]
push edi
call fcn.004055c0
pop ecx
pop ecx
call fcn.00408529
cmp eax, 6
jne 0x4057f6
push 0x40541e
push 0x258
push eax
push edi
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040c95c
leave
ret

Function at 0x4063be
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x41c380]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
mov dword [esp + 0x24], eax
push edi
lea eax, [esp + 0x10]
push eax
call esi
mov ebx, dword [esp + 0x30]
push ebx
call fcn.004062ac
pop ecx
lea eax, [esp + 0x10]
push eax
call esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [sym.imp.USER32.dll_SetFocus]
mov edi, 0x3fc
lea eax, [esp + 0x18]
push eax
push edi
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40645d
lea eax, [edi - 0x3fc]
cmp eax, 0x24
jge 0x40643d
push 0x417688
push edi
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push edi
push ebx
call esi
cmp dword [0x42cd18], eax
je 0x40645d
push edi
push ebx
call esi
push eax
mov dword [0x42cd18], eax
call ebp
push dword [0x42cce0]
call ebp
inc edi
lea eax, [edi - 0x3fc]
cmp eax, 0x28
jl 0x4063fe
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0040c95c
add esp, 0x1c
ret
Function at 0x4066ce
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x41c380]
push edi
mov dword [ebp - 4], eax
xor eax, eax
push 0x3f
pop ecx
mov byte [ebp - 0x104], 0
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
mov byte [ebp - 0x204], 0
pop ecx
lea edi, [ebp - 0x203]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
cmp dword [0x42cd1c], edi
je 0x40671f
xor eax, eax
jmp 0x406880
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
push dword [ebp + 8]
mov dword [0x42cd1c], 1
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
push edi
push 0xb0
push ebx
push dword [ebp + 8]
call esi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call edi
movzx eax, ax
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.0040ca30
lea eax, [ebp - 0x204]
push eax
call fcn.0040657e
lea eax, [ebp - 0x204]
push eax
call fcn.0040c8a0
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040657e
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.0040c7a0
lea eax, [ebp - 0x204]
push eax
call fcn.00406631
lea eax, [ebp - 0x104]
push eax
call fcn.0040c8a0
add esp, 0x28
cmp eax, 0xff
ja 0x40682c
lea eax, [ebp - 0x204]
push eax
call fcn.0040c8a0
cmp eax, dword [ebp + 0x10]
pop ecx
ja 0x40682c
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x18]
call fcn.0040c7a0
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push dword [ebp - 0x208]
push dword [ebp - 0x208]
push 0xb1
push ebx
push dword [ebp + 8]
call esi
push eax
call edi
xor eax, eax
inc eax
jmp 0x406877
push dword [ebp + 0x18]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push dword [ebp + 0x18]
call fcn.0040c8a0
mov ebx, eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040c8a0
pop ecx
pop ecx
sub ebx, eax
add dword [ebp - 0x208], ebx
push dword [ebp - 0x208]
push dword [ebp - 0x208]
push 0xb1
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
push eax
call edi
xor eax, eax
and dword [0x42cd1c], 0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.0040c95c
leave
ret
Function at 0x4068c5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41c380]
push ebx
mov dword [ebp - 4], eax
push edi
xor ebx, ebx
xor eax, eax
mov byte [ebp - 0xc], bl
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosb byte es:[edi], al
movzx eax, word [ebp + 0xc]
cmp eax, ebx
jle 0x406a49
cmp eax, 2
jle 0x406a44
cmp eax, 0x3fb
jle 0x406a49
cmp eax, 0x41f
jle 0x406a1c
cmp eax, 0x420
je 0x4069dc
cmp eax, 0x421
je 0x406937
cmp eax, 0x422
jne 0x406a49
push dword [ebp + 8]
call fcn.00405e13
pop ecx
jmp 0x406a4b
cmp dword [0x41c060], ebx
push esi
push 0x1a
mov esi, 0x406
pop edi
jne 0x40698c
push 6
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040c970
add esp, 0xc
push 2
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
lea eax, [ebp - 0xc]
push eax
call fcn.0040e5e5
pop ecx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
inc esi
dec edi
jne 0x406948
mov dword [0x41c060], 1
jmp 0x4069ca
push 6
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040c970
add esp, 0xc
push 2
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
lea eax, [ebp - 0xc]
push eax
call fcn.0040e4d1
pop ecx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
inc esi
dec edi
jne 0x40698c
mov dword [0x41c060], ebx
push dword [0x42cce0]
call dword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
inc eax
pop esi
jmp 0x406a4b
push ebx
push 8
push 0x102
push dword [0x42cce0]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xc8
push 0x42cb30
push dword [0x42cce0]
call dword [sym.imp.USER32.dll_GetWindowTextA]
call fcn.004064bc
push dword [0x42cce0]
call dword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
inc eax
jmp 0x406a4b
add eax, 0xfffffc04
cmp word [ebp + 0xc], 0x406
jb 0x406a34
cmp dword [0x41c060], ebx
je 0x406a34
add eax, 0x1a
mov al, byte [eax + str.1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM]
mov byte [ebp - 0xc], al
movsx eax, al
push ebx
push eax
jmp 0x4069df
call fcn.0040688b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0040c95c
leave
ret
Function at 0x406a57
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x41c380]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [0x42ccd8]
mov dword [0x42cce8], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x406a9a
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
call fcn.00405e35
add esp, 0x14
mov byte [ebp - 0xc], 0
xor eax, eax
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
mov esi, 0x406
stosb byte es:[edi], al
mov edi, esi
mov dword [ebp + 8], 0x1a
push 6
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.0040c970
add esp, 0xc
push 2
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
lea eax, [ebp - 0xc]
push eax
call fcn.0040e4d1
pop ecx
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
inc edi
dec dword [ebp + 8]
jne 0x406ab3
and dword [0x41c060], 0
push ebx
call fcn.0040647a
push 0xa
push 0x3fc
push ebx
call fcn.00405ffd
push 0x1a
push esi
push ebx
call fcn.00405ffd
add esp, 0x1c
call fcn.004064bc
push 0x4068b8
push 0x32
push 1
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.00405dd3
mov edi, 0xc8
push edi
push 0
mov esi, 0x42cb30
push esi
call fcn.0040c970
add esp, 0xc
push edi
push esi
push dword [0x42cce0]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
call fcn.0040c95c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406bae
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x41c380]
and dword [ebp - 0x48], 0
push esi
push edi
mov dword [ebp - 4], eax
mov byte [ebp - 0x44], 0
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x43]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040652b
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
call esi
push dword [ebp + 0x10]
mov dword [0x42cce0], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [0x42cb28], eax
mov dword [0x42cce4], edi
call esi
push dword [ebp + 0x14]
mov dword [0x42cce0], eax
push edi
call esi
push 0x40
mov dword [0x42ccdc], eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x10]
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x44]
push eax
push 0x42cb30
call fcn.0040c7a0
cmp dword [0x42cce8], 0
pop ecx
pop ecx
jne 0x406c72
call fcn.004061c3
push 0
push 0x406b5e
push edi
push 0x87
push dword [ebp + 8]
mov dword [0x42ccd8], edi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x42cce8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp - 0x48], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
pop edi
pop esi
call fcn.0040c95c
leave
ret
Function at 0x408529
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41c380]
mov dword [ebp + 0x74], eax
push esi
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x1c]
cmp eax, 6
jbe 0x40855c
push 7
jmp 0x408593
jne 0x408573
cmp dword [ebp - 0x18], 1
jbe 0x408568
push 7
jmp 0x408589
je 0x408564
cmp dword [ebp - 0x18], esi
jne 0x40859c
push 6
jmp 0x408589
cmp eax, 5
jne 0x408594
cmp dword [ebp - 0x18], 2
jne 0x408581
push eax
jmp 0x408589
cmp dword [ebp - 0x18], 1
jne 0x40858c
push 4
pop esi
jmp 0x40859c
cmp dword [ebp - 0x18], esi
jne 0x40859c
push 3
pop esi
cmp eax, 4
ja 0x40859c
xor esi, esi
inc esi
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.0040c95c
add ebp, 0x78
leave
ret

Function at 0x408660
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40867e
xor eax, eax
leave
ret
push esi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret

Function at 0x4086aa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 4
pop esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4086d1
xor eax, eax
jmp 0x4086ff
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret
Function at 0x408f38
Capabilities:
Switch active desktop

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x104
mov eax, dword [0x41c380]
push ebx
push esi
push edi
push 0xd9
mov dword [ebp + 0x70], eax
xor ebx, ebx
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.0040c970
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov esi, dword [ebp + 0x7c]
mov dword [0x42cf24], eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 7
xor eax, eax
pop ecx
mov byte [ebp + 0x50], bl
lea edi, [ebp + 0x51]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp + 0x50]
push eax
push ebx
mov dword [ebp - 0x90], 0x20
call fcn.00404604
add esp, 0xc
test eax, eax
jl 0x40906f
push dword [ebp - 0x90]
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040ca30
mov al, byte [ebp - 0x90]
add esp, 0xc
push 0x11
mov byte [ebp - 0x4c], al
lea eax, [ebp - 0x4b]
push eax
mov edi, 0x430
push edi
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
push ebx
push ebx
push 0xb0
push edi
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
movzx ecx, ax
shr eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0xc]
push 0x42b01c
push eax
mov dword [ebp - 0x14], ecx
call fcn.0040c7a0
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 8], ebx
call fcn.004093bc
add esp, 0xc
push 0x408e13
push 0x64
push 1
push esi
call dword [sym.imp.USER32.dll_SetTimer]
push ebx
push 0x10000000
push ebx
push ebx
push ebx
push str.comydesk20
call dword [sym.imp.USER32.dll_CreateDesktopA]
push str.__vp
mov dword [0x42cf54], eax
call fcn.004094bf
pop ecx
push dword [0x42cf54]
call dword [sym.imp.USER32.dll_SwitchDesktop]
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
pop ebx
call fcn.0040c95c
add ebp, 0x74
leave
ret

Function at 0x4092f3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 1]
push 1
push eax
mov byte [ebp - 1], 0
call fcn.004084ea
mov al, byte [ebp - 1]
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push 0x36
lea esi, [ecx + 1]
pop edi
mov byte [ecx], al
mov byte [ecx + 0xd9], al
mov edx, esi
push ebx
mov ecx, dword [edx]
mov ebx, ecx
shr ebx, 0x15
shl ecx, 0xb
or ebx, ecx
mov dword [edx], ebx
add edx, 4
dec edi
jne 0x409321
mov ecx, esi
mov esi, 0xd9
pop ebx
xor al, byte [ecx]
mov dl, al
shr dl, 5
shl al, 3
or dl, al
add dl, 5
mov al, dl
mov byte [ecx], al
inc ecx
dec esi
jne 0x40933d
pop edi
pop esi
leave
ret
Function at 0x409358
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi]
push edi
lea edi, [esi + 1]
mov byte [ebp + 0xb], al
mov ecx, edi
mov dword [ebp - 4], 0xd9
push ebx
mov dl, byte [ecx]
mov al, dl
sub al, 5
mov bl, al
shr bl, 3
shl al, 5
or bl, al
xor bl, byte [ebp + 0xb]
mov byte [ebp + 0xb], dl
mov byte [ecx], bl
inc ecx
dec dword [ebp - 4]
jne 0x409373
push 0x36
pop edx
mov ecx, edi
pop ebx
mov eax, dword [ecx]
mov edi, eax
shl edi, 0x15
shr eax, 0xb
or edi, eax
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x409397
mov al, byte [esi]
sub al, byte [esi + 0xd9]
pop edi
neg al
pop esi
sbb eax, eax
inc eax
leave
ret

Function at 0x4094bf
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0x148
mov eax, dword [0x41c380]
push ebx
push esi
push edi
push 0x44
pop esi
push esi
mov dword [ebp + 0xc4], eax
xor ebx, ebx
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0040c970
push 0x10
mov dword [ebp - 0x80], esi
push ebx
mov esi, 0x42cf60
push esi
mov dword [ebp - 0x78], str.comydesk20
mov word [ebp - 0x50], 5
mov dword [ebp - 0x54], 1
call fcn.0040c970
mov byte [ebp - 0x3c], bl
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x3b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00409483
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040c7a0
push dword [ebp + 0xd0]
lea eax, [ebp - 0x3c]
push eax
call fcn.0040c7b0
add esp, 0x28
push esi
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x90
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x409579
push ebx
push str.Error
push 0x4180c0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp + 0xc4]
pop edi
pop esi
pop ebx
call fcn.0040c95c
add ebp, 0xc8
leave
ret