joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d020
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47e728
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42d059
inc eax
mov dword [esi + 0x10], eax
jmp 0x42d16c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42d06d
mov eax, 0xffffffc7
jmp 0x42d16e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42d07e
cmp dword [esi + 8], eax
jne 0x42d06d
cmp dword [esi + 8], eax
jne 0x42d097
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42d097
mov eax, 0xffffffc7
jmp 0x42d16e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42d0ab
push eax
mov ecx, ebx
call fcn.0042c840
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004014a0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42d0dc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004014c0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042bfb0
test eax, eax
mov dword [esp + 0x38], eax
je 0x42d10f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x481898
call fcn.004016a0
mov eax, dword [esp + 0x38]
jmp 0x42d16e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042ce70
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42d153
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042ce90
mov esi, eax
test esi, esi
jne 0x42d183
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042ce70
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42d125
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x481898
call fcn.004016a0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x481898
call fcn.004016a0
mov eax, esi
jmp 0x42d16e

Function at 0x430250
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4302b0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4302b0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4302b0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4302b0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4302f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43c840
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00479503
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043c1e0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00479431
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00475cf2
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00475cf2
push 1
push 0
push 0
mov ecx, esi
call fcn.00475c9a
push 1
push 0
push 1
mov ecx, esi
call fcn.00475c9a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00479575
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43c9c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00479503
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043c1e0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00479431
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43ca84
cmp dword [esp + 0x40], 1
jne 0x43ca82
cmp ecx, eax
jge 0x43ca84
mov eax, ecx
cmp eax, 0xc8
jge 0x43ca90
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043c840
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00479575
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43d210
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f7c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00474112
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004797ab
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047acc7
test eax, eax
je 0x43d32c
mov ecx, dword [esp + 0x3c]
call fcn.004797d8
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43d2f0
push edi
mov ecx, esi
call fcn.00476e39
mov ecx, esi
call fcn.0043d490
cmp dword [esp + 0x38], 1
jne 0x43d325
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00476f74
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43fd50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43fd83
push esi
call fcn.0044e070
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43fd7c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43fe09
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43fdf2
mov eax, dword [esi + 8]
test eax, eax
je 0x43fda7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43fdee
cmp eax, 2
je 0x43fdf2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43fd9a
cmp eax, 3
je 0x43fdcd
cmp eax, 1
jne 0x43fd9a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43fd9a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43fd9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043fe30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43fe18
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043fe30
add esp, 4
pop esi
ret

Function at 0x4406a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4406c1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4406c1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4406c1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x440b10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x440b1b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x440c1e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4853c0]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4853c0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4853c0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4853c0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4853c0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4853c0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4853c0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4853c0]
xor eax, edx
inc ecx
dec edi
jne 0x440b36
pop edi
test esi, esi
je 0x440c40
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4853c0]
xor eax, edx
inc ecx
dec esi
jne 0x440c22
pop esi
pop ebx
not eax
ret
Function at 0x466bd4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a5624]
jne 0x466bde
repz ret
jmp fcn.0046de73

Function at 0x46ce85
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a5624]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00461fcd
and dword [ebp - 0x14], 0
cmp dword [0x4b5554], 0
mov dword [ebp - 0x18], eax
jne 0x46cf38
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x46cfe0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x46cfe0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x48e028
push ebx
mov dword [0x4b5554], eax
call edi
push eax
call esi
push 0x48e014
push ebx
mov dword [0x4b5558], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4b555c], eax
call edi
push eax
call esi
mov dword [0x4b5564], eax
test eax, eax
je 0x46cf38
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4b5560], eax
mov eax, dword [0x4b5560]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x46cf91
cmp dword [0x4b5564], ecx
je 0x46cf91
push eax
call esi
push dword [0x4b5564]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x46cf91
test ebx, ebx
je 0x46cf91
call edi
test eax, eax
je 0x46cf88
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x46cf88
test byte [ebp - 8], 1
jne 0x46cf91
or dword [ebp + 0x10], 0x200000
jmp 0x46cfc4
mov eax, dword [0x4b5558]
cmp eax, dword [ebp - 0x18]
je 0x46cfc4
push eax
call esi
test eax, eax
je 0x46cfc4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46cfc4
mov eax, dword [0x4b555c]
cmp eax, dword [ebp - 0x18]
je 0x46cfc4
push eax
call esi
test eax, eax
je 0x46cfc4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b5554]
call esi
test eax, eax
je 0x46cfe0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x46cfe2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466bd4
leave
ret

