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

Disassembly:
mov eax, 0xa8
call fcn.10177830
mov eax, dword [0x101e9008]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
push ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xb4]
push ebp
push esi
mov esi, dword [esp + 0xc4]
xor ebp, ebp
mov eax, dword [eax + 4]
push edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x14], eax
sub eax, edi
mov dword [esp + 0x10], eax
cmp esi, edi
jae 0x101699d6
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.100def60
add esp, 0xc
cmp edi, 0x40
jbe 0x101699f2
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.100def60
add esp, 0xc
lea eax, [esp + 0x34]
neg eax
lea ebx, [esp + 0x34]
and eax, 0x3f
add ebx, eax
lea eax, [edi + 0x100]
mov dword [esp + 0x20], ebx
cmp esi, eax
jbe 0x10169a19
mov ebp, esi
sub ebp, edi
sub ebp, 0x100
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, dword [esp + 0x10]
div edi
push edi
mov esi, edx
push 0
push ebx
mov dword [esp + 0x38], esi
call fcn.1009f7e0
add esp, 0xc
mov dword [esp + 0x18], 0
cmp ebp, dword [esp + 0xc8]
jae 0x10169b11
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov ebx, dword [esp + 0x14]
mov esi, ebx
mov eax, dword [esp + 0xc0]
sub esi, ecx
shr edx, 0x1f
mov dword [esp + 0x1c], edx
mov edx, ebx
shr edx, 0x1f
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], edx
mov edx, ebp
sub edx, ebx
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x20]
add eax, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0x24]
mov ecx, ebp
shr ecx, 0x1f
inc ebp
mov al, cl
xor al, byte [esp + 0x1c]
lea ebx, [ebx + edx]
shr edx, 0x1f
xor dl, byte [esp + 0x14]
shr ebx, 0x1f
xor bl, byte [esp + 0x1c]
or bl, al
mov al, cl
xor al, byte [esp + 0x14]
xor bl, cl
or dl, al
dec bl
mov eax, dword [esp + 0x10]
xor dl, cl
mov ecx, dword [esp + 0x28]
dec dl
not dl
mov al, byte [ecx + eax]
mov ecx, dword [esp + 0x18]
and dl, al
and dl, bl
or byte [ecx + esi], dl
mov edx, ecx
inc edx
mov ecx, edx
mov eax, edx
sub ecx, edi
xor eax, edi
xor ecx, edi
or ecx, eax
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
cmp ebp, dword [esp + 0xc8]
jb 0x10169a90
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
xor edx, edx
test edi, edi
je 0x10169b4a
mov ebp, dword [esp + 0x30]
nop dword [eax + eax]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebx]
movzx eax, byte [esi + ebx]
inc esi
mov byte [edx + ebp], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, edi
jb 0x10169b20
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100531cc
add esp, 0xa8
ret
Function at 0x1016a580
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.10177830
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
inc ebp
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 1
je 0x1016a5c8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
lea eax, [ecx + ebp]
cmp eax, edx
jbe 0x1016a5bb
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub edx, ecx
mov dword [esi + 4], edx
jmp 0x1016a5cd
cmp ebp, dword [esi + 4]
ja 0x1016a5b4
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + eax - 1]
je 0x1016a620
cmp dword [edi + 0x88], 0
jne 0x1016a620
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x101cd00c
push eax
call fcn.100dec90
add esp, 0xc
test eax, eax
jne 0x1016a613
test bl, 1
jne 0x1016a613
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov eax, dword [edi + 0x58]
test byte [eax], 8
je 0x1016a620
test ebx, ebx
je 0x1016a620
dec ebx
mov eax, dword [edi + 0x80]
push dword [eax]
call fcn.100e2700
add esp, 4
test eax, 0x200000
je 0x1016a64a
or eax, 0xffffffff
sub eax, ebx
add dword [esi + 4], eax
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov edi, dword [esi + 4]
lea ecx, [ebx + ebp]
mov edx, edi
mov dword [esp + 0x10], edi
sub edx, ecx
mov eax, edi
xor edx, ecx
xor eax, ecx
or edx, eax
mov ebp, 0xff
xor edx, edi
lea eax, [edi - 1]
shr edx, 0x1f
dec edx
cmp eax, ebp
mov dword [esp + 0x24], edx
cmovb ebp, eax
xor edx, edx
test ebp, ebp
je 0x1016a6cf
mov ecx, ebx
dec edi
shr ecx, 0x1f
add edi, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
nop word [eax + eax]
mov ecx, ebx
lea edi, [edi - 1]
sub ecx, edx
mov eax, edx
shr ecx, 0x1f
inc edx
shr eax, 0x1f
xor cl, al
xor al, byte [esp + 0x18]
or cl, al
movzx eax, byte [edi + 1]
xor cl, byte [esp + 0x18]
xor eax, ebx
dec cl
movzx ecx, cl
and ecx, eax
mov eax, dword [esp + 0x24]
not ecx
and eax, ecx
mov dword [esp + 0x24], eax
cmp edx, ebp
jb 0x1016a690
mov edi, dword [esp + 0x10]
jmp 0x1016a6d3
mov eax, dword [esp + 0x24]
not eax
movzx eax, al
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [ebx + 1]
neg ecx
and eax, ecx
sub edi, eax
shl eax, 8
or dword [esi], eax
mov eax, ecx
pop ebx
mov dword [esi + 4], edi
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebp
pop ecx
ret
Function at 0x1016aaf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.10177830
push ebx
push esi
push edi
lea eax, [esp + 0x10]
xor edi, edi
push eax
lea eax, [esp + 0x10]
xor esi, esi
push eax
push edi
call fcn.10151e10
add esp, 0xc
test eax, eax
je 0x1016ad0b
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
inc edi
shl eax, 0xa
test ebx, eax
lea eax, [esi + 1]
cmove eax, esi
mov esi, eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push edi
call fcn.10151e10
add esp, 0xc
test eax, eax
jne 0x1016ab20
test esi, esi
je 0x1016ad0b
mov eax, dword [esp + 0x54]
cdq
idiv esi
mov edi, dword [esp + 0x60]
cmp esi, 1
push ebp
mov ebp, dword [esp + 0x5c]
mov esi, 0
cmovne esi, dword [esp + 0x58]
push edi
push 0
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
call fcn.1009f7e0
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], 0
push eax
lea eax, [esp + 0x20]
push eax
push 0
call fcn.10151e10
add esp, 0x18
test eax, eax
je 0x1016acd6
mov ebx, dword [esp + 0x60]
nop word [eax + eax]
mov eax, dword [esp + 0x10]
shl eax, 0xa
test dword [esp + 0x28], eax
je 0x1016acb2
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1016ace3
push edi
push ebx
push dword [esp + 0x58]
and esi, 1
push dword [esp + 0x58]
add esi, dword [esp + 0x2c]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push esi
mov esi, dword [esp + 0x88]
push esi
push ecx
call fcn.1016ad30
add esp, 0x3c
test eax, eax
je 0x1016ad01
add esi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x54], esi
test edi, edi
jle 0x1016acae
cmp edi, 0x20
jb 0x1016ac8b
lea eax, [ebx - 1]
lea edx, [ebp - 1]
add eax, edi
add edx, edi
cmp ebp, eax
ja 0x1016ac41
cmp edx, ebx
jae 0x1016ac8b
mov eax, edi
and eax, 0x8000001f
jns 0x1016ac4f
dec eax
or eax, 0xffffffe0
inc eax
mov edx, edi
mov esi, ebx
sub edx, eax
mov eax, ebp
sub esi, ebp
nop dword [eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + ecx + 0x10]
add ecx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x1016ac60
cmp ecx, edi
jge 0x1016acae
mov esi, ebx
lea eax, [ecx + ebp]
mov edx, edi
sub esi, ebp
sub edx, ecx
nop word [eax + eax]
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x1016aca0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
inc eax
push ecx
push eax
mov dword [esp + 0x2c], eax
call fcn.10151e10
add esp, 0xc
test eax, eax
jne 0x1016abb0
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.100d6900
add esp, 0x14
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
push 0x109
push str.._ssl_t1_enc.c
push 0x44
push 0x11c
push 0x14
call fcn.100d6900
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x10177ce0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10177d0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10177d0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10178590
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.100ca460
add esp, 8
test esi, esi
jg 0x101785e7
je 0x101785c9
cmp esi, 0xffffffff
jne 0x101785e7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.101787f0
add esp, 4
test eax, eax
je 0x101785e7
push 0xa
push edi
call fcn.100cab60
add esp, 8
pop edi
mov eax, esi
pop esi
ret

Function at 0x10178950
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
cmp dword [eax], 6
je 0x1017896b
push eax
push esi
call fcn.10179000
add esp, 8
test eax, eax
jle 0x101789b3
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.100ca460
add esp, 8
test edi, edi
jg 0x101789b0
push edi
call fcn.101788b0
add esp, 4
test eax, eax
je 0x101789b0
push 0xa
push esi
call fcn.100cab60
add esp, 8
mov eax, edi
pop edi
pop esi
ret
Function at 0x1017a8c0
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, 1
push edi
push ebx
push esi
call fcn.1017ad80
mov edi, eax
add esp, 8
test edi, edi
jns 0x1017a8fb
push 0x7b
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.100d6900
add esp, 0x14
jmp 0x1017a9bc
call fcn.1017acb0
cmp eax, 1
jne 0x1017a9cc
test edi, edi
jle 0x1017a914
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
push 0x8e
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.100dec20
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x1017a951
push 0x92
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.100d6900
add esp, 0x14
jmp 0x1017a9a2
cmp word [ecx + 8], 2
je 0x1017a972
push 0x99
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.100d6900
add esp, 0x14
jmp 0x1017a9a2
mov eax, dword [ecx + 0xc]
xor ebp, ebp
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebx], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [ebx + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [ebx + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [ebx + 3], al
push 0xa2
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.100dec20
add esp, 0x10
test ebp, ebp
je 0x1017a9d3
push esi
push str.host
push 2
call fcn.100d5f20
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x1017ad30
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x1017ad70
push 0x233
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.100d6900
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x41a000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x41a175
cmp dword [esp + 0x54], 0x40
jne 0x41a175
cmp word [esp + 0x10], 0x5a4d
jne 0x41a175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x41a175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x420960
push esi
call ebx
test eax, eax
je 0x41a175
cmp dword [esp + 0x54], 0xf8
jne 0x41a175
cmp dword [0x420960], 0x4550
jne 0x41a175
mov eax, dword [0x420976]
test ah, 0x20
jne 0x41a175
mov edx, dword [0x420a80]
xor eax, eax
mov ax, word [0x420966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x420a58], eax
je 0x41a175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x420a6c], eax
xor eax, eax
mov ax, word [0x420966]
mov edx, dword [0x420a58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x41a175
cmp dword [esp + 0x54], edi
jne 0x41a175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x420a80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x4209b4]
cmp edx, eax
ja 0x41a175
mov edi, dword [0x420a58]
mov ecx, dword [0x420988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x41a175
xor eax, eax
push 2
mov ax, word [0x420966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x41a175
cmp dword [edi - 0x20], ebx
ja 0x41a175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x41c769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x420190
cmp edx, dword [eax]
je 0x41c78b
add eax, 8
inc ecx
cmp eax, 0x420220
jl 0x41c77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x420190]
jne 0x41c8b9
mov eax, dword [0x420bb0]
cmp eax, 1
je 0x41c893
test eax, eax
jne 0x41c7bc
cmp dword [0x4200e4], 1
je 0x41c893
cmp edx, 0xfc
je 0x41c8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41c7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041d670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041d490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41c836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041d490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41f45c
push edi
call fcn.0041df00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041d670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041d680
lea eax, [ebp - 0xa0]
push 0x41f43c
push eax
call fcn.0041d680
push dword [esi + 0x420194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041d680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041de75
add esp, 0x2c
pop edi
jmp 0x41c8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x420194]
push 0
push eax
push dword [esi]
call fcn.0041d490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4013a0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x108
mov eax, dword [0x435e48]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x401412
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.OpenSCManager_failed__error_code___d
push eax
call fcn.00412760
add esp, 8
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00404c20
call fcn.00402dc0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00412539
add esp, 0x108
ret
push 0
push 0
push 0
push 0
push 0
push 0x439b58
push 1
push 2
push 0x10
push 0xf01ff
push str.Live_Updater_Service
push str.Live_Updater_Service
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x401481
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Live_Updater_Service
lea eax, [esp + 0x1c]
push str.Failed_to_create_service__s__error_code___d
push eax
call fcn.00412760
add esp, 0xc
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00404c20
call fcn.00402dc0
add esp, 4
jmp 0x4014b3
push str.Live_Updater_Service
lea eax, [esp + 0x18]
push str.Service__s_installed
push eax
call fcn.00412760
add esp, 8
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00404c20
call fcn.00402dc0
add esp, 4
push esi
call ebx
push edi
call ebx
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00412539
add esp, 0x108
ret
Function at 0x4014d0
Capabilities:
Delete service

Disassembly:
sub esp, 0x108
mov eax, dword [0x435e48]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x401545
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.OpenSCManager_failed__error_code___d
push eax
call fcn.00412760
add esp, 8
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00404c20
call fcn.00402dc0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00412539
add esp, 0x108
ret
push 0xf01ff
push str.Live_Updater_Service
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x401595
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.OpenService_failed__error_code___d
push eax
call fcn.00412760
add esp, 8
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00404c20
call fcn.00402dc0
add esp, 4
jmp 0x4015d9
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
push str.Live_Updater_Service
lea eax, [esp + 0x18]
jne 0x4015b0
push str.Failed_to_delete_service__s
jmp 0x4015b5
push str.Service__s_removed
push eax
call fcn.00412760
add esp, 8
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00404c20
call fcn.00402dc0
add esp, 4
push esi
call ebx
push edi
call ebx
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00412539
add esp, 0x108
ret
Function at 0x401600
Capabilities:
Stop service

Disassembly:
sub esp, 0x120
mov eax, dword [0x435e48]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x401662
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x30]
push str.OpenSCManager_failed__error_code___d
push eax
call fcn.00412760
add esp, 8
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.00404c20
call fcn.00402dc0
add esp, 4
jmp 0x401724
push 0xf01ff
push str.Live_Updater_Service
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x4016b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x30]
push str.OpenService_failed__error_code___d
push eax
call fcn.00412760
add esp, 8
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.00404c20
call fcn.00402dc0
add esp, 4
jmp 0x401721
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4016ed
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00412539
add esp, 0x120
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x30]
push str.ControlService_failed__error_code___d
push ecx
call fcn.00412760
add esp, 8
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.00404c20
call fcn.00402dc0
add esp, 4
push esi
call ebx
push edi
call ebx
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00412539
add esp, 0x120
ret
Function at 0x401740
Capabilities:
Start service

Disassembly:
sub esp, 0x108
mov eax, dword [0x435e48]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4017a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.OpenSCManager_failed__error_code___d
push eax
call fcn.00412760
add esp, 8
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00404c20
call fcn.00402dc0
add esp, 4
jmp 0x401861
push 0xf01ff
push str.Live_Updater_Service
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x4017f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.OpenService_failed__error_code___d
push eax
call fcn.00412760
add esp, 8
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00404c20
call fcn.00402dc0
add esp, 4
jmp 0x40185e
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x40182a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00412539
add esp, 0x108
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.StartService_failed__error_code___d
push eax
call fcn.00412760
add esp, 8
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00404c20
call fcn.00402dc0
add esp, 4
push esi
call ebx
push edi
call ebx
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00412539
add esp, 0x108
ret