joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10398cb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x530
mov eax, dword [0x107342c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0x54
xor ebx, ebx
push 0x40
mov dword [ebp - 0x52c], eax
mov dword [ebp - 0x520], ebx
call dword [fcn.01001418]
mov esi, eax
cmp esi, ebx
je 0x1039a16
lea eax, [ebp - 0x520]
push eax
push 0x20019
push ebx
push dword [ebp - 0x52c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10399fc
cmp dword [ebp + 0x10], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
je 0x1039973
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x524]
push eax
push ebx
push 0x1014740
push dword [ebp - 0x520]
mov dword [ebp - 0x528], ebx
mov dword [ebp - 0x51c], 4
call edi
mov dword [ebp - 0x528], 1
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x524]
push eax
push ebx
push 0x1014730
push dword [ebp - 0x520]
mov dword [ebp - 0x51c], 0x208
call edi
test eax, eax
jne 0x10399fc
push 0x104
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [0x10012c0]
mov dword [ebp - 0x51c], eax
lea eax, [ebp - 0x530]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push ebx
lea eax, [ebp - 0x518]
push eax
push ebx
call dword [0x10012d8]
test eax, eax
je 0x10399fc
lea eax, [ebp - 0x20c]
push eax
call fcn.01032b06
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x1039a1d
cmp dword [ebp - 0x520], ebx
je 0x1039a10
push dword [ebp - 0x520]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.010396e7
xor eax, eax
jmp 0x1039aa8
mov eax, dword [ebp - 0x520]
mov dword [esi + 0x14], eax
lea ecx, [ebp - 0x51c]
push ecx
lea eax, [esi + 0x1c]
push eax
mov dword [eax], 0x3c
lea eax, [ebp - 0x524]
push eax
push ebx
mov dword [esi + 0x10], ebx
push 0x1014720
push dword [ebp - 0x520]
mov dword [ebp - 0x51c], 4
call edi
xor edi, edi
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x524]
push eax
push ebx
push dword [edi*4 + 0x1073360]
mov dword [ebp - 0x51c], 0x104
push dword [esi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1039aa0
cmp dword [ebp - 0x524], 1
jne 0x1039aa0
inc eax
mov ecx, edi
shl eax, cl
or dword [esi + 0xc], eax
inc edi
cmp edi, 0xc
jb 0x1039a5b
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0103e4d8
leave
ret 0xc
Function at 0x1039c8b
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x107342c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, 0x1074798
mov ebx, 0x1074780
xor edi, edi
push ebx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0x105
mov dword [ebp - 0x218], edi
mov dword [0x107479c], esi
mov dword [0x1074798], esi
call dword [fcn.0100167c]
test eax, eax
jge 0x1039ce4
xor eax, eax
jmp 0x1039e20
lea eax, [ebp - 0x214]
push eax
push 0x20019
push edi
push 0x10147d8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1039e1d
push ebx
call dword [fcn.01001674]
cmp dword [0x1074a18], edi
je 0x1039d33
call fcn.01039ab7
cmp eax, edi
je 0x1039d33
mov ecx, dword [0x107479c]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov dword [ecx], eax
mov dword [0x107479c], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
jmp 0x1039df6
cmp dword [0x1074464], edi
je 0x1039d7f
lea eax, [ebp - 0x210]
push 0x10147c4
push eax
call dword [0x10015e0]
test eax, eax
pop ecx
pop ecx
je 0x1039d97
cmp dword [0x1074464], edi
jne 0x1039dc8
lea eax, [ebp - 0x210]
push 0x10147b4
push eax
call dword [0x10015e0]
test eax, eax
pop ecx
pop ecx
je 0x1039dc8
mov eax, dword [ebp - 0x220]
push dword [eax + 0x30]
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call fcn.010398cb
cmp eax, edi
je 0x1039dc8
mov ecx, dword [0x107479c]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov dword [ecx], eax
mov dword [0x107479c], eax
inc dword [ebp - 0x218]
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x105
push dword [ebp - 0x214]
call ebx
test eax, eax
je 0x1039d57
push 0x1074780
call dword [fcn.01001678]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0103e4d8
leave
ret 4
Function at 0x103afe2
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x107342c]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], eax
inc ebx
call fcn.0103afc2
test eax, eax
je 0x103b026
push eax
push 0x1014ba0
lea eax, [ebp - 0x204]
push 0x1014b90
push eax
call dword [fcn.010018ec]
add esp, 0x10
lea eax, [ebp - 0x204]
jmp 0x103b02b
mov eax, 0x1014ba0
push 0
push eax
push 0xa
push 0x1014b80
call dword [0x100178c]
test eax, eax
mov esi, 0x6cc
je 0x103b050
cmp eax, esi
je 0x103b050
push eax
push 0x1014b4c
jmp 0x103b077
push 0x103aeba
push 0xa
push 0x21
push 0
push 0
push dword [0x1073478]
call dword [0x1001788]
test eax, eax
je 0x103b080
cmp eax, esi
je 0x103b080
push eax
push 0x1014b18
call fcn.0103edb8
pop ecx
pop ecx
xor ebx, ebx
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
pop ebx
call fcn.0103e4d8
leave
ret

Function at 0x103c6f9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x1011308
mov edi, 0x80000002
push edi
call esi
test eax, eax
jne 0x103c757
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1014be0
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x1013848
push edi
call esi
test eax, eax
pop edi
pop esi
pop ebx
jne 0x103c799
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1014be0
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov dword [0x1074514], eax
leave
ret
Function at 0x103c922
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
xor edi, edi
push 1
push edi
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], 0x200
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x103ca50
push 5
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x103ca47
push ebx
push esi
push dword [ebp - 4]
mov esi, dword [fcn.01001418]
push 0x40
call esi
mov ebx, eax
cmp ebx, edi
je 0x103ca3c
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call edi
test eax, eax
jne 0x103c9cb
call dword [fcn.0100149c]
cmp eax, 0x7a
jne 0x103ca35
push ebx
call dword [fcn.010014a0]
push dword [ebp - 4]
push 0x40
call esi
mov ebx, eax
test ebx, ebx
je 0x103ca3c
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call edi
test eax, eax
je 0x103ca35
cmp dword [ebx + 4], 2
jne 0x103ca35
mov edi, dword [fcn.010012a4]
call edi
mov esi, dword [0x1001414]
mov dword [ebp - 0xc], eax
call edi
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
ja 0x103ca35
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x103ca35
mov eax, dword [ebp - 0x28]
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x103ca12
cmp dword [ebp - 0x20], 0x435
jne 0x103ca35
jmp 0x103ca26
cmp eax, 4
je 0x103ca2c
cmp eax, 5
je 0x103ca2c
cmp eax, 6
je 0x103ca2c
cmp eax, 7
je 0x103ca2c
push 0x32
call esi
jmp 0x103ca2f
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x103c9e2
push ebx
call dword [fcn.010014a0]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
pop edi
leave
ret 8
Function at 0x103ca58
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1011308
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103cab4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x1014c78
push dword [ebp - 8]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0xc], esi
push 0x14
pop ebx
jne 0x103cad9
cmp dword [ebp - 0xc], esi
je 0x103cad9
push 0x1d4c0
push 0x1014c54
call fcn.0103c922
test eax, eax
je 0x103cad9
mov ebx, 0x258
push 0x1014c00
push esi
push 0x100000
call dword [0x1001434]
mov edi, eax
cmp edi, esi
jne 0x103cb12
call dword [fcn.0100149c]
cmp eax, 2
jne 0x103cb0e
push 0x1f4
call dword [0x1001414]
inc dword [ebp - 4]
cmp dword [ebp - 4], ebx
jl 0x103cad9
xor eax, eax
jmp 0x103cb2c
push dword [ebp + 8]
push edi
call dword [fcn.0100143c]
mov esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call dword [fcn.01001454]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x103cb33
Capabilities:
Get domain information
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x107342c]
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x660]
push eax
xor ebx, ebx
push 1
push ebx
mov dword [ebp - 0x658], ebx
mov dword [ebp - 0x668], ebx
call sub.NETAPI32.dll_DsRoleGetPrimaryDomainInformation
test eax, eax
jne 0x103cd89
mov eax, dword [ebp - 0x660]
mov eax, dword [eax]
push esi
push edi
push 4
pop esi
cmp eax, esi
je 0x103cb86
cmp eax, 5
jne 0x103ccfc
push 0x1014d90
push ebx
push 0x1f0003
call dword [0x1001434]
mov edi, eax
cmp edi, ebx
mov ebx, dword [fcn.0100143c]
je 0x103cbb0
push dword [ebp + 8]
push edi
call ebx
push edi
call dword [fcn.01001454]
mov eax, dword [ebp - 0x660]
cmp dword [eax], 5
jne 0x103ccfc
lea eax, [ebp - 0x65c]
push eax
push 0x20019
xor edi, edi
push edi
push 0x1014d20
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103cd06
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x670]
push eax
push edi
mov dword [ebp - 0x664], edi
mov edi, 0x1014d08
push edi
push dword [ebp - 0x65c]
mov dword [ebp - 0x66c], esi
mov dword [ebp - 0x670], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
xor ecx, ecx
cmp eax, ecx
jne 0x103ccdc
cmp dword [ebp - 0x664], ecx
jne 0x103cceb
push 0x1014ce4
push ecx
push 1
push ecx
call dword [fcn.0100141c]
test eax, eax
mov dword [ebp - 0x674], eax
je 0x103cceb
push 1
push eax
push 4
push 0
push dword [ebp - 0x65c]
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x103ccce
mov eax, dword [ebp + 8]
push 3
xor edx, edx
pop ecx
div ecx
mov dword [ebp - 0x678], eax
push dword [ebp - 0x678]
push dword [ebp - 0x674]
call ebx
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x670]
push eax
push 0
push edi
push dword [ebp - 0x65c]
call esi
cmp dword [ebp - 0x664], 0
jne 0x103ccc4
inc dword [ebp - 0x668]
cmp dword [ebp - 0x668], 3
jb 0x103cc7c
jmp 0x103ccce
mov dword [ebp - 0x658], 1
push dword [ebp - 0x674]
call dword [fcn.01001454]
jmp 0x103cceb
cmp eax, 2
jne 0x103cceb
mov dword [ebp - 0x658], 1
push dword [ebp - 0x65c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
pop esi
jmp 0x103cd06
mov dword [ebp - 0x658], 1
mov ecx, dword [ebp - 0x660]
mov eax, dword [ecx]
cmp eax, esi
je 0x103cd17
cmp eax, 5
jne 0x103cd7c
push dword [ecx + 0xc]
lea eax, [ebp - 0x404]
push 0x1014cc4
push eax
call dword [fcn.010018ec]
add esp, 0xc
push 0xb4
push 0x1014c98
push 0x101128c
xor edi, edi
call dword [0x1001404]
mov esi, dword [0x100132c]
mov ebx, eax
jmp 0x103cd60
inc edi
cmp edi, ebx
ja 0x103cd7c
push 0x3e8
call dword [0x1001414]
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x404]
push eax
call esi
cmp eax, 0xffffffff
je 0x103cd50
push eax
call dword [0x1001328]
push dword [ebp - 0x660]
call sub.NETAPI32.dll_DsRoleFreeMemory
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x658]
pop ebx
call fcn.0103e4d8
leave
ret 4
Function at 0x103ce23
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax + 0x30], edi
mov ebx, 0x3a98
mov esi, 0x1d4c0
je 0x103ce44
mov ebx, esi
push 0x69a
push edi
push edi
call fcn.0103c7a3
add esp, 0xc
push ebx
push 0x1014de0
call fcn.0103c922
push 0x6db
push edi
push 1
call fcn.0103c7a3
add esp, 0xc
push esi
push 0x1014dd4
call fcn.0103c922
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x1011308
push 0x80000002
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103cec5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push 0x1014c78
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0103cd9c
cmp dword [ebp - 8], edi
mov dword [ebp - 0x10], eax
jne 0x103ceda
cmp eax, edi
jne 0x103cf6f
mov eax, dword [ebp + 8]
cmp dword [eax + 0x30], edi
jne 0x103cf6f
push eax
call fcn.0102e5e8
test eax, eax
je 0x103cf6f
push 0x1013b70
push edi
push 0x100000
call dword [0x1001434]
mov ebx, eax
cmp ebx, edi
je 0x103cf26
push 0x699
push edi
push edi
call fcn.0103c7a3
add esp, 0xc
push 0xffffffffffffffff
push ebx
call dword [fcn.0100143c]
push ebx
call dword [fcn.01001454]
push 0x68b
push edi
push edi
call fcn.0103c7a3
add esp, 0xc
push esi
push 0x1013b5c
call fcn.0103c922
push 0x6dd
push edi
push 1
call fcn.0103c7a3
add esp, 0xc
push dword [ebp - 0x10]
push esi
call fcn.0103ca58
push 0x6dc
push edi
push 1
call fcn.0103c7a3
add esp, 0xc
push esi
call fcn.0103cb33
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x103cf76
Capabilities:
Get domain controller name

Disassembly:
push 0x68
push 0x1014df0
call fcn.0103e7b6
mov eax, dword [0x107342c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], 0x10
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [0x1001278]
test eax, eax
jne 0x103cfbe
mov word [ebp - 0x3c], si
push edi
lea eax, [ebp - 0x3c]
push eax
call dword [0x10015e0]
pop ecx
pop ecx
test eax, eax
je 0x103d005
mov dword [ebp - 4], esi
lea eax, [ebp - 0x64]
push eax
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
mov dword [ebp - 0x78], eax
or dword [ebp - 4], 0xffffffff
jmp 0x103cffa
cmp eax, esi
jne 0x103d02d
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
jmp 0x103d02a
cmp word [ebp - 0x3c], si
je 0x103d02d
mov word [ebp - 0x5e], 0x5c
mov word [ebp - 0x60], 0x5c
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [fcn.010015c0]
pop ecx
pop ecx
lea eax, [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov edi, dword [ebp - 0x70]
add edi, 0x484
lea eax, [ebp - 0x6c]
push eax
mov esi, 0x9e8
push esi
push edi
push dword [ebp - 0x74]
push dword [ebp - 0x68]
call fcn.0103f045
mov ebx, eax
test ebx, ebx
je 0x103d062
lea eax, [ebp - 0x6c]
push eax
push esi
push edi
push dword [ebp - 0x68]
call fcn.0103f03f
mov ebx, eax
cmp dword [ebp - 0x64], 0
je 0x103d070
push dword [ebp - 0x64]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 0x70]
mov dword [eax + 0x480], ebx
mov eax, ebx
mov ecx, dword [ebp - 0x1c]
call fcn.0103e4d8
call fcn.0103e7f1
ret 0xc
Function at 0x103d393
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
xor eax, eax
push 0x11
pop ecx
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
xor esi, esi
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x20]
inc edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x68], 0x44
mov word [ebp - 0x38], 2
mov dword [ebp - 0x3c], eax
je 0x103d487
cmp dword [ebp + 0xc], esi
mov ebx, dword [fcn.010016c8]
jne 0x103d437
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
push esi
add eax, 0x28
push eax
call fcn.010270ab
cmp eax, esi
mov ecx, dword [edi + 8]
mov ecx, dword [ecx + 0x28]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
je 0x103d479
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp + 0x1c]
push esi
push dword [ebp + 0x14]
or eax, 0x404
push eax
push esi
push esi
push esi
push dword [ebp + 0x18]
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 8], esi
mov dword [ebp + 0xc], eax
je 0x103d480
push dword [ebp - 8]
call fcn.01027188
jmp 0x103d4a8
lea eax, [ebp + 0x10]
push eax
push 0xf01ff
push 0xffffffffffffffff
call dword [0x1001710]
cmp eax, esi
jl 0x103d479
mov eax, dword [0x1076c98]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], esi
call dword [0x100173c]
push dword [ebp + 0x10]
mov edi, eax
call ebx
cmp edi, esi
jge 0x103d400
xor eax, eax
jmp 0x103d511
push dword [ebp - 4]
call ebx
jmp 0x103d4a8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp + 0x14]
push 0x404
push esi
push esi
push esi
push dword [ebp + 0x18]
push esi
call dword [0x1001440]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], esi
je 0x103d50e
mov ebx, 0x1074720
push ebx
call dword [fcn.010012d0]
push dword [ebp - 0x24]
mov edi, dword [ebp + 0x24]
push dword [edi + 0x18]
call dword [0x10013b4]
test eax, eax
je 0x103d4db
push dword [ebp - 0x20]
or dword [edi + 0x14], 8
call dword [fcn.010012e8]
jmp 0x103d4e9
push 5
push dword [ebp - 0x24]
call dword [fcn.0100124c]
mov dword [ebp + 0xc], esi
test byte [edi + 0x14], 0x10
mov esi, dword [fcn.01001454]
je 0x103d4fd
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x1c], eax
jmp 0x103d502
push dword [ebp - 0x24]
call esi
push ebx
call dword [fcn.010012cc]
push dword [ebp - 0x20]
call esi
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x20
Function at 0x103ec9f
Capabilities:
Listen for remote procedure calls

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, 0x1074538
push esi
call dword [fcn.010012d0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0103ebee
mov edi, eax
test edi, edi
jne 0x103eced
inc dword [0x1074534]
cmp dword [0x1074534], 1
jne 0x103eced
push 1
push 0x3039
push 1
call dword [fcn.010017a4]
mov edi, eax
cmp edi, 0x6b1
jne 0x103eced
xor edi, edi
push esi
call dword [fcn.010012cc]
push edi
call dword [fcn.01001794]
pop edi
pop esi
pop ebp
ret 8
Function at 0x103f609
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x107342c]
mov ecx, dword [ebp + 0x18]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x298], ecx
mov ecx, dword [ebp + 0x20]
xor ebx, ebx
cmp dword [ebp + 0x28], esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x294], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x29c], ecx
mov dword [ebp - 0x290], esi
je 0x103f6ec
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x28c]
push eax
call dword [fcn.010018ec]
add esp, 0xc
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x290]
push eax
push esi
push 0xf003f
push 1
push 0x1010d74
push esi
lea eax, [ebp - 0x28c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x103f6d8
cmp dword [ebp - 0x2a0], 1
jne 0x103f6b7
push dword [ebp - 0x290]
push dword [ebp - 0x294]
call fcn.0103f4dd
mov ebx, eax
cmp ebx, esi
jne 0x103f6d8
push dword [ebp + 0x24]
push dword [ebp - 0x29c]
push dword [ebp + 0x1c]
push esi
push dword [ebp - 0x298]
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
cmp dword [ebp - 0x290], esi
je 0x103f6ec
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.0103e4d8
leave
ret 0x24
Function at 0x103f740
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [0x107342c]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 0x298], edi
mov dword [ebp - 0x290], edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x294]
push eax
call dword [fcn.010013f4]
push eax
call dword [fcn.010013ac]
test eax, eax
jne 0x103f79c
call dword [fcn.0100149c]
jmp 0x103f90d
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push esi
call ebx
test eax, eax
jne 0x103f7b5
call dword [fcn.0100149c]
jmp 0x103f90c
lea eax, [ebp - 0x290]
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp esi, edi
jne 0x103f90c
push dword [ebp - 0x294]
mov esi, dword [fcn.010018ec]
lea eax, [ebp - 0x28c]
push 0x1015270
push eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x290]
call edi
push dword [ebp - 0x294]
lea eax, [ebp - 0x28c]
push 0x10151e8
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x290]
call edi
push dword [ebp - 0x294]
lea eax, [ebp - 0x28c]
push 0x10151a8
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x290]
call edi
push dword [ebp - 0x294]
lea eax, [ebp - 0x28c]
push 0x1015180
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x290]
call edi
push dword [ebp - 0x2a0]
call ebx
test eax, eax
je 0x103f7aa
test byte [ebp + 0x10], 2
jne 0x103f8ae
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
add eax, 6
push eax
push 0
call dword [0x1001900]
test eax, eax
jne 0x103f8ae
call dword [fcn.0100149c]
test byte [ebp + 0x10], 1
jne 0x103f8b9
call fcn.0103f380
test byte [ebp + 0x10], 4
jne 0x103f906
lea eax, [ebp - 0x298]
push eax
push 0x10154cc
push 0x17
push 0
push 0x10154bc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x103f906
and word [ebp - 0x2a8], ax
mov eax, dword [ebp - 0x298]
lea edx, [ebp - 0x2b0]
push edx
push 0x1015444
mov word [ebp - 0x2b0], 0xb
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
pop ebx
mov eax, dword [ebp - 0x298]
test eax, eax
pop edi
pop esi
je 0x103f91f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x290], 0
je 0x103f934
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x29c], 0
je 0x103f946
cmp dword [ebp - 0x29c], 1
jne 0x103f94c
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
call fcn.0103e4d8
leave
ret 0xc