joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6af41f30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x6af42008
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x6af41f6e
cmp eax, 4
jne 0x6af41f90
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x6af41f7e
cmp edx, 4
je 0x6af41f7e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6af41ee0
Function at 0x401000
Capabilities:
Create process on windows
Self delete
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x507]
mov byte [ebp - 0x508], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push str..tmp1
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push dword [ebp + 8]
push str.del___s___a_r_nmove___s____s__r_ndel___0_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov esi, 0x404008
push ebx
push 0x80
push 2
push ebx
push 2
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4010c5
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x508]
push 0x400
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401545
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 8], eax
mov edi, 0x404348
cmp dword [ecx + eax + 0x7c], 0x80000000
lea esi, [ecx + eax + 0x7c]
jae 0x40159c
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call ebx
lea eax, [ebp - 4]
mov dword [esi], 0x80000000
push eax
push dword [ebp - 4]
push 4
push esi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 8]
mov esi, sym.roudanx.exe_szFile
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4040a8
push esi
call ebx
push dword [ebp + 0xc]
push esi
call ebx
push str.szFile
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4016ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4016f8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x4016fc
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401717
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x401758
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40176b
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x40176b
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x40176f
xor eax, eax
jmp 0x401781
cmp dword [ebp - 4], edi
je 0x40177e
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
Function at 0x40689a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068be
xor eax, eax
test eax, eax
je 0x4068d1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068d1
xor ecx, ecx
jmp 0x4068d4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4069f7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x406a2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a08
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x406a41
pop edi
not eax
pop esi
ret 0xc

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x22de7d89
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x55b27d17
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Capture screenshot
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x414004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call ebx
push 1
mov dword [ebp - 0x14], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push 0x1e
push dword [ebp - 0xc]
mov ebx, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [ebp - 0x20], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x10], 0xa
nop dword [eax]
mov ecx, dword [0x4152ac]
test ecx, ecx
jne 0x401098
push 0xf0000040
push 1
push ecx
push ecx
push 0x4152ac
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4010ad
mov ecx, dword [0x4152ac]
lea eax, [ebp - 8]
push eax
push 4
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov eax, dword [ebp - 8]
and eax, 0x7fffffff
cdq
idiv dword [ebp - 0x14]
push 0xcc0020
push 0
lea eax, [edx - 0xf]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
push esi
push 0x1e
push 0
push 0
push ebx
call edi
xor edi, edi
nop
movd xmm0, edi
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x411b08]
mulsd xmm0, qword [0x411af8]
call fcn.0040c290
mulsd xmm0, qword [0x411b00]
push 0xcc0020
push 1
push 1
push 0
cvttsd2si esi, xmm0
push edi
push ebx
push esi
push 1
push 0
push edi
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
push 0xcc0020
neg esi
push esi
mov esi, dword [ebp - 0x18]
push edi
push ebx
push esi
push 1
push 0
push edi
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
inc edi
cmp edi, 0x1e
jl 0x4010d0
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
push 0xcc0020
push 0
push 0
push ebx
push esi
push 0x1e
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
call edi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [ebp - 0x10], 1
jne 0x401070
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x20]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0xc]
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x401019

Function at 0x401814
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x402014]
test eax, eax
je 0x401853
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401853
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401853
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401853
cmp dword [ecx + 0x74], 0xe
jbe 0x401853
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x420860
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x3c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x138]
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x18], ebx
xor esi, esi
call fcn.00420cd0
add eax, 4
movsx edx, word [esp + 0x50]
jo 0x4209b6
add eax, 0x14
jo 0x4209b6
add eax, edx
jo 0x4209b6
mov edi, eax
mov ax, word [esp + 0x42]
sub ax, 1
jo 0x4209b6
movsx ebp, ax
cmp ebp, ebx
jl 0x4209a7
lea ecx, [esp + 0x14]
push ecx
call fcn.004210b0
push 0x28
push edi
push eax
call fcn.00421000
mov eax, dword [esp + 0x38]
test eax, 0x20000000
je 0x42091e
test eax, 0x40000000
je 0x42090d
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
jmp 0x420943
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x70
add eax, 0x10
jmp 0x420943
test eax, 0x40000000
je 0x420936
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 2
add eax, 2
jmp 0x420943
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 7
inc eax
lea edx, [esp + 0x10]
mov esi, eax
push edx
call fcn.004210b0
push eax
push esi
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x140]
mov eax, dword [esp + 0x24]
add ecx, esi
push eax
jo 0x4209b6
push ecx
call fcn.00420fe0
test eax, eax
je 0x420990
add edi, 0x28
jo 0x4209b6
add ebx, 1
jo 0x4209b6
cmp ebx, ebp
jle 0x4208d7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 4
mov esi, 4
call dword [sym.imp.KERNEL32.DLL_SetFileApisToANSI]
call dword [sym.imp.KERNEL32.DLL_SetFileApisToOEM]
call dword [sym.imp.USER32.DLL_WaitMessage]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0xf19c70
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf19c7a
pushal
call 0xf19c80
pop ebp
sub ebp, 0x10
sub ebp, 0xb19c70
jmp 0xf19c96
mov eax, 0xb19c70
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b1
mov edx, 0x8c937f01
xor byte [eax], dl
inc eax
dec ecx
jne 0xf19cad
jmp 0xf19cc0
mov cl, ah
mov cl, byte [eax + 0x101013d]
add al, 0xf9
add dword [ecx], eax
add dword [edx], eax
int3
Function at 0x47753a
Capabilities:
Parse pe header

Disassembly:
pushal
xor edx, edx
mov esi, dword fs:[edx]
lodsd eax, dword [esi]
cmp eax, 0xffffffff
je 0x47754a
mov esi, eax
jmp 0x477540
mov edi, dword [esi + 4]
and edi, 0xffff0000
cmp word [edi], 0x5a4d
je 0x477562
sub edi, 0x10000
jmp 0x477553
mov ebx, edi
add ebx, dword [ebx + 0x3c]
cmp word [ebx], 0x4550
je 0x477570
jmp 0x477553
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x477576
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
pushal
mov ebx, dword [esp + 0x24]
mov ecx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
add ebx, ecx
mov edi, dword [ebx + 0x20]
add edi, ecx
xor esi, esi
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
xor eax, eax
rol eax, 7
xor al, byte [edx]
inc edx
cmp byte [edx], 0
jne 0x477595
cmp eax, dword [esp + 0x28]
je 0x4775ac
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x47758c
mov edx, dword [ebx + 0x24]
add edx, ecx
movzx edx, word [edx + esi*2]
mov eax, dword [ebx + 0x1c]
add eax, ecx
mov eax, dword [eax + edx*4]
add eax, ecx
mov dword [esp + 0x1c], eax
popal
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401007
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4555c8]
and dword [ebp - 8], 0
mov dword [ebp - 0x28], eax
mov eax, dword [0x4555cc]
push esi
mov esi, dword [ebx + 4]
push edi
mov edi, dword [ebx]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x30], 0x9e3779b9
call fcn.00401000
mov eax, dword [0x4555d0]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x4555d4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x464914], 0xc
mov dword [ebp - 4], eax
jne 0x401081
xor eax, eax
push eax
lea ecx, [ebp - 0x34]
push ecx
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x464914]
cmp eax, 0xfa9
jne 0x40109d
mov dword [0x464910], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010bf
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
and dword [0x464864], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
and dword [ebp - 0x14], 0
mov edx, edi
add eax, edi
shr edx, cl
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [0x46490c], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor eax, edx
sub esi, eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov edx, esi
shr edx, cl
add eax, esi
mov dword [ebp - 0x18], eax
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor dword [ebp - 4], edx
sub edi, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
sub dword [ebp - 8], eax
dec dword [ebp - 0x1c]
jne 0x401055
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], esi
pop esi
leave
ret
Function at 0x407eff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454d70]
jne 0x407f09
repz ret
jmp fcn.0040c202

Function at 0x40a698
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404c07
and dword [ebp - 4], 0
cmp dword [0x4598f8], 0
mov ebx, eax
jne 0x40a749
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a7fa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a7fa
push eax
call fcn.00404b95
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4598f8], eax
call esi
push eax
call fcn.00404b95
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4598fc], eax
call esi
push eax
call fcn.00404b95
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x459900], eax
call esi
push eax
call fcn.00404b95
pop ecx
mov dword [0x459908], eax
test eax, eax
je 0x40a749
push 0x450f08
push edi
call esi
push eax
call fcn.00404b95
pop ecx
mov dword [0x459904], eax
mov eax, dword [0x459904]
cmp eax, ebx
je 0x40a7a1
cmp dword [0x459908], ebx
je 0x40a7a1
push eax
call fcn.00404c10
push dword [0x459908]
mov esi, eax
call fcn.00404c10
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a7a1
test edi, edi
je 0x40a7a1
call esi
test eax, eax
je 0x40a798
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a798
test byte [ebp - 0xc], 1
jne 0x40a7a1
or dword [ebp + 0x10], 0x200000
jmp 0x40a7da
mov eax, dword [0x4598fc]
cmp eax, ebx
je 0x40a7da
push eax
call fcn.00404c10
pop ecx
test eax, eax
je 0x40a7da
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a7da
mov eax, dword [0x459900]
cmp eax, ebx
je 0x40a7da
push eax
call fcn.00404c10
pop ecx
test eax, eax
je 0x40a7da
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4598f8]
call fcn.00404c10
pop ecx
test eax, eax
je 0x40a7fa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a7fc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403a74
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x44608c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, 0x101
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x390], eax
call fcn.004046c1
cmp dword [esi + 0x14], 8
jb 0x403aaa
mov eax, dword [esi]
jmp 0x403aac
mov eax, esi
lea ecx, [ebp - 0x390]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x403adf
push 0
push dword [ebp - 0x390]
mov ecx, esi
call fcn.004046c1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004065bb
mov esp, ebp
pop ebp
ret 4
push 0x4243c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004018f5
push 0x442bc0
lea eax, [ebp - 0x38c]
push eax
call fcn.004073d4
int3

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401cc0
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x100
push ebx
mov ebx, dword [esp + 0x108]
mov eax, ebx
push esi
and eax, 0xc0000000
push edi
cmp eax, 0x40000000
jne 0x401ce5
mov edi, 4
jmp 0x401cf6
cmp eax, 0x80000000
mov edi, 2
je 0x401cf6
mov edi, 1
mov eax, dword [0x426034]
test eax, eax
jne 0x401d62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.SuperProServer
push 0
mov dword [0x426030], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
mov eax, dword [0x426030]
push eax
push str.SuperProServer
lea ecx, [esp + 0x14]
push str._s_error:__d
push ecx
call fcn.00413de0
add esp, 0x10
test esi, esi
je 0x401d62
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
push 0
push edx
push 0
push eax
push 0
push ebx
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x401fb0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x124
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
mov byte [esp + 0xc], 0
mov dword [esp + 8], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
call fcn.0040f750
lea edx, [esp + 0x44]
push edx
push 0
push eax
lea eax, [esp + 0x10]
push eax
push 0x431620
push 0
push 0
push 6
call fcn.00411d30
lea ecx, [esp + 0x64]
push ecx
call fcn.00410070
push 1
call fcn.0040f620
push 2
call fcn.0040f620
add esp, 0x2c
call fcn.00407c10
call fcn.00408b70
call fcn.00408ce0
call fcn.00408b10
call fcn.00401bf0
call fcn.00401850
mov eax, dword [0x4316fc]
test eax, eax
je 0x40203e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x425e88]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
add esp, 0x124
ret
Function at 0x4025a0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x20
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
push 0xf01ff
push str.SuperProServer
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x40265f
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x402642
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
xor edi, edi
cmp edi, 5
jge 0x402620
push 0x3e8
call ebp
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40261b
cmp dword [esp + 0x18], 1
jne 0x40261b
mov ebx, 1
inc edi
test ebx, ebx
je 0x4025f3
mov eax, dword [esp + 0x18]
pop ebp
cmp eax, 1
pop ebx
je 0x40263e
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
mov edi, dword [esp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x40265f
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x20
ret
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret