joyce8/EMBER2024-capa huggingface dataset:
Function at 0x114073b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11510098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [0x115a6584]
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
jne 0x1140759b
push 1
push 0x115a6590
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
push 0x115a6590
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea ecx, [ebp - 0x34]
mov dword [0x115a65a8], 0xc
mov dword [0x115a65b0], esi
mov dword [0x115a65ac], 0x115a6590
call fcn.11385090
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], esi
call fcn.114e778a
mov eax, dword [0x115a65e4]
mov byte [ebp - 4], 1
cmp eax, esi
mov dword [ebp - 0x24], str.S_1_1_0
mov dword [ebp - 0x20], str.S_1_15_2_1
mov dword [ebp - 0x1c], str.S_1_15_2_2
mov ebx, 3
jne 0x114074b1
mov ecx, 0x44
xor eax, eax
lea edi, [ebp - 0x158]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x14c]
mov ecx, 2
cmp eax, ecx
jne 0x114074a7
mov eax, dword [ebp - 0x158]
cmp eax, 6
ja 0x1140749d
jne 0x114074a7
cmp dword [ebp - 0x154], ecx
jb 0x114074a7
mov dword [0x115a65e8], 1
mov dword [0x115a65e4], 1
cmp dword [0x115a65e8], esi
jne 0x114074be
mov ebx, 1
cmp ebx, esi
jle 0x11407505
lea esi, [ebp - 0x24]
mov edi, ebx
mov ecx, dword [esi]
push ecx
lea ecx, [ebp - 0x14]
call fcn.1137db10
mov edx, dword [ebp - 0x30]
push eax
push edx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.113857f0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1137e380
mov eax, dword [ebp - 0x40]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
call fcn.114e79ae
add esi, 4
dec edi
jne 0x114074c7
xor esi, esi
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x34]
push ecx
push edx
push 0x115a65c8
mov byte [ebp - 4], 3
call fcn.11406f70
add esp, 0xc
cmp eax, esi
jne 0x11407559
lea eax, [ebp - 0x18]
push 0x11549fb8
push eax
mov dword [ebp - 0x18], esi
call fcn.11366a20
push 1
push 0x115a65c8
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
push 0x115a65c8
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, 0x11407557
ret
mov eax, 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], eax
mov dword [0x115a65b8], 0xc
mov dword [0x115a65c0], esi
mov dword [0x115a65bc], 0x115a65c8
mov dword [0x115a6584], eax
mov byte [ebp - 4], 0
call fcn.114e77bd
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.113850a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x11409f30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11510470
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esp
xor eax, eax
push 0x1159f65c
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x24], edi
call fcn.114ea146
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 0x28]
push eax
mov ecx, ebx
call fcn.114ea146
mov ecx, ebx
call fcn.114e314a
mov ecx, ebx
call fcn.114e3059
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x30]
test eax, eax
jne 0x11409fc2
mov dword [esi + 0x2c], eax
mov dword [esi + 8], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
push 0
push edi
mov dword [esi + 0x2c], 1
mov dword [ebp - 4], 0
call fcn.11482130
mov ecx, dword [esi + 4]
call fcn.11482320
mov ecx, dword [esi + 4]
push 0
mov dword [esi + 8], eax
call fcn.11482a50
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x114117d0
Capabilities:
Access peb ldr_data
Enumerate pe sections

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x11510b70
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
mov ecx, esi
xor edi, edi
call fcn.113904d0
cmp eax, 0x1c
jb 0x11411958
mov ecx, esi
call fcn.11390bf0
mov ebx, eax
mov al, byte [ebx + 6]
cmp al, 2
ja 0x11411976
cmp al, 1
je 0x11411824
test al, al
je 0x11411824
xor eax, eax
mov ah, byte [ebx + 5]
jmp 0x11411826
xor eax, eax
xor ecx, ecx
mov cl, byte [ebx + 4]
add ecx, eax
je 0x11411990
push ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x34], edi
lea edi, [ebx + 0x1a]
mov al, byte [ebx + 6]
cmp al, 1
je 0x11411851
test al, al
je 0x11411851
xor eax, eax
mov ah, byte [ebx + 5]
jmp 0x11411853
xor eax, eax
xor edx, edx
mov dl, byte [ebx + 4]
add edx, eax
mov eax, dword [esp + 0x34]
cmp eax, edx
jge 0x11411940
mov eax, dword [esp + 0x38]
lea esi, [edi - 0x12]
push eax
push 1
push esi
call fcn.11412c30
mov eax, dword [0x11526534]
add esp, 0xc
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
xor ecx, ecx
xor edx, edx
mov cl, byte [edi - 0x10]
mov dx, word [edi]
shl ecx, 0x10
mov dword [esp + 0x24], 0
lea eax, [ecx + edx]
test eax, eax
je 0x114118d4
lea esi, [eax + ebx]
push 0xfde9
lea ecx, [esp + 0x18]
lea eax, [esi + 8]
push eax
call fcn.113828e0
xor ecx, ecx
push 0xfde9
mov cx, word [esi + 4]
lea edx, [ecx + esi + 9]
lea ecx, [esp + 0x1c]
push edx
call fcn.113828e0
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
mov ecx, ebp
lea eax, [esi + 1]
push eax
call fcn.1132f44a
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x10]
lea ecx, [esi + esi*2]
lea esi, [edx + ecx*4]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 4]
mov dword [esi], eax
call fcn.1137e530
lea edx, [esp + 0x18]
lea ecx, [esi + 8]
push edx
call fcn.1137e530
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 1
call fcn.1137e380
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.1137e380
mov ecx, dword [esp + 0x34]
inc ecx
add edi, 0x14
mov dword [esp + 0x34], ecx
jmp 0x1141183f
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esp + 0x30]
mov dword [eax], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x30]
mov eax, edi
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
mov dword [edx], 1
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x11412c30
Capabilities:
Print debug messages

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x838
test edx, edx
push ebx
je 0x11412da4
mov ebx, dword [esp + 0x848]
test ebx, ebx
je 0x11412da4
mov eax, dword [esp + 0x844]
push ebp
mov ebp, dword [edx + 4]
push esi
test eax, eax
push edi
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], 0x20
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x28], 0x80
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x34], 0x400
mov dword [esp + 0x38], 0x800
mov dword [esp + 0x3c], 0x1000
mov dword [esp + 0x40], 0x100000
mov dword [esp + 0x44], 0x200000
je 0x11412d1b
lea esi, [esp + 0x10]
mov edi, 7
cmp ebx, 1
jne 0x11412cfd
mov eax, dword [esi]
mov ecx, dword [edx + 4]
test ecx, eax
je 0x11412cf3
not eax
and eax, ecx
mov dword [edx + 4], eax
jmp 0x11412d13
mov eax, dword [esi + 4]
or eax, ecx
mov dword [edx + 4], eax
jmp 0x11412d13
cmp ebx, 2
jne 0x11412d13
mov eax, dword [edx + 4]
mov ecx, dword [esi]
test eax, ecx
jne 0x11412d13
mov ecx, dword [esi + 4]
or ecx, eax
mov dword [edx + 4], ecx
add esi, 8
dec edi
jne 0x11412cdc
jmp 0x11412d54
lea esi, [esp + 0x14]
mov edi, 7
cmp ebx, 1
jne 0x11412d39
mov eax, dword [esi]
mov ecx, dword [edx + 4]
test ecx, eax
jne 0x11412d47
mov eax, dword [esi - 4]
or eax, ecx
jmp 0x11412d4b
cmp ebx, 2
jne 0x11412d4e
mov eax, dword [esi]
mov ecx, dword [edx + 4]
test ecx, eax
je 0x11412d4e
not eax
and eax, ecx
mov dword [edx + 4], eax
add esi, 8
dec edi
jne 0x11412d24
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x4a]
mov word [esp + 0x48], 0
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x850]
push ecx
push ebp
stosw word es:[edi], ax
push edx
lea eax, [esp + 0x54]
push str.CFilePolicyMgr::ChangeTwoState_bSet__d__dwOldPolicy_0x_x__dwPolicy_0x_x_
push eax
call fcn.11364437
add esp, 0x14
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x838
ret
xor eax, eax
pop ebx
add esp, 0x838
ret
Function at 0x11415880
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov esi, 0x8000
push edi
cmp eax, esi
mov dword [esp + 0x14], esi
jbe 0x1141589e
mov dword [esp + 0x14], eax
mov esi, eax
push esi
call fcn.114ef26e
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
mov ebp, dword [esp + 0x24]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], ebx
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jne 0x114158dd
xor ebx, ebx
jmp 0x114158fa
lea eax, [esp + 0x24]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x114158f6
or ebx, 0xffffffff
jmp 0x114158fa
mov ebx, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1141594d
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push 0
push ecx
push eax
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x11415932
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x11415949
mov ecx, dword [esp + 0x10]
push ecx
call fcn.114ef297
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x2c]
cmp ebx, esi
jae 0x11415972
test ebx, ebx
je 0x11415a46
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push 0
push edx
push ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x11415a46
lea ecx, [ebx + edi]
add edi, eax
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edi
call fcn.114ef26e
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x24], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x114159a6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jg 0x114159e5
push 0
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
je 0x114159e5
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push 0
push eax
push esi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x114159df
or esi, 0xffffffff
jmp 0x114159e7
mov esi, dword [esp + 0x28]
jmp 0x114159e7
xor esi, esi
mov edx, dword [esp + 0x2c]
push 0
push 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebx, ebx
je 0x11415a0f
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
add edx, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
add edi, esi
mov dword [esp + 0x10], edx
test esi, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov ebx, esi
jg 0x114159a2
push eax
call fcn.114ef297
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.114ef297
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x11415a60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
jne 0x11415a83
or ebx, eax
jmp 0x11415a85
mov ebx, eax
push 2
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
je 0x11415a9f
mov dword [esp + 0x1c], eax
push 0
push ebx
push esi
call fcn.11415da0
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub eax, ebp
sub ecx, ebp
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x11415ac7
mov dword [esp + 0x20], eax
push 0x8000
call fcn.114ef26e
mov ebx, eax
add esp, 4
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push 0
push 0
lea ecx, [eax + ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x24]
push 0
push edx
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x11415b11
or eax, 0xffffffff
jmp 0x11415b4d
mov edi, dword [esp + 0x24]
mov eax, edi
test edi, edi
mov dword [esp + 0x14], eax
jle 0x11415b4d
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x11415b49
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x11415b58
cmp dword [esp + 0x10], edi
jne 0x11415b58
mov eax, dword [esp + 0x14]
add ebp, eax
cmp eax, 0x8000
jne 0x11415b6b
jmp 0x11415ae1
push ebx
call fcn.114ef297
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
sub eax, ecx
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call fcn.114ef297
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x11416cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1151105f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x11526534]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 8], eax
mov dword [esp + 0x28], 1
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov byte [esp + 0x28], 2
cmp eax, edi
jle 0x11416e10
push ebx
push ebp
mov bl, 4
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*8]
mov edx, dword [eax + edi*8 + 4]
lea eax, [eax + edi*8]
cmp ecx, edx
ja 0x11416e02
jne 0x11416d7a
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.114dfb60
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call fcn.1137e530
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x18]
jmp 0x11416dd6
mov eax, dword [eax + 4]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.114dfb60
mov ebp, eax
mov edx, dword [esi + 4]
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], bl
mov eax, dword [edx + edi*8]
push eax
push ecx
call fcn.114dfb60
add esp, 0x10
mov edx, dword [ebp]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s__s
push ecx
mov byte [esp + 0x40], 5
call fcn.11381390
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.1137e380
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x20]
call fcn.1137e380
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x11416df4
push 0x11581f64
lea ecx, [esp + 0x14]
call fcn.1137efc0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.1137f020
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x11416d3b
pop ebp
pop ebx
mov esi, dword [esp + 0x30]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.1137d900
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call fcn.1137e380
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.1137e380
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x11471910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x11519005
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov edx, dword [esp + 0x18]
push ebx
push esi
mov esi, dword [esp + 0x1c]
lea eax, [edx + edx*2]
push edi
mov edi, esi
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 3
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x11471a04
inc edx
push ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], esi
test esi, esi
mov dword [esp + 0x1c], 0
je 0x114719e5
mov ecx, dword [0x11526534]
mov dword [esi], ecx
mov edx, dword [0x11526534]
lea edi, [esi + 4]
mov dword [edi], edx
lea ebp, [esi + 8]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.11416090
lea ebx, [esi + 0x3c]
mov byte [esp + 0x1c], 3
mov ecx, ebx
call fcn.11416090
mov eax, dword [0x11526534]
mov dword [esi + 0x74], eax
push 0x1159f65c
mov ecx, esi
mov byte [esp + 0x20], 5
call fcn.1137e660
push 0x1159f65c
mov ecx, edi
call fcn.1137e660
mov ecx, ebp
call fcn.11416330
mov ecx, ebx
call fcn.11416330
push 0x1159f65c
lea ecx, [esi + 0x74]
mov dword [esi + 0x70], 0
call fcn.1137e660
mov eax, dword [esp + 0x28]
add esi, 0x78
dec eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
jne 0x1147195d
pop ebp
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x11471a20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x11519058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov edx, dword [esp + 0x18]
push ebx
mov ecx, edx
push esi
mov esi, dword [esp + 0x1c]
push edi
shl ecx, 4
add ecx, edx
xor eax, eax
shl ecx, 3
mov ebx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x11471b26
inc edx
push ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], esi
test esi, esi
mov dword [esp + 0x1c], 0
je 0x11471b04
mov ecx, dword [0x11526534]
mov dword [esi], ecx
mov edx, dword [0x11526534]
lea edi, [esi + 4]
mov dword [edi], edx
lea ebp, [esi + 8]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.11416090
lea ebx, [esi + 0x3c]
mov byte [esp + 0x1c], 3
mov ecx, ebx
call fcn.11416090
mov eax, dword [0x11526534]
mov dword [esi + 0x80], eax
push 0x1159f65c
mov ecx, esi
mov byte [esp + 0x20], 5
call fcn.1137e660
push 0x1159f65c
mov ecx, edi
call fcn.1137e660
mov ecx, ebp
call fcn.11416330
mov ecx, ebx
call fcn.11416330
xor eax, eax
push 0x1159f65c
mov dword [esi + 0x78], eax
lea ecx, [esi + 0x80]
mov dword [esi + 0x70], eax
mov dword [esi + 0x7c], eax
call fcn.1137e660
mov eax, dword [esp + 0x28]
add esi, 0x88
dec eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
jne 0x11471a6e
pop ebp
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x11476e70
Capabilities:
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x115198bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa24
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
xor ebp, ebp
xor esi, esi
call fcn.114e7b3a
mov eax, dword [esp + 0xa60]
mov dword [esp + 0xa38], ebp
cmp eax, ebp
je 0x11476eb7
push eax
lea ecx, [esp + 0x18]
call fcn.114e7d16
mov eax, dword [esp + 0xa64]
cmp eax, ebp
je 0x11476ecc
push eax
lea ecx, [esp + 0x18]
call fcn.114e7d16
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x232]
mov word [esp + 0x230], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], 0x400
cmp eax, ebp
jle 0x11476f37
lea eax, [esp + 0xc]
lea ecx, [esp + 0x230]
push eax
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
call fcn.113e4d20
add esp, 0x10
test eax, eax
jne 0x11476f30
lea ecx, [esp + 0x14]
mov dword [esp + 0xa38], 0xffffffff
call fcn.114e7b6d
xor eax, eax
jmp 0x11477005
lea esi, [esp + 0x230]
mov eax, dword [esp + 0xa50]
mov ecx, dword [esp + 0xa6c]
mov edx, dword [esp + 0xa68]
push ebx
push eax
mov eax, dword [esp + 0xa64]
push ecx
mov ecx, dword [esp + 0xa64]
push edx
mov edx, dword [esp + 0xa5c]
push esi
mov esi, dword [esp + 0xa54]
push ebp
push eax
mov eax, dword [esp + 0xa64]
push ecx
mov ecx, dword [esp + 0xa64]
push edx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ebx, eax
cmp ebx, ebp
je 0x11476fee
mov ebp, dword [esp + 0xa58]
test ebp, ebp
je 0x11476fee
test esi, esi
je 0x11476fee
call fcn.113f7250
mov eax, dword [0x115a62e0]
test eax, eax
je 0x11476fee
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], 0
rep stosd dword es:[edi], eax
push 0
lea edx, [esp + 0x30]
push 0x104
push edx
push 0xffffffffffffffff
push ebp
stosw word es:[edi], ax
call fcn.113e3920
add esp, 0x14
lea ecx, [esp + 0x14]
lea eax, [esp + 0x2c]
push ecx
push 1
push esi
mov dword [esp + 0x20], eax
call dword [0x115a62e0]
lea ecx, [esp + 0x18]
mov dword [esp + 0xa3c], 0xffffffff
call fcn.114e7b6d
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0xa30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xa30
ret
Function at 0x11477840
Capabilities:
Set registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0xffffffff
je 0x1147785d
cmp edi, 4
jbe 0x1147785d
mov dword [0x115a66bc], 0x57
xor eax, eax
pop edi
ret
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
cmp eax, 0xffffffff
mov ebx, dword [esi]
je 0x1147787c
push eax
mov eax, dword [str.Type]
push eax
mov ecx, esi
call fcn.1138e040
cmp edi, 0xffffffff
je 0x11477890
mov ecx, dword [str.Start]
push edi
push ecx
mov ecx, esi
call fcn.1138e040
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x114778a8
mov edx, dword [str.ErrorControl]
push eax
push edx
mov ecx, esi
call fcn.1138e040
mov eax, dword [esp + 0x20]
test eax, eax
je 0x114778be
push eax
mov eax, dword [str.DisplayName]
push eax
mov ecx, esi
call fcn.1138e1f0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x114778d5
mov ecx, dword [str.Description]
push eax
push ecx
mov ecx, esi
call fcn.1138e1f0
mov edi, dword [esp + 0x28]
test edi, edi
je 0x114778fd
push edi
call fcn.11363fc6
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [str.ImagePath]
push edx
push edi
push 2
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x11477914
mov ecx, dword [str.Group]
push eax
push ecx
mov ecx, esi
call fcn.1138e1f0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1147792b
mov edx, dword [str.DependOnGroup]
push eax
push edx
mov ecx, esi
call fcn.1138e640
mov eax, dword [esp + 0x34]
test eax, eax
je 0x11477941
push eax
mov eax, dword [str.DependOnService]
push eax
mov ecx, esi
call fcn.1138e640
pop esi
pop ebx
mov eax, 1
pop edi
ret