joyce8/EMBER2024-capa huggingface dataset:
Function at 0x132aa
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [0x1e510]
and dword [ebp - 4], 0
push esi
mov esi, dword [0x1e50c]
push edi
mov edi, dword [0x1e514]
add eax, edi
add eax, dword [0x1e508]
xor ecx, esi
xor edx, esi
add eax, esi
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 4]
mov dword [ebp - 0xc], edi
mov edi, dword [esi]
mov dword [ebp + 0xc], edi
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov dword [ebp - 8], 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
add dword [ebp - 4], eax
dec dword [ebp - 8]
mov esi, edx
shl esi, 4
add esi, dword [ebp + 0xc]
mov edi, edx
shr edi, 5
add edi, dword [ebp - 0xc]
xor esi, edi
mov edi, dword [ebp - 4]
add edi, edx
xor esi, edi
add ecx, esi
mov esi, ecx
shl esi, 4
add esi, dword [ebp - 0x10]
mov edi, ecx
shr edi, 5
add edi, dword [ebp - 0x14]
xor esi, edi
mov edi, dword [ebp - 4]
add edi, ecx
xor esi, edi
add edx, esi
cmp dword [ebp - 8], 0
ja 0x1327a
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop esi
leave
ret 8

Function at 0x132f2
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov ecx, dword [0x1e514]
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x1e510]
add ecx, eax
mov eax, dword [ebp + 0xc]
add ecx, dword [0x1e50c]
push edi
mov edi, dword [eax + 0xc]
add ecx, dword [0x1e508]
mov dword [ebp - 0xc], edi
mov edi, dword [eax + 8]
mov dword [ebp + 0xc], edi
mov edi, dword [eax + 4]
mov eax, dword [eax]
mov edx, ecx
mov dword [ebp - 8], 0x20
shl edx, 5
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp + 0xc]
dec dword [ebp - 8]
shr edi, 5
add edi, dword [ebp - 0xc]
xor eax, edi
mov edi, dword [ebp - 4]
add edi, edx
xor eax, edi
sub esi, eax
mov eax, esi
shl eax, 4
add eax, dword [ebp - 0x10]
mov edi, esi
shr edi, 5
add edi, dword [ebp - 0x14]
xor eax, edi
lea edi, [edx + esi]
xor eax, edi
sub dword [ebp - 4], eax
sub edx, ecx
cmp dword [ebp - 8], 0
ja 0x13324
mov eax, dword [0x1e50c]
xor eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [0x1e50c]
xor eax, esi
pop edi
mov dword [ecx + 4], eax
pop esi
leave
ret 8

Function at 0x1342c
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor ecx, ecx
or eax, 0xffffffff
cmp dword [ebp + 0xc], ecx
jbe 0x1345a
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x22280]
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x1343b
not eax
pop ebp
ret 8
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x77e27710
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x4304d8
nop
mov ecx, 0x7d3c142c
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40581d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x405827
repz ret
jmp fcn.00405aca
Function at 0x5825b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xea000]
push edi
jmp 0x5825ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5825d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5825c0
mov eax, 1
add ebx, ebx
jne 0x5825e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5825f4
jne 0x582613
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x582613
dec eax
add ebx, ebx
jne 0x582600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5825d8
add ebx, ebx
jne 0x58260f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x582665
xor ecx, ecx
sub eax, 3
jb 0x58262b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x58269a
sar eax, 1
mov ebp, eax
jmp 0x582636
add ebx, ebx
jne 0x582636
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x582604
inc ecx
add ebx, ebx
jne 0x582644
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x582604
add ebx, ebx
jne 0x582651
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x582646
jne 0x582662
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x582646
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x582684
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x582676
jmp 0x5825c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x582684
add edi, ecx
jmp 0x5825c6
pop esi
mov edi, esi
mov ecx, 0x1436
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5826a2
cmp byte [edi], 0x1a
jne 0x5826a2
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 0x5826a7
lea edi, [esi + 0x17f000]
mov eax, dword [edi]
or eax, eax
je 0x58271f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x182ee4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x182f94]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5826d4
mov ecx, edi
jns 0x582703
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 + 0x182f9c]
or eax, eax
je 0x582719
mov dword [ebx], eax
add ebx, 4
jmp 0x5826f1
call dword [esi + 0x182f98]
mov ebp, dword [esi + 0x182fa0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x582753
sub esp, 0xffffff80
jmp 0x42e5e6

Function at 0x8ccba9
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x8cc92e
sub eax, eax
push eax
pop eax
call fcn.008ccbe2
sub eax, eax
dec eax
xor dword [ecx], ebx
and edx, eax
inc ecx
or edx, edx
push edx
mov eax, dword [esp]
add esp, 4
mov edx, eax
cmp ecx, esi
jne fcn.008ccba9
sub edx, 0x3b443e04
ret
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x36c15f9d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x719849de
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x403b00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
test eax, eax
push ebp
push esi
mov esi, ecx
jne 0x403b1c
mov eax, dword [esi + 4]
mov dword [esp + 0x118], eax
mov ebp, dword [esp + 0x11c]
test ebp, ebp
je 0x403b53
mov edx, dword [esp + 0x118]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403b5d
pop esi
xor al, al
pop ebp
add esp, 0x10c
ret 8
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [esp + 8], eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push eax
mov dword [esp + 0x30], 0x104
call edi
test eax, eax
jne 0x403ba0
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
mov ecx, esi
call fcn.00403b00
test al, al
jne 0x403b64
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 8]
cmp eax, ecx
pop edi
jne 0x403bb5
mov ecx, esi
call fcn.00403ae0
jmp 0x403bbc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x118]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop esi
inc eax
pop ebp
add esp, 0x10c
ret 8

Function at 0x404bb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x100
push esi
mov esi, dword [esp + 0x108]
push edi
push str.TEXT
push 0x69
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
lea eax, [esp + 8]
push 0x100
push eax
push 9
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 8]
push 0x40
push ecx
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
add esp, 0x100
ret
Function at 0x930058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9301a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x93007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x93006a
add dl, dl
jne 0x930089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9300dc
xor eax, eax
add dl, dl
jne 0x930096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x93017d
add dl, dl
jne 0x9300a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9300b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9300bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9300c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9300d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x930075
mov eax, 1
add dl, dl
jne 0x9300ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9300f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9300e1
sub eax, ebx
mov ebx, 1
jne 0x930128
mov ecx, 1
add dl, dl
jne 0x93010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x930119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x930105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x930075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x93013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x93014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x930136
cmp eax, 0x7d00
jae 0x93016d
cmp eax, 0x500
jb 0x930168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x930075
cmp eax, 0x7f
ja 0x930170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x930075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x93019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x930075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401111
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push str.Globalmercury_9C609760_F80F_423b_A83C_772A38163F65
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
cmp eax, 5
je 0x40113e
call esi
test eax, eax
je 0x40113e
xor eax, eax
jmp 0x401148
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
ret

Function at 0x40114b
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.Globalmercury_9C609760_F80F_423b_A83C_772A38163F65
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
pop esi
ret

Function at 0x4011f5
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1d0]
sub esp, 0x250
mov eax, dword [0x45c530]
xor eax, ebp
mov dword [ebp + 0x1cc], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push str.Globalmercury_9C609760_F80F_423b_A83C_772A38163F65
push 0
mov ebx, 0x1f0001
push ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
call esi
cmp eax, 5
je 0x4012e8
call esi
test eax, eax
je 0x4012e8
and word [ebp - 0x3c], 0
push 0x206
lea eax, [ebp - 0x3a]
push 0
push eax
call fcn.0042c350
add esp, 0xc
push 0x104
lea eax, [ebp - 0x3c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x3c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0042c350
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x70], eax
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x7c], 0x40
mov dword [ebp - 0x6c], str._Service
mov dword [ebp - 0x74], str.open
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x40], 0x1f4
push str.Globalmercury_9C609760_F80F_423b_A83C_772A38163F65
push 0
push ebx
call edi
call esi
cmp eax, 5
je 0x4012e8
call esi
test eax, eax
je 0x4012e8
push 0xa
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4012e8
dec dword [ebp - 0x40]
cmp dword [ebp - 0x40], 0
jg 0x4012b9
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1cc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c3ca
add ebp, 0x1d0
leave
ret
Function at 0x40150c
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x45c530]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call fcn.004014b9
test eax, eax
je 0x401533
xor eax, eax
inc eax
jmp 0x4015d7
push ebx
push esi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20e]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
je 0x4015d3
cmp eax, ebx
je 0x4015d3
push 0xf003f
add eax, eax
push esi
mov word [ebp - 0x210], 0x22
push esi
mov word [ebp + eax - 0x20e], 0x22
mov word [ebp + eax - 0x20c], si
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
jne 0x4015e4
mov ebx, 0x400
push ebx
lea eax, [ebp - 0xa10]
push eax
push 0xd80a
call fcn.0040144e
add esp, 0xc
test eax, eax
jne 0x4015c0
push str.Could_not_open_Service_Manager
lea eax, [ebp - 0xa10]
push ebx
push eax
call fcn.0042c468
push eax
call fcn.00401321
add esp, 0x10
add edi, 0x40
push esi
push edi
lea eax, [ebp - 0xa10]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0042c3ca
leave
ret
push esi
push esi
push str.RPCSS
push esi
push esi
lea eax, [ebp - 0x210]
push eax
push 1
push 3
push 0x10
push 0xf01ff
add edi, 0x40
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, esi
jne 0x401654
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 0x400
push ebx
lea eax, [ebp - 0xa10]
push eax
push 0xd80b
call fcn.0040144e
add esp, 0xc
test eax, eax
jne 0x4015c3
push str.Could_not_start_service
lea eax, [ebp - 0xa10]
push ebx
push eax
call fcn.0042c468
push eax
call fcn.00401321
add esp, 0x10
jmp 0x4015c3
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push ebx
call esi
xor eax, eax
inc eax
jmp 0x4015d5
Function at 0x401668
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
lea ebp, [esp - 0xfac]
mov eax, 0x102c
call fcn.0042c820
mov eax, dword [0x45c530]
xor eax, ebp
mov dword [ebp + 0xfa8], eax
push esi
mov esi, ecx
call fcn.004014b9
test eax, eax
jne 0x401699
inc eax
jmp 0x401846
push ebx
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x64], edi
jne 0x401704
mov edi, 0x400
push edi
lea eax, [ebp + 0x7a8]
push eax
push 0xd80a
call fcn.0040144e
add esp, 0xc
test eax, eax
jne 0x4016ec
push str.Could_not_open_Service_Manager
lea eax, [ebp + 0x7a8]
push edi
push eax
call fcn.0042c468
push eax
call fcn.00401321
add esp, 0x10
push ebx
add esi, 0x40
push esi
lea eax, [ebp + 0x7a8]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x401842
push 0x10020
lea ebx, [esi + 0x40]
push ebx
push edi
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40176b
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, 0x400
push edi
lea eax, [ebp + 0x7a8]
push eax
push 0xd80c
call fcn.0040144e
add esp, 0xc
test eax, eax
jne 0x40175d
push str.Could_not_open_service
lea eax, [ebp + 0x7a8]
push edi
push eax
call fcn.0042c468
push eax
call fcn.00401321
add esp, 0x10
push 0
push ebx
lea eax, [ebp + 0x7a8]
push eax
push 0
jmp 0x4016f9
lea eax, [ebp - 0x80]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, 0x400
jne 0x4017e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x4017e5
cmp eax, 0x425
jne 0x4017a1
cmp dword [ebp - 0x7c], 3
je 0x4017e5
push edi
lea eax, [ebp + 0x7a8]
push eax
push 0xd80e
call fcn.0040144e
add esp, 0xc
test eax, eax
jne 0x4017d5
push str.Could_not_stop_service
lea eax, [ebp + 0x7a8]
push edi
push eax
call fcn.0042c468
push eax
call fcn.00401321
add esp, 0x10
push 0
push dword [ebp - 0x5c]
lea eax, [ebp + 0x7a8]
push eax
push 0
call ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x60], eax
call esi
push dword [ebp - 0x64]
call esi
xor esi, esi
cmp dword [ebp - 0x60], esi
je 0x401809
xor eax, eax
inc eax
jmp 0x401844
push edi
lea eax, [ebp - 0x58]
push eax
push 0xd80d
call fcn.0040144e
add esp, 0xc
test eax, eax
jne 0x401837
push str.Could_not_delete_service
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.0042c468
push eax
call fcn.00401321
add esp, 0x10
push esi
push dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
push eax
push esi
call ebx
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xfa8]
xor ecx, ebp
pop esi
call fcn.0042c3ca
add ebp, 0xfac
leave
ret
Function at 0x401ae6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401b4e
cmp dword [ebp + 0x10], 1
je 0x401b27
cmp dword [ebp + 0x10], 2
je 0x401b27
push 0xd
pop eax
jmp 0x401b4e
test edi, edi
mov eax, dword [ebp - 4]
je 0x401b48
test eax, eax
je 0x401b44
test al, 1
jne 0x401b22
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x401b48
jmp 0x401b22
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x401b54
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x401baa
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x401bc0
push 0x80004005
call fcn.00401309
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401bc3
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x401cea
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x45c530]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push 0xff
push 0x100
push eax
call fcn.0042cb2f
xor edi, edi
add esp, 0x14
cmp dword [esi + 0x260], edi
lea eax, [ebp - 0x204]
mov word [ebp - 6], di
mov dword [ebp - 0x208], eax
jne 0x401d43
push eax
call fcn.0042c84b
pop ecx
add esi, 0x40
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x401d72
push edi
lea eax, [ebp - 0x208]
push eax
push edi
push 1
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042c3ca
leave
ret
Function at 0x402a1a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x45c530]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45dd2c], 0
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], eax
jne 0x402a7a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, 0x44b400
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xc]
push ecx
movsw word es:[edi], word [esi]
push eax
jmp 0x402a6d
push 0x44b3ec
push esi
call fcn.004019b5
pop ecx
pop ecx
test eax, eax
lea eax, [ebp - 0xc]
push eax
push esi
je 0x402a8b
call fcn.00401972
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x402a57
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c3ca
leave
ret
call fcn.00401972
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x402a7a
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.00401972
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x402ada
sub eax, esi
sar eax, 1
dec eax
push eax
push esi
push ebx
call fcn.0042d39e
push 0x20
push ebx
call fcn.0040118e
push dword [ebp + 0x14]
push edi
push dword [ebp - 0x10]
call fcn.0042d39e
push 0x20
push dword [ebp - 0x10]
call fcn.0040118e
add esp, 0x28
jmp 0x402ae7
push dword [ebp + 0xc]
push esi
push ebx
call fcn.0042d39e
add esp, 0xc
xor eax, eax
inc eax
jmp 0x402a7c

Function at 0x402aec
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45c530]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45dd30], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
jne 0x402b4e
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, 0x44b400
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
movsw word es:[edi], word [esi]
call fcn.00401972
pop ecx
pop ecx
pop edi
jmp 0x402b48
push str.ReleaseApp
push esi
call fcn.004019b5
pop ecx
pop ecx
test eax, eax
lea eax, [ebp - 0xc]
push eax
push esi
je 0x402b5e
call fcn.00401972
pop ecx
pop ecx
mov esi, eax
test esi, esi
jne 0x402b2b
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c3ca
leave
ret
call fcn.00401972
test eax, eax
pop ecx
pop ecx
je 0x402b4e
push dword [ebp + 0xc]
push eax
push ebx
call fcn.0042d39e
xor eax, eax
add esp, 0xc
inc eax
jmp 0x402b50