joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001f90
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
push esi
mov esi, str.FSEIFlt.dll
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
call fcn.10014340
mov dword [edi], eax
cmp eax, ebx
je 0x100020de
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FLT_Initial
push eax
call esi
mov dword [edi + 4], eax
mov eax, dword [edi]
push str.MON_AddAccessPolicy
push eax
call esi
mov ecx, dword [edi]
push str.MON_ClearAccessPolicy
push ecx
mov dword [edi + 0x10], eax
call esi
mov edx, dword [edi]
push str.MON_DelAccessPolicy
push edx
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi]
push str.MON_AddProtectProcess
push eax
call esi
mov ecx, dword [edi]
push str.MON_DelProtectProcess
push ecx
mov dword [edi + 0x1c], eax
call esi
mov edx, dword [edi]
push str.MON_StopProtectProcess
push edx
mov dword [edi + 0x20], eax
call esi
mov dword [edi + 0x24], eax
mov eax, dword [edi]
push str.MON_AddAccessPassProcess
push eax
call esi
mov ecx, dword [edi]
push str.MON_DelAccessPassProcess
push ecx
mov dword [edi + 0x28], eax
call esi
mov edx, dword [edi]
push str.MON_AddProtectReg
push edx
mov dword [edi + 0x2c], eax
call esi
mov dword [edi + 0x30], eax
mov eax, dword [edi]
push str.MON_StopProtectReg
push eax
call esi
mov ecx, dword [edi]
push str.MON_AddPassByProtectReg
push ecx
mov dword [edi + 0x34], eax
call esi
mov edx, dword [edi]
push str.MON_DelPassByProtectReg
push edx
mov dword [edi + 0x38], eax
call esi
mov dword [edi + 0x3c], eax
mov eax, dword [edi]
push str.MON_AddPassByPathProtect
push eax
call esi
mov ecx, dword [edi]
push str.MON_DelPassByPathProtect
push ecx
mov dword [edi + 0x40], eax
call esi
mov edx, dword [edi]
push str.MON_StopPathProtect
push edx
mov dword [edi + 0x44], eax
call esi
mov dword [edi + 0x48], eax
push str.MON_FileProtectAdd
mov eax, dword [edi]
push eax
call esi
mov ecx, dword [edi]
push str.MON_FileProtectDel
push ecx
mov dword [edi + 8], eax
call esi
mov edx, dword [edi]
push str.MON_SetIceSword
push edx
mov dword [edi + 0xc], eax
call esi
mov dword [edi + 0x4c], eax
pop esi
mov eax, edi
pop ebx
ret
Function at 0x10005e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x90
push 0xffffffffffffffff
push 0x10037290
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1004f100]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x98]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
call fcn.1001af90
push str.RdpPortGet_Check_Rdp_tcp_...
mov ecx, eax
call fcn.1001b3f0
add esp, 4
mov ecx, 0x22
mov esi, str.SYSTEMCurrentControlSetControlTerminal_ServerWinStationsRDP_Tcp
lea edi, [ebp]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push 0x20119
push 0
lea edx, [ebp]
push edx
mov ebx, 4
push 0x80000002
mov dword [ebp - 0x24], ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10005ed9
mov dword [ebp - 0x2c], eax
push 0x10049464
lea eax, [ebp - 0x2c]
push eax
call fcn.10028c35
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x28]
push eax
push 0
push str.PortNumber
push ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10005f15
test esi, esi
jne 0x10005f15
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x10005f48
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10005f5d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push edx
push esi
push str.RdpPortGet_Rlt:_08x_CurPort:_d
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.100269c5
add ebp, 0x90
mov esp, ebp
pop ebp
ret 4
Function at 0x10005fb0
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x90
push 0xffffffffffffffff
push 0x10037260
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1004f100]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call fcn.1001af90
push str.RdpPortSet_Check_Rdp_tcp_...
mov ecx, eax
call fcn.1001b3f0
add esp, 4
mov ecx, 0x22
mov esi, str.SYSTEMCurrentControlSetControlTerminal_ServerWinStationsRDP_Tcp
lea edi, [ebp]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push 0x2011f
push ebx
lea ecx, [ebp]
push ecx
push 0x80000002
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x10006047
push 0x10049464
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], eax
call fcn.10028c35
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x98]
push 4
lea ecx, [ebp - 0x20]
push ecx
push 4
push ebx
push str.PortNumber
push edx
mov dword [ebp - 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x10006089
call fcn.1001af90
push 4
lea ecx, [ebp]
push ecx
push esi
push str.HideDosName_set_key_value_error:_08x_keypath:_s__mLen:_d
mov ecx, eax
call fcn.1001b4f0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
jmp 0x100060bc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100060d1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x98]
push eax
push esi
push str.RdpPortSet_Rlt:_08x_Port:_d
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.100269c5
add ebp, 0x90
mov esp, ebp
pop ebp
ret 4
Function at 0x10006750
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100371f0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1004f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edi
push eax
xor esi, esi
push str.SvcSetStartConfig__uConfig:_d__Name:_s_...
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0xc
push 1
push str.ServicesActive
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, esi
jne 0x100067e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1001af90
push esi
push str.OpenSCManager_failed__error_code:__08x
mov ecx, eax
call fcn.1001b4f0
add esp, 8
push 0x10049464
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], esi
call fcn.10028c35
push 2
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x10006829
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1001af90
push esi
push edi
push str.OpenService__s__failed__error_code:__08x
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], esi
call fcn.10028c35
mov eax, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x100068ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1001af90
push esi
push edi
push str.ChangeServiceConfig__s__failed__error_code:__08x
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], esi
call fcn.10028c35
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x1000688c
ret
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100068bd
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x100068c8
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x18]
push edi
push eax
push esi
push str.SvcSetStartConfig_Rlt:_08x_uConfig:_d__Name:_s
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0x10
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
Function at 0x10006900
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037ae0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1004f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x1c], eax
cmp ebx, esi
jne 0x10006955
lea eax, [esi + 0x57]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push str.SvcStartWithTimeOut_Srv:_s_...
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
mov dword [ebp - 4], esi
add esp, 8
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x14], esi
jmp 0x10006978
mov ebx, dword [ebp + 8]
push 5
push ebx
call fcn.10006ab0
add esp, 8
mov esi, eax
call fcn.1001af90
mov ecx, dword [ebp + 0xc]
push ebx
push ecx
push esi
push str.SvcStartWithTimeOut_SvcStart_Rlt:_08x_uRetry:_d_Name:_s
mov ecx, eax
call fcn.1001b3f0
add esp, 0x10
test esi, esi
je 0x100069ca
call fcn.1001af90
push esi
push ebx
push str.____Failed_to_start_up__s_error:_08x.
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], esi
call fcn.10028c35
xor edi, edi
jmp 0x100069d3
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
push ebx
mov dword [ebp - 0x18], 0
call fcn.1000c8e0
add esp, 0xc
mov esi, eax
call fcn.1001af90
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
push edx
push ebx
push ecx
push esi
push str._tGetTermSrvState_SvcStart_Rlt:_08x_Status:_08x_uSrvPid:_d_Retry:_d__uQueryRetry:_d
mov ecx, eax
call fcn.1001b3f0
add esp, 0x18
test esi, esi
jne 0x10006a17
test ebx, ebx
jne 0x10006a4f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x1e
jae 0x10006a30
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 0x1c]
jb 0x100069d0
test esi, esi
jne 0x10006a38
test ebx, ebx
jne 0x10006a4f
inc dword [ebp + 0xc]
mov esi, 0x5b4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 0x1c]
jb 0x10006975
mov dword [ebp - 4], 0xffffffff
jmp 0x10006a82
mov eax, dword [ebp + 8]
push esi
push eax
push str.SvcStartWithTimeOut_Srv:_s_Rlt:_08x
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0xc
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
Function at 0x10006fb0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100371c8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1004f100]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [0x1004f100]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], cx
lea edx, [esp + 4]
push edx
push 0x24
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x10007030
cmp dword [esp + 0x44], 8
jb 0x100070bd
mov edx, dword [esp + 0x30]
push edx
jmp 0x100070b5
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push str._tcheck_status__d_procId:_d
push ecx
call fcn.1001af90
add esp, 4
mov ecx, eax
call fcn.1001b3f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
cmp ecx, 1
jne 0x10007076
cmp dword [esp + 0x44], 8
jb 0x1000706f
mov edx, dword [esp + 0x30]
push edx
call fcn.100269ba
add esp, 4
mov eax, 1
jmp 0x100070bf
test esi, esi
je 0x100070a9
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x100070a9
push ecx
push eax
push esi
push str._check_Services_restarted_from:_d_to_:_d_curState:_08x
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0x10
lea ecx, [esp + 0x2c]
call fcn.100019f0
mov eax, 1
jmp 0x100070bf
cmp dword [esp + 0x44], 8
jb 0x100070bd
mov eax, dword [esp + 0x30]
push eax
call fcn.100269ba
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.100269c5
mov esp, ebp
pop ebp
ret

Function at 0x100070e0
Capabilities:
Query service status

Disassembly:
push 0xffffffffffffffff
push 0x10037198
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1004f100]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [0x1004f100]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], cx
lea edx, [esp + 4]
push edx
push 0x24
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1000715e
cmp dword [esp + 0x44], 8
jb 0x1000715a
mov edx, dword [esp + 0x30]
push edx
call fcn.100269ba
add esp, 4
xor eax, eax
jmp 0x100071a6
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push str.GetServicesProcId_status__d_procId:_d
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0xc
cmp dword [esp + 0xc], 1
je 0x10007146
test esi, esi
je 0x1000718d
mov eax, dword [esp + 0x24]
mov dword [esi], eax
cmp dword [esp + 0x44], 8
jb 0x100071a1
mov ecx, dword [esp + 0x30]
push ecx
call fcn.100269ba
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.100269c5
add esp, 0x54
ret
Function at 0x100088e0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037100
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1004f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, 8
mov dword [ebp - 0x14], edi
cmp dword [esi + 0x74], ebx
jb 0x10008922
mov eax, dword [esi + 0x60]
jmp 0x10008925
lea eax, [esi + 0x60]
push eax
push str.SetWrapperDll_Path:_s_...
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 8
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
push ecx
push edi
push 0x20106
push edi
push edi
push edi
push str.SYSTEMCurrentControlSetServicesTermServiceParameters
push 0x80000002
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
je 0x10008993
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1001af90
push edi
push esi
push str.____RegCreateKeyEx_error__code__08x_._Rlt:_08x
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], edi
call fcn.10028c35
mov ecx, dword [esi + 0x70]
cmp dword [esi + 0x74], ebx
jb 0x100089a0
mov eax, dword [esi + 0x60]
jmp 0x100089a3
lea eax, [esi + 0x60]
mov edx, dword [ebp - 0x14]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 2
push 0
push str.ServiceDll
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x10008a20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1001af90
push edi
push esi
push str.____RegSetValueEx_error__code__08x_._rlt:_08x
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], edi
call fcn.10028c35
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x10008a04
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10008a3c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
cmp dword [esi + 0x74], 8
jb 0x10008a47
mov esi, dword [esi + 0x60]
jmp 0x10008a4a
add esi, 0x60
push esi
push edi
push str.SetWrapperDll_Rlt:_s_Path:_s
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0xc
mov eax, edi
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 0x10008a80
Capabilities:
Persist via windows service
Query environment variable
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x100370d0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1004f100]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
push 0x206
lea ecx, [ebp + 2]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x14], edi
mov word [ebp], ax
call fcn.100285e0
add esp, 0xc
push 0x104
lea edx, [ebp]
push edx
push str._SystemRoot__system32_termsrv.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp]
push eax
push str.ResetServiceDll_Path:_s_..
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 8
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x14]
push edx
push edi
push 0x20106
push edi
push edi
push edi
push str.SYSTEMCurrentControlSetServicesTermServiceParameters
push 0x80000002
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
je 0x10008b5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1001af90
push esi
push edi
push str.____RegCreateKeyEx_error__code__08x_._Rlt:_08x
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
call fcn.10028c35
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10008b64
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x14]
push ecx
lea edx, [ebp]
push edx
push 2
push edi
push str.ServiceDll
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
je 0x10008bef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1001af90
push esi
push edi
push str.____RegSetValueEx_error__code__08x_._rlt:_08x
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], esi
call fcn.10028c35
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x10008bd6
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10008c0b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
lea eax, [ebp]
push eax
push esi
push str.ResetServiceDll_Rlt:_s_Path:_s
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.100269c5
add ebp, 0x20c
mov esp, ebp
pop ebp
ret
Function at 0x1000a630
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1004f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [ebp + 0xc]
push eax
push str.BIN_FILE
push str.ExtractRes_Type:_s_Path:_s_...
mov dword [ebp - 0x18], 0xffffffff
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
mov ecx, dword [ebp + 8]
add esp, 0xc
push str.BIN_FILE
push ecx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x1000a6c5
call fcn.1001af90
push str.ExtractRes.Find_ResError
mov ecx, eax
call fcn.1001b4f0
add esp, 4
push 0x10049464
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 2
call fcn.10028c35
push esi
push edi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 7
mov edi, eax
mov eax, dword [ebp + 0xc]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
jne 0x1000a736
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1001af90
push str.ExtractRes.Create_File_Error
mov ecx, eax
call fcn.1001b4f0
add esp, 4
push 0x10049464
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], esi
call fcn.10028c35
push 0
lea edx, [ebp - 0x24]
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000a7e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1001af90
push esi
push str.ExtractRes.Write_File_Error:_08x
mov ecx, eax
call fcn.1001b4f0
add esp, 8
push 0x10049464
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], esi
call fcn.10028c35
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x1000a78e
ret
mov edx, dword [ebp + 0xc]
push edx
push esi
push str.ExtractRes.Rlt:_08x__Path:_s
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0xc
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
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
jmp 0x1000a7a0
Function at 0x100130b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x100367f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x1004f100]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], ax
call fcn.10001b50
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10013103
sub eax, edx
sar eax, 1
push eax
push ebx
lea eax, [esp + 0x14]
call fcn.10005480
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.10001b50
cmp dword [esp + 0x24], 8
jb 0x1001314c
mov eax, dword [esp + 0x10]
push eax
call fcn.100269ba
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x100142a0
Capabilities:
Get common file path

Disassembly:
xor eax, eax
cmp ax, word [0x10051430]
jne 0x10014331
push 0x104
push 0x10051430
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x10014337
call fcn.1001f5d0
test eax, eax
mov ecx, 0x104
mov eax, 0x10051430
je 0x100142f5
cmp word [eax], 0
je 0x100142ea
add eax, 2
sub ecx, 1
jne 0x100142d6
mov eax, 0x10051430
ret
test ecx, ecx
je 0x10014331
push str.SysWOW64FSEBin
jmp 0x10014312
cmp word [eax], 0
je 0x10014309
add eax, 2
sub ecx, 1
jne 0x100142f5
mov eax, 0x10051430
ret
test ecx, ecx
je 0x10014331
push str._system32FSEBin
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax*2 + 0x10051430]
mov eax, 0x7fffffff
call fcn.10014100
mov eax, 0x10051430
ret
xor eax, eax
ret