joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fd20
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x188
push ebx
push ebp
mov ebx, dword [esp + 0x194]
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
push eax
push 0
push str.Count
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x40fd98
mov ecx, 7
lea edi, [esp + 0x35]
mov byte [esp + 0x34], al
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x38]
push 0x41851c
push ecx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esi]
add esp, 0xc
lea eax, [esp + 0x34]
push edx
push eax
push str.Count
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x40fd98
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret 8
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x95]
mov byte [esp + 0x94], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
xor ebp, ebp
test eax, eax
jle 0x40fe60
push ebp
lea ecx, [esp + 0x58]
push str.Key_d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esi]
add esp, 0xc
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x94]
push edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x98]
push 0x104
push eax
lea ecx, [esp + 0x60]
push 0x41b408
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0x1a0]
lea edx, [esp + 0x94]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x40fec6
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40fed8
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jl 0x40fdd6
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push ebp
lea ecx, [esp + 0x58]
push str.Key_d
push ecx
call edi
add esp, 0xc
inc ebp
lea edx, [esp + 0x14]
push ebp
push 0x41851c
push edx
call edi
mov eax, dword [esi]
mov ecx, dword [esp + 0x1ac]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
lea edx, [esp + 0x54]
push eax
push ecx
push edx
push ebx
call edi
test eax, eax
jne 0x40ff02
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x188
ret 8
mov ecx, dword [esi]
mov edx, dword [esp + 0x1a0]
push ecx
lea eax, [esp + 0x58]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x188
ret 8
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push eax
push ecx
push str.Count
push ebx
call edi
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x188
ret 8
Function at 0x4100e0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
push ebx
push ebp
mov ebp, dword [esp + 0x118]
push esi
push 0
push ebp
mov ebx, ecx
push eax
call fcn.0040f9f0
mov esi, eax
test esi, esi
je 0x410175
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx]
push ecx
push 0x104
stosw word es:[edi], ax
push edx
push 0x41b408
push ebp
push str.List
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0x13]
lea ecx, [esp + 0x13]
push ecx
mov byte [esp + 0x17], al
call dword [sym.imp.MSVCRT.dll_atoi]
mov edx, dword [esp + 0x128]
add esp, 4
mov dword [edx], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
Function at 0x410190
Capabilities:
Listen for remote procedure calls

Disassembly:
sub esp, 0x98
xor eax, eax
push ebx
mov dword [esp + 9], eax
push ebp
mov dword [esp + 0x11], eax
push esi
mov dword [esp + 0x19], eax
push edi
mov dword [esp + 0x21], eax
lea ecx, [esp + 0x14]
mov word [esp + 0x25], ax
push 1
push ecx
xor esi, esi
mov byte [esp + 0x1c], 0
mov byte [esp + 0x2f], al
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4101e5
push esi
push esi
lea edx, [esp + 0x1c]
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4101e5
mov esi, 1
neg esi
mov edi, dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpA]
lea eax, [esp + 0x14]
sbb esi, esi
mov dword [esp + 0x10], 0
and esi, eax
push esi
push str.60B199FB_6D89_46f5_8780_C6DAA97B0A8D_RAVMONCENTER
push 0xa
push str.ncalrpc
call edi
neg eax
sbb eax, eax
neg eax
je 0x410286
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x10]
mov edx, ecx
inc ecx
cmp edx, 5
mov dword [esp + 0x10], ecx
jg 0x4102d5
push 0x7d0
call ebp
push 0x423658
call ebx
push 0x37
push str.C:TEMPRisingAutoLinkProduct2005AppPersonalRavMonRavMonDRPCServiceRPCService.cpp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.RpcServerUseProtseqEp_FAILED
call fcn.00407b30
add esp, 0x14
push 0x423658
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push str.60B199FB_6D89_46f5_8780_C6DAA97B0A8D_RAVMONCENTER
push 0xa
push str.ncalrpc
call edi
neg eax
sbb eax, eax
neg eax
jne 0x410220
mov ecx, dword [0x41a5e0]
push 0
push 0
push ecx
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIf]
test eax, eax
je 0x410313
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x2c]
push 0x41a688
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
test eax, eax
je 0x410286
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x2c]
push 0x41a65c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
call fcn.00406820
test eax, eax
je 0x410328
push 0
push 0xa
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
Function at 0x411010
Capabilities:
Create service

Disassembly:
push ecx
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [esp + 4], 1
test esi, esi
je 0x41107b
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
push edi
push 0
push 0
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push 0x41a864
push edx
mov edx, dword [esp + 0x30]
push 1
push eax
mov eax, dword [esp + 0x34]
push ecx
push 0xf01ff
push edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x411077
push eax
call edi
push esi
call edi
pop edi
pop esi
pop ecx
ret

Function at 0x4110d0
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x41115f
push esi
push 0xf01ff
push str.RsRavMon
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x411157
push ebx
lea eax, [esp + 0xc]
push edi
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41114e
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
je 0x41114e
cmp dword [esp + 0x14], 3
jne 0x41114e
push 0x3e8
call edi
lea edx, [esp + 0x10]
push edx
push esi
call ebx
test eax, eax
jne 0x411134
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x412130
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4121a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x412191
push 0x7d0
push edi
call ebp
test eax, eax
jne 0x41214f
mov eax, dword [esp + 0x10]
mov ecx, eax
inc eax
cmp ecx, 5
mov dword [esp + 0x10], eax
jle 0x41214f
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
xor ebp, ebp
lea edx, [esp + 0x1c]
push ebp
push edx
mov edx, dword [esp + 0x28]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
not ecx
push ecx
push edx
push esi
call ebx
test eax, eax
jne 0x4121da
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x41221b
mov dword [esp + 0x11], ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push ebp
push eax
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x1c]
push ecx
push esi
call ebx
test eax, eax
jne 0x41221b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x41225c
mov dword [esp + 0x11], ebp
mov dword [esp + 0x10], eax
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
push ebp
push edx
not ecx
lea eax, [esp + 0x18]
push ecx
push eax
push esi
call ebx
test eax, eax
jne 0x41225c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x412820
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 0x9ec]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 8]
ret 8

Function at 0x412850
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, ecx
lea eax, [esp + 4]
mov ecx, dword [esp + 0x10]
push 0
push eax
mov eax, dword [esi + 0x9ec]
push ecx
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41288b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 4]
mov eax, dword [esi + 0x9f0]
add eax, ecx
mov dword [esi + 0x9f0], eax
mov eax, 1
pop esi
pop ecx
ret 8

Function at 0x4128b0
Capabilities:
Delete file

Disassembly:
add ecx, 0x8e8
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x4130b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x4130f1
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
je 0x413117
mov eax, dword [esp + 0x18]
sub eax, 2
jne 0x413117
cmp dword [esp + 0xc], 5
jne 0x413117
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x413117
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret

Function at 0x413130
Capabilities:
Check os version

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
pop edi
cmp eax, 5
mov eax, str._s__d
jb 0x41315f
mov eax, str.Global_s__d
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x108]
push ecx
push edx
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp]
push ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
add esp, 0x104
ret
Function at 0x4131a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x228
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
mov eax, str._s__d
jb 0x4131dd
mov eax, str.Global_s__d
mov ecx, dword [esp + 0x238]
mov edx, dword [esp + 0x234]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
push edx
push eax
lea eax, [esp + 0x138]
push eax
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], 0
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x14]
stosw word es:[edi], ax
push 1
push ecx
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x413268
lea edx, [esp + 0x12c]
lea eax, [esp + 0x28]
push edx
push 0x41ae24
push eax
call esi
add esp, 0xc
push 0x423658
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x97
push str.C:TEMPRisingAutoLinkProduct2005AppPersonalRavMonRavMonDStdAfx.cpp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea ecx, [esp + 0x34]
push eax
push ecx
jmp 0x4132bc
push 0
push 0
lea edx, [esp + 0x1c]
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x4132da
lea eax, [esp + 0x12c]
lea ecx, [esp + 0x28]
push eax
push 0x41ae24
push ecx
call esi
add esp, 0xc
push 0x423658
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x9d
push str.C:TEMPRisingAutoLinkProduct2005AppPersonalRavMonRavMonDStdAfx.cpp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x34]
push eax
push edx
call fcn.00407b30
add esp, 0x14
push 0x423658
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
add esp, 0x228
ret
lea ecx, [esp + 0x12c]
lea edx, [esp + 8]
push ecx
push 0
lea eax, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
pop edi
pop esi
add esp, 0x228
ret

Function at 0x413b20
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00413b70
mov eax, dword [esi + 0xc]
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0xc]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x413b61
cmp dword [esp + 4], 0x103
jne 0x413b61
mov eax, dword [esi + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x413eb0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x413ef1
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
je 0x413f19
mov eax, dword [esp + 0xc]
cmp eax, 5
jb 0x413f19
jne 0x413f0e
cmp dword [esp + 0x10], 1
jne 0x413f19
cmp word [esp + 0x9c], 2
jb 0x413f19
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret

Function at 0x413f30
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x413f46
mov eax, 0x80070057
pop edi
add esp, 8
ret
lea eax, [esp + 4]
push esi
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftSecurity_CenterMonitoring
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x413fd1
mov edx, dword [esp + 8]
lea ecx, [esp + 0x14]
push eax
push ecx
push eax
push 0x20006
push eax
push eax
push eax
push edi
push edx
mov dword [esp + 0x38], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x413fc8
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push str.DisableMonitoring
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x14]
mov esi, eax
push edx
call edi
mov eax, dword [esp + 8]
push eax
call edi
test esi, esi
jle 0x413fdf
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
pop esi
pop edi
add esp, 8
ret
Function at 0x414580
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415748
push 0x414990
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
jne 0x4145cd
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
je 0x4145cd
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409b74
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, 0x417e54
mov dword [ebp - 4], edx
mov esi, ecx
cmp dword [edi + 4], 0
mov ebx, eax
jne 0x409b94
call fcn.00409b3c
mov eax, dword [ebp - 4]
jmp 0x409bad
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x409bb5
test al, 7
jne 0x409b99
cmp esi, 8
jb 0x409c3e
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x409bbe
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp esi, dword [ebp - 8]
jbe 0x409c68
mov ecx, dword [ebp - 8]
mov edx, ebx
shr ebx, 8
xor dl, byte [eax + ecx]
and edx, 0xff
mov ecx, dword [edi + edx*4]
xor ecx, ebx
mov ebx, ecx
inc dword [ebp - 8]
cmp esi, dword [ebp - 8]
ja 0x409c48
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x40a364
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x40a37b
test esi, esi
jg 0x40a382
xor eax, eax
jmp 0x40a426
mov edx, dword [ebp - 4]
add edx, 4
lea eax, [ebp - 0x28]
mov ecx, 0x10
call fcn.00410b28
test esi, esi
jns 0x40a39c
add esi, 0xf
sar esi, 4
mov dword [ebp - 8], esi
mov esi, dword [ebp - 8]
test esi, esi
jle 0x40a40d
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040a6d8
mov eax, dword [ebp - 0x28]
xor dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x24]
xor dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x20]
xor dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0xc], eax
mov eax, ebx
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
add ebx, 0x10
add dword [ebp + 8], 0x10
dec esi
test esi, esi
jg 0x40a3a9
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 0x10
call fcn.00410b28
mov eax, dword [ebp - 8]
shl eax, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a430
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov ecx, 0x20
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
mov dword [esp + 8], 4
call fcn.00410b28
xor esi, esi
xor ecx, ecx
xor edx, edx
jmp 0x40a497
xor eax, eax
mov edi, esi
mov ebp, dword [esp]
shl edi, 4
lea ebx, [esp + edx*4 + 0xc]
lea edi, [ebp + edi]
mov bl, byte [ebx + eax]
lea edi, [edi + ecx*4]
mov byte [edi + eax + 0x14], bl
inc eax
cmp eax, 4
jl 0x40a462
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x40a48f
cmp ecx, 4
jl 0x40a460
cmp ecx, 4
jne 0x40a497
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x40a4a2
cmp esi, 0xa
jle 0x40a484
cmp esi, 0xa
jg 0x40a635
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov al, byte [edx + 0x4184fc]
xor byte [esp + 0xc], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 0xa]
mov dl, byte [eax + 0x4184fc]
xor byte [esp + 0xd], dl
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov al, byte [edx + 0x4184fc]
xor byte [esp + 0xe], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 8]
mov dl, byte [eax + 0x4184fc]
xor byte [esp + 0xf], dl
mov eax, dword [esp + 4]
mov dl, byte [eax + 0x4186fc]
xor byte [esp + 0xc], dl
inc dword [esp + 4]
cmp dword [esp + 8], 8
je 0x40a545
mov edx, 1
cmp edx, dword [esp + 8]
jge 0x40a5e3
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x40a525
inc edx
cmp edx, dword [esp + 8]
jl 0x40a523
jmp 0x40a5e3
mov edx, 1
jmp 0x40a563
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x40a54e
inc edx
mov eax, dword [esp + 8]
sar eax, 1
jns 0x40a56e
adc eax, 0
cmp edx, eax
jl 0x40a54c
mov eax, dword [esp + 8]
sar eax, 1
jns 0x40a57d
adc eax, 0
xor edx, edx
mov dl, byte [esp + eax*4 + 8]
mov dl, byte [edx + 0x4184fc]
xor byte [esp + eax*4 + 0xc], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov dl, byte [edx + 0x4184fc]
xor byte [esp + eax*4 + 0xd], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xa]
mov dl, byte [edx + 0x4184fc]
xor byte [esp + eax*4 + 0xe], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov dl, byte [edx + 0x4184fc]
xor byte [esp + eax*4 + 0xf], dl
mov edx, eax
inc edx
cmp edx, dword [esp + 8]
jge 0x40a5e3
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x40a5c8
inc edx
cmp edx, dword [esp + 8]
jl 0x40a5c6
xor edx, edx
jmp 0x40a621
xor eax, eax
mov ebx, esi
shl ebx, 4
mov edi, dword [esp]
lea ebx, [edi + ebx]
lea ebx, [ebx + ecx*4]
lea edi, [ebx + eax + 0x14]
lea ebx, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
mov byte [edi], bl
inc eax
cmp eax, 4
jl 0x40a5eb
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x40a619
cmp ecx, 4
jl 0x40a5e9
cmp ecx, 4
jne 0x40a621
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x40a62c
cmp esi, 0xa
jle 0x40a60e
cmp esi, 0xa
jle 0x40a4ab
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret