joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409950
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
lea eax, [esp + 0x10]
push 1
mov ecx, eax
push ecx
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x40999f
push esi
push esi
push 1
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x40999f
lea esi, [esp + 4]
push 0x50d708
call fcn.00404690
add esp, 4
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x4099eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0xb7
jne 0x4099e5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004b6da3
add esp, 0x24
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004b6da3
add esp, 0x24
ret
Function at 0x40a1f0
Capabilities:
Clear file content
Encode data using xor
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
jne 0x40a1fe
xor al, al
pop esi
pop ecx
ret
push ebx
push ebp
push edi
lea ebx, [esi + 0x1020]
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x1440]
test eax, eax
je 0x40a225
cmp dword [esi + 0x1444], eax
mov eax, 0x50d808
ja 0x40a22a
mov eax, 0x50d147
movzx ecx, word [esi + 0x102c]
movzx edx, word [esi + 0x102a]
push eax
movzx eax, word [esi + 0x102e]
push eax
movzx eax, word [esi + 0x1028]
push ecx
movzx ecx, word [esi + 0x1026]
push edx
movzx edx, word [esi + 0x1022]
push eax
movzx eax, word [ebx]
push ecx
push edx
push eax
push 0x50d7b0
lea edi, [esi + 0x20]
call fcn.004045b0
add esp, 4
push eax
push edi
call fcn.004b79a8
mov eax, edi
add esp, 0x28
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a280
sub eax, edx
cmp dword [esi + 0x143c], 0
mov ebp, eax
je 0x40a2ba
test ebp, ebp
jle 0x40a2cc
mov eax, edi
mov ecx, ebp
mov edx, 2
add dword [esi + 0x143c], edx
mov bl, byte [esi + 0x143c]
add bl, 0x43
xor byte [eax], bl
inc eax
sub ecx, 1
jne 0x40a2a1
jmp 0x40a2cc
push edi
push edi
lea ecx, [esi + 0x1034]
push ebp
push ecx
call fcn.004aa750
add esp, 0x10
cmp dword [esi + 0x1440], 0x3e7
je 0x40a2ea
mov eax, dword [esi]
push 0
lea edx, [esp + 0x14]
push edx
push ebp
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop ebx
mov dword [esi], 0xffffffff
mov al, 1
pop esi
pop ecx
ret

Function at 0x40a310
Capabilities:
Delete registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x50d868
mov dword [esp + 8], 0
call fcn.00404690
add esp, 4
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a3d9
push esi
push 0x50d85c
call fcn.00404690
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add esp, 4
push eax
push ecx
call esi
push 0x50d850
call fcn.00404690
mov edx, dword [esp + 8]
add esp, 4
push eax
push edx
call esi
push 0x50d844
call fcn.00404690
add esp, 4
push eax
mov eax, dword [esp + 8]
push eax
call esi
push 0x50d838
call fcn.00404690
mov ecx, dword [esp + 8]
add esp, 4
push eax
push ecx
call esi
push 0x50d82c
call fcn.00404690
mov edx, dword [esp + 8]
add esp, 4
push eax
push edx
call esi
push 0x50d81c
call fcn.00404690
add esp, 4
push eax
mov eax, dword [esp + 8]
push eax
call esi
push 0x50d80c
call fcn.00404690
mov ecx, dword [esp + 8]
add esp, 4
push eax
push ecx
call esi
pop esi
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x40a770
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
jne 0x4056dd
xor al, al
pop esi
ret
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4056eb
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40571e
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x405713
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi]
push ecx
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x405730
push eax
call edi
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x405742
push eax
call edi
mov dword [esi + 8], 0xffffffff
pop edi
mov al, 1
pop esi
ret
mov byte [ecx], 0
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x40a77f
jmp 0x4056d0
ret

Function at 0x40bfc0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
lea eax, [esp + 0x18]
push 1
mov ecx, eax
push ecx
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x40c011
push edi
push edi
push 1
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x40c011
lea edi, [esp + 0xc]
push 0x50e290
call fcn.00404690
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x40c096
push 0x50e284
call fcn.00404690
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x40c096
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push 0x50e260
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
push 0x40000001
push 0x1cadee34
push 0x2711
call fcn.0040a3f0
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004b6da3
add esp, 0x24
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c0ed
push 0x50e23c
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc0080010
push 0x1cadee98
push 0x3e80
call fcn.0040a3f0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004b6da3
add esp, 0x24
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40c144
push 0x50e220
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc0080010
push 0x1cadee98
push 0x3e80
call fcn.0040a3f0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004b6da3
add esp, 0x24
ret
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004b6da3
add esp, 0x24
ret
Function at 0x40c160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 1
push 0
push 0x50e308
xor bl, bl
call fcn.00404690
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c270
push 0x50e2f8
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0x50e2e4
mov dword [esp + 0x24], 5
call fcn.00404690
add esp, 4
push eax
mov eax, dword [esp + 0x20]
push eax
call esi
test eax, eax
jne 0x40c214
lea ecx, [esp + 0x14]
push ecx
push 0x50e2d4
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
mov bl, 1
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x50e2c4
mov dword [esp + 0x24], 0x104
call fcn.00404690
mov ecx, dword [esp + 0x20]
add esp, 4
push eax
push ecx
call esi
test eax, eax
jne 0x40c265
lea edx, [esp + 0x14]
push edx
push 0x50e2b4
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
mov bl, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push 0x50e308
call fcn.00404690
add esp, 4
push eax
push closesocket
call edi
test eax, eax
jne 0x40c35b
push 0x50e2a4
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x50e2e4
mov dword [esp + 0x24], 5
call fcn.00404690
mov ecx, dword [esp + 0x20]
add esp, 4
push eax
push ecx
call esi
test eax, eax
jne 0x40c2ff
lea edx, [esp + 0x14]
push edx
push 0x50e2d4
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
mov bl, 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x50e2c4
mov dword [esp + 0x24], 0x104
call fcn.00404690
mov edx, dword [esp + 0x20]
add esp, 4
push eax
push edx
call esi
test eax, eax
jne 0x40c350
lea eax, [esp + 0x14]
push eax
push 0x50e2b4
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
mov bl, 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.004b6da3
add esp, 0x110
ret
Function at 0x40efa0
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
push 0xffffffffffffffff
push 0x4fe178
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52e144]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x18], 0x53ac20
mov byte [esp + 0x1c], 1
cmp dword [0x53ac38], ebp
je 0x40efe9
push 0x53ac20
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], ebp
cmp dword [0x53b0f4], ebp
jne 0x40f05f
push ebp
mov dword [0x53b0f4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
cmp ebx, ebp
je 0x40f05f
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x40f05f
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x40f05f
cmp dword [ebx + 0x28], ebp
je 0x40f05f
cmp dword [ebx + 0x2c], ebp
je 0x40f05f
mov ecx, dword [eax + 8]
push ecx
call fcn.0040c5d0
add esp, 4
call fcn.0040c5e0
mov esi, eax
xor esi, dword [ebx + 0x28]
mov dword [0x53b0f0], esi
call fcn.0040c5e0
mov edi, eax
xor edi, dword [ebx + 0x2c]
mov dword [0x53b0ec], edi
jmp 0x40f06b
mov esi, dword [0x53b0f0]
mov edi, dword [0x53b0ec]
cmp esi, ebp
je 0x40f0c3
cmp edi, ebp
je 0x40f0c3
mov edx, dword [0x537c4c]
xor edx, esi
xor ecx, ecx
test edi, edi
jbe 0x40f091
mov al, dl
add al, cl
mov bl, 3
imul bl
xor byte [esi + ecx], al
inc ecx
cmp ecx, edi
jb 0x40f081
test ebp, ebp
jne 0x40f0b7
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
call fcn.0040ed20
mov esi, dword [0x53b0f0]
mov edi, dword [0x53b0ec]
add esp, 8
mov dword [esp + 0x14], eax
inc ebp
cmp ebp, 2
jl 0x40f073
mov esi, dword [esp + 0x14]
jmp 0x40f0d7
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
call fcn.0040ed20
add esp, 8
mov esi, eax
cmp dword [0x53ac38], 0
je 0x40f0eb
push 0x53ac20
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x40f110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x98
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
mov eax, dword [ebp]
push esi
push edi
mov edi, dword [esp + 0xb4]
mov dword [edi + ebp], eax
mov dword [ebp], edi
add edi, 4
mov ecx, edi
and ecx, 0xf
mov ebx, 0x10
sub ebx, ecx
mov esi, 0
je 0x40f177
call fcn.004b7208
mov edx, eax
and edx, 0x800000ff
jns 0x40f16c
dec edx
or edx, 0xffffff00
inc edx
lea eax, [edi + ebp]
mov byte [eax + esi], dl
inc esi
cmp esi, ebx
jb 0x40f155
mov eax, dword [0x50e38c]
mov ecx, dword [0x50e390]
mov esi, dword [esp + 0xac]
mov edx, dword [0x50e394]
mov dword [esp + 0x90], eax
mov eax, dword [0x50e398]
mov dword [esp + 0x94], ecx
mov cl, byte [0x50e39c]
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], eax
mov byte [esp + 0xa0], cl
test esi, esi
je 0x40f1f6
mov cl, byte [esi]
xor eax, eax
test cl, cl
je 0x40f1f6
lea esp, [esp]
mov edx, eax
and edx, 0x8000000f
jns 0x40f1df
dec edx
or edx, 0xfffffff0
inc edx
xor byte [esp + edx + 0x90], cl
mov cl, byte [eax + esi + 1]
lea edx, [esp + edx + 0x90]
inc eax
test cl, cl
jne 0x40f1d0
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0040e240
lea edx, [esp + 0x18]
push edx
lea esi, [edi + ebx]
push esi
push ebp
call fcn.0040d3d0
mov ecx, dword [esp + 0xb8]
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b6da3
add esp, 0x98
ret
Function at 0x40f8b0
Capabilities:
Get file version info
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
mov ebx, dword [esp + 0x84]
push esi
push edi
xor esi, esi
push 0x63
lea eax, [esp + 0x25]
push esi
push eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x2c], 0
call fcn.004b6dc0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, esi
jne 0x40f928
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Fail_Get_FileVersionInfoSize_:__n
call fcn.004b923f
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004b6da3
add esp, 0x7c
ret
push ebp
lea ebp, [edi + 1]
push ebp
call fcn.004b958c
push ebp
mov esi, eax
push 0
push esi
call fcn.004b6dc0
mov edx, dword [esp + 0x28]
add esp, 0x10
push esi
push edi
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
pop ebp
test eax, eax
je 0x40f9fc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40f9fc
mov eax, dword [esp + 0x10]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
lea ecx, [esp + 0x28]
push str.StringFileInfo_04x_04xFileDescription
push ecx
call fcn.004b79a8
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call sub.VERSION.dll_VerQueryValueA
mov edx, dword [esp + 0xc]
push edx
call fcn.004b90b0
push eax
mov eax, dword [esp + 0x14]
push eax
push str._s__d__n
call fcn.004b923f
mov ecx, dword [esp + 0x1c]
push 0x20
push ecx
call fcn.004b9510
push eax
lea edx, [esp + 0x3c]
push 0x50e3bc
push edx
call fcn.004b79a8
lea eax, [esp + 0x44]
push eax
call fcn.004b90b0
add esp, 0x28
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004b6da3
add esp, 0x7c
ret
test esi, esi
je 0x40fa09
push esi
call fcn.004b8a69
add esp, 4
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004b6da3
add esp, 0x7c
ret
Function at 0x40fa20
Capabilities:
Modify service
Start service
Stop service

Disassembly:
sub esp, 0x42c
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x428], eax
push esi
mov esi, dword [esp + 0x434]
push edi
jmp 0x40fa4f
push 0x104
lea eax, [esp + 0x30]
push eax
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x50e468
lea ecx, [esp + 0x30]
push ecx
call edi
push esi
lea edx, [esp + 0x30]
push edx
call edi
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
je 0x40fbc7
push 0xc0000010
push 0x527dbc
call fcn.00404690
add esp, 4
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x40fbc0
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ControlService]
lea eax, [esp + 0x18]
push eax
push 4
push esi
call ebp
push 0x527dcc
call fcn.00404690
mov edx, dword [0x527dec]
add esp, 4
mov edi, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push eax
mov eax, dword [0x527de8]
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x4c]
push ecx
mov ebx, 1
push ebx
push edx
push eax
push esi
call edi
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40fb2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41d
jne 0x40fb33
mov dword [esp + 0x10], ebx
push 0x50e434
call fcn.00404690
add esp, 4
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x527dcc
call fcn.00404690
mov ecx, dword [0x527de8]
add esp, 4
push eax
mov eax, dword [0x527dec]
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x4c]
push edx
push ebx
push eax
push ecx
push esi
call edi
mov edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x18]
push edx
push 4
push esi
call ebp
test eax, eax
je 0x40fba4
cmp dword [esp + 0x1c], 2
jne 0x40fba4
push 0x32
call ebx
inc edi
cmp edi, 0x384
jl 0x40fb82
cmp dword [esp + 0x1c], 4
pop ebp
pop ebx
jne 0x40fbb5
mov dword [esp + 8], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40fbd9
mov ecx, dword [esp + 0x430]
mov eax, dword [esp + 8]
pop edi
pop esi
xor ecx, esp
call fcn.004b6da3
add esp, 0x42c
ret
Function at 0x40fc00
Capabilities:
Start service
Stop service

Disassembly:
sub esp, 0x430
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x42c], eax
push esi
mov esi, dword [esp + 0x438]
push edi
jmp 0x40fc2f
push 0x104
lea eax, [esp + 0x34]
push eax
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x50e468
lea ecx, [esp + 0x34]
push ecx
call edi
push esi
lea edx, [esp + 0x34]
push edx
call edi
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
je 0x40fd35
push recvfrom
push 0x527df0
call fcn.00404690
add esp, 4
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x40fd2e
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ControlService]
lea eax, [esp + 0x1c]
push eax
push 4
push edi
call ebp
lea edx, [esp + 0x18]
push edx
mov esi, 1
push esi
lea ecx, [esp + 0x40]
push edi
mov dword [esp + 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40fce5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41d
jne 0x40fce9
mov dword [esp + 0x10], esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop
lea eax, [esp + 0x1c]
push eax
push 4
push edi
call ebp
test eax, eax
je 0x40fd12
cmp dword [esp + 0x20], 2
jne 0x40fd12
push 0x32
call ebx
inc esi
cmp esi, 0x384
jl 0x40fcf0
cmp dword [esp + 0x20], 4
pop ebp
pop ebx
jne 0x40fd23
mov dword [esp + 8], 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40fd47
mov ecx, dword [esp + 0x434]
mov eax, dword [esp + 8]
pop edi
pop esi
xor ecx, esp
call fcn.004b6da3
add esp, 0x430
ret

Function at 0x40fe10
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 8
push esi
push edi
push str.SeDebugPrivilege
xor edi, edi
call fcn.0040fd80
push str.SeSecurityPrivilege
call fcn.0040fd80
mov eax, dword [esp + 0x1c]
add esp, 8
push eax
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40feba
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0x1020002
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40feb6
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push 1
push 2
push edi
push 0xe
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x40feaf
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x40fea8
push 0x50e46c
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
mov edi, 1
mov edx, dword [esp + 0xc]
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call ebx
push esi
call ebx
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x4104c0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
cmp byte [0x54a134], 0
mov byte [esp + 3], 1
jne 0x4104f3
push 0x50e4fc
call fcn.00404690
push eax
push 0x53972c
call fcn.0040aa20
add esp, 0xc
test al, al
je 0x4104f3
mov al, 1
add esp, 0x10
ret
push ebp
mov ebp, dword [esp + 0x18]
push esi
lea eax, [esp + 0xc]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4105c5
push ebx
push esi
call fcn.004b97b1
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebx, eax
push ebx
push esi
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4105bb
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0x50e37c
push ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
cmp dword [eax], 0xfeef04bd
jne 0x4105bb
movzx esi, word [eax + 0xa]
movzx ecx, word [eax + 8]
imul esi, esi, 0x64
movzx edx, word [eax + 0xe]
push edi
movzx edi, word [esp + 0x28]
movzx eax, word [eax + 0xc]
imul edi, edi, 0x64
add esi, ecx
movzx ecx, word [esp + 0x2c]
imul esi, esi, 0x64
add edi, ecx
imul edi, edi, 0x64
add esi, edx
movzx edx, word [esp + 0x30]
imul esi, esi, 0x64
add edi, edx
imul edi, edi, 0x64
add esi, eax
movzx eax, word [esp + 0x34]
add edi, eax
push edi
push esi
push ebp
push 0x50e4e0
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x14
cmp esi, edi
pop edi
jae 0x4105bb
mov byte [esp + 0xf], 0
push ebx
call fcn.004b97a6
add esp, 4
pop ebx
mov al, byte [esp + 0xb]
pop esi
pop ebp
add esp, 0x10
ret

Function at 0x4105d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ecx
jmp 0x4105e3
cmp byte [0x54a134], 0
mov dword [esp], 0
je 0x410605
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [esp], eax
jmp 0x410610
xor eax, eax
mov al, byte fs:[0x20]
mov dword [esp], eax
jmp 0x410622
mov eax, dword [esp]
pop ecx
ret
Function at 0x410630
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
lea eax, [esp + 0x18]
push 1
mov ecx, eax
push ecx
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x410681
push edi
push edi
push 1
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x410681
lea edi, [esp + 0xc]
push 0x50e510
call fcn.00404690
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4106b8
push 0x50e504
call fcn.00404690
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
je 0x4106cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4106e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004b6da3
add esp, 0x24
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4106c5
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004b6da3
add esp, 0x24
ret

Function at 0x410dc0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
pop edi
pop esi
ret