joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052c7
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 0xc]
lea esi, [esi*4 + 0x439978]
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
mov dword [0x439974], eax
je 0x40534b
push str.GetProcessId
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x405325
push dword [0x439974]
call eax
push eax
push 0x405192
mov dword [0x439980], edi
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x439980], edi
jne 0x40534b
jmp 0x405345
lea eax, [ebp + 0xc]
push eax
push dword [0x439974]
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40534b
cmp dword [ebp + 0xc], 0x103
je 0x40534b
mov dword [0x439974], edi
call fcn.00404fcb
test eax, eax
je 0x4053db
cmp dword [0x439974], edi
jne 0x4053b1
push 0x3c
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.0040de10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x2c], str.IEXPLORE.EXE
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [ebp - 4]
mov dword [0x439974], eax
mov dword [esi], eax
mov dword [0x43998c], 1
jmp 0x4053b7
mov dword [0x43998c], edi
push 0x405231
push 0x1f4
push 7
push dword [0x4399e8]
mov dword [0x439988], edi
mov dword [0x439980], edi
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
leave
ret
Function at 0x405813
Capabilities:
Switch active desktop

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x124
mov eax, dword [0x4203a0]
push ebx
push edi
xor ebx, ebx
push 0xda
mov dword [ebp + 0x6c], eax
lea eax, [ebp - 0x90]
push ebx
push eax
mov dword [ebp - 0x94], ebx
call fcn.0040de10
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov dword [0x4399c0], eax
push 7
xor eax, eax
pop ecx
mov byte [ebp + 0x4c], bl
lea edi, [ebp + 0x4d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp + 0x4c]
push eax
push ebx
mov dword [ebp - 0x98], 0x20
call fcn.00404708
add esp, 0xc
test eax, eax
jl 0x4059cd
push esi
push dword [ebp - 0x98]
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040ded0
mov al, byte [ebp - 0x98]
mov byte [ebp - 0x50], al
xor eax, eax
inc eax
mov dword [ebp - 3], eax
mov dword [ebp + 1], eax
mov eax, dword [ebp + 0x7c]
mov dword [ebp - 7], eax
lea eax, [ebp + 9]
push 0x43b3f4
push eax
call fcn.0040dc40
lea eax, [ebp - 0x90]
push eax
mov dword [ebp + 5], ebx
call fcn.0040a1d7
add esp, 0x18
mov edi, 0x10000000
push edi
push ebx
push ebx
mov esi, str.comydesk20
push esi
call dword [sym.imp.USER32.dll_OpenDesktopA]
cmp eax, ebx
mov dword [0x4399c4], eax
jne 0x40590f
push ebx
push edi
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDesktopA]
cmp eax, ebx
mov dword [0x4399c4], eax
je 0x4059cc
push str.__vp
call fcn.0040a32c
mov edi, dword [sym.imp.USER32.dll_SwitchDesktop]
pop ecx
push dword [0x4399c4]
call edi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [ebp - 0x94], ebx
jmp 0x405960
push ebx
push ebx
push ebx
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0xb4]
push ebx
push eax
call esi
test eax, eax
jne 0x405936
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x90]
push eax
call fcn.0040a235
cmp dword [ebp + 5], ebx
pop ecx
jne 0x40599d
inc dword [ebp - 0x94]
cmp dword [ebp - 0x94], 0x708
jle 0x405960
push dword [0x4399c0]
call edi
push dword [0x4399c4]
call dword [sym.imp.USER32.dll_CloseDesktop]
push dword [0x439918]
mov dword [0x4399c4], ebx
call fcn.00404827
mov eax, dword [ebp + 5]
pop ecx
mov dword [ebp - 0x94], eax
pop esi
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x94]
pop edi
pop ebx
call fcn.0040ddfc
add ebp, 0x70
leave
ret
Function at 0x40665a
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4203a0]
and dword [ebp - 0x48], 0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov ebx, 0x43bd70
push edi
mov ecx, ebx
mov dword [0x439ca4], eax
call fcn.0040204e
mov esi, str.Mgr_
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x4c], 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.0040203c
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040dc50
pop ecx
pop ecx
lea eax, [ebp - 0x44]
push eax
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
cmp esi, edi
je 0x4066f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4066f3
cmp dword [0x4399e4], edi
jne 0x4066e7
mov ecx, ebx
call fcn.0040204e
push eax
call fcn.00406110
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40677e
push edi
push dword [ebp + 8]
mov eax, 0x80000000
push edi
push edi
push edi
push eax
push edi
push eax
push 0xcf0000
push dword [ebp - 0x4c]
push 0x439bd8
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
cmp esi, edi
je 0x40677e
push edi
push esi
mov dword [0x4399e8], esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
inc ebx
mov ecx, 0x43d24c
mov dword [0x439ca8], ebx
call fcn.0040a42e
test eax, eax
je 0x406750
push edi
push esi
call dword [0x43d24c]
push dword [0x4399e4]
push esi
call fcn.00406539
pop ecx
pop ecx
call fcn.00409bef
cmp eax, 6
jl 0x40677b
push 0x406345
push 0x258
push 6
push esi
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebp - 0x48], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
pop edi
pop esi
pop ebx
call fcn.0040ddfc
leave
ret

Function at 0x407404
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4203a0]
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.004072f2
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, 0x3fe
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 0x4074a3
lea eax, [edi - 0x3fe]
cmp eax, 0x24
jge 0x407483
push 0x41a738
push edi
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push edi
push ebx
call esi
cmp dword [0x43d468], eax
je 0x4074a3
push edi
push ebx
call esi
push eax
mov dword [0x43d468], eax
call ebp
push dword [0x43d41c]
call ebp
inc edi
lea eax, [edi - 0x3fe]
cmp eax, 0x28
jl 0x407444
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0040ddfc
add esp, 0x1c
ret
Function at 0x40781e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4203a0]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [0x43d414]
mov dword [0x43d424], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x407861
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.00406e14
add esp, 0x14
mov byte [ebp - 0xc], 0
xor eax, eax
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
mov esi, 0x408
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.0040de10
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.0040fa56
pop ecx
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
inc edi
dec dword [ebp + 8]
jne 0x40787a
and dword [0x420060], 0
push ebx
call fcn.004074c0
push 0xa
push 0x3fe
push ebx
call fcn.00406fdc
push 0x1a
push esi
push ebx
call fcn.00406fdc
add esp, 0x1c
call fcn.00407502
push 0x407684
push 0x32
push 1
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.00406dad
mov edi, 0xc8
push edi
push 0
mov esi, 0x43d268
push esi
call fcn.0040de10
add esp, 0xc
push edi
push esi
push dword [0x43d41c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
call fcn.0040ddfc
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4203a0]
and dword [ebp - 0x48], 0
push ebx
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.00407571
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push edi
call esi
mov dword [0x43d41c], eax
mov eax, dword [ebp + 0x18]
push ebx
push edi
mov dword [0x43d410], ebx
mov dword [0x43d260], eax
mov dword [0x43d420], edi
call esi
push dword [ebp + 0x14]
mov dword [0x43d41c], eax
push edi
call esi
push 0x40
mov dword [0x43d418], eax
lea eax, [ebp - 0x44]
push eax
push ebx
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x44]
push eax
push 0x43d268
call fcn.0040dc40
cmp dword [0x43d424], 0
pop ecx
pop ecx
jne 0x407a3d
call fcn.004071a2
push 0
push 0x407925
push edi
push 0x87
push dword [ebp + 8]
mov dword [0x43d414], edi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x43d424], 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
pop ebx
call fcn.0040ddfc
leave
ret
Function at 0x4099e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4203a0]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], eax
lea edi, [ebx + ebx]
lea eax, [edi + 1]
push eax
call fcn.0040e753
pop ecx
xor ecx, ecx
test ebx, ebx
mov esi, eax
mov byte [ebp - 0x14], 0x30
mov byte [ebp - 0x13], 0x31
mov byte [ebp - 0x12], 0x32
mov byte [ebp - 0x11], 0x33
mov byte [ebp - 0x10], 0x34
mov byte [ebp - 0xf], 0x35
mov byte [ebp - 0xe], 0x36
mov byte [ebp - 0xd], 0x37
mov byte [ebp - 0xc], 0x38
mov byte [ebp - 0xb], 0x39
mov byte [ebp - 0xa], 0x41
mov byte [ebp - 9], 0x42
mov byte [ebp - 8], 0x43
mov byte [ebp - 7], 0x44
mov byte [ebp - 6], 0x45
mov byte [ebp - 5], 0x46
jbe 0x409a63
mov eax, dword [ebp + 8]
add eax, ecx
mov dl, byte [eax]
shr dl, 4
mov byte [esi + ecx*2], dl
mov al, byte [eax]
and al, 0xf
mov byte [esi + ecx*2 + 1], al
inc ecx
cmp ecx, ebx
jb 0x409a49
xor eax, eax
test edi, edi
jbe 0x409a79
movzx ecx, byte [eax + esi]
mov cl, byte [ebp + ecx - 0x14]
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x409a69
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x409a88
mov eax, dword [eax]
cmp eax, edi
jae 0x409a88
mov edi, eax
push edi
push esi
push dword [ebp + 0x10]
call fcn.0040ded0
push esi
call fcn.0040e63b
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
pop ebx
call fcn.0040ddfc
leave
ret

Function at 0x409ac8
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x104
mov eax, dword [0x4203a0]
push edi
push 0x3f
mov dword [ebp + 0x80], eax
pop ecx
xor eax, eax
mov byte [ebp - 0x80], 0
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xff
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
pop edi
jbe 0x409b2a
lea eax, [ebp - 0x80]
push eax
call fcn.0040dd40
cmp byte [ebp + eax - 0x81], 0x5c
pop ecx
je 0x409b2a
lea eax, [ebp - 0x80]
push 0x41a3b4
push eax
call fcn.0040dc50
pop ecx
pop ecx
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x8c]
call fcn.0040dc50
pop ecx
pop ecx
mov ecx, dword [ebp + 0x80]
call fcn.0040ddfc
add ebp, 0x84
leave
ret

Function at 0x409bef
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4203a0]
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 0x409c22
push 7
jmp 0x409c59
jne 0x409c39
cmp dword [ebp - 0x18], 1
jbe 0x409c2e
push 7
jmp 0x409c4f
je 0x409c2a
cmp dword [ebp - 0x18], esi
jne 0x409c62
push 6
jmp 0x409c4f
cmp eax, 5
jne 0x409c5a
cmp dword [ebp - 0x18], 2
jne 0x409c47
push eax
jmp 0x409c4f
cmp dword [ebp - 0x18], 1
jne 0x409c52
push 4
pop esi
jmp 0x409c62
cmp dword [ebp - 0x18], esi
jne 0x409c62
push 3
pop esi
cmp eax, 4
ja 0x409c62
xor esi, esi
inc esi
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.0040ddfc
add ebp, 0x78
leave
ret
Function at 0x409d26
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 0x409d44
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 0x409d70
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 0x409d97
xor eax, eax
jmp 0x409dc5
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 0x409e05
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0xd8]
sub esp, 0x158
mov eax, dword [0x4203a0]
push esi
push edi
push 0xff
mov dword [ebp + 0xd4], eax
xor esi, esi
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0040de10
push dword [ebp + 0xe0]
call fcn.0040dd40
push eax
push dword [ebp + 0xe0]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ded0
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040de10
add esp, 0x28
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x8000020
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
mov dword [ebp - 0x80], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, 1
jne 0x409ea5
mov eax, dword [ebp + 0xe4]
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x409e9b
push dword [ebp - 0x3c]
call esi
jmp 0x409ea0
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0xd4]
mov eax, edi
pop edi
pop esi
call fcn.0040ddfc
add ebp, 0xd8
leave
ret
Function at 0x409f3b
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4203a0]
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0x9c], ebx
mov dword [ebp + 0x8c], eax
push edi
je 0x409fd4
push ebx
push dword [ebp + 0x98]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jbe 0x409fd4
push edi
call fcn.0040e753
push 4
mov esi, eax
push ebx
push esi
call fcn.0040de10
add esp, 0x10
push esi
push edi
push ebx
push dword [ebp + 0x98]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x409fd4
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.StringFileInfo080404b0FileVersion
push esi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x409fd4
push dword [ebp - 0x7c]
push dword [ebp + 0x9c]
call fcn.0040dc40
push dword [ebp + 0x9c]
call fcn.00409ebc
add esp, 0xc
cmp dword [ebp + 0xa0], ebx
je 0x40a061
push 0x40
xor eax, eax
mov byte [ebp - 0x78], bl
pop ecx
lea edi, [ebp - 0x77]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x78]
push eax
call fcn.00409ac8
lea eax, [ebp - 0x78]
push eax
call fcn.0040dd40
cmp byte [ebp + eax - 0x79], 0x5c
pop ecx
pop ecx
je 0x40a01b
lea eax, [ebp - 0x78]
push 0x41a3b4
push eax
call fcn.0040dc50
pop ecx
pop ecx
push dword [ebp + 0x98]
lea eax, [ebp - 0x78]
push eax
call fcn.0040dc50
lea eax, [ebp - 0x78]
push 0x41c4c8
push eax
call fcn.0040e628
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x40a061
push 2
push ebx
push edi
call fcn.0040f260
push edi
call fcn.0040f190
mov ecx, dword [ebp + 0xa0]
push edi
mov dword [ecx], eax
call fcn.0040e26f
add esp, 0x14
cmp esi, ebx
je 0x40a06c
push esi
call fcn.0040e63b
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.0040ddfc
add ebp, 0x90
leave
ret

Function at 0x40a085
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4203a0]
mov dword [ebp - 4], eax
call fcn.00409dc8
test eax, eax
mov eax, str.SOFTWAREWow6432NodeMicrosoftCryptographyDefaultsProviderComyiSafe_CSP_V3.0_
jne 0x40a0a6
mov eax, str.SOFTWAREMicrosoftCryptographyDefaultsProviderComyiSafe_CSP_V3.0_
lea ecx, [ebp - 0x48]
push ecx
push 1
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a104
push esi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push str.version
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x48]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
test esi, esi
mov byte [eax], 0
pop esi
jne 0x40a104
lea ecx, [ebp - 0x44]
push ecx
push eax
call fcn.0040dc40
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
call fcn.0040ddfc
leave
ret
Function at 0x40a10e
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.00409bb0
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 + 0xda], 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 0x40a13c
mov ecx, esi
mov esi, 0xda
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 0x40a158
pop edi
pop esi
leave
ret

Function at 0x40a173
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], 0xda
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 0x40a18e
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 0x40a1b2
mov al, byte [esi]
sub al, byte [esi + 0xda]
pop edi
neg al
pop esi
sbb eax, eax
inc eax
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0x148
mov eax, dword [0x4203a0]
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.0040de10
push 0x10
mov dword [ebp - 0x80], esi
push ebx
mov esi, 0x43d680
push esi
mov dword [ebp - 0x78], str.comydesk20
mov word [ebp - 0x50], 5
mov dword [ebp - 0x54], 1
call fcn.0040de10
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.0040a2f0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040dc40
push dword [ebp + 0xd0]
lea eax, [ebp - 0x3c]
push eax
call fcn.0040dc50
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 0x40a3e6
push ebx
push str.Error
push 0x41c638
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [0x43d680]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x43d684]
call esi
mov ecx, dword [ebp + 0xc4]
pop edi
pop esi
pop ebx
call fcn.0040ddfc
add ebp, 0xc8
leave
ret
Function at 0x40a42e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xb4]
sub esp, 0x134
mov eax, dword [0x4203a0]
push ebx
push esi
push edi
mov dword [ebp + 0xb0], eax
mov ebx, ecx
push 0x3f
xor eax, eax
pop ecx
mov byte [ebp - 0x80], 0
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, str.WTSAPI32.dll
lea edi, [ebp + 0x80]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 8
xor eax, eax
cmp dword [ebx + 8], 0
pop ecx
lea edi, [ebp + 0x8d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x40a511
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp + 0x80]
push eax
call esi
test eax, eax
mov dword [ebx + 8], eax
jne 0x40a4ed
push 0xff
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x40a4d2
lea eax, [ebp - 0x80]
push eax
call fcn.0040dd40
cmp byte [ebp + eax - 0x81], 0x5c
pop ecx
je 0x40a4d2
lea eax, [ebp - 0x80]
push 0x41a3b4
push eax
call fcn.0040dc50
pop ecx
pop ecx
lea eax, [ebp + 0x80]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0040dc50
pop ecx
pop ecx
lea eax, [ebp - 0x80]
push eax
call esi
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x40a511
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSRegisterSessionNotification
push eax
call esi
push str.WTSUnRegisterSessionNotification
push dword [ebx + 8]
mov dword [ebx], eax
call esi
mov dword [ebx + 4], eax
mov ecx, dword [ebp + 0xb0]
xor eax, eax
cmp dword [ebx], eax
pop edi
pop esi
setne al
pop ebx
call fcn.0040ddfc
add ebp, 0xb4
leave
ret

Function at 0x40a52e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [0x4200f0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a55d
xor eax, eax
jmp 0x40a57e
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
pop esi
leave
ret

Function at 0x40a581
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push dword [0x4200f0]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40a5a0
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