joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ba00
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ca0a
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x461020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x10], 0
call fcn.0041b4b0
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
call fcn.0041b4b0
push dword [ebp + 0x10]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0041b4b0
lea edi, [esi + 0x48]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x14], 0xf
mov eax, edi
mov byte [edi], 0
mov dword [edi + 0x10], 1
cmp dword [edi + 0x14], 0x10
jb 0x41ba86
mov eax, dword [edi]
mov word [eax], 0x30
add esi, 0x60
mov dword [ebp - 0x10], esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, 0x80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0041f110
push eax
mov ecx, esi
call fcn.0040bc30
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x41baf2
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41bae8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bbc3
push ecx
push edx
call fcn.0042b48a
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0xf
push 0
movups xmmword [ebp - 0x28], xmm0
push 0x80000000
mov dword [ebp - 0x18], 1
mov word [ebp - 0x28], 0x30
mov dword [ebp - 0x10], 1
call fcn.0041f3f0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.0040bc30
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x41bb63
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41bb59
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bbc8
push ecx
push edx
call fcn.0042b48a
add esp, 8
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x41bb7d
cmp dword [ebp - 0x14], 0x10
mov ecx, edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040d0b0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x41bbad
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41bba3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bbcd
push ecx
push edx
call fcn.0042b48a
add esp, 8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.0043042f
call fcn.0043042f
call fcn.0043042f
int3
Function at 0x41bbe0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ca66
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x461020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push ecx
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x3c], 1
call fcn.0041e7c0
mov edi, 0x10
mov ecx, dword [ebp - 0x14]
call fcn.0041b6f0
mov ecx, eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x38], ecx
cmp eax, dword [esi + 8]
je 0x41bc74
mov dword [eax], ecx
add dword [esi + 4], 4
jmp 0x41bc80
lea ecx, [ebp - 0x38]
push ecx
push eax
mov ecx, esi
call fcn.004135d0
sub edi, 1
jne 0x41bc57
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
push 0xc
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
call fcn.0042b498
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
push 0x10
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x34], 0x3f800000
call fcn.0041e840
mov dword [ebp - 4], 3
mov dword [ebp - 0x38], 0x87
nop dword [eax]
mov eax, dword [esi]
mov edx, dword [edi + eax]
movzx eax, dl
xor eax, 0x811c9dc5
mov dword [ebp - 0x14], edx
imul ecx, eax, 0x1000193
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, edx
shr eax, 0x10
imul ecx, ecx, 0x1000193
movzx eax, al
shr edx, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [ebp - 0x34]
xor eax, edx
imul eax, eax, 0x1000193
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041eda0
cmp dword [eax + 4], 0
je 0x41bd56
mov ecx, dword [ebp - 0x38]
mov eax, ecx
inc ecx
mov dword [ebp - 0x38], ecx
mov ecx, dword [esi]
mov dword [edi + ecx], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x34]
call fcn.0041e980
add edi, 4
cmp edi, 0x40
jl 0x41bcf0
lea ecx, [ebp - 0x34]
call fcn.0041bdb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b459
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41d560
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cced
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x461020]
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 dword [ebp - 0x1c], ecx
mov edi, dword [ebp + 0x20]
push 0
push 0x80
push 3
push 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
push 1
cmovae eax, dword [ebp + 8]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d6bd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x41d5e5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebx + 2]
jmp 0x41d6e2
push ebx
call fcn.0042bcad
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push 0
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41d628
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.0042b6c5
add esp, 4
mov esi, 3
jmp 0x41d6e2
push ebx
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
mov edx, ebx
call fcn.0041b340
add esp, 4
mov ecx, edi
push eax
call fcn.0040bc30
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x10
jb 0x41d675
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41d66b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d732
push ecx
push edx
call fcn.0042b48a
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0042b6c5
mov eax, dword [ebp - 0x1c]
add esp, 4
add eax, 0x24
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x41d696
mov eax, dword [eax]
cmp dword [edi + 0x14], 0x10
mov edx, dword [edi + 0x10]
jb 0x41d6a1
mov edi, dword [edi]
push ecx
push eax
mov ecx, edi
call fcn.0040f050
add esp, 8
test eax, eax
jne 0x41d6b6
lea esi, [eax + 1]
jmp 0x41d6e2
mov esi, 4
jmp 0x41d6e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41d6dd
cmp eax, 3
je 0x41d6dd
cmp eax, 5
jne 0x41d6d6
mov esi, eax
jmp 0x41d6e2
mov esi, 8
jmp 0x41d6e2
mov esi, 6
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x41d712
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41d708
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d737
push ecx
push edx
call fcn.0042b48a
add esp, 8
mov eax, esi
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.0042b459
mov esp, ebp
pop ebp
ret 0x1c
call fcn.0043042f
call fcn.0043042f
int3
Function at 0x41ec40
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, 0x1fffffff
mov esi, 1
push edi
mov edi, ecx
bsr ecx, eax
mov eax, esi
mov dword [ebp - 0x10], edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x41ed8c
lea eax, [ecx - 1]
mov ebx, dword [edi + 4]
or eax, esi
mov dword [ebp - 8], ebx
bsr ecx, eax
push ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [edi + 0xc]
lea eax, [esi + esi]
push eax
call fcn.0041e840
lea eax, [esi - 1]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], eax
mov ecx, dword [edi + 4]
mov ecx, dword [ecx]
cmp ecx, ebx
je 0x41ed67
mov eax, ecx
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
movzx edx, byte [eax + 0xa]
imul esi, esi, 0x1000193
xor esi, edx
movzx edx, byte [eax + 0xb]
imul esi, esi, 0x1000193
xor esi, edx
imul edx, esi, 0x1000193
mov esi, dword [edi + 0x18]
and esi, edx
mov edx, dword [edi + 0xc]
mov edi, dword [edx + esi*8]
lea ebx, [edx + esi*8]
mov dword [ebp - 4], ebx
cmp edi, dword [ebp - 8]
jne 0x41ecf5
mov dword [ebx], eax
mov dword [ebx + 4], eax
jmp 0x41ed59
mov edx, dword [ebx + 4]
mov esi, dword [eax + 8]
cmp esi, dword [edx + 8]
jne 0x41ed2c
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x41ed27
mov edi, dword [eax + 4]
mov ebx, dword [ebp - 0xc]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov ebx, dword [ebp - 4]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov dword [ebx + 4], eax
jmp 0x41ed59
cmp edi, edx
je 0x41ed3c
mov edx, dword [edx + 4]
cmp esi, dword [edx + 8]
je 0x41ed70
cmp edi, edx
jne 0x41ed30
mov ebx, dword [eax + 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], eax
mov dword [edx + 4], edi
mov edx, dword [ebp - 4]
mov dword [ecx + 4], ebx
mov dword [eax + 4], esi
mov dword [edx], eax
mov eax, ecx
mov edi, dword [ebp - 0x10]
cmp ecx, dword [ebp - 8]
jne 0x41eca2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [eax + 4]
mov ebx, dword [edx]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], ebx
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x41ed59
push str.invalid_hash_bucket_count
call fcn.00429dc0
int3
Function at 0x426fe0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x427139
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.0041e840
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x42710c
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [ebx + 0xc]
imul edi, edi, 0x1000193
and edi, dword [ebx + 0x18]
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x427092
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x4270ff
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x4270cc
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x4270c4
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x4270ff
cmp ebx, edx
je 0x4270dc
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x427115
cmp ebx, edx
jne 0x4270d0
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 0x10]
mov eax, ecx
cmp ecx, esi
jne 0x427042
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x4270ff
push str.invalid_hash_bucket_count
call fcn.00429dc0
int3
Function at 0x4276e0
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d91d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x461020]
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
push 0x462164
mov dword [ebp - 0x28], 0x462164
call fcn.0042aa51
add esp, 4
test eax, eax
jne 0x4278ca
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov esi, eax
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x20]
push eax
push 0x18
push esi
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
mov edi, dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test eax, eax
je 0x42776c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42776c
cmp dword [eax], 0
je 0x4277c1
push eax
call edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov esi, dword [ebp - 0x18]
test edx, edx
je 0x4277bb
mov eax, esi
nop word [eax + eax]
cmp dword [eax + 8], 0
movq xmm0, qword [eax]
movq qword [ebp - 0x34], xmm0
je 0x4278bf
inc ecx
add eax, 0xc
cmp ecx, edx
jb 0x4277a0
push esi
call edi
or esi, 0xffffffff
lea eax, [ebp - 0x24]
mov dword [0x462148], esi
push eax
push esi
mov dword [ebp - 0x24], 0
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov esi, dword [ebp - 0x24]
test eax, eax
jne 0x4277e8
test esi, esi
jne 0x427896
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
push 0
push 0
push 1
push esi
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x427886
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x427886
mov edi, dword [ebp - 0x20]
push edi
call fcn.0042bcad
push edi
mov ebx, eax
push 0
push ebx
call fcn.0042d2f0
add esp, 0x10
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x20]
push ebx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x42787d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
test eax, eax
je 0x42787d
mov edx, dword [ebp - 0x14]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427868
sub ecx, edi
push ecx
push edx
mov ecx, 0x46214c
call fcn.0040d0b0
push ebx
call fcn.0042b6c5
add esp, 4
test esi, esi
je 0x427896
cmp esi, 0xffffffff
je 0x427896
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x462164
call fcn.0042aa62
add esp, 4
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.0042b459
mov esp, ebp
pop ebp
ret
push esi
call edi
mov esi, dword [ebp - 0x34]
jmp 0x4277c1
push eax
call fcn.00429f50
int3
Function at 0x427a30
Capabilities:
Delete registry key
Delete service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x461020]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x427aea
lea ecx, [esp + 8]
call fcn.0041f470
cmp dword [eax + 0x14], 0x10
jb 0x427a70
mov eax, dword [eax]
push 0x10000
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ecx, dword [esp + 0x1c]
mov esi, eax
cmp ecx, 0x10
jb 0x427ab5
mov edx, dword [esp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x427aab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427b86
push ecx
push edx
call fcn.0042b48a
add esp, 8
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0xf
mov byte [esp + 8], 0
test esi, esi
jne 0x427ad7
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x427aea
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
lea ecx, [esp + 8]
call fcn.00425330
cmp dword [eax + 0x14], 0x10
jb 0x427b05
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x427b3a
push 0x45a8a9
push dword [esp + 0x24]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x10
jb 0x427b6c
mov edx, dword [esp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x427b62
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427b8b
push ecx
push edx
call fcn.0042b48a
add esp, 8
push 0x64
call esi
call fcn.00427ba0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.0042b459
mov esp, ebp
pop ebp
ret
call fcn.0043042f
call fcn.0043042f
int3
Function at 0x427ba0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1688
call fcn.0042c6c0
mov eax, dword [0x461020]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1000
lea eax, [ebp - 0x1618]
push 0
push eax
call fcn.0042d2f0
add esp, 0xc
lea eax, [ebp - 0x1618]
push 0x800
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x410
lea eax, [ebp - 0x618]
push 0
push eax
call fcn.0042d2f0
add esp, 0xc
lea ecx, [ebp - 0x1688]
mov edx, 0x40
call fcn.00414b20
cmp dword [eax + 0x14], 8
jb 0x427c0f
mov eax, dword [eax]
lea ecx, [ebp - 0x1618]
push ecx
push eax
lea eax, [ebp - 0x618]
push 0x208
push eax
call fcn.00427910
mov ecx, dword [ebp - 0x1674]
add esp, 0x10
cmp ecx, 8
jb 0x427c6b
mov edx, dword [ebp - 0x1688]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x427c61
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427d9f
push ecx
push edx
call fcn.0042b48a
add esp, 8
push 0x200
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.0042d2f0
add esp, 0xc
lea ecx, [ebp - 0x1688]
mov edx, 0x41
call fcn.00414b20
cmp dword [eax + 0x14], 8
jb 0x427c99
mov eax, dword [eax]
push 0x100
lea ecx, [ebp - 0x208]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0x1674]
cmp ecx, 8
jb 0x427cec
mov edx, dword [ebp - 0x1688]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x427ce2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427da4
push ecx
push edx
call fcn.0042b48a
add esp, 8
xor eax, eax
mov dword [ebp - 0x1660], 0x44
mov word [ebp - 0x161e], ax
xorps xmm0, xmm0
mov word [ebp - 0x1630], ax
lea eax, [ebp - 0x1670]
push eax
lea eax, [ebp - 0x1660]
movlpd qword [ebp - 0x165c], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x618]
movlpd qword [ebp - 0x1654], xmm0
push eax
lea eax, [ebp - 0x208]
movlpd qword [ebp - 0x164c], xmm0
push eax
movlpd qword [ebp - 0x1644], xmm0
movlpd qword [ebp - 0x163c], xmm0
movlpd qword [ebp - 0x162e], xmm0
movlpd qword [ebp - 0x1626], xmm0
mov dword [ebp - 0x1634], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x166c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1670]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b459
mov esp, ebp
pop ebp
ret
call fcn.0043042f
call fcn.0043042f
int3
Function at 0x428c80
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x461020]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebx
push 0xf003f
push 0
push 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x428e0f
mov edx, 9
lea ecx, [esp + 0x14]
call fcn.004145d0
cmp dword [eax + 0x14], 0x10
jb 0x428cd2
mov eax, dword [eax]
push 0x24
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ecx, dword [esp + 0x28]
mov esi, eax
cmp ecx, 0x10
jb 0x428d14
mov edx, dword [esp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x428d0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428e23
push ecx
push edx
call fcn.0042b48a
add esp, 8
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xf
mov byte [esp + 0x14], 0
test esi, esi
jne 0x428d48
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042b459
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x2c]
push eax
push 0x24
lea eax, [esp + 0x38]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x428e03
cmp dword [esp + 0x34], 1
je 0x428de3
lea eax, [esp + 0x30]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x428e03
cmp dword [esp + 0x34], 1
je 0x428e0f
nop dword [eax]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x2c]
push eax
push 0x24
lea eax, [esp + 0x38]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x428e03
cmp dword [esp + 0x34], 1
je 0x428de3
call ebx
sub eax, dword [esp + 0x10]
cmp eax, 0x7530
ja 0x428e03
cmp dword [esp + 0x34], 1
jne 0x428d90
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042b459
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042b459
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [esp + 0x54]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042b459
mov esp, ebp
pop ebp
ret
call fcn.0043042f
int3