joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4071f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483688
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4aa6b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x54], 0
jne 0x4072e8
mov eax, dword [ebp + 8]
push 0x40
push 0xa
push eax
call fcn.0041c1b5
add esp, 0xc
test eax, eax
je 0x4072e8
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov byte [esi + 0x50], 1
mov byte [esi + 0x4a], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
lea ecx, [esi + 0xc]
mov dword [esi + 0x14], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [ecx], 0
mov ecx, dword [esi + 0x24]
mov dword [ecx], 0
mov edx, dword [esi + 0x34]
mov dword [edx], 0
mov ecx, dword [esi + 0x10]
mov dword [ecx], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov ecx, dword [esi + 0x30]
mov edx, dword [0x4af540]
mov dword [ecx], 0
mov dword [esi + 0x54], eax
lea edi, [ebp + 8]
mov eax, esi
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], 0
call fcn.00408580
push eax
mov dword [ebp - 4], 0
call fcn.0040a0d0
add esp, 4
mov edi, eax
call fcn.004074e0
lea ecx, [ebp + 8]
call fcn.00403e80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x407390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483418
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4aa6b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x4074bb
cmp byte [edi + 0x4a], bl
je 0x4074bb
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
mov ecx, edi
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x4074af
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40740f
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x407427
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x407450
dec eax
je 0x407454
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4074aa
jmp 0x4074b6
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x407464
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40748d
cmp ebx, 0x10
jae 0x407473
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0041f1ce
add esp, 0x10
cmp esi, eax
jne 0x4074a7
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x4074b3
test esi, esi
jne 0x40741b
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00406e70
jmp 0x407415
lea ecx, [ebp - 0x2c]
call fcn.00405110
xor al, al
jmp 0x4074bd
lea ecx, [ebp - 0x2c]
call fcn.00405110
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d331
mov esp, ebp
pop ebp
ret
Function at 0x408490
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48322b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4aa6b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0041c0a6
push 4
mov dword [ebp - 4], 0
call fcn.0041dabd
mov edi, eax
add esp, 4
test edi, edi
je 0x40850c
call fcn.0041bf7e
mov dword [edi], eax
call fcn.0041bd3d
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041c067
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x408502
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041c08f
jmp 0x40850e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a750
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x49aa14
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40a796
mov ecx, dword [ebp - 4]
push 4
push 0x4ad5c0
push 4
push eax
push str.LanguageID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x40a7a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x49aa14
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a805
mov eax, 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.LanguageID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40a810
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484438
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4aa6b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x30]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40a8c9
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x2c], cx
push 0x4ad5a0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
call fcn.00401980
push 0x12
push str.EmployeeLogin.exe
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00403070
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40a892
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
lea ecx, [edx + edx]
mov edx, dword [ebp - 0x30]
push ecx
push eax
push 1
push 0
push str.EmployeeLogin
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x18], 8
jb 0x40a8bf
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041da61
add esp, 4
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d331
mov esp, ebp
pop ebp
ret
Function at 0x40a8f0
Capabilities:
Check os version
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4843fc
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x4aa6b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x80
xor edi, edi
lea eax, [ebp - 0x90]
push edi
push eax
call fcn.00428990
add esp, 0xc
lea ecx, [ebp - 0x1fc]
push ecx
lea edx, [ebp - 0x90]
push edx
mov dword [ebp - 0x1fc], 0x80
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x1f8]
push eax
mov dword [ebp - 0x1f8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x1f4], 5
je 0x40ab59
lea ecx, [ebp - 0x90]
push str.Administrator
push ecx
call fcn.0041f576
add esp, 8
test eax, eax
je 0x40ab59
lea esi, [ebp - 0x218]
call fcn.004032e0
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20c], edi
je 0x40a9c2
mov eax, dword [ebp - 0x214]
cmp eax, edi
je 0x40a9c2
lea edx, [ebp - 0x200]
push edx
call eax
mov dword [ebp - 0x204], eax
push 4
xor eax, eax
mov ebx, 7
push 0x49ab14
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x9c], edi
mov word [ebp - 0xac], ax
call fcn.00401ad0
push 0xffffffffffffffff
push edi
push 0x4ad5a0
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 1
call fcn.00402f60
push 0xe
push str.closeuac.reg_
lea ecx, [ebp - 0xac]
call fcn.00403070
cmp dword [ebp - 0x98], 8
mov edx, dword [ebp - 0xac]
jae 0x40aa2c
lea edx, [ebp - 0xac]
xor ecx, ecx
mov eax, edx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb8], edi
mov word [ebp - 0xc8], cx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40aa46
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0xc8]
call fcn.00401ad0
mov byte [ebp - 4], 2
push 0x16
xor edx, edx
push str.C:windows_regedit.exe
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xd4], edi
mov word [ebp - 0xe4], dx
call fcn.00401ad0
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 3
call fcn.00411440
mov esi, 8
add esp, 4
cmp dword [ebp - 0xd0], esi
jb 0x40aac2
mov ecx, dword [ebp - 0xe4]
push ecx
call fcn.0041da61
add esp, 4
xor edx, edx
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xd4], edi
mov word [ebp - 0xe4], dx
cmp dword [ebp - 0xb4], esi
jb 0x40aaee
mov eax, dword [ebp - 0xc8]
push eax
call fcn.0041da61
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb8], edi
mov word [ebp - 0xc8], cx
cmp dword [ebp - 0x98], esi
jb 0x40ab1a
mov edx, dword [ebp - 0xac]
push edx
call fcn.0041da61
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x9c], edi
mov word [ebp - 0xac], ax
cmp dword [ebp - 0x20c], edi
je 0x40ab59
cmp dword [ebp - 0x204], edi
je 0x40ab59
mov eax, dword [ebp - 0x210]
cmp eax, edi
je 0x40ab59
mov ecx, dword [ebp - 0x200]
push ecx
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d331
mov esp, ebp
pop ebp
ret
Function at 0x40acd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4847b0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4aa6b4]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x4aa6b4]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, 0x4b016c
mov dword [esp + 0x14], 0x35
xor esi, esi
mov edi, 8
mov dword [esp + 0x10], esi
cmp dword [ebx + 0x14], edi
jb 0x40ad28
mov ecx, dword [ebx]
jmp 0x40ad2a
mov ecx, ebx
mov eax, dword [ebx - 4]
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x40ad59
cmp dword [ebx + 0x14], edi
jb 0x40ad47
mov ecx, dword [ebx]
jmp 0x40ad49
mov ecx, ebx
mov eax, dword [ebx - 4]
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push 0xffffffffffffffff
push esi
lea ecx, [ebx + 0x38]
xor eax, eax
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], esi
mov word [esp + 0x28], ax
call fcn.00401980
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], esi
call fcn.0041cec0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 1
call fcn.00412ce0
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x40ada5
lea ecx, [esp + 0x1c]
lea esi, [ebx + 0x1c]
cmp dword [ebx + 0x30], edi
jb 0x40adb1
mov eax, dword [esi]
jmp 0x40adb3
mov eax, esi
mov edx, dword [esp + 0x2c]
add edx, edx
push edx
push ecx
push 1
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40adea
cmp dword [ebx + 0x30], edi
jb 0x40add6
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, esi
mov esi, eax
call fcn.00404bd0
mov edi, 8
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 0
call fcn.0041ced0
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x30], edi
jb 0x40ae1e
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041da61
add esp, 4
add ebx, 0x60
dec dword [esp + 0x14]
jne 0x40ad14
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0041d331
mov esp, ebp
pop ebp
ret
Function at 0x40ae50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483fe3
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x4aa6b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, 0x4b16d0
mov dword [ebp - 0x184], 2
xor ebx, ebx
cmp dword [edi + 0x1c], 1
jne 0x40aee3
push 0x114
lea eax, [ebp - 0x180]
push ebx
push eax
call fcn.00428990
add esp, 0xc
lea ecx, [ebp - 0x180]
push ecx
mov dword [ebp - 0x180], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40afe4
cmp dword [ebp - 0x17c], 6
jb 0x40afe4
cmp dword [ebp - 0x178], 2
jb 0x40afe4
push 0xffffffffffffffff
push ebx
xor edx, edx
mov esi, 7
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
call fcn.00401980
lea ecx, [ebp - 0x188]
mov dword [ebp - 4], ebx
call fcn.0041cec0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00412ce0
push 0xffffffffffffffff
push ebx
lea ecx, [edi - 0x1c]
xor eax, eax
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00401980
push 6
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1c]
push 0x49a654
push edx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00402380
test eax, eax
jne 0x40af90
push 0x79
lea esi, [ebp - 0x64]
call fcn.004110d0
add esp, 4
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00401900
cmp dword [ebp - 0x50], 8
jb 0x40af7d
mov eax, dword [ebp - 0x64]
push eax
call fcn.0041da61
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
lea esi, [ecx + 7]
lea edx, [ebp - 0x2c]
push edx
lea ecx, [edi - 0x38]
lea edx, [ebp - 0x48]
call fcn.0040b010
cmp dword [ebp - 0x18], 8
jb 0x40afb1
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041da61
add esp, 4
xor ecx, ecx
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], bl
call fcn.0041ced0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 8
jb 0x40afe4
mov edx, dword [ebp - 0x48]
push edx
call fcn.0041da61
add esp, 4
add edi, 0x58
dec dword [ebp - 0x184]
jne 0x40ae8f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d331
mov esp, ebp
pop ebp
ret
Function at 0x40b010
Capabilities:
Check for time delay via gettickcount
Create service
Modify service
Persist via windows service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a4330
push 0x424c10
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4aa6b4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov ebx, edx
mov dword [ebp - 4], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
mov dword [ebp - 0x40], ecx
test ecx, ecx
jne 0x40b07a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x3c]
jmp 0x40b1c0
cmp dword [edi + 0x14], 8
jb 0x40b084
mov eax, dword [edi]
jmp 0x40b086
mov eax, edi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
jne 0x40b112
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x40b1c0
mov eax, 8
cmp dword [ebx + 0x14], eax
jb 0x40b0bb
mov edx, dword [ebx]
jmp 0x40b0bd
mov edx, ebx
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0x14], eax
jb 0x40b0c7
mov ecx, dword [ecx]
cmp dword [edi + 0x14], eax
jb 0x40b0d0
mov eax, dword [edi]
jmp 0x40b0d2
mov eax, edi
push 0
push 0
push 0
push 0
push 0
push edx
push 1
push 2
push 0x10
push 0xf01ff
push ecx
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x40b1ba
mov ecx, esi
call fcn.0040b210
test eax, eax
jne 0x40b1c0
jmp 0x40b12d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x40b1ba
lea edx, [ebp - 0x38]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40b1ba
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edi, eax
mov dword [ebp - 0x48], edi
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
mov edi, edi
cmp dword [ebp - 0x34], 2
jne 0x40b1b4
mov eax, 0xcccccccd
mul dword [ebp - 0x20]
shr edx, 3
cmp edx, 0x3e8
jae 0x40b180
mov edx, 0x3e8
jmp 0x40b18d
cmp edx, 0x2710
jbe 0x40b18d
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x38]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40b1b4
mov edx, dword [ebp - 0x44]
cmp dword [ebp - 0x24], edx
ja 0x40b151
call ebx
sub eax, edi
cmp eax, dword [ebp - 0x20]
jbe 0x40b160
cmp dword [ebp - 0x34], 4
je 0x40b1c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040b1ed
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041d331
mov esp, ebp
pop ebp
ret 4
Function at 0x40b210
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4aa6b4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov edx, 1
push esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
push 2
lea eax, [ebp - 0x1c]
push ecx
xor esi, esi
mov dword [ebp - 0x24], 3
mov dword [ebp - 0x20], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x40b284
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d331
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041d331
mov esp, ebp
pop ebp
ret

Function at 0x40b330
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4b2960], ecx
inc edx
cmp edx, 0x100
jb 0x40b332
cmp edx, 0x800
jae 0x40b409
lea esp, [esp]
mov eax, dword [edx*4 + 0x4b2560]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4b2960]
inc edx
mov dword [edx*4 + 0x4b295c], eax
cmp edx, 0x800
jb 0x40b3e0
mov dword [0x4af560], 0x40b430
call fcn.0040ef00
test eax, eax
jne 0x40b426
mov dword [0x4af560], 0x40b4e0
ret

Function at 0x40bf50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x40bfaf
mov dword [edi], 0
jmp 0x40bf70
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40bf7f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x40bfb7
test ecx, ecx
je 0x40bfaf
test esi, esi
jne 0x40bf70
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret