joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401264
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push 0x401044
mov dword [ebp - 8], 0x91
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x401437
push ebx
push edi
push esi
lea ecx, [ebp - 4]
push ecx
push 0x48
lea ecx, [ebp - 0x68]
push ecx
push eax
mov dword [ebp - 0xc], 4
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401421
cmp dword [ebp - 4], 0x48
jne 0x401421
cmp dword [ebp - 0x68], 0x2e746164
jne 0x401421
mov eax, dword [ebp - 0x64]
push 0x40
mov ebx, 0x3000
push ebx
push dword [ebp - 0x5c]
mov dword [ebp - 0x64], esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, 0xf400000
push edi
mov dword [ebp - 0x20], eax
call esi
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x40132f
cmp dword [ebp - 0xc], 0
je 0x401325
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 0xc]
push 0x40
push ebx
push dword [ebp - 0x5c]
push edi
call esi
test eax, eax
mov dword [ebp - 0x14], eax
je 0x401304
cmp dword [ebp - 0x14], 0
je 0x40140e
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x401343
shr eax, 1
xor eax, 0xedb88320
jmp 0x401345
shr eax, 1
dec edx
jne 0x401336
mov dword [ebp + ecx*4 - 0x468], eax
inc ecx
cmp ecx, 0x100
jl 0x401331
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x68]
push 0x48
push eax
xor eax, eax
call fcn.00401136
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
xor edi, edi
mov eax, 0x400
add esp, 0xc
cmp ecx, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], ecx
jb 0x401389
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4013b2
cmp dword [ebp - 4], edi
je 0x4013c4
lea eax, [ebp - 0x468]
push eax
push dword [ebp - 4]
mov eax, dword [ebp - 0x18]
push ebx
call fcn.00401136
add esp, 0xc
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push ebx
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x401394
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jne 0x401405
push edi
push edi
push dword [ebp - 0x60]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x5c]
mov dword [ebp - 4], edi
push ebx
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x5c]
jne 0x4013fc
mov dword [ebp - 0x1c], 0xf4042cc
jmp 0x401428
mov dword [ebp - 8], 0x96
jmp 0x401428
mov dword [ebp - 8], 0x95
jmp 0x401428
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 0x94
mov dword [ebp - 8], eax
jmp 0x401428
mov dword [ebp - 8], 0x93
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor esi, esi
pop ebx
jmp 0x401448
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 0x92
mov dword [ebp - 8], eax
cmp dword [ebp - 0x1c], esi
pop esi
je 0x401454
call dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
leave
ret
Function at 0x402ac0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x402b03
push edi
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xc]
push ecx
call fcn.004038d0
add esp, 8
pop edi
pop esi
add esp, 0x104
ret
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x402b10
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x402b9b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402b9b
test esi, esi
je 0x402b55
cmp esi, 0xffffffff
je 0x402b55
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x402be1
mov eax, dword [esp + 0x160]
test eax, eax
je 0x402b84
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x402b9b
jmp 0x402b93
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x402b9b
mov dword [esp + 0x10], 1
test esi, esi
je 0x402be1
cmp esi, 0xffffffff
je 0x402be1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402c18
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x402bee
call edi
test eax, eax
je 0x402be1
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x402c18
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x402bc9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x402be1
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x402c18
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x402bfb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00402240
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret

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

Disassembly:
pushal
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403cf8
nop
sub eax, 0x403c9e
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x643b62
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x34f203f3
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x431002
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
pushal
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430fd9
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call fcn.10001534
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call fcn.100015ac
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call fcn.100015ac
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call fcn.100015e8
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x6b5d142b
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1a4a7484
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x988f10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x382000]
push edi
jmp 0x988f2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x988f31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x988f20
mov eax, 1
add ebx, ebx
jne 0x988f43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x988f54
jne 0x988f73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x988f73
dec eax
add ebx, ebx
jne 0x988f60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x988f38
add ebx, ebx
jne 0x988f6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x988fc5
xor ecx, ecx
sub eax, 3
jb 0x988f8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x988ffa
sar eax, 1
mov ebp, eax
jmp 0x988f96
add ebx, ebx
jne 0x988f96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x988f64
inc ecx
add ebx, ebx
jne 0x988fa4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x988f64
add ebx, ebx
jne 0x988fb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x988fa6
jne 0x988fc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x988fa6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x988fe4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x988fd6
jmp 0x988f26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x988fe4
add edi, ecx
jmp 0x988f26
pop esi
mov edi, esi
mov ecx, 0x2dcd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x989002
cmp byte [edi], 0x27
jne 0x989002
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x989007
lea edi, [esi + 0x585000]
mov eax, dword [edi]
or eax, eax
je 0x98907f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5f2fcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5f30f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x989034
mov ecx, edi
jns 0x989063
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5f30fc]
or eax, eax
je 0x989079
mov dword [ebx], eax
add ebx, 4
jmp 0x989051
call dword [esi + 0x5f310c]
mov ebp, dword [esi + 0x5f3100]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x9890b3
sub esp, 0xffffff80
jmp 0x492743
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x18c31847
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x17c7815
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401094
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, edx
mov dword [esp + 0x14], ecx
call edi
mov ebp, dword [esi + 0x14]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
jmp 0x401107
mov eax, dword [esi + 0x18]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x4010cc
mov eax, ecx
jmp 0x4010d6
mov ecx, 0x2710
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00401000
test eax, eax
je 0x401116
cmp dword [esi + 0x14], ebp
jbe 0x4010fc
call edi
mov ebp, dword [esi + 0x14]
mov dword [esp + 0x10], eax
jmp 0x401107
call edi
sub eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x18]
ja 0x401116
cmp dword [esi + 4], ebx
je 0x4010b5
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
xor eax, eax
jmp 0x40110f

Function at 0x40111a
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x47a550]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x4011dc
push edi
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x4011db
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
mov dword [ebp - 0x2c], ebx
call edi
test eax, eax
je 0x4011db
cmp dword [ebp - 0x24], 3
je 0x401190
cmp dword [ebp - 0x24], 1
jne 0x4011d8
push 3
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x30]
call fcn.00401094
pop ecx
test eax, eax
je 0x4011db
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x4011db
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
mov dword [ebp - 0x2c], ebx
call edi
test eax, eax
je 0x4011db
push 2
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x30]
call fcn.00401094
cmp dword [ebp - 0x24], 4
pop ecx
jne 0x4011db
xor ebx, ebx
inc ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0042d16b
leave
ret
Function at 0x4011f5
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4532e0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x47a550]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47a550]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, edx
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x17]
push eax
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x1f], bl
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.004017f4
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
mov dword [esp + 0x7c], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
push ebx
inc ebx
push ebx
push dword [esi]
call edi
test eax, eax
jne 0x40128f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x401295
xor ebx, ebx
mov ebp, dword [esp + 0x28]
jmp 0x401309
push dword [esp + 0x18]
lea ecx, [esp + 0x2c]
call fcn.004016db
mov ebp, dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x20]
push ebp
push ebx
push dword [esi]
call edi
test eax, eax
je 0x401307
and dword [esp + 0x24], 0
cmp dword [esp + 0x1c], 0
jbe 0x401309
mov eax, ebp
mov dword [esp + 0x20], ebp
push 0x24
push dword [eax]
mov eax, dword [esp + 0x40]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x401307
and dword [esp + 0x40], 0
push 8
pop ecx
xor eax, eax
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x401373
xor ebx, ebx
test ebp, ebp
je 0x401314
push ebp
call fcn.0042d166
pop ecx
mov eax, ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0042d16b
add esp, 0x60
ret
push dword [esp + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
and dword [esp + 0x34], 0
lea eax, [esp + 0x34]
push eax
push 0x24
lea eax, [esp + 0x48]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x401307
cmp dword [esp + 0x44], ebx
je 0x401379
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x78]
ja 0x401307
cmp dword [esp + 0x44], ebx
jne 0x401335
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
inc edi
add eax, 0x24
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
cmp edi, dword [esp + 0x1c]
jb 0x4012d0
jmp 0x401309
Function at 0x4013a1
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x45324f
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x47a550]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47a550]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov dword [esp + 0x24], edx
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x20], eax
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [esp + 0x64], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x401537
push 0x2c
push ebx
push eax
mov byte [esp + 0x64], 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x401537
push 8
pop ecx
xor eax, eax
mov dword [esp + 0x28], ebx
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push 0x24
lea eax, [esp + 0x30]
push eax
push ebx
push esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x401537
cmp dword [esp + 0x2c], 1
je 0x401534
mov edi, dword [esp + 0x24]
jmp 0x4014bd
mov eax, dword [esp + 0x40]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x401477
mov eax, ecx
jmp 0x401481
mov ecx, 0x2710
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x1c]
push eax
push 0x24
lea eax, [esp + 0x30]
push eax
push ebx
push esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x401537
cmp dword [esp + 0x2c], 1
je 0x401534
call ebp
sub eax, dword [esp + 0x20]
cmp eax, edi
ja 0x401537
cmp dword [esp + 0x2c], 3
je 0x40145f
call ebp
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x14]
lea ecx, [esi + edi]
sub ecx, eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004011f5
pop ecx
lea eax, [esp + 0x28]
push eax
push 1
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401537
jmp 0x40152d
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x18]
push eax
push 0x24
lea eax, [esp + 0x30]
push eax
push ebx
push dword [esp + 0x24]
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x401537
cmp dword [esp + 0x2c], 1
je 0x401534
call ebp
sub eax, esi
cmp eax, edi
ja 0x401537
cmp dword [esp + 0x2c], 1
jne 0x4014f5
xor ebx, ebx
inc ebx
mov eax, ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0042d16b
add esp, 0x48
ret