joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d2b0
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4808ad
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], 0x1a
lea ecx, [esi + 0x98]
call fcn.00402880
mov byte [esp + 0x10], 0x19
lea eax, [esi + 0x80]
push eax
call fcn.0040b3d0
mov byte [esp + 0x10], 0x18
lea ecx, [esi + 0x68]
push ecx
call fcn.0040b3d0
mov byte [esp + 0x10], 0x17
lea ecx, [esi + 0x64]
call fcn.00402880
mov byte [esp + 0x10], 0x16
lea ecx, [esi + 0x60]
call fcn.00402880
mov byte [esp + 0x10], 0x15
lea ecx, [esi + 0x5c]
call fcn.00402880
mov byte [esp + 0x10], 0x14
lea ecx, [esi + 0x58]
call fcn.00402880
mov byte [esp + 0x10], 0x13
lea ecx, [esi + 0x54]
call fcn.00402880
mov byte [esp + 0x10], 0x12
lea ecx, [esi + 0x50]
call fcn.00402880
mov byte [esp + 0x10], 0x11
lea ecx, [esi + 0x4c]
call fcn.00402880
mov byte [esp + 0x10], 0x10
lea ecx, [esi + 0x48]
call fcn.00402880
mov byte [esp + 0x10], 0xf
lea ecx, [esi + 0x44]
call fcn.00402880
mov byte [esp + 0x10], 0xe
lea ecx, [esi + 0x40]
call fcn.00402880
mov byte [esp + 0x10], 0xd
lea ecx, [esi + 0x3c]
call fcn.00402880
mov byte [esp + 0x10], 0xc
lea ecx, [esi + 0x38]
call fcn.00402880
mov byte [esp + 0x10], 0xb
lea ecx, [esi + 0x34]
call fcn.00402880
mov byte [esp + 0x10], 0xa
lea ecx, [esi + 0x30]
call fcn.00402880
mov byte [esp + 0x10], 9
lea ecx, [esi + 0x2c]
call fcn.00402880
mov byte [esp + 0x10], 8
lea ecx, [esi + 0x28]
call fcn.00402880
mov byte [esp + 0x10], 7
lea ecx, [esi + 0x24]
call fcn.00402880
mov byte [esp + 0x10], 6
lea ecx, [esi + 0x20]
call fcn.00402880
mov byte [esp + 0x10], 5
lea ecx, [esi + 0x1c]
call fcn.00402880
mov byte [esp + 0x10], 4
lea ecx, [esi + 0x18]
call fcn.00402880
mov byte [esp + 0x10], 3
lea ecx, [esi + 0x14]
call fcn.00402880
mov byte [esp + 0x10], 2
lea ecx, [esi + 0x10]
call fcn.00402880
mov byte [esp + 0x10], 1
lea ecx, [esi + 0xc]
call fcn.00402880
mov byte [esp + 0x10], 0
lea ecx, [esi + 8]
call fcn.00402880
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esi + 4]
call fcn.00402880
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4
Function at 0x40e980
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x47fa8b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0046454a
mov dword [esp + 0x14], 0
push 4
call fcn.0046510b
mov edi, eax
add esp, 4
test edi, edi
je 0x40e9e1
call fcn.0046430d
mov dword [edi], eax
call fcn.0046413b
mov ecx, eax
call fcn.004055c0
jmp 0x40e9e3
xor edi, edi
mov dword [esi + 0x38], 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
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 dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x4147d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4811b4
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [ebp], eax
jne 0x41480b
call fcn.00414320
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push eax
mov ebx, ebp
call fcn.004149b0
mov ebx, eax
push ebx
call fcn.00463705
add esp, 4
cmp eax, 6
jne 0x414906
cmp dword [esp + 0x14], 0x3e8
jg 0x414906
cmp dword [esp + 0x30], 3
jg 0x414906
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 8
mov edi, eax
call fcn.0046510b
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], 1
test esi, esi
je 0x41488c
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x41488e
xor esi, esi
mov byte [esp + 0x28], 0
mov ecx, dword [ebp]
push esi
push 0x414160
push ecx
call fcn.0043ee2e
add esp, 0xc
push 1
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0xc0
je 0x4148a5
test eax, eax
je 0x4148c2
inc dword [esp + 0x30]
mov edx, dword [ebp]
push 0
push 0
push edx
call fcn.0043ee2e
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esp + 0x14]
push ebx
call fcn.00457296
mov eax, dword [esp + 0x3c]
add esp, 4
push eax
mov ebx, ebp
call fcn.004149b0
mov ebx, eax
push ebx
call fcn.00463705
add esp, 4
cmp eax, 6
je 0x414833
push ebx
cmp eax, 0x65
jne 0x414953
mov ecx, dword [ebp]
mov esi, dword [esp + 0x38]
mov dword [esi], ecx
mov dword [esi + 4], ebx
mov byte [esi + 8], 1
call fcn.00421f1e
add esp, 4
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 1
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 0xc
cmp eax, 0x64
jne 0x414989
mov edx, dword [ebp]
mov esi, dword [esp + 0x38]
mov dword [esi], edx
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
call fcn.00421f1e
mov dword [esi + 0xc], eax
mov eax, 1
add esp, 4
mov byte [esi + 0x10], al
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], eax
jmp 0x41493b
call fcn.00457296
mov esi, eax
mov eax, dword [ebp]
push eax
call fcn.004355fa
add esp, 8
push 0x494dbc
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], esi
call fcn.00466bce
int3
Function at 0x415750
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x482137
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x49c0a4]
xor eax, esp
mov dword [esp + 0xf4], eax
push ebx
push esi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x28]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x24]
push eax
mov dword [esp + 0x34], edx
call fcn.004027d0
xor ebx, ebx
mov dword [esp + 0x110], ebx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x13]
push ecx
push ebx
push ecx
mov esi, esp
add eax, 0xfffffff0
mov byte [esp + 0x1f], bl
mov dword [esp + 0x28], esp
mov dword [esp + 0x2c], esi
call fcn.00403120
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x11c], 2
mov byte [esp + 0x11c], bl
call fcn.004097a0
add esp, 0xc
lea edx, [esp + 0x13]
push edx
mov byte [esp + 0x1f], al
mov eax, dword [esp + 0x18]
push 1
push ecx
mov esi, esp
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov dword [esp + 0x28], esi
call fcn.00403120
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x11c], 4
mov byte [esp + 0x11c], bl
call fcn.004097a0
add esp, 0xc
cmp byte [esp + 0x13], bl
je 0x415863
cmp byte [esp + 0x1b], bl
jne 0x415863
cmp al, bl
jne 0x415863
mov dword [esp + 0x110], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402880
mov eax, 0x80004005
jmp 0x415912
push 0xc6
lea ecx, [esp + 0x3a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x40], ax
call fcn.00466e30
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp eax, 3
jle 0x415898
mov ecx, dword [esp + 0x14]
push 0x64
lea edx, [esp + 0x38]
push edx
push ecx
push eax
call dword [sym.imp.SBTE.dll_SBCSQuarantineFileW]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
je 0x4158bf
test al, 0x10
je 0x4158bf
lea eax, [esp + 0x14]
push 1
push eax
call fcn.00408d00
add esp, 8
jmp 0x4158da
mov ecx, dword [esp + 0x14]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415900
mov dword [esp + 0x110], esi
lea ecx, [esp + 0x14]
call fcn.00402880
mov eax, 0x80004005
jmp 0x415912
mov dword [esp + 0x110], esi
lea ecx, [esp + 0x14]
call fcn.00402880
xor eax, eax
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.00464c90
mov esp, ebp
pop ebp
ret 0x24
Function at 0x415d00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x64
mov eax, dword [0x4aec38]
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
push eax
lea ecx, [esp + 0x1c]
xor ebx, ebx
push ecx
xor ebp, ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x415d32
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x415ea6
push 0x60000
push 0
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x415e71
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
je 0x415e71
push 0x60081
push 0
push 0
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
push edi
mov ebp, eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
je 0x415e71
test ebp, ebp
je 0x415e71
lea edx, [esp + 0x10]
push edx
call fcn.00415be0
mov ebx, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x415e71
mov eax, dword [esp + 0x1c]
push ebx
push eax
call fcn.00415eb0
add esp, 8
test eax, eax
je 0x415e71
push ebx
push ebp
call fcn.004161b0
add esp, 8
test eax, eax
je 0x415e71
mov ecx, dword [0x4aec38]
push ecx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x415e71
push 0x44
lea edx, [esp + 0x34]
push 0
push edx
call fcn.00466e30
mov edx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [0x4aec38]
push 0
push edx
push 0x430
push 0
push 0
push 0
push eax
push 0
push ecx
mov dword [esp + 0x5c], 0x44
mov dword [esp + 0x64], str.winsta0default
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x415e61
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x415e61
push eax
call edi
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x415e6d
push eax
call edi
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test ebx, ebx
je 0x415e8c
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x415e9b
push eax
call dword [sym.imp.USER32.dll_CloseWindowStation]
test ebp, ebp
je 0x415ea6
push ebp
call dword [sym.imp.USER32.dll_CloseDesktop]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
Function at 0x4171a0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4831e8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov esi, dword [0x4aec34]
mov eax, dword [esi + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x130]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x417241
push 4
call fcn.0046510b
add esp, 4
test eax, eax
je 0x417218
push eax
call fcn.00417280
mov edi, eax
jmp 0x41721a
xor edi, edi
lea eax, [esp + 0x1c]
call fcn.00404b00
push 0
push 0
push edi
push 0x4172d0
push 0
push 0
call fcn.004668a7
add esp, 0x18
mov dword [esi + 0x130], eax
jmp 0x41724d
add esi, 0xc0
push esi
call fcn.00418640
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402880
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x4187b0
Capabilities:
Get http document via iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47f9ab
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [esp + 0x10], 0x80004005
lea esi, [esp + 0x3c]
mov edi, 5
lea esp, [esp]
push esi
call ebx
add esi, 0x10
sub edi, 1
jne 0x418800
mov ecx, dword [ebp + 0x1c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov eax, 3
mov word [esp + 0x3c], ax
mov eax, dword [ebp + 0x18]
mov edx, 8
push eax
mov dword [esp + 0x48], ecx
mov word [esp + 0x50], dx
call esi
mov edx, dword [ebp + 0x14]
mov ecx, 8
push edx
mov dword [esp + 0x58], eax
mov word [esp + 0x60], cx
call esi
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x64], eax
mov eax, 8
push ecx
mov word [esp + 0x70], ax
call esi
mov ebx, dword [ebp + 8]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x84], eax
lea eax, [ebx + 0x38]
mov edx, 3
lea ecx, [esp + 0x3c]
xor esi, esi
push eax
mov word [esp + 0x80], dx
mov dword [esp + 0x28], 5
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x98], esi
mov esi, dword [ebx + 0x2c]
cmp esi, dword [ebx + 0x30]
jbe 0x4188b4
call fcn.00465838
mov edi, dword [ebx + 0x20]
mov ebx, dword [ebx + 0x30]
mov edx, dword [ebp + 8]
cmp dword [edx + 0x2c], ebx
jbe 0x4188c7
call fcn.00465838
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
test edi, edi
je 0x4188d5
cmp edi, eax
je 0x4188da
call fcn.00465838
cmp esi, ebx
je 0x418984
test edi, edi
jne 0x418975
call fcn.00465838
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4188fb
call fcn.00465838
cmp dword [esi], 0
je 0x418955
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [esp + 0x14], 0
test edi, edi
jne 0x41897c
call fcn.00465838
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x418928
call fcn.00465838
mov eax, dword [esi]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [esp + 0x14]
push ecx
push 0
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x28]
push ecx
push 1
push 0x400
push 0x48c22c
push 2
push eax
call edx
mov dword [esp + 0x10], eax
test edi, edi
jne 0x418980
call fcn.00465838
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x41896a
call fcn.00465838
mov ebx, dword [ebp + 8]
add esi, 4
jmp 0x4188b7
mov eax, dword [edi]
jmp 0x4188f1
mov eax, dword [edi]
jmp 0x41891e
mov eax, dword [edi]
jmp 0x418960
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x419690
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x481088
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x49c0a4]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x40]
xor ecx, ecx
mov word [esp + 0x14], cx
mov ecx, eax
mov ebx, edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4196e5
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x14]
call fcn.0040a5a0
mov dword [esp + 0x38], 0
push 1
mov eax, 0x492050
mov ecx, esi
call fcn.004198a0
mov ecx, eax
mov eax, ebx
lea esi, [eax + 2]
jmp 0x419720
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x419720
sub eax, esi
sar eax, 1
push eax
mov eax, ebx
call fcn.004198a0
cmp dword [esp + 0x28], 8
mov ecx, dword [esp + 0x14]
jae 0x419746
lea ecx, [esp + 0x14]
test edi, edi
je 0x419765
mov eax, edi
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x419750
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x419767
xor eax, eax
push 1
push eax
xor eax, eax
call fcn.00406140
add esp, 8
test eax, eax
sete bl
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x419795
mov edx, dword [esp + 0x14]
push edx
call fcn.00464c85
add esp, 4
xor eax, eax
mov word [esp + 0x14], ax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00464c90
add esp, 0x2c
ret

Function at 0x419ae0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x481061
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0xc], ebx
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x44]
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
call fcn.0040b670
mov dword [esp + 0x34], 1
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x419b40
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x14]
call fcn.004198a0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0xffffffffffffffff
mov word [esi + 4], cx
push ebx
mov ecx, esi
call fcn.0040b670
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
jb 0x419b95
mov edx, dword [esp + 0x14]
push edx
call fcn.00464c85
add esp, 4
xor eax, eax
mov word [esp + 0x14], ax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x41ba60
Capabilities:
Create service
Persist via windows service

Disassembly:
push 0xffffffffffffffff
push 0x48164d
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x49c0a4]
xor eax, esp
mov dword [esp + 0x824], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, esp
push eax
lea eax, [esp + 0x83c]
mov dword fs:[0], eax
push 0x400
lea eax, [esp + 0x3c]
xor ebx, ebx
push eax
mov esi, edx
push ebx
mov edi, ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
cmp ebp, ebx
je 0x41bbc4
cmp dword [edi + 0x78], ebx
je 0x41bae4
cmp dword [edi + 0x7c], 8
jb 0x41bae1
mov ebx, dword [edi + 0x68]
jmp 0x41bae4
lea ebx, [edi + 0x68]
xor ecx, ecx
lea eax, [esp + 0x38]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41bb02
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x3c]
lea esi, [esp + 0x20]
call fcn.0040a5a0
mov dword [esp + 0x844], 1
mov eax, 8
cmp dword [edi + 0x98], eax
jb 0x41bb3f
mov edx, dword [edi + 0x84]
jmp 0x41bb45
lea edx, [edi + 0x84]
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x34], eax
jae 0x41bb53
lea esi, [esp + 0x20]
cmp dword [edi + 0x60], eax
jb 0x41bb5d
mov ecx, dword [edi + 0x4c]
jmp 0x41bb60
lea ecx, [edi + 0x4c]
cmp dword [edi + 0x44], eax
jb 0x41bb6a
mov eax, dword [edi + 0x30]
jmp 0x41bb6d
lea eax, [edi + 0x30]
push 0
push ebx
push edx
push 0
push 0x4932c8
push esi
push 1
push 2
push 0x10
push 0xf01ff
push ecx
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov byte [esp + 0x844], 0
cmp dword [esp + 0x34], 8
jb 0x41bba9
mov edx, dword [esp + 0x20]
push edx
call fcn.00464c85
add esp, 4
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
add edi, 0x48
push edi
push esi
mov edi, str._installed.
call fcn.00419ae0
add esp, 8
mov dword [esp + 0x844], 0
mov dword [esp + 0x14], 1
mov eax, esi
mov ecx, dword [esp + 0x83c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x824]
xor ecx, esp
call fcn.00464c90
add esp, 0x834
ret
Function at 0x41bcd0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f410
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49c0a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
je 0x41bda4
cmp dword [ebx + 0x44], 8
jb 0x41bd25
mov ecx, dword [ebx + 0x30]
jmp 0x41bd28
lea ecx, [ebx + 0x30]
push 0xf01ff
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, edi
je 0x41bda4
lea edi, [ebx + 4]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41bd95
cmp dword [ebx + 8], 1
je 0x41bd8e
push edi
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41bd95
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41bd95
cmp dword [ebx + 8], 3
jne 0x41bd82
push 0x1f4
jmp 0x41bd63
cmp dword [ebx + 8], 1
jne 0x41bd95
or dword [ebp - 0x14], 2
jmp 0x41bd95
mov dword [ebp - 0x14], 2
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x41bda4
or dword [ebp - 0x14], 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41e645
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x41e669
push esi
movzx ecx, cl
movzx ecx, byte [ecx + 0x485670]
mov esi, eax
shl esi, 3
xor ecx, esi
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x41e64e
pop esi
ret
Function at 0x42a5ca
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
test ebx, ebx
jne 0x42a5d9
xor eax, eax
leave
ret
push esi
mov esi, dword [ebp + 8]
push 0
push 8
call fcn.00425b65
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x42a6a4
test byte [ebp + 0xc], 1
mov eax, dword [ebx]
mov dword [ecx], eax
jne 0x42a60e
mov ecx, dword [ebx]
xor eax, eax
inc eax
cmp ecx, eax
jle 0x42a60e
add eax, eax
cmp eax, ecx
jl 0x42a608
imul eax, eax, 0x18
push edi
push 0
push eax
call fcn.00425b65
mov edx, dword [ebp - 8]
mov edi, eax
pop ecx
pop ecx
mov dword [edx + 4], edi
test edi, edi
jne 0x42a633
mov ecx, esi
call fcn.0041d75c
xor eax, eax
jmp 0x42a6a3
and dword [ebp - 4], 0
cmp dword [ebx], 0
mov esi, dword [ebx + 4]
jle 0x42a6a0
mov eax, dword [esi]
push 0
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.004334cb
mov dword [edi], eax
push dword [esi + 4]
push dword [ebp + 8]
call fcn.00425cc4
mov dword [edi + 4], eax
push dword [esi + 8]
push dword [ebp + 8]
call fcn.00425cc4
mov dword [edi + 8], eax
mov al, byte [esi + 0xc]
and dword [edi + 0x10], 0xfffffffe
mov byte [edi + 0xc], al
mov eax, dword [edi + 0x10]
mov ecx, dword [esi + 0x10]
xor ecx, eax
and ecx, 2
xor ecx, eax
mov dword [edi + 0x10], ecx
mov eax, dword [esi + 0x14]
add esp, 0x20
inc dword [ebp - 4]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 4]
add edi, 0x18
add esi, 0x18
cmp eax, dword [ebx]
jl 0x42a63f
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret