joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10034a50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
cmp dword [ebp + 8], 0
jne 0x10034a64
or eax, 0xffffffff
jmp 0x10034ab7
xor eax, eax
mov word [ebp - 0x800], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x7fe]
push ecx
call fcn.1001b770
add esp, 0xc
push 0x400
lea edx, [ebp - 0x800]
push edx
push 0x10040124
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x800]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.hardware
push 0x10040170
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10034ac0
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
xor eax, eax
mov word [ebp - 0x800], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x7fe]
push ecx
call fcn.1001b770
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x10034af3
or eax, 0xffffffff
jmp 0x10034b41
movzx edx, word [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.1001b770
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x800]
push ecx
push 0x1003ffbc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x800]
push edx
push 0xd
mov eax, dword [ebp + 8]
push eax
push 0x1003fff4
push 0x1003fff8
push 0x10040000
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10034c40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
xor eax, eax
mov word [ebp - 0x800], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x7fe]
push ecx
call fcn.1001b770
add esp, 0xc
push 0x400
lea edx, [ebp - 0x800]
push edx
push 0x1003ff5c
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x800]
push eax
mov ecx, dword [ebp + 8]
call fcn.10001e90
push eax
push 0x1003ff94
push 0x1003ff9c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10034f90
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100390f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x824
xor eax, eax
mov word [ebp - 0x80c], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x80a]
push ecx
call fcn.1001b770
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x10034fdb
or eax, 0xffffffff
jmp 0x100350a8
mov edx, 0xa
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.1001b770
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x80c]
push ecx
push 0x10040020
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x80c]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
add ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x10040058
push 0x1004005c
push 0x10040064
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x828]
call fcn.10001c20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x828]
call fcn.10001b20
cmp eax, 3
jae 0x10035086
mov dword [ebp - 0x82c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.10001d10
mov eax, dword [ebp - 0x82c]
jmp 0x100350a8
mov dword [ebp - 0x830], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.10001d10
mov eax, dword [ebp - 0x830]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10035540
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003932d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1084
call fcn.100235a0
cmp dword [ebp + 8], 0
je 0x1003556e
cmp dword [ebp + 0xc], 0xc
je 0x10035576
or eax, 0xffffffff
jmp 0x1003575c
xor eax, eax
mov word [ebp - 0x82c], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x82a]
push ecx
call fcn.1001b770
add esp, 0xc
push 0x400
lea edx, [ebp - 0x82c]
push edx
push 0x10040084
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov word [ebp - 0x102c], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x102a]
push ecx
call fcn.1001b770
add esp, 0xc
lea edx, [ebp - 0x82c]
push edx
push 0x400
lea eax, [ebp - 0x102c]
push eax
push 0x100400bc
push 0x100400c0
push 0x100400d0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x102c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10001c20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10001b20
cmp eax, 0x81
jbe 0x10035673
push 0xd
lea edx, [ebp - 0x1038]
push edx
lea eax, [ebp - 0x1034]
push eax
lea ecx, [ebp - 0x28]
call fcn.10002970
mov ecx, eax
call fcn.10005330
mov ecx, dword [eax]
mov dword [ebp - 0x1030], ecx
lea edx, [ebp - 0x1040]
push edx
lea ecx, [ebp - 0x28]
call fcn.10002970
mov eax, dword [eax]
mov dword [ebp - 0x103c], eax
mov ecx, dword [ebp - 0x1030]
push ecx
mov edx, dword [ebp - 0x103c]
push edx
lea eax, [ebp - 0x1044]
push eax
lea ecx, [ebp - 0x28]
call fcn.10005160
lea ecx, [ebp - 0x28]
call fcn.10001b20
cmp eax, 0xc
jbe 0x10035711
push 0x100400f0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x1060]
push edx
call fcn.10003fb0
add esp, 0xc
mov dword [ebp - 0x1084], eax
mov eax, dword [ebp - 0x1084]
mov dword [ebp - 0x1088], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1088]
push edx
lea eax, [ebp - 0x107c]
push eax
call fcn.10005870
add esp, 0xc
mov dword [ebp - 0x108c], eax
mov ecx, dword [ebp - 0x108c]
mov dword [ebp - 0x1090], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1090]
push edx
lea ecx, [ebp - 0x28]
call fcn.10005110
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x107c]
call fcn.10001d10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1060]
call fcn.10001d10
jmp 0x1003571d
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.10005140
lea ecx, [ebp - 0x82c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10001e90
push eax
push 0x100400f4
push 0x10040104
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 0x1080], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10001d10
mov eax, dword [ebp - 0x1080]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10035b10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039424
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x890
mov dword [ebp - 0x88c], ecx
mov eax, dword [ebp - 0x88c]
push eax
lea ecx, [ebp - 0x814]
call fcn.100052d0
mov dword [ebp - 4], 0
xor ecx, ecx
mov word [ebp - 0x80c], cx
push 0x7fe
push 0
lea edx, [ebp - 0x80a]
push edx
call fcn.1001b770
add esp, 0xc
push 0x400
lea eax, [ebp - 0x80c]
push eax
push 0x1003fd94
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp - 0x88c]
add ecx, 0x2c
push ecx
lea edx, [ebp - 0x868]
push edx
call fcn.100076a0
add esp, 8
mov dword [ebp - 0x890], eax
mov eax, dword [ebp - 0x890]
mov dword [ebp - 0x894], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x80c]
push ecx
mov ecx, dword [ebp - 0x894]
call fcn.10001e90
push eax
push 0x1003fdcc
push 0x1003fdd4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x868]
call fcn.10001d10
push 0x1003fdf4
lea ecx, [ebp - 0x830]
call fcn.10001c20
mov byte [ebp - 4], 2
lea edx, [ebp - 0x830]
push edx
call fcn.100350c0
add esp, 4
lea ecx, [ebp - 0x830]
call fcn.10001eb0
movzx eax, al
test eax, eax
jne 0x10035cb1
push 0x1003fdf8
lea ecx, [ebp - 0x830]
push ecx
lea edx, [ebp - 0x84c]
push edx
call fcn.10003fb0
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x88c]
add eax, 0x2c
push eax
lea ecx, [ebp - 0x884]
push ecx
call fcn.100076a0
add esp, 8
mov dword [ebp - 0x898], eax
mov edx, dword [ebp - 0x898]
mov dword [ebp - 0x89c], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84c]
call fcn.10001e90
push eax
mov ecx, dword [ebp - 0x89c]
call fcn.10001e90
push eax
push 0x1003fe14
push 0x1003fe1c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x884]
call fcn.10001d10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x84c]
call fcn.10001d10
mov dword [ebp - 0x888], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x830]
call fcn.10001d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x814]
call fcn.10005300
mov eax, dword [ebp - 0x888]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x100369f0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038e92
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
call fcn.10036890
mov eax, dword [ebp - 0x18]
add eax, 0x40
push eax
push 0x1003b3b0
push 1
push 0
push 0x1003b480
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10036a57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x58], eax
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x54], 3
xor al, al
jmp 0x10036b23
push str.ROOTCIMV2
lea ecx, [ebp - 0x14]
call fcn.100013a0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x44
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x20]
call fcn.10001450
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x40]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10001430
cmp dword [ebp - 0x10], 0
je 0x10036ae7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x58], eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x54], 4
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x44], 0
je 0x10036ae7
mov ecx, dword [ebp - 0x18]
call fcn.10036830
xor al, al
jmp 0x10036b23
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x44]
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10036b21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x58], eax
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x54], 5
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10036dc0
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038fde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x870
mov dword [ebp - 0x87c], ecx
mov dword [ebp - 0x878], 0
xor eax, eax
mov word [ebp - 0x80c], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x80a]
push ecx
call fcn.1001b770
add esp, 0xc
xor edx, edx
mov word [ebp - 0x874], dx
push 0x62
push 0
lea eax, [ebp - 0x872]
push eax
call fcn.1001b770
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x80c]
push ecx
push 0x100405ec
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x80c]
push edx
push 0x32
lea eax, [ebp - 0x874]
push eax
push 0x10040624
push 0x10040628
push 0x10040640
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x874]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10001c20
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x878]
or edx, 1
mov dword [ebp - 0x878], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10037790
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039206
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x828
mov dword [ebp - 0x82c], ecx
xor eax, eax
mov word [ebp - 0x80c], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x80a]
push ecx
call fcn.1001b770
add esp, 0xc
push 0x400
lea edx, [ebp - 0x80c]
push edx
push str._USERPROFILE_FunShion.ini
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x828]
push ecx
call fcn.100076a0
add esp, 8
mov dword [ebp - 0x830], eax
mov edx, dword [ebp - 0x830]
mov dword [ebp - 0x834], edx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x80c]
push eax
mov ecx, dword [ebp - 0x834]
call fcn.10001e90
push eax
push str.description
push str.FunShion_Player
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.10001d10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10037860
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003923c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8a4
mov dword [ebp - 0x8a0], ecx
xor eax, eax
mov word [ebp - 0x28], ax
xor ecx, ecx
mov dword [ebp - 0x26], ecx
mov dword [ebp - 0x22], ecx
mov dword [ebp - 0x1e], ecx
mov dword [ebp - 0x1a], ecx
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x12], ecx
push 0xd
lea edx, [ebp - 0x28]
push edx
call fcn.10034ac0
add esp, 8
movzx eax, word [ebp - 0x28]
cmp eax, 0x43
je 0x10037a45
movzx ecx, word [ebp - 0x26]
cmp ecx, 0x46
je 0x10037a45
xor edx, edx
mov word [ebp - 0x82c], dx
push 0x7fe
push 0
lea eax, [ebp - 0x82a]
push eax
call fcn.1001b770
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x82c]
push ecx
push 0x100404f8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, dword [ebp - 0x8a0]
add edx, 8
push edx
lea eax, [ebp - 0x880]
push eax
call fcn.100076a0
add esp, 8
mov dword [ebp - 0x8a4], eax
mov ecx, dword [ebp - 0x8a4]
mov dword [ebp - 0x8a8], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 0x82c]
push edx
mov ecx, dword [ebp - 0x8a8]
call fcn.10001e90
push eax
push 0x10040530
push 0x10040538
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x880]
call fcn.10001d10
push 0x10040558
lea ecx, [ebp - 0x848]
call fcn.10001c20
mov dword [ebp - 4], 1
lea eax, [ebp - 0x848]
push eax
call fcn.100350c0
add esp, 4
lea ecx, [ebp - 0x848]
call fcn.10001eb0
movzx ecx, al
test ecx, ecx
jne 0x10037a33
push str._funshion.ini
lea edx, [ebp - 0x848]
push edx
lea eax, [ebp - 0x864]
push eax
call fcn.10003fb0
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x8a0]
add ecx, 8
push ecx
lea edx, [ebp - 0x89c]
push edx
call fcn.100076a0
add esp, 8
mov dword [ebp - 0x8ac], eax
mov eax, dword [ebp - 0x8ac]
mov dword [ebp - 0x8b0], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x864]
call fcn.10001e90
push eax
mov ecx, dword [ebp - 0x8b0]
call fcn.10001e90
push eax
push 0x10040578
push str.participation
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x89c]
call fcn.10001d10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x864]
call fcn.10001d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x848]
call fcn.10001d10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x401c90
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], 0
push dword [esi + 4]
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
test edi, edi
je 0x401ce6
mov ecx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push 0
push 2
push 0
push 0
push 0
push 4
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], str.CppWindowsService_in_OnStart
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push ecx
mov edx, esi
call fcn.00402d10
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x402c60
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], 0
push dword [esi + 4]
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
test edi, edi
je 0x402cb6
mov ecx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push 0
push 2
push 0
push 0
push 0
push 4
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], str.AGSService_in_OnStop
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push str.Thread_OnStop_...
push 0
push 4
push str.AGSService
push dword [0x5aecc0]
mov dword [esi + 0x28], 1
call fcn.0044d8e0
add esp, 0x14
push 0xffffffffffffffff
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
test eax, eax
jne 0x402cee
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push 0x5914b4
lea eax, [ebp - 4]
push eax
call fcn.004dbca7
int3

Function at 0x4035b0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 0
push dword [edi + 4]
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x403606
mov ecx, dword [edi + 4]
push 0
lea eax, [ebp - 8]
push eax
push 0
push 2
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x403610
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x59de30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0xc]
mov edi, ecx
push eax
push str._s_failed_w_err_0x_08lx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00402e20
add esp, 0x14
push dword [edi + 4]
mov dword [ebp - 0x214], 0
push 0
mov dword [ebp - 0x210], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4036a4
mov ecx, dword [edi + 4]
push 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x214]
push eax
push 0
push 2
push 0
push 0
push 0
push 1
push esi
mov dword [ebp - 0x214], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004da4c1
mov esp, ebp
pop ebp
ret 8
Function at 0x4036c0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550a8b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x59de30]
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
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40373f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x57dc38
call fcn.004dad14
add esp, 8
jmp 0x40389e
push 1
push 0x57dc88
lea ecx, [ebp - 0x230]
call fcn.00403d70
cmp word [ebp - 0x218], 0
jne 0x40375f
xor ecx, ecx
jmp 0x40377f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x403770
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403770
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403ad0
push 1
push 0x57dc88
lea ecx, [ebp - 0x230]
call fcn.00403ad0
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x4037cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.004dad14
add esp, 8
jmp 0x40389e
cmp dword [ebp - 0x21c], 8
push 0
push 0
push 0x557600
push 0
push 0
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.Adobe_Genuine_Software_Integrity_Service
push 0x579840
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
jne 0x403849
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.CreateService_failed_w_err_0x_08lx_n
call fcn.004dad14
add esp, 8
call esi
push eax
push str.AGSSerice_Service_Install_Failed_...08lx
push edi
push 4
push str.AGSService
push dword [0x5aecc0]
call fcn.0044d8e0
add esp, 0x18
jmp 0x40388e
lea eax, [ebp - 0x234]
push eax
push 1
push edi
mov dword [ebp - 0x234], str.Adobe_Genuine_Software_Integrity_Service
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push 0x579840
push str._s_is_installed._n
call fcn.004dad14
push str.AGSSerice_Service_Installed_...
push 0
push 4
push str.AGSService
push dword [0x5aecc0]
call fcn.0044d8e0
add esp, 0x1c
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
test edi, edi
je 0x40389e
push edi
call esi
cmp dword [ebp - 0x21c], 8
jb 0x4038b5
push dword [ebp - 0x230]
call fcn.004daf24
add esp, 4
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.004da4c1
mov esp, ebp
pop ebp
ret
Function at 0x4038e0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x59de30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 1
xorps xmm0, xmm0
push 0
push 0
movq qword [ebp - 0x20], xmm0
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
jne 0x403942
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.004dad14
add esp, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da4c1
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x10024
push 0x579840
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40396c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
jmp 0x403a1f
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4039fc
push 0x579840
push str.Stopping__s.
call fcn.004dad14
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
je 0x4039d8
mov eax, dword [ebp - 0x1c]
cmp eax, 3
jne 0x4039db
push 0x57ddf0
call fcn.004dad14
add esp, 4
push 0x3e8
call edi
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
jne 0x4039b1
mov eax, dword [ebp - 0x1c]
push 0x579840
cmp eax, 1
jne 0x4039ec
push 0x57ddf4
jmp 0x4039f1
push str._n_s_failed_to_stop._n
call fcn.004dad14
mov ebx, dword [ebp - 0x24]
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x403a15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteService_failed_w_err_0x_08lx_n
jmp 0x403a1f
push 0x579840
push str._s_is_removed._n
call fcn.004dad14
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
push ebx
call edi
test esi, esi
je 0x403a37
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da4c1
mov esp, ebp
pop ebp
ret