joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ab20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
cmp dword [ebp + 0xc], 0
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
jne 0x43ab45
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push dword [edi + 0x1f8]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
test eax, eax
je 0x43ab70
push dword [edi + 0x1f8]
call esi
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
call fcn.004386c0
test eax, eax
jne 0x43abcf
mov esi, dword [ebp + 8]
test esi, esi
je 0x43ab89
cmp byte [esi + 4], 0
jne 0x43ab89
push dword [esi]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esi + 4], 1
mov ecx, dword [edi + 0x224]
mov edx, dword [ebp + 0x10]
test ecx, ecx
je 0x43abc3
mov eax, edx
and eax, 0x3ffffff
cmp eax, dword [edi + 0x228]
jne 0x43abc3
mov eax, dword [ebp + 0xc]
cmp eax, dword [ecx + 0x1c08]
jne 0x43ab3b
shr edx, 0x1a
imul eax, edx, 0x70
add eax, 8
add eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [edi + 0x3c]
push edx
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43b240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebx + 0x14], 0x10
mov edi, dword [ebx + 0x10]
jb 0x43b25a
mov esi, dword [ebx]
jmp 0x43b25c
mov esi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x43b278
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x43b267
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0xc]
and eax, edx
mov edi, dword [edi + 4]
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ebp + 0xc], edx
lea eax, [ecx + eax*4]
mov dword [ebp - 4], eax
cmp edx, edi
jne 0x43b2a0
mov eax, edi
jmp 0x43b2a4
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x43b2dd
lea ecx, [esi + 8]
mov edx, ebx
call fcn.00417c90
test al, al
jne 0x43b2c0
mov esi, dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
jmp 0x43b298
lea edx, [esi + 8]
mov ecx, ebx
call fcn.00417c90
test al, al
mov eax, dword [ebp + 8]
cmove esi, edi
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43bd00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
cmp dword [edi + 0x14], 0x10
jb 0x43bd16
mov esi, dword [edi]
jmp 0x43bd18
mov esi, edi
xor ecx, ecx
mov edx, 0x811c9dc5
cmp dword [edi + 0x10], ecx
jbe 0x43bd36
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [edi + 0x10]
jb 0x43bd24
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 4]
and eax, edx
lea ecx, [eax*8]
mov dword [ebp - 4], ecx
add ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], ecx
mov eax, dword [ecx]
cmp esi, eax
je 0x43bd78
mov esi, dword [ecx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x43bd78
nop dword [eax]
mov esi, dword [esi + 4]
mov ecx, edi
lea edx, [esi + 8]
call fcn.00417c90
test al, al
jne 0x43bdbc
mov eax, dword [ebp + 0xc]
cmp esi, dword [eax]
jne 0x43bd60
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x43bda2
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 4]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x43bdf4
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [eax + edx + 4], edi
jmp 0x43be16
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [ebx + 8]
call fcn.004051e0
push edi
call fcn.004c2207
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x43bdfc
mov dword [ecx], edi
jmp 0x43be16
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x43be16
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.0043c0b0
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43d0b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
mov edi, ecx
mov dword [ebp - 4], 0
call fcn.00432f00
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
cmp byte [eax + 0x6d], 0
lea eax, [ebp - 0x20]
je 0x43d10c
push 0xf
push 0xf
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x43d108
push 1
push 0x113
push 0x113
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x43d108
xor dl, dl
jmp 0x43d11e
mov dl, 1
jmp 0x43d11e
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
setne dl
xor ecx, ecx
lea eax, [edi + 0x10]
xchg dword [eax], ecx
test dl, dl
jne 0x43d130
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.0043cf70
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4409b0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0xa271d4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x4409ca
call fcn.00437b60
mov ecx, eax
mov eax, dword [0xa3c450]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x440a16
push 0xc
call fcn.004c21d4
mov esi, eax
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [0xa271d4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x440a0b
call fcn.00437b60
mov ecx, dword [0xa3c450]
mov dword [eax + ecx*4], esi
mov eax, esi
pop esi
ret
Function at 0x448060
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov dword [ebp - 8], 0
mov eax, dword [ecx + 0xc]
push esi
push edi
test eax, eax
je 0x448090
mov dword [ebp - 8], eax
mov ecx, 1
add eax, 4
lock xadd dword [eax], ecx
lea ecx, [ebp - 8]
mov ebx, 1
jmp 0x4480ba
call fcn.0043c930
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, 2
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4480b7
mov ecx, 1
add eax, 4
lock xadd dword [eax], ecx
lea ecx, [ebp - 4]
mov esi, dword [ebp + 8]
or edi, 0xffffffff
mov eax, dword [ecx]
mov dword [ecx], 0
mov dword [esi], eax
test bl, 2
je 0x4480f5
mov eax, dword [ebp - 4]
and ebx, 0xfffffffd
test eax, eax
je 0x4480f5
lea ecx, [eax + 4]
mov eax, edi
lock xadd dword [ecx], eax
sub eax, 1
jne 0x4480f5
lea eax, [ecx - 4]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
test bl, 1
je 0x44811b
mov eax, dword [ebp - 8]
test eax, eax
je 0x44811b
lea ecx, [eax + 4]
lock xadd dword [ecx], edi
sub edi, 1
jne 0x44811b
lea edx, [ecx - 4]
neg ecx
sbb ecx, ecx
and ecx, edx
mov edx, dword [ecx]
call dword [edx + 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x448960
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x168], 0
mov dword [ecx + 0x170], 0
mov dword [ecx + 0x174], 0
mov dword [ecx + 0x14], 0x67452301
mov dword [ecx + 0x18], 0xefcdab89
mov dword [ecx + 0x1c], 0x98badcfe
mov dword [ecx + 0x20], 0x10325476
mov dword [ecx + 0x24], 0xc3d2e1f0
ret
Function at 0x449eb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x449ec9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x449f06
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x449f02
nop word [eax + eax]
cmp esi, edx
jae 0x449f06
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x449ef0
cmp esi, edx
jb 0x449f0d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44b530
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x44b5a2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 0x10]
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
xor ecx, ecx
nop dword [eax + eax]
mov eax, ecx
shr eax, 1
test cl, 1
je 0x44b5ee
xor eax, 0xedb88320
test al, 1
je 0x44b5fb
shr eax, 1
xor eax, 0xedb88320
jmp 0x44b5fd
shr eax, 1
test al, 1
je 0x44b60a
shr eax, 1
xor eax, 0xedb88320
jmp 0x44b60c
shr eax, 1
test al, 1
je 0x44b619
shr eax, 1
xor eax, 0xedb88320
jmp 0x44b61b
shr eax, 1
test al, 1
je 0x44b628
shr eax, 1
xor eax, 0xedb88320
jmp 0x44b62a
shr eax, 1
test al, 1
je 0x44b637
shr eax, 1
xor eax, 0xedb88320
jmp 0x44b639
shr eax, 1
test al, 1
je 0x44b646
shr eax, 1
xor eax, 0xedb88320
jmp 0x44b648
shr eax, 1
test al, 1
je 0x44b655
shr eax, 1
xor eax, 0xedb88320
jmp 0x44b657
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
inc ecx
cmp ecx, 0x100
jl 0x44b5e0
or edx, 0xffffffff
test esi, esi
je 0x44b68c
movsx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ebp + ecx*4 - 0x404]
sub esi, 1
jne 0x44b672
mov ecx, dword [ebp - 4]
not edx
pop edi
xor ecx, ebp
mov eax, edx
pop esi
call fcn.004c21c3
mov esp, ebp
pop ebp
ret

Function at 0x44ba10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jl 0x44ba30
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 0xc

Function at 0x44c040
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x44c050
pop esi
ret
Function at 0x44c090
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
sub ecx, 1
jne 0x44c0a0
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
xor ecx, dword [esi - 4]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
sub edi, 1
jne 0x44c0e2
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret

Function at 0x44c1e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov bl, byte [eax + 0x100]
mov cl, byte [eax + 0x101]
mov dword [ebp - 8], edx
test edx, edx
jle 0x44c261
movzx ebx, bl
movzx ecx, cl
push esi
nop word [eax + eax]
inc bl
mov dh, bl
movzx ebx, dh
mov dl, byte [ebx + eax]
add cl, dl
movzx esi, cl
mov byte [ebp + 0xb], cl
mov dword [ebp - 0xc], esi
movzx ecx, byte [esi + eax]
mov byte [ebx + eax], cl
mov byte [esi + eax], dl
movzx ecx, byte [ebx + eax]
mov esi, dword [ebp - 4]
add cl, dl
movzx ecx, cl
movzx ecx, byte [ecx + eax]
xor byte [edi + esi], cl
inc edi
mov ecx, dword [ebp - 0xc]
cmp edi, dword [ebp - 8]
jl 0x44c210
mov cl, byte [ebp + 0xb]
pop esi
pop edi
mov byte [eax + 0x100], dh
mov byte [eax + 0x101], cl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov byte [eax + 0x100], bl
mov byte [eax + 0x101], cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459ba0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x6321a0
push 0x50d250
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x64106c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x459bf3
push 0xc1
jmp 0x459cdb
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x459c0a
push 0xbf
jmp 0x459cdb
movzx eax, word [ebx + 0x14]
test ax, ax
je 0x459cd6
lea ecx, [ebx + 0x18]
add ecx, eax
mov dword [ebp - 0x24], ecx
xor esi, esi
mov dword [ebp - 0x20], esi
movzx eax, word [ebx + 6]
cmp esi, eax
jae 0x459cd6
lea eax, [esi + esi*4]
lea edi, [ecx + eax*8]
mov ecx, str..ress
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x459c60
test dl, dl
je 0x459c5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x459c60
add eax, 2
add ecx, 2
test dl, dl
jne 0x459c40
xor eax, eax
jmp 0x459c65
sbb eax, eax
or eax, 1
test eax, eax
jne 0x459cb7
mov eax, dword [edi + 0xc]
test eax, eax
je 0x459cd6
cmp dword [edi + 0x10], 0
je 0x459cd6
mov esi, dword [ebp - 0x1c]
add esi, eax
mov eax, dword [esi]
cmp eax, 0x1c
jb 0x459cd6
cmp dword [esi + 4], 0x72657373
jne 0x459cd6
cmp dword [esi + 8], 0
jne 0x459c94
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc esi
mov ecx, dword [ebp - 0x24]
jmp 0x459c21
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465c40
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd513
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x64106c]
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 edi, ecx
mov dword [ebp - 0xa0], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x90], 0
mov byte [ebp - 0x8c], 0
mov dword [ebp - 0x88], 2
mov dword [ebp - 0x94], 0x624df8
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
lea eax, [ebp - 0x94]
mov dword [ebp - 4], 0
push eax
call fcn.00465ab0
add esp, 4
test al, al
je 0x465e00
mov eax, dword [ebp - 0x80]
xor esi, esi
mov dword [ebp - 0x9c], eax
test eax, eax
jle 0x465daa
lea edi, [ebx + 4]
lea ecx, [ebp - 0x70]
call fcn.00464560
sub esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x71]
mov dword [ebp - 0x98], 0
mov byte [ebp - 0x71], 0
push eax
push ecx
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
lea ecx, [ebp - 0x94]
call fcn.00464b10
test edi, edi
je 0x465d8b
cmp byte [ebp - 0x28], 0
je 0x465d8b
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x465d8b
cmp byte [ebx + 0x48], 0
je 0x465d8b
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x465d8b
push edi
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
test al, al
je 0x465d8b
mov eax, dword [ebp - 0x98]
and eax, 0x1f01ff
cmp eax, 0x1f01ff
jne 0x465d8b
movzx eax, byte [ebp - 0x71]
and al, 0xef
je 0x465df4
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.004647a0
inc esi
cmp esi, dword [ebp - 0x9c]
jl 0x465cf1
mov edi, dword [ebp - 0xa0]
sub esp, 8
lea ecx, [ebp - 0x94]
push ebx
call fcn.00464dc0
test al, al
je 0x465e00
test edi, edi
je 0x465e00
push 0
lea ecx, [ebp - 0x94]
call fcn.00464bc0
push eax
push 0
push 0
push 4
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete al
test al, al
je 0x465e00
xor esi, esi
jmp 0x465e1e
lea ecx, [ebp - 0x70]
call fcn.004647a0
xor esi, esi
jmp 0x465e1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x465e19
jle 0x465e1e
movzx esi, si
or esi, 0x80070000
jmp 0x465e1e
mov esi, 0x80004005
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x94], 0x624df8
test ecx, ecx
je 0x465e52
mov edx, dword [ebp - 0x80]
call fcn.00468010
push dword [ebp - 0x84]
call fcn.00512cbd
add esp, 4
mov dword [ebp - 0x84], 0
push dword [ebp - 0x90]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
call fcn.00512cbd
add esp, 4
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x84]
call fcn.00467c90
push dword [ebp - 0x90]
mov dword [ebp - 0x94], 0x624e50
call fcn.00512cbd
add esp, 4
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.004c21c3
mov esp, ebp
pop ebp
ret
Function at 0x468190
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push ecx
mov esi, ecx
call fcn.0044a270
add esp, 4
test al, al
je 0x4681ab
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004680c0
test al, al
jne 0x4681a4
push ebx
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4681eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x468240
movzx ebx, bx
or ebx, 0x80070000
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 2
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x468213
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x46822a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46822c
movzx ebx, bx
or ebx, 0x80070000
jmp 0x46822c
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x46823d
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call eax
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x468250
Capabilities:
Modify service

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, ecx
call fcn.00468310
add esp, 4
test al, al
je 0x468268
pop esi
xor eax, eax
pop ebx
ret
mov ecx, esi
call fcn.00468590
test eax, eax
js 0x468306
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4682a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x468303
movzx ebx, bx
pop edi
or ebx, 0x80070000
pop esi
mov eax, ebx
pop ebx
ret
push 2
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4682d6
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 1
push 2
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x4682ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x4682ef
movzx ebx, bx
or ebx, 0x80070000
jmp 0x4682ef
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x468300
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x468490
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4684df
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x46857b
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
push ebx
push 0x14
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x468507
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x468564
movzx ebx, bx
or ebx, 0x80070000
jmp 0x468564
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x468536
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x468562
cmp eax, 2
je 0x468562
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x468562
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46855a
movzx ebx, bx
or ebx, 0x80070000
cmp ebx, 0x80070420
jne 0x468564
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x468575
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call eax
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004c21c3
mov esp, ebp
pop ebp
ret