Function at 0x474f08
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x474f40
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00472fbf
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00472f97
jmp 0x474f4c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4765f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x476638
call fcn.0047c0ad
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x476638
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47662f
xor eax, eax
jmp 0x476640
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00476646
pop edi
pop esi
pop ebx
ret 4
Function at 0x408d6e
Capabilities:
Create service
Delete service
Query service status
Start service

Disassembly:
push ebp
lea ebp, [esp - 0xb8]
sub esp, 0x138
mov eax, dword [0x4a9c04]
xor eax, ebp
mov dword [ebp + 0xb4], eax
mov eax, dword [ebp + 0xc0]
push ebx
push esi
push edi
mov dword [ebp - 0x5c], eax
push 0x104
lea eax, [ebp - 0x50]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x50]
push ecx
push 1
push 3
push 0x110
mov ebx, 0xf01ff
push ebx
mov esi, 0x488b2c
push esi
push esi
push eax
mov dword [ebp - 0x58], eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x54], eax
cmp eax, edi
jne 0x408df2
push ebx
push esi
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push 1
push dword [ebp - 0x54]
mov dword [ebp - 0x60], edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
cmp ebx, edi
je 0x408e3f
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x7c], 1
je 0x408e3f
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408e1f
push dword [ebp - 0x54]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x58]
call esi
mov ecx, dword [ebp + 0xb4]
xor eax, eax
cmp ebx, edi
pop edi
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.0044f35b
add ebp, 0xb8
leave
ret

