joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470ad0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x58ae5d
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x62d414]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
lea eax, [esi + 0xc]
push eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
call fcn.004765e0
xor eax, eax
mov dword [esp + 0x10], eax
mov byte [esi + 0x30], al
mov byte [esi + 0x31], al
mov dword [esp + 0x10], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 8
Function at 0x482660
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x62d414]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, ecx
cmp dword [esi], 0
push edi
mov edi, edx
je 0x482697
pop edi
pop esi
mov eax, 0xfffffffb
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0051ed00
add esp, 0x24
ret 8
cmp dword [esi + 8], 0
jne 0x48267e
test edi, edi
je 0x482856
mov ecx, dword [esp + 0x34]
test ecx, ecx
jle 0x482856
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
push ebx
mov ebx, eax
mov eax, dword [esi + 4]
sar ebx, 4
sub eax, 0
je 0x4827d9
sub eax, 1
je 0x4826e8
pop ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0051ed00
add esp, 0x24
ret 8
lea eax, [esi + 0xc]
mov dword [esp + 0x10], ebx
test ebx, ebx
jle 0x48273c
mov ecx, dword [eax]
xor ecx, dword [edi]
mov edx, dword [edi + 4]
xor edx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + 8]
xor ecx, dword [eax + 8]
mov dword [esp + 0x24], edx
mov edx, dword [edi + 0xc]
xor edx, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], edx
call fcn.00483150
mov ecx, dword [esp + 0x10]
dec ecx
mov eax, ebp
add edi, 0x10
add ebp, 0x10
mov dword [esp + 0x10], ecx
test ecx, ecx
jg 0x4826f3
mov ecx, dword [esp + 0x38]
shl ebx, 4
mov edx, ebx
mov dword [esp + 0x14], edx
sub edx, ecx
add edx, 0x10
mov ebx, 0x10
sub ebx, edx
mov dword [esp + 0x1c], ebx
test ebx, ebx
jle 0x482789
sub edi, eax
mov dword [esp + 0x18], edi
lea edi, [esp + 0x20]
mov ecx, eax
sub edi, eax
mov dword [esp + 0x10], ebx
jmp 0x482770
mov ebx, dword [esp + 0x18]
mov bl, byte [ebx + ecx]
xor bl, byte [ecx]
inc ecx
sub dword [esp + 0x10], 1
mov byte [edi + ecx - 1], bl
jne 0x482770
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
cmp ecx, 0x10
jge 0x482830
mov edi, eax
lea eax, [esp + 0x20]
sub edi, eax
lea esp, [esp]
lea eax, [edi + ecx]
mov al, byte [esp + eax + 0x20]
xor al, dl
mov byte [esp + ecx + 0x20], al
inc ecx
cmp ecx, 0x10
jl 0x4827a0
push ebp
lea ecx, [esp + 0x24]
call fcn.00483150
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
add eax, 0x10
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0051ed00
add esp, 0x24
ret 8
mov dword [esp + 0x10], ebx
test ebx, ebx
jle 0x482800
push ebp
mov ecx, edi
call fcn.00483150
mov eax, dword [esp + 0x10]
dec eax
add edi, 0x10
add ebp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jg 0x4827e1
mov ecx, dword [esp + 0x38]
shl ebx, 4
mov dword [esp + 0x14], ebx
sub ebx, ecx
add ebx, 0x10
mov ecx, 0x10
sub ecx, ebx
push ecx
lea edx, [esp + 0x24]
push edi
push edx
call sub.MSVCR90.dll_memcpy
push ebx
lea eax, [esp + 0x40]
sub eax, ebx
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0x18
push ebp
lea ecx, [esp + 0x24]
call fcn.00483150
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
add eax, 0x10
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0051ed00
add esp, 0x24
ret 8
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0051ed00
add esp, 0x24
ret 8
Function at 0x482e90
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x2c
mov eax, dword [0x62d414]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
mov ebp, dword [esp + 0x38]
mov edx, dword [ebp + 0x1c]
sub edx, 6
xor eax, eax
cmp edx, eax
push esi
push edi
jle 0x482ebe
mov esi, dword [esp + 0x44]
mov ecx, edx
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp edx, eax
mov dword [esp + 0x10], eax
jle 0x482f08
lea esi, [ecx + 8]
jmp 0x482ed0
mov edi, dword [esp + 0x10]
cmp edi, dword [ebp + 0x1c]
jg 0x482f08
cmp ecx, edx
jge 0x482ef6
lea ecx, [ecx]
cmp eax, 4
jge 0x482ef9
mov ebx, dword [esp + ecx*4 + 0x18]
lea edi, [esi + eax]
inc ecx
inc eax
cmp ecx, edx
mov dword [ebp + edi*4], ebx
jl 0x482ee0
cmp eax, 4
jne 0x482f04
inc dword [esp + 0x10]
add esi, 4
xor eax, eax
cmp ecx, edx
jl 0x482ed0
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebp + 0x1c]
jg 0x483046
mov esi, 0x63b768
jmp 0x482f24
mov esi, dword [esp + 0x14]
movzx edi, byte [esp + edx*4 + 0x15]
mov cl, byte [esp + 0x18]
xor cl, byte [edi + str.cw]
add esi, 4
mov byte [esp + 0x18], cl
movzx edi, byte [esp + edx*4 + 0x16]
movzx ebx, byte [edi + str.cw]
xor byte [esp + 0x19], bl
movzx edi, byte [esp + edx*4 + 0x17]
movzx ebx, byte [edi + str.cw]
xor byte [esp + 0x1a], bl
movzx edi, byte [esp + edx*4 + 0x14]
xor cl, byte [esi - 4]
movzx ebx, byte [edi + str.cw]
xor byte [esp + 0x1b], bl
mov byte [esp + 0x18], cl
mov dword [esp + 0x14], esi
mov ecx, 1
cmp edx, 8
je 0x482f92
cmp edx, ecx
jle 0x482ff3
mov esi, dword [esp + ecx*4 + 0x14]
xor dword [esp + ecx*4 + 0x18], esi
inc ecx
cmp ecx, edx
jl 0x482f83
jmp 0x482ff3
mov esi, dword [esp + ecx*4 + 0x14]
xor dword [esp + ecx*4 + 0x18], esi
inc ecx
cmp ecx, 4
jl 0x482f92
movzx ecx, byte [esp + 0x24]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x28], cl
movzx ecx, byte [esp + 0x25]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x29], cl
movzx ecx, byte [esp + 0x26]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x2a], cl
movzx ecx, byte [esp + 0x27]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x2b], cl
mov ecx, 5
mov esi, dword [esp + ecx*4 + 0x14]
xor dword [esp + ecx*4 + 0x18], esi
inc ecx
cmp ecx, 8
jl 0x482fe5
xor ecx, ecx
test edx, edx
jle 0x483039
mov esi, dword [esp + 0x10]
lea esi, [esi*4 + 8]
mov edi, dword [esp + 0x10]
cmp edi, dword [ebp + 0x1c]
jg 0x483039
cmp ecx, edx
jge 0x483027
cmp eax, 4
jge 0x48302a
mov ebx, dword [esp + ecx*4 + 0x18]
lea edi, [esi + eax]
inc ecx
inc eax
cmp ecx, edx
mov dword [ebp + edi*4], ebx
jl 0x483011
cmp eax, 4
jne 0x483035
inc dword [esp + 0x10]
add esi, 4
xor eax, eax
cmp ecx, edx
jl 0x483004
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebp + 0x1c]
jle 0x482f20
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051ed00
add esp, 0x2c
ret 8
Function at 0x483060
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 1
cmp dword [edx + 0x1c], ecx
jle 0x48314a
push esi
lea eax, [edx + 0x32]
push edi
jmp 0x483080
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x63b368]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x63ab68]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x63af68]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x63a768]
inc ecx
mov dword [eax - 2], esi
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x63b368]
movzx edi, byte [eax + 4]
xor esi, dword [edi*4 + 0x63af68]
movzx edi, byte [eax + 3]
xor esi, dword [edi*4 + 0x63ab68]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x63a768]
add eax, 0x10
mov dword [eax - 0xe], esi
movzx esi, byte [eax - 7]
mov esi, dword [esi*4 + 0x63b368]
movzx edi, byte [eax - 8]
xor esi, dword [edi*4 + 0x63af68]
movzx edi, byte [eax - 9]
xor esi, dword [edi*4 + 0x63ab68]
movzx edi, byte [eax - 0xa]
xor esi, dword [edi*4 + 0x63a768]
mov dword [eax - 0xa], esi
movzx esi, byte [eax - 3]
movzx edi, byte [eax - 4]
mov esi, dword [esi*4 + 0x63b368]
xor esi, dword [edi*4 + 0x63af68]
movzx edi, byte [eax - 5]
xor esi, dword [edi*4 + 0x63ab68]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x63a768]
mov dword [eax - 6], esi
cmp ecx, dword [edx + 0x1c]
jl 0x483080
pop edi
pop esi
ret
Function at 0x483a00
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x1e8
mov eax, dword [0x62d414]
xor eax, esp
mov dword [esp + 0x1e0], eax
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 4]
push esi
lea esi, [edi + 4]
push ecx
mov ecx, esi
call fcn.004853b0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov esi, dword [esi + 0x18]
lea eax, [esp + 8]
push eax
mov dword [esi + 8], esi
mov edx, 2
push 0x101
mov word [edi + 0x24], dx
mov dword [edi + 0x2c], 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x483ab5
push 0x41
push eax
lea ecx, [esp + 0x1a0]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x40
lea edx, [esp + 0x19c]
push edx
call sub.WS2_32.dll_gethostname
lea eax, [esp + 0x198]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x483ab5
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [edi + 0x28], eax
pop esi
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.0051ed00
add esp, 0x1e8
ret
mov ecx, dword [esp + 0x1e4]
pop esi
xor ecx, esp
mov dword [edi + 0x28], 0
call fcn.0051ed00
add esp, 0x1e8
ret
Function at 0x48b020
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x62d414]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
xor esi, esi
cmp dword [0x68cdb8], esi
jne 0x48b071
lea eax, [esp + 8]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x48b08b
mov eax, dword [esp + 8]
cmp al, 1
jne 0x48b086
shr eax, 8
cmp al, 1
jne 0x48b086
mov dword [0x68cdb8], 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.0051ed00
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll_WSACleanup
mov ecx, dword [esp + 0x19c]
pop esi
xor ecx, esp
mov eax, connect
call fcn.0051ed00
mov esp, ebp
pop ebp
ret

Function at 0x48b0b0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x118
push esi
lea eax, [esp + 8]
push eax
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x820
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 0
call sub.WS2_32.dll_select
mov esi, eax
test esi, esi
jge 0x48b12d
cmp dword [0x68cb64], 0
je 0x48b11c
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [0x68cb64]
mov edx, dword [ecx]
push 0
push edi
push ebx
push eax
mov eax, dword [edx]
push str.Socket_error__d_occurred._sock___d._Args:_timeout_s___d__timeout_us___d
push str.dsapiTCPCheckRead
push 3
push ecx
call eax
add esp, 0x20
test esi, esi
jge 0x48b12d
mov eax, connect
pop esi
add esp, 0x118
ret
neg esi
sbb esi, esi
and esi, 0xfffffff7
add esi, 9
mov eax, esi
pop esi
add esp, 0x118
ret

Function at 0x48b150
Capabilities:
Get socket status

Disassembly:
sub esp, 0x110
push ebp
mov ebp, dword [esp + 0x118]
push esi
lea eax, [esp + 8]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x820
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
call sub.WS2_32.dll_select
mov esi, eax
test esi, esi
jge 0x48b1d1
cmp dword [0x68cb64], 0
je 0x48b1bf
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [0x68cb64]
mov edx, dword [ecx]
push edi
push ebx
push ebp
push eax
mov eax, dword [edx]
push str.Socket_error__d_occurred._sock___d__Args:_timeout_s___d__timeout_us___d
push str.dsapiTCPCheckWrite
push 3
push ecx
call eax
add esp, 0x20
test esi, esi
jge 0x48b1d1
mov eax, connect
pop esi
pop ebp
add esp, 0x110
ret
xor eax, eax
test esi, esi
pop esi
sete al
pop ebp
add esp, 0x110
ret
Function at 0x48b1f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, eax
mov ebx, ecx
mov dword [esi], 0
test ebp, ebp
je 0x48b27f
call fcn.0048b0b0
mov ecx, eax
and ecx, 0x80000000
cmp ecx, 0x80000000
je 0x48b281
cmp eax, 1
je 0x48b281
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push 0
mov edx, ebp
sub edx, eax
push edx
add eax, ecx
push eax
push ebx
call sub.WS2_32.dll_recv
test eax, eax
je 0x48b285
jge 0x48b279
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x48b27b
mov ecx, dword [0x68cb64]
test ecx, ecx
je 0x48b26a
mov edx, dword [ecx]
push edi
push ebx
push eax
mov eax, dword [edx]
push str.Socket_error__d_occurred._sock___d__Args:_iTimeout___d
push str.dsapiTCPRead
push 3
push ecx
call eax
add esp, 0x1c
mov dword [esi], 0
mov eax, connect
pop edi
pop ebp
pop ebx
ret
add dword [esi], eax
cmp dword [esi], ebp
jl 0x48b205
xor eax, eax
pop edi
pop ebp
pop ebx
ret
pop edi
pop ebp
mov dword [esi], 0
mov eax, 0x81000007
pop ebx
ret

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

Disassembly:
push ecx
cmp dword [esp + 0x10], 0
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov ebx, eax
mov dword [esi], 0
je 0x48b325
push ebp
xor edi, edi
call fcn.0048b150
mov ecx, eax
and ecx, 0x80000000
add esp, 4
cmp ecx, 0x80000000
je 0x48b327
cmp eax, 1
je 0x48b327
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi]
mov eax, edi
sub eax, ecx
cmp eax, 0x8000
jl 0x48b2ed
mov eax, 0x8000
mov edx, dword [esp + 0x18]
push 0
push eax
add ecx, edx
push ecx
push ebp
call sub.WS2_32.dll_send
test eax, eax
je 0x48b32c
jge 0x48b31f
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x48b321
mov dword [esi], 0
mov eax, connect
pop edi
pop ebp
pop ebx
pop ecx
ret
add dword [esi], eax
cmp dword [esi], edi
jl 0x48b2b7
xor eax, eax
pop edi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop ebp
mov dword [esi], 0
mov eax, 0x81000007
pop ebx
pop ecx
ret
Function at 0x490110
Capabilities:
Hash data with md5

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x10]
xor edx, edx
mov eax, edi
mov byte [esi + 0x68], dl
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, dl
jne 0x490144
sub eax, ebx
push edi
mov ecx, esi
call fcn.0048ff30
call fcn.00490010
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x493f00
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x493f07
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.00493f30
Function at 0x4967c0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x58d319
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x62d414]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [0x63dd80]
push str..PSTServer.cpp
push 0x395
push str.CPSTServer::ShutdownConfigShell
call fcn.0041ac10
lea eax, [esi + 0xa0]
push eax
lea ecx, [esi + 0x2cc]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 0xc
mov dword [esp + 0x30], 0
cmp dword [eax + 0x18], 8
jb 0x496830
mov eax, dword [eax + 4]
jmp 0x496833
add eax, 4
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push edi
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x2a4]
cmp eax, 0xffffffff
je 0x4968b9
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4968ac
mov eax, dword [0x63dd80]
mov ecx, dword [eax]
mov edx, dword [ecx]
push str.Configuration_shell_did_not_shutdown_cleanly___clobbering
push str.CPSTServer::ShutdownConfigShell
push 1
push eax
call edx
mov eax, dword [esi + 0x2a4]
add esp, 0x10
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esi + 0x2a4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x63dd80]
push 0
push 0x5d1d25
push str..PSTServer.cpp
push 0x3b2
push str.CPSTServer::ShutdownConfigShell
call fcn.0041aca0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
Function at 0x496be0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x120
mov eax, dword [0x62d414]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
mov esi, ecx
call fcn.004968f0
test eax, eax
jne 0x496c1b
mov eax, 1
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0051ed00
add esp, 0x120
ret
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x496c8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x28]
push str.Couldnt_open_service_manager._Error__d_occurred.
push eax
mov edx, 0x80
call fcn.004db430
add esp, 0xc
cmp dword [esi + 0xf0], 8
jb 0x496c60
mov esi, dword [esi + 0xdc]
jmp 0x496c66
add esi, 0xdc
push 0
push esi
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0051ed00
add esp, 0x120
ret
push ebp
mov ebp, 8
cmp dword [esi + 0xf0], ebp
jb 0x496ca5
mov eax, dword [esi + 0xdc]
jmp 0x496cab
lea eax, [esi + 0xdc]
push edi
push 0x10020
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x496d0e
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x30]
push str.Couldnt_open_service._Error__d_occurred.
push edx
mov edx, 0x80
call fcn.004db430
add esp, 0xc
cmp dword [esi + 0xf0], ebp
jb 0x496cf4
mov esi, dword [esi + 0xdc]
jmp 0x496cfa
add esi, 0xdc
push 0
push esi
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x496d7c
lea ecx, [esp + 0x10]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebp, eax
test ebp, ebp
jne 0x496d6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x30]
push str.Service_could_not_be_deleted._Error__d_occurred.
push edx
mov edx, 0x80
call fcn.004db430
add esp, 0xc
cmp dword [esi + 0xf0], 8
jb 0x496d58
mov esi, dword [esi + 0xdc]
jmp 0x496d5e
add esi, 0xdc
push 0
push esi
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
mov eax, ebp
mov ecx, dword [esp + 0x12c]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.0051ed00
add esp, 0x120
ret
Function at 0x496fc0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x57e0bd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x62d414]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
mov eax, dword [0x62d414]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov dword [esp + 0x50], 2
xor bl, bl
cmp dword [esp + 0x88], 0
mov dword [esp + 8], 0
jbe 0x497026
push 0x5c
lea ecx, [esp + 0x5c]
call dword [0x59824c]
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x5c]
call dword [0x59825c]
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0x50], 3
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x497049
lea eax, [esp + 0x2c]
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [esp + 0xa4], 0
jbe 0x4970cd
test eax, eax
jne 0x4970cd
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0x50], 4
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x49709d
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x20]
lea edx, [ecx + ecx + 2]
push edx
push eax
mov eax, dword [esp + 0x10]
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4970be
mov bl, 1
mov byte [esp + 0x50], 3
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x50], 2
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x74]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [esp + 0x50], 0xffffffff
lea ecx, [esp + 0x90]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0051ed00
add esp, 0x4c
ret 0x54