joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f776
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x44f7a4
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x44f7ab
cmp ebx, dword [eax + 4]
jae 0x44f7ab
xor eax, eax
jmp 0x44f99b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x44f7bc
xor eax, eax
inc eax
jmp 0x44f99a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x44f7d2
cmp ecx, edx
jae 0x44f917
cmp dword [eax + 4], 0
je 0x44f7db
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x44f7c3
cmp dword [ebp + 8], 0
je 0x44f7fd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x44f917
cmp eax, esi
jae 0x44f917
mov eax, dword [0x4638b8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x44f822
cmp dword [esi*4 + 0x4638c0], edi
je 0x44f91b
inc esi
cmp esi, eax
jl 0x44f810
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x44f997
cmp dword [ebp - 8], 0x1000000
jne 0x44f997
test byte [ebp - 0xc], 0xcc
je 0x44f8a0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x44f997
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x44f997
cmp word [eax + 0x18], 0x10b
jne 0x44f997
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x44f997
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x44f8a0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x44f8a0
test byte [ecx + 0x27], 0x80
jne 0x44f917
push 1
push 0x463900
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x44f7b4
mov ecx, dword [0x4638b8]
test ecx, ecx
mov edx, ecx
jle 0x44f8d4
lea eax, [ecx*4 + 0x4638bc]
cmp dword [eax], edi
je 0x44f8d4
dec edx
sub eax, 4
test edx, edx
jg 0x44f8c8
test edx, edx
jne 0x44f905
push 0xf
pop ebx
cmp ecx, ebx
jg 0x44f8e1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x44f8f9
lea eax, [edx*4 + 0x4638c0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x44f8e7
cmp ecx, 0x10
jge 0x44f905
inc ecx
mov dword [0x4638b8], ecx
push 0
push 0x463900
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x44f7b4
xor eax, eax
jmp 0x44f99a
test esi, esi
jle 0x44f7b4
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x463900
call ebx
test eax, eax
jne 0x44f7b4
cmp dword [esi*4 + 0x4638c0], edi
je 0x44f971
mov eax, dword [0x4638b8]
lea esi, [eax - 1]
test esi, esi
jl 0x44f95f
cmp dword [esi*4 + 0x4638c0], edi
je 0x44f95b
dec esi
jns 0x44f94f
test esi, esi
jge 0x44f96f
cmp eax, 0x10
jge 0x44f96a
inc eax
mov dword [0x4638b8], eax
lea esi, [eax - 1]
jmp 0x44f971
je 0x44f989
xor ecx, ecx
test esi, esi
jl 0x44f989
lea eax, [ecx*4 + 0x4638c0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x44f977
push 0
push 0x463900
call ebx
jmp 0x44f7b4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x451770
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x463988], ebx
push esi
push edi
jne 0x4517f0
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45182b
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x459144
push edi
call esi
test eax, eax
mov dword [0x463988], eax
je 0x45182b
push 0x459134
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x46398c], eax
call esi
cmp dword [0x4634ec], 2
mov dword [0x463990], eax
jne 0x4517f0
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x463998], eax
je 0x4517f0
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x463994], eax
mov eax, dword [0x463994]
test eax, eax
je 0x451835
call eax
test eax, eax
je 0x45181c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x463998]
test eax, eax
je 0x45181c
test byte [ebp - 8], 1
jne 0x451835
cmp dword [0x4634f8], 4
jb 0x45182f
or byte [ebp + 0x12], 0x20
jmp 0x451854
xor eax, eax
jmp 0x451864
or byte [ebp + 0x12], 4
jmp 0x451854
mov eax, dword [0x46398c]
test eax, eax
je 0x451854
call eax
mov ebx, eax
test ebx, ebx
je 0x451854
mov eax, dword [0x463990]
test eax, eax
je 0x451854
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x463988]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x452997
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0044f5b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x452a32
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4634ec]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x452a32
cmp eax, 1
je 0x452a53
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x452a32
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4529ff
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x452a2e
xor eax, eax
inc eax
jmp 0x452a72
cmp edi, eax
jae 0x452a36
xor eax, eax
jmp 0x452a72
cmp eax, esi
jae 0x452a3d
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x4634ec]
jmp 0x452a56
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x452af9
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0044f5b0
mov eax, dword [0x461a50]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0044c674
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x452c2e
push 2
push esi
push dword [ebp + 8]
call fcn.0044c674
add esp, 0xc
cmp eax, ebx
je 0x452c2e
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x452bce
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004466a0
push 0x8000
push dword [ebp + 8]
call fcn.00447e04
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x452b84
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0044cd4a
add esp, 0xc
cmp eax, 0xffffffff
je 0x452ba4
sub edi, eax
test edi, edi
jg 0x452b7c
jmp 0x452bbc
call fcn.0044b6ab
cmp dword [eax], 5
jne 0x452bb9
call fcn.0044b6a2
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00447e04
pop ecx
pop ecx
jmp 0x452c16
jge 0x452c16
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044c674
push dword [ebp + 8]
call fcn.0044cacb
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x452c16
call fcn.0044b6a2
mov dword [eax], 0xd
call fcn.0044b6ab
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0044c674
add esp, 0xc
mov eax, esi
pop edi
jmp 0x452c30
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c7c4
leave
ret
Function at 0x453555
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x45356e
or eax, 0xffffffff
jmp 0x4535cf
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4535cb
push 0x3d
push esi
call fcn.00453756
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4535cb
cmp esi, eax
je 0x4535cb
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x46350c]
sete cl
cmp eax, dword [0x463510]
mov dword [ebp - 4], ecx
jne 0x4535b1
mov edi, eax
call fcn.004534f4
mov dword [0x46350c], eax
cmp eax, ebx
jne 0x45360a
cmp dword [ebp + 0xc], ebx
je 0x4535d3
cmp dword [0x463514], ebx
je 0x4535d3
call fcn.00452c8c
test eax, eax
je 0x45360a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x4535dc
xor eax, eax
jmp 0x4535ce
push 4
call fcn.00446c0f
cmp eax, ebx
pop ecx
mov dword [0x46350c], eax
je 0x4535cb
mov dword [eax], ebx
cmp dword [0x463514], ebx
jne 0x45360a
push 4
call fcn.00446c0f
cmp eax, ebx
pop ecx
mov dword [0x463514], eax
je 0x4535cb
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x46350c]
sub edi, esi
push esi
call fcn.004534a7
mov edi, eax
test edi, edi
pop ecx
jl 0x453671
cmp dword [ebx], 0
je 0x453671
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00446c21
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x453651
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4536b2
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x453648
mov eax, edi
shl eax, 2
push eax
push dword [0x46350c]
call fcn.00449541
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4536b2
jmp 0x4536ad
cmp dword [ebp - 4], 0
jne 0x453719
test edi, edi
jge 0x453681
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x46350c]
call fcn.00449541
test eax, eax
pop ecx
pop ecx
je 0x4535cb
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x46350c], eax
cmp dword [ebp + 0xc], 0
je 0x453704
push esi
call fcn.00446710
inc eax
inc eax
push eax
call fcn.00446c0f
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x453704
push esi
push edi
call fcn.00446290
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
jne 0x4536fd
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00446c21
pop ecx
cmp dword [ebp - 4], 0
je 0x453711
push esi
call fcn.00446c21
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4535ce
push esi
call fcn.00446c21
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x4535d8
Function at 0x10001c30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x10001c50
mov dl, byte [ecx + eax]
xor dl, 0x2a
sub dl, 0x6b
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x10001c3f
pop esi
ret
Function at 0x40117f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
jne 0x401198
push 0x80004005
call fcn.00401099
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, ebx
je 0x401207
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x401202
cmp dword [ebp + 0x10], ebx
jbe 0x4011f8
cmp dword [ebp + 0x10], 2
jbe 0x4011ea
cmp dword [ebp + 0x10], 7
jne 0x4011f8
test cl, 1
jne 0x4011f8
shr ecx, 1
cmp ecx, 1
jb 0x4011f8
cmp word [esi + ecx*2 - 2], bx
jne 0x4011f8
cmp ecx, 1
jbe 0x401207
cmp word [esi + ecx*2 - 4], bx
jmp 0x4011f6
test cl, 1
jne 0x4011f8
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x401207
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x401207
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x406502
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2020
call fcn.0042c4a0
mov eax, dword [0x471188]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x2004]
push eax
call fcn.0042c295
lea eax, [ebp - 0x2004]
xor esi, esi
mov dword [ebp - 0x200c], eax
lea eax, [ebp - 0x2008]
push eax
mov dword [ebp - 0x2020], esi
mov dword [ebp - 0x201c], esi
mov dword [ebp - 0x2018], esi
mov dword [ebp - 0x2014], esi
mov dword [ebp - 0x2010], esi
mov dword [ebp - 0x2008], esi
call fcn.0040606e
add esp, 0x10
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
cmp edi, esi
je 0x4065a8
push esi
lea eax, [ebp - 0x200c]
push eax
push esi
push 1
push dword [ebp - 0x2008]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
cmp dword [ebp - 0x2008], esi
pop edi
pop esi
je 0x4065be
push dword [ebp - 0x2008]
call fcn.0042c388
pop ecx
lea ecx, [ebp - 0x2020]
call fcn.0040603f
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bc84
leave
ret
Function at 0x4066a6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x664
mov eax, 0x44d595
call fcn.0042bd32
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x608], eax
lea eax, [ebp - 0x66c]
xor edi, edi
push eax
mov dword [ebp - 0x60c], edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [ebp - 4], edi
mov dword [ebp - 0x618], edi
mov dword [ebp - 0x614], edi
mov dword [ebp - 0x610], edi
mov esi, dword [esi]
mov byte [ebp - 4], 2
cmp esi, edi
je 0x4066fc
mov esi, dword [esi]
jmp 0x4066fe
xor esi, esi
push esi
push 0x454e70
lea eax, [ebp - 0x21c]
push str._s_s
push eax
call fcn.0042bd9d
add esp, 0x10
push 0x20019
lea eax, [ebp - 0x21c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x618]
call fcn.0040113c
cmp eax, edi
je 0x406771
jle 0x406744
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x63c], 0x455004
mov dword [ebp - 0x634], edi
mov dword [ebp - 0x630], edi
push 0x4687bc
lea eax, [ebp - 0x63c]
push eax
call fcn.0042b381
mov eax, dword [ebx]
cmp eax, edi
je 0x40677b
mov eax, dword [eax]
jmp 0x40677d
xor eax, eax
lea ecx, [ebp - 0x61c]
push ecx
lea ecx, [ebp - 0x604]
push ecx
lea ecx, [ebp - 0x60c]
push ecx
push edi
push eax
push dword [ebp - 0x618]
mov dword [ebp - 0x61c], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x4067e3
jle 0x4067ba
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x64c], 0x455004
mov dword [ebp - 0x644], edi
mov dword [ebp - 0x640], edi
push 0x4687bc
lea eax, [ebp - 0x64c]
jmp 0x40676b
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x60c]
dec eax
mov byte [ebp - 4], 3
je 0x40684a
sub eax, 3
je 0x406832
mov dword [ebp - 0x65c], 0x455004
mov dword [ebp - 0x658], 0x80004005
mov dword [ebp - 0x654], edi
mov dword [ebp - 0x650], edi
push 0x4687bc
lea eax, [ebp - 0x65c]
jmp 0x40676b
push 3
pop eax
mov word [ebp - 0x62c], ax
mov eax, dword [ebp - 0x604]
mov dword [ebp - 0x624], eax
jmp 0x40685c
lea eax, [ebp - 0x604]
push eax
lea ecx, [ebp - 0x62c]
call fcn.004063de
mov ecx, dword [ebp - 0x608]
lea eax, [ebp - 0x62c]
push eax
call fcn.00405e62
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x62c]
push eax
call esi
lea ecx, [ebp - 0x618]
call fcn.00401121
lea eax, [ebp - 0x66c]
push eax
call esi
jmp 0x4068b6
mov eax, dword [ebp - 0x608]
call fcn.0042bd8e
ret
Function at 0x419cb3
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x471188]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00419c75
test eax, eax
je 0x419cda
xor eax, eax
inc eax
jmp 0x419d87
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x210], eax
cmp eax, edi
jne 0x419d09
push edi
add esi, 0x30
push esi
push str.Couldnt_open_service_manager
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x419d86
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push edi
push str.RPCSS
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push 1
push 2
push 0x10
push 0xf01ff
lea ebx, [esi + 0x30]
add esi, 0x230
push esi
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, edi
jne 0x419d71
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
push ebx
push 0x458d20
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x419d85
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push dword [ebp - 0x210]
call esi
xor eax, eax
inc eax
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042bc84
leave
ret

Function at 0x419d94
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x471188]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00419c75
test eax, eax
jne 0x419db6
inc eax
jmp 0x419e40
push ebx
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, edi
jne 0x419dda
push edi
add esi, 0x30
push esi
push str.Couldnt_open_service_manager
push edi
jmp 0x419e36
push 0x10020
lea edi, [esi + 0x30]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x419e01
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push edi
push str.Couldnt_open_service
push esi
jmp 0x419e36
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x24], eax
call esi
push ebx
call esi
xor eax, eax
cmp dword [ebp - 0x24], eax
je 0x419e2e
inc eax
jmp 0x419e3e
push eax
push edi
push str.Service_could_not_be_deleted
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042bc84
leave
ret
Function at 0x41a37a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jne 0x41a390
push 0x80004005
call fcn.00401099
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 0x14]
je 0x41a3a3
cmp eax, 0xffffffff
jne 0x41a3b2
push 0x57
pop eax
jmp 0x41a3d3
cmp eax, 0xffffffff
jne 0x41a3b2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
push dword [ebp + 8]
xor eax, eax
cmp byte [ebp + 0x10], al
sete al
dec eax
and eax, 6
inc eax
push eax
push 0
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop ebp
ret 0x10

Function at 0x41b196
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x471188]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.0040113c
mov ebx, eax
cmp ebx, esi
je 0x41b207
lea ecx, [ebp - 0x214]
call fcn.00401121
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bc84
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x41b225
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0041b196
cmp eax, esi
jne 0x41b26c
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call ebx
test eax, eax
je 0x41b20f
lea ecx, [ebp - 0x214]
call fcn.00401121
push dword [ebp - 0x218]
mov ecx, edi
call fcn.0041a2ea
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00401121
mov eax, esi
jmp 0x41b1f6
Function at 0x41b63c
Capabilities:
Delete registry key
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x471188]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
xor ebx, ebx
lea eax, [ebp - 0x250]
push str.SYSTEMCurrentControlSetServicesEventLogApplication_s
push eax
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ebx
call fcn.0042bd9d
add esp, 0xc
lea ecx, [ebp - 0x25c]
cmp dword [ebp + 0xc], ebx
je 0x41b6f5
push edi
push ebx
push ebx
push 0x2001f
push ebx
push ebx
lea eax, [ebp - 0x250]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0041a31e
push 0x11
pop ecx
push 0x8a
lea eax, [ebp - 0x48]
push eax
push 2
push ebx
push str.EventMessageFile
push dword [ebp - 0x25c]
mov esi, str._SYSTEMROOT_SYSTEM32VWEVLOG.DLL
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call esi
push 4
lea eax, [ebp - 0x260]
push eax
push 4
push ebx
push str.TypesSupported
push dword [ebp - 0x25c]
mov dword [ebp - 0x260], 0x1f
call esi
pop edi
jmp 0x41b729
push 0x2001f
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040113c
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x25c]
cmp ecx, ebx
je 0x41b723
call fcn.0041a17a
jmp 0x41b729
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x25c]
mov esi, eax
call fcn.00401121
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bc84
leave
ret