Function at 0x408e6e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp byte [esi], bl
jne 0x408ebe
call fcn.0040869f
test al, al
je 0x408ebe
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0x488b2c
mov dword [ebp - 0xc], 0x408b6d
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x408eb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x427
je 0x408ebe
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp byte [ebp + 0xc], bl
je 0x408ee0
push esi
call fcn.00408d6e
pop ecx
test al, al
jne 0x408eb7
push str.Unable_to_relaunch_as_a_service._n_nThis_operation_requires_that_BGInfo_be_run_under_an_Administrator_account.
push 0x10
push ebx
call fcn.0040b503
add esp, 0xc
jmp 0x408eb7
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x409261
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x4a9c04]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x1b0]
push ebx
push esi
mov esi, dword [ebp + 0x1ac]
push edi
xor ebx, ebx
push 0x103
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x9d]
push ebx
push eax
mov dword [ebp - 0x6c], esi
mov byte [ebp + 0x9c], bl
call fcn.0044f370
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x9c]
push eax
push ebx
push ebx
push str.Wallpaper
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], 0x104
call esi
push 4
pop edi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push str.WallpaperPos
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], edi
call esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push 0x48862c
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], edi
call esi
push 0x104
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [ebp + 0x1b4]
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x6c]
call fcn.00412a93
add esp, 0xc
test al, al
je 0x40939e
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push str.WallpaperUser
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], edi
call esi
cmp dword [ebp - 0x78], ebx
je 0x40939c
lea eax, [ebp + 0x9c]
push eax
call fcn.0044fc30
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ecx
inc eax
push eax
lea eax, [ebp + 0x9c]
push eax
push 1
push ebx
push str.Wallpaper
push dword [ebp - 0x6c]
call esi
push edi
lea eax, [ebp - 0x74]
push eax
push edi
push ebx
push str.WallpaperPos
push dword [ebp - 0x6c]
call esi
push edi
lea eax, [ebp - 0x7c]
push eax
push edi
push ebx
push 0x48862c
push dword [ebp - 0x6c]
call esi
mov al, 1
mov ecx, dword [ebp + 0x1a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044f35b
add ebp, 0x1a4
leave
ret
Function at 0x40b3ed
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4a9c04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x128], eax
mov eax, dword [0x4ad76c]
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x40b4ab
push esi
push 0x48b3c0
push eax
call fcn.00455ae5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40b4aa
push 0x103
lea eax, [ebp - 0x11f]
push 0
push eax
mov byte [ebp - 0x120], 0
call fcn.0044f370
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x124], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x1c]
push eax
call fcn.00455a05
lea eax, [ebp - 0x10]
push eax
call fcn.0045593d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x120]
push eax
push str._s__s__s:_n
push esi
call fcn.004556f4
push edi
push str._s_n_n
push esi
call fcn.004556f4
push esi
call fcn.00455678
add esp, 0x2c
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5b3
je 0x40b4ec
call fcn.00408794
test al, al
je 0x40b4ec
cmp byte [0x4ad768], 0
je 0x40b4d5
test byte [ebp + 0xc], 0xf
jne 0x40b4d5
xor eax, eax
inc eax
jmp 0x40b4f6
push dword [ebp + 0xc]
push 0x488b2c
push edi
push dword [ebp - 0x128]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40b4f6
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0044f35b
leave
ret
Function at 0x44a00d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x44a031
cmp dword [edi + 0x54], 0
jne 0x44a031
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00427fd8
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00449fce
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x44f35b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a9c04]
jne 0x44f365
repz ret
jmp fcn.0045e9ba

Function at 0x45791d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push eax
push ecx
nop
push edx
push ebx
push esp
push ebp
push esi
push edi
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
invalid

Function at 0x4742e7
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.00456fbd
and dword [ebp - 4], 0
cmp dword [0x4b2a7c], 0
mov ebx, eax
jne 0x474398
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x474449
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x499344
push edi
call esi
test eax, eax
je 0x474449
push eax
call fcn.00456f4b
mov dword [esp], 0x499334
push edi
mov dword [0x4b2a7c], eax
call esi
push eax
call fcn.00456f4b
mov dword [esp], 0x499320
push edi
mov dword [0x4b2a80], eax
call esi
push eax
call fcn.00456f4b
mov dword [esp], 0x499304
push edi
mov dword [0x4b2a84], eax
call esi
push eax
call fcn.00456f4b
pop ecx
mov dword [0x4b2a8c], eax
test eax, eax
je 0x474398
push 0x4992ec
push edi
call esi
push eax
call fcn.00456f4b
pop ecx
mov dword [0x4b2a88], eax
mov eax, dword [0x4b2a88]
cmp eax, ebx
je 0x4743f0
cmp dword [0x4b2a8c], ebx
je 0x4743f0
push eax
call fcn.00456fc6
push dword [0x4b2a8c]
mov esi, eax
call fcn.00456fc6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4743f0
test edi, edi
je 0x4743f0
call esi
test eax, eax
je 0x4743e7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4743e7
test byte [ebp - 0xc], 1
jne 0x4743f0
or dword [ebp + 0x10], 0x200000
jmp 0x474429
mov eax, dword [0x4b2a80]
cmp eax, ebx
je 0x474429
push eax
call fcn.00456fc6
pop ecx
test eax, eax
je 0x474429
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x474429
mov eax, dword [0x4b2a84]
cmp eax, ebx
je 0x474429
push eax
call fcn.00456fc6
pop ecx
test eax, eax
je 0x474429
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b2a7c]
call fcn.00456fc6
pop ecx
test eax, eax
je 0x474449
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47444b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret