joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481f85
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x48209d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48209d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a5a22
mov esi, eax
test esi, esi
je 0x48209d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x48209d
mov ecx, esi
call fcn.00481e40
cmp edi, eax
jge 0x48209d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x482023
mov dword [esp + 0x34], 1
jmp 0x48207e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x48209d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0047f3b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4875a0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb85318
push 0x4950b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.004937f0
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x487750
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x487791
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x4877fe
cmp dword [esp + 0x1c], 2
jne 0x4877fe
cmp dword [esp + 0x10], 5
jne 0x4877fe
cmp dword [esp + 0x14], 1
jne 0x4877fe
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4877e8
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4877d9
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x4877e1
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x4877fe
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret

Function at 0x487cc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x487d26
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x487d26
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x487d07
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4880b0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4880e8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x488d10
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x488d59
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4891d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b37b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00488d80
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00488e00
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00488e00
lea ecx, [esi + 0xc]
call fcn.004a3f83
lea ecx, [esi + 0x10]
call fcn.004a3f83
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0048a390
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0048a390
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0048a390
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004a3ff8
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004a3ff8
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x48cc00
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0xba011c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x48cc13
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x48cc54
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0xba01c4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x48cc86
mov bl, byte [esp + ecx + 0x4c]
jmp 0x48cc8a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x48cc7b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x48cca8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x48ccac
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x48cc9d
xor ecx, ecx
mov eax, 0xba012c
xor ebx, ebx
mov bl, byte [ecx + 0xba01d4]
cmp byte [esp + ebx + 0x14], 0
je 0x48ccd7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0xba01ec]
cmp byte [esp + ebx + 0x14], 0
je 0x48ccee
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x48ccbe
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x48cc47
lea edx, [esp + 0x84]
push edx
call fcn.0048cd30
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4a63c6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a63fe
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a4453
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a442b
jmp 0x4a640a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a7ab4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a7af6
call fcn.004ad86f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a7af6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a7aed
xor eax, eax
jmp 0x4a7afe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a7b04
pop edi
pop esi
pop ebx
ret 4

Function at 0x4add9f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4addcd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4addeb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004add05
jmp 0x4addeb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4addeb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004add05
test edi, edi
mov eax, edi
jne 0x4addd5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4b6d70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x74000]
push edi
jmp 0x4b6d8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b6d91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b6d80
mov eax, 1
add ebx, ebx
jne 0x4b6da3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b6db4
jne 0x4b6dd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b6dd3
dec eax
add ebx, ebx
jne 0x4b6dc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b6d98
add ebx, ebx
jne 0x4b6dcf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b6e25
xor ecx, ecx
sub eax, 3
jb 0x4b6deb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b6e5a
sar eax, 1
mov ebp, eax
jmp 0x4b6df6
add ebx, ebx
jne 0x4b6df6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b6dc4
inc ecx
add ebx, ebx
jne 0x4b6e04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b6dc4
add ebx, ebx
jne 0x4b6e11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b6e06
jne 0x4b6e22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b6e06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b6e44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b6e36
jmp 0x4b6d86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b6e44
add edi, ecx
jmp 0x4b6d86
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b6e62
cmp byte [edi], 0x13
jne 0x4b6e62
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 0x4b6e67
lea edi, [esi + 0xb2000]
mov eax, dword [edi]
or eax, eax
je 0x4b6edf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbc990]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbcae4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b6e94
mov ecx, edi
jns 0x4b6ec3
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 + 0xbcae8]
or eax, eax
je 0x4b6ed9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b6eb1
call dword [esi + 0xbcaf8]
mov ebp, dword [esi + 0xbcaec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b6f13
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x1001537
Capabilities:
Create thread

Disassembly:
jmp 0x101b4bf
mov edi, edi
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
push edi
xor edi, edi
cmp eax, edi
je 0x101b4e3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], edi
cmp dword [esi + 0x18], edi
jne 0x101b4fe
lea eax, [esi + 0x1c]
push eax
push edi
push esi
push 0x1001028
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
pop edi
xor eax, eax
pop esi
ret

Function at 0x10018ac
Capabilities:
Create thread

Disassembly:
jmp 0x101b479
mov edi, edi
push esi
push edi
mov esi, ecx
xor edi, edi
call fcn.01001645
test eax, eax
je 0x101b4a8
mov ecx, esi
call fcn.010011cc
lea eax, [esi + 0x1c]
push eax
push edi
push esi
push 0x1001028
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
inc edi
mov eax, edi
pop edi
pop esi
ret

Function at 0x1012d36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1026080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.010013bb
mov edi, eax
cmp edi, esi
je 0x1012d98
lea ecx, [ebp - 0x208]
call fcn.01001703
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101cfa4
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1012db6
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.010015b4
cmp eax, esi
jne 0x1012dfe
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x1012da0
lea ecx, [ebp - 0x208]
call fcn.01001703
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.01001703
mov eax, esi
jmp 0x1012d87
Function at 0x1015714
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1026080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 2
push esi
push eax
mov dword [ebp - 0x410], esi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x408], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, esi
mov dword [ebp - 0x40c], eax
jne 0x101576f
call fcn.0100137a
mov esi, eax
jmp 0x101584e
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x1015788
call fcn.0100137a
jmp 0x1015840
push edi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x101577e
push edi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x10157ed
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x10157ca
lea ecx, [ebp - 0x408]
call fcn.01001429
mov esi, 0x8007000e
lea ecx, [ebp - 0x410]
call fcn.010017da
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101cfa4
leave
ret 0x10
push eax
lea ecx, [ebp - 0x408]
call fcn.0100135c
cmp dword [ebp - 0x408], esi
jne 0x1015808
mov esi, 0x8007000e
jmp 0x1015842
push edi
push dword [ebp - 0x408]
push edi
push ebx
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x101577e
mov ecx, dword [ebp - 0x408]
push dword [ebp + 0x14]
mov word [ecx + eax*2], si
push dword [ebp - 0x408]
lea ecx, [ebp - 0x418]
call fcn.0100127b
mov esi, eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x10157cf
lea ecx, [ebp - 0x408]
call fcn.01001429
jmp 0x10157cf

Function at 0x10164df
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x1026080]
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 sub.msvcrt.dll__vsnwprintf_s
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 0x101653b
push eax
call dword [sym.imp.msvcrt.dll__putws]
pop ecx
add esi, 0x40
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x101656a
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.0101cfa4
leave
ret
Function at 0x10166c8
Capabilities:
Create service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x1026080]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call fcn.0100180c
test eax, eax
je 0x10166f1
xor eax, eax
inc eax
jmp 0x101678e
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 0x101678a
cmp eax, ebx
je 0x101678a
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 0x101679b
mov ebx, 0x400
push ebx
lea eax, [ebp - 0xa10]
push eax
push 0xd80a
call fcn.0100116d
test eax, eax
jne 0x1016777
push 0x100b4b8
lea eax, [ebp - 0xa10]
push ebx
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push eax
call fcn.01001889
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.0101cfa4
leave
ret
push esi
push esi
push 0x100b4a8
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 0x1016808
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 0x400
push ebx
lea eax, [ebp - 0xa10]
push eax
push 0xd80b
call fcn.0100116d
test eax, eax
jne 0x101677a
push 0x100b46c
lea eax, [ebp - 0xa10]
push ebx
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push eax
call fcn.01001889
jmp 0x101677a
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push ebx
call esi
xor eax, eax
inc eax
jmp 0x101678c
Function at 0x1016876
Capabilities:
Delete service
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.0101cfc0
mov eax, dword [0x1026080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0100180c
test eax, eax
jne 0x10168a1
inc eax
jmp 0x1016a66
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 - 0x1010], edi
jne 0x101690c
mov edi, 0x400
push edi
lea eax, [ebp - 0x804]
push eax
push 0xd80a
call fcn.0100116d
test eax, eax
jne 0x10168f4
push 0x100b4b8
lea eax, [ebp - 0x804]
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push eax
call fcn.01001889
push ebx
add esi, 0x40
push esi
lea eax, [ebp - 0x804]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1016a62
push 0x10020
lea ebx, [esi + 0x40]
push ebx
push edi
mov dword [ebp - 0x1008], ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x1016973
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, 0x400
push edi
lea eax, [ebp - 0x804]
push eax
push 0xd80c
call fcn.0100116d
test eax, eax
jne 0x1016965
push 0x100b578
lea eax, [ebp - 0x804]
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push eax
call fcn.01001889
push 0
push ebx
lea eax, [ebp - 0x804]
push eax
push 0
jmp 0x1016901
lea eax, [ebp - 0x102c]
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 0x10169f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x10169f3
cmp eax, 0x425
jne 0x10169af
cmp dword [ebp - 0x1028], 3
je 0x10169f3
push edi
lea eax, [ebp - 0x804]
push eax
push 0xd80e
call fcn.0100116d
test eax, eax
jne 0x10169e0
push 0x100b540
lea eax, [ebp - 0x804]
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push eax
call fcn.01001889
push 0
push dword [ebp - 0x1008]
lea eax, [ebp - 0x804]
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 - 0x100c], eax
call esi
push dword [ebp - 0x1010]
call esi
xor esi, esi
cmp dword [ebp - 0x100c], esi
je 0x1016a20
xor eax, eax
inc eax
jmp 0x1016a64
push edi
lea eax, [ebp - 0x1004]
push eax
push 0xd80d
call fcn.0100116d
test eax, eax
jne 0x1016a51
push 0x100b504
lea eax, [ebp - 0x1004]
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
push eax
call fcn.01001889
push esi
push dword [ebp - 0x1008]
lea eax, [ebp - 0x1004]
push eax
push esi
call ebx
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0101cfa4
leave
ret