joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a450
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x467a98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00460c55
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00439df0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00460b83
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045d447
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045d447
push 1
push 0
push 0
mov ecx, esi
call fcn.0045d3ef
push 1
push 0
push 1
mov ecx, esi
call fcn.0045d3ef
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00460cc7
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43a5d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x467ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00460c55
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00439df0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00460b83
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43a694
cmp dword [esp + 0x40], 1
jne 0x43a692
cmp ecx, eax
jge 0x43a694
mov eax, ecx
cmp eax, 0xc8
jge 0x43a6a0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043a450
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00460cc7
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43ae20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x467b23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045b868
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00460efd
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00462419
test eax, eax
je 0x43af3c
mov ecx, dword [esp + 0x3c]
call fcn.00460f2a
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43af00
push edi
mov ecx, esi
call fcn.0045e592
mov ecx, esi
call fcn.0043b0a0
cmp dword [esp + 0x38], 1
jne 0x43af35
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045e6cd
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43d960
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43d993
push esi
call fcn.00440a50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43d98c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43da19
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43da02
mov eax, dword [esi + 8]
test eax, eax
je 0x43d9b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43d9fe
cmp eax, 2
je 0x43da02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43d9aa
cmp eax, 3
je 0x43d9dd
cmp eax, 1
jne 0x43d9aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43d9aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43d9aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043da40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43da28
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043da40
add esp, 4
pop esi
ret

Function at 0x45c65d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45c695
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.0045a711
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045a6e9
jmp 0x45c6a1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45dd4f
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 0x45dd91
call fcn.004637ff
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45dd91
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45dd88
xor eax, eax
jmp 0x45dd99
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045dd9f
pop edi
pop esi
pop ebx
ret 4

Function at 0x463d2f
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 0x463d5d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x463d7b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00463c95
jmp 0x463d7b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x463d7b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00463c95
test edi, edi
mov eax, edi
jne 0x463d65
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405ccc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x405d13
cmp edx, 0x10
jl 0x405cff
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x405cec
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x405d13
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x405d0b
and edx, 3
cmp edx, 3
jne 0x405d27
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x405d2c
cmp edx, 2
jne 0x405d38
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x405d3d
cmp edx, 1
jne 0x405d43
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x406970
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, 0x8000
xor cx, cx
push edi
mov edi, dword [esp + 0xc]
mov word [edi + 0x3c], ax
mov esi, dword [edi + 0x14]
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], eax
movzx eax, cx
inc cx
xor edx, edx
mov dl, byte [eax + esi + 0x8000]
mov eax, dword [edi + 0x20]
shl eax, 5
xor edx, eax
and edx, 0x7fff
cmp cx, 2
mov dword [edi + 0x20], edx
jb 0x40698f
pop edi
pop esi
ret
Function at 0x401600
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
sub esp, 0x1a0
lea eax, [esp + 0x10]
push esi
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x43bea8
call esi
push 0x43be90
call esi
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
test esi, esi
jge 0x401646
or eax, 0xffffffff
pop esi
add esp, 0x1a0
ret
mov eax, dword [esp + 0x1ac]
push edi
mov edi, dword [esp + 0x1ac]
test edi, edi
ja 0x40165e
test ax, ax
jbe 0x4016a6
xor ecx, ecx
push eax
mov dword [esp + 0xc], ecx
mov word [esp + 0xc], 2
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
call sub.WSOCK32.dll_htons
push edi
mov word [esp + 0xe], ax
call sub.WSOCK32.dll_htonl
lea edx, [esp + 8]
push 0x10
push edx
push esi
mov dword [esp + 0x18], eax
call sub.WSOCK32.dll_bind
test eax, eax
jge 0x4016a6
push esi
call sub.WSOCK32.dll_closesocket
or esi, 0xffffffff
mov eax, esi
pop edi
pop esi
add esp, 0x1a0
ret

Function at 0x4016c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x20]
lea eax, [esp]
push esi
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push 0
push edx
push eax
push ecx
mov dword [esp + 0x1c], 0x10
call sub.WSOCK32.dll_recvfrom
mov esi, eax
test esi, esi
jge 0x4016f7
pop esi
add esp, 0x14
ret
test esi, esi
push edi
jle 0x401725
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x401710
mov edx, dword [esp + 0x10]
push edx
call sub.WSOCK32.dll_ntohl
mov dword [edi], eax
mov edi, dword [esp + 0x30]
test edi, edi
je 0x401725
mov eax, dword [esp + 0xe]
push eax
call sub.WSOCK32.dll_ntohs
mov word [edi], ax
mov eax, esi
pop edi
pop esi
add esp, 0x14
ret

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

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp], eax
push ecx
mov dword [esp + 8], eax
mov word [esp + 4], 2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
call sub.WSOCK32.dll_htons
mov edx, dword [esp + 0x20]
mov word [esp + 2], ax
push edx
call sub.WSOCK32.dll_htonl
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 4], eax
lea eax, [esp]
push 0x10
push eax
mov eax, dword [esp + 0x1c]
push 0
push ecx
push edx
push eax
call sub.WSOCK32.dll_sendto
add esp, 0x10
ret

Function at 0x401990
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x100
lea eax, [esp + 0x108]
lea edx, [esp]
push eax
push ecx
push edx
call fcn.00404dea
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x100
ret

Function at 0x4019f0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi], 0
jne 0x401a0b
mov eax, dword [esp + 0xc]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
mov ecx, dword [esi]
push 0xf4240
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
ret
Function at 0x4033b0
Capabilities:
Create thread

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
push edi
push ebx
call fcn.004021d0
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x48]
xor edx, edx
mov dword [ebx + 4], eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebx + 8], edx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [ebx + 0x6298]
mov eax, ecx
mov esi, edi
mov edi, ebp
mov dword [esp + 0x38], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x40]
lea ecx, [ebx + 0x1f82]
mov dword [ebx + 0x6fa4], edx
lea esi, [ebx + 0x20a4]
mov dword [esp + 0x34], ecx
jmp 0x403423
xor edx, edx
cmp dword [esi + 0x58], edx
je 0x40344d
mov edx, dword [esp + 0x34]
cmp word [edx], 3
jne 0x403436
push 1
jmp 0x40343b
mov edx, dword [esp + 0x48]
push edx
mov eax, dword [esp + 0x40]
push 1
push ebp
push edi
lea ecx, [esi - 0x54]
push eax
push ecx
call dword [esi]
add esp, 0x18
cmp eax, 1
je 0x403527
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
inc ecx
add edx, 4
add esi, 0x1618
cmp ecx, 3
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
jl 0x403421
cmp eax, 1
jne 0x4035ab
movsx eax, word [ebx + 0x12]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
shl edx, 5
add edx, eax
lea eax, [eax + edx*2]
shl eax, 3
mov edx, dword [eax + ebx + 0x2100]
lea ecx, [edx*8]
sub ecx, edx
lea edx, [ecx + ecx*2]
or ecx, 0xffffffff
shl edx, 4
add eax, edx
lea ebp, [eax + ebx + 0x2144]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx eax, word [ebx + 0x12]
xor esi, esi
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*2]
shl ecx, 5
add ecx, eax
lea eax, [eax + ecx*2]
lea ecx, [edx + eax*8]
mov dword [ecx + ebx + 0x2244], esi
movsx eax, word [ebx + 0x12]
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*2]
shl ecx, 5
add ecx, eax
lea eax, [eax + ecx*2]
lea ecx, [edx + eax*8]
mov edx, dword [esp + 0x3c]
mov dword [ecx + ebx + 0x2250], edx
movsx eax, word [ebx + 0x12]
sub eax, esi
je 0x40353b
dec eax
je 0x403535
dec eax
jne 0x403547
mov word [ebx + 0x14], si
mov word [ebx + 0x16], 1
jmp 0x403547
mov dx, word [esp + 0x38]
mov word [ebx + 0x12], dx
jmp 0x40347e
mov word [ebx + 0x14], si
jmp 0x403541
mov word [ebx + 0x14], 1
mov word [ebx + 0x16], 2
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x6f98], esi
cmp eax, esi
mov dword [ebx + 0x6f9c], eax
mov dword [ebx + 0x6fa0], esi
mov dword [ebx + 0x6fa8], 1
je 0x403586
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.00402a40
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push esi
push esi
push ebx
push 0x403360
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x20
ret
Function at 0x403d80
Capabilities:
Create service
Persist via windows service

Disassembly:
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x403dd6
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edi
push 0
mov edx, dword [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x403dd2
push eax
call edi
push esi
call edi
pop edi
pop esi
ret

Function at 0x403de0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x403ebb
mov eax, dword [esp + 8]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x403eb3
push 0x455380
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x403e83
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x455380
push esi
call ebx
test eax, eax
je 0x403e65
cmp dword [0x455384], 3
jne 0x403e65
push 0x3e8
call edi
push 0x455380
push esi
call ebx
test eax, eax
jne 0x403e49
mov eax, dword [0x455384]
pop edi
cmp eax, 1
pop ebx
je 0x403e83
mov ecx, dword [esp + 0xc]
push ecx
push str.Service__s_stop_failure_
call fcn.004052a8
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x403e9a
mov edx, dword [esp + 0xc]
push edx
push str.Service__s_remove_failure_
jmp 0x403ea4
mov eax, dword [esp + 0xc]
push eax
push str.Service__s_removed__
call fcn.004052a8
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret

Function at 0x4042e0
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
xor ebp, ebp
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x404372
mov eax, dword [esp + 0x28]
push esi
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x404362
push edi
push ebp
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x40435a
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
je 0x40434c
mov eax, dword [esp + 0x14]
cmp eax, 4
je 0x404355
cmp eax, 1
je 0x404350
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x404332
mov eax, dword [esp + 0x14]
cmp eax, 4
jne 0x40435a
mov ebp, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x40e240
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [esp + 0x10], 4
mov edi, ebp
mov dword [esp + 0x1c], 8
xor bl, bl
mov dl, byte [edi]
mov al, byte [esi]
mov cl, bl
xor cl, 7
shr dl, cl
mov cl, al
shr cl, 7
and dl, 1
xor dl, cl
je 0x40e286
mov cl, byte [esi + 4]
mov dl, 0x64
sub dl, al
mov byte [esi], cl
mov byte [esi + 4], dl
jmp 0x40e2a7
push 1
push 1
push eax
call fcn.0040e020
add esp, 8
dec al
push eax
call fcn.0040e020
mov cl, byte [esi + 4]
add esp, 8
dec al
xor al, cl
mov byte [esi], al
push esi
call fcn.0040e050
add esp, 4
inc bl
cmp bl, 8
jb 0x40e261
mov eax, dword [esp + 0x1c]
inc edi
dec eax
mov dword [esp + 0x1c], eax
jne 0x40e25f
mov ecx, esi
mov eax, ebp
sub ecx, ebp
mov edi, 8
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec edi
jne 0x40e2ce
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x40e255
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40ee10
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
shl ecx, 4
push edi
mov ebp, 4
lea edi, [ecx + edx]
mov ecx, edi
mov esi, 4
mov dl, byte [ecx]
mov bl, byte [eax]
xor bl, dl
add ecx, 4
mov byte [eax], bl
inc eax
dec esi
jne 0x40ee32
inc edi
dec ebp
jne 0x40ee2b
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40eee0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
mov ecx, eax
push ebp
push esi
mov ebp, 0xfffffff8
mov edx, dword [ecx]
push edi
mov dword [esp + 0x10], edx
lea edi, [esp + 0x10]
mov edx, dword [ecx + 4]
lea esi, [eax + 8]
mov dword [esp + 0x14], edx
sub ebp, eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x18], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x1c], ecx
mov al, byte [edi + 4]
mov bl, byte [edi]
push eax
call fcn.0040ed90
mov dl, al
push ebx
mov byte [esp + 0x2c], dl
call fcn.0040ed70
mov dl, byte [esp + 0x2c]
mov bl, byte [edi + 8]
xor dl, al
mov al, byte [edi + 0xc]
xor dl, bl
xor dl, al
mov al, byte [edi + 4]
push eax
mov byte [esi - 8], dl
call fcn.0040ed70
mov dl, al
push ebx
mov byte [esp + 0x34], dl
call fcn.0040ed90
mov cl, byte [esp + 0x34]
mov bl, byte [edi + 0xc]
xor cl, al
mov al, byte [edi]
xor cl, bl
xor cl, al
mov al, byte [edi + 8]
push eax
mov byte [esi - 4], cl
call fcn.0040ed70
mov dl, al
push ebx
mov byte [esp + 0x3c], dl
call fcn.0040ed90
mov dl, byte [esp + 0x3c]
mov cl, byte [edi + 4]
mov bl, byte [edi]
xor dl, al
mov al, byte [edi + 0xc]
xor dl, cl
xor dl, bl
push eax
mov byte [esi], dl
call fcn.0040ed70
mov dl, al
push ebx
mov byte [esp + 0x44], dl
call fcn.0040ed90
mov cl, byte [esp + 0x44]
mov bl, byte [edi + 8]
xor cl, al
mov al, byte [edi + 4]
xor cl, al
add esp, 0x20
xor cl, bl
mov byte [esi + 4], cl
inc esi
inc edi
lea edx, [esi + ebp]
cmp edx, 4
jl 0x40ef16
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x40130a
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x401d7c
call fcn.004019c0
sub esp, 0x320
push ebx
mov dword [ebp - 0x18], ecx
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.0040194e
xor esi, esi
push str.SOFTWARE_
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x104
call sub.MFC42.DLL_CString::operator
push str.UMSD
lea ecx, [ebp - 0x10]
call fcn.0040197e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0xf003f
push esi
push 0x4032c4
push esi
push dword [ebp - 0x10]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x124]
push eax
push esi
push esi
push str.DesPath
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x124]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x4014a7
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x124]
push str.Setting.dll
push eax
lea eax, [ebp - 0x32c]
push 0x403168
push eax
call edi
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea eax, [ebp - 0x32c]
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push eax
call ebx
cmp eax, 0xffffffff
je 0x4014a7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x124]
push str.AdvDrvIns.exe
push eax
lea eax, [ebp - 0x228]
push 0x403168
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x228]
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push eax
call ebx
cmp eax, 0xffffffff
je 0x4014a7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, str.Install
push 0x40004
push ebx
push str.Detect_you_have_installed_before__you_must_uninstall_first__n_t_tUninstall_now_
push esi
call edi
cmp eax, 6
jne 0x401496
mov ecx, dword [ebp - 0x18]
call fcn.00401557
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, 0x4030fc
push esi
push eax
push eax
lea eax, [ebp - 0x228]
push eax
push 1
call dword [sym.imp.MSVCRT.dll__spawnl]
add esp, 0x14
jmp 0x4014a4
push 0x40000
push ebx
push str.Please_Uninstall_first_
push esi
call edi
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret