joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1166d399
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1176ca9c
call fcn.116bfcd0
push ecx
mov eax, dword [0x11773dfc]
push esi
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x1166d3c9
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.1166d09b
pop ecx
test eax, eax
pop ecx
jne 0x1166d3d1
push dword [ebp + 0xc]
push dword [ebp + 8]
jmp 0x1166d3d7
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.11685570
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x1166d59a
Capabilities:
Create directory

Disassembly:
mov eax, 0x1176cafc
call fcn.116bfcd0
push ecx
mov eax, dword [0x11773dfc]
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
and dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x1166d5cd
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.1166d09b
pop ecx
test eax, eax
pop ecx
je 0x1166d5cd
push 1
pop esi
mov eax, dword [0x117bf398]
test eax, eax
je 0x1166d5f3
push dword [ebp - 0x10]
push esi
push str.COverlongPathApi::CreateDirectoryW_bChangeToLongPath__d__wstrLongPath__s_
push str.COverlongPathApi
push 0xffffffffffffffff
push 0x117beb04
call fcn.116bdf00
add esp, 0x18
push dword [ebp + 0xc]
test esi, esi
jne 0x1166d5ff
push dword [ebp + 8]
jmp 0x1166d602
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.11685570
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x1166d5e4
Capabilities:
Create directory

Disassembly:
mov eax, 0x1176cafc
call fcn.116bfcd0
push ecx
mov eax, dword [0x11773dfc]
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
and dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x1166d5cd
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.1166d09b
pop ecx
test eax, eax
pop ecx
je 0x1166d5cd
push 1
pop esi
mov eax, dword [0x117bf398]
test eax, eax
je 0x1166d5f3
push dword [ebp - 0x10]
push esi
push str.COverlongPathApi::CreateDirectoryW_bChangeToLongPath__d__wstrLongPath__s_
push str.COverlongPathApi
push 0xffffffffffffffff
push 0x117beb04
call fcn.116bdf00
add esp, 0x18
push dword [ebp + 0xc]
test esi, esi
jne 0x1166d5ff
push dword [ebp + 8]
jmp 0x1166d602
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.11685570
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x11671a49
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
mov ebx, dword [ebp + 8]
push edi
push 4
push 0x117944dc
push ebx
call fcn.116c08b5
add esp, 0xc
test eax, eax
jne 0x11671a6e
add ebx, 8
push ebx
call fcn.116bfde7
cmp eax, 4
pop ecx
jb 0x11671b25
cmp word [ebx + 2], 0x3a
jne 0x11671b25
cmp word [ebx + 4], 0x5c
lea eax, [ebx + 4]
mov dword [ebp - 4], eax
jne 0x11671b25
push esi
mov esi, 0x1179128c
lea edi, [ebp - 0x10]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [ebx]
push eax
call fcn.116c16cd
mov word [ebp - 0x10], ax
pop ecx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
pop esi
jne 0x11671b25
and word [ebp - 0x218], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x11671b25
push dword [ebp - 4]
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp + 0x10]
dec eax
push 0x11791294
push eax
push dword [ebp + 0xc]
call fcn.116c0450
add esp, 0x14
jmp 0x11671b36
mov eax, dword [ebp + 0x10]
dec eax
push eax
push ebx
push dword [ebp + 0xc]
call fcn.116c03a4
add esp, 0xc
push 1
pop eax
pop edi
pop ebx
leave
ret
Function at 0x11671ba9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
and word [ebp - 0x264], 0
push esi
push edi
mov ecx, 0x95
xor eax, eax
lea edi, [ebp - 0x262]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x264]
push 0x12c
push eax
push dword [ebp + 8]
call fcn.11671b3d
add esp, 0xc
test eax, eax
je 0x11671d02
mov esi, 0x1179128c
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 6]
stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp word [ebp - 0xc], 0x5a
ja 0x11671c92
and word [ebp - 0x46c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x46a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x46c]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [ebp - 0x46c]
push eax
call fcn.116bfde7
mov esi, eax
pop ecx
test esi, esi
jbe 0x11671c67
lea eax, [ebp - 0x46c]
push esi
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.116bfcef
add esp, 0xc
test eax, eax
je 0x11671c6d
inc word [ebp - 0xc]
jmp 0x11671bff
lea eax, [ebp + esi*2 - 0x264]
test eax, eax
je 0x11671c92
push eax
lea eax, [ebp - 0xc]
push eax
push 0x11791294
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.116c0450
add esp, 0x14
jmp 0x11671cff
push 8
lea eax, [ebp - 0x264]
push 0x11791304
push eax
call fcn.116bfcef
add esp, 0xc
test eax, eax
jne 0x11671cc8
lea eax, [ebp - 0x254]
push eax
push 0x117912f8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.116c0450
add esp, 0x10
jmp 0x11671cff
push 0x19
lea eax, [ebp - 0x264]
push str.DeviceLanmanRedirector_
push eax
call fcn.116bfcef
add esp, 0xc
test eax, eax
jne 0x11671cea
lea eax, [ebp - 0x232]
jmp 0x11671cb2
push dword [ebp + 0x10]
lea eax, [ebp - 0x264]
push dword [ebp + 0xc]
push eax
call fcn.11671a49
add esp, 0xc
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x11673923
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x1176d4a0
call fcn.116bfcd0
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x78]
call fcn.11669067
mov eax, dword [0x11773dfc]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
call fcn.116d2ec0
test eax, eax
je 0x11673992
call fcn.116aaa30
push eax
lea ecx, [ebp - 0x18]
call fcn.11684dd0
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push str._sSysWOW64
push eax
call fcn.116884f0
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.11685570
jmp 0x116739a0
call fcn.116aaee0
push eax
lea ecx, [ebp - 0x10]
call fcn.116857f0
push str.sdfattr.dll
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0x1178f20c
push eax
call fcn.116884f0
add esp, 0x10
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 8], eax
call fcn.116d3200
test eax, eax
je 0x116739eb
call fcn.116d2ec0
test eax, eax
je 0x116739eb
lea ecx, [ebp - 0x2c]
call fcn.11658fa7
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.11658fea
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x11673aae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetSecurityRegion
push eax
call esi
push str.SetGlobalInfo
mov dword [0x117be144], eax
push dword [edi + 8]
call esi
push str.SetPolicyInfo
mov dword [0x117be148], eax
push dword [edi + 8]
call esi
push str.SetUserCfgInfo
mov dword [0x117be14c], eax
push dword [edi + 8]
call esi
push str.SetUserLib
mov dword [0x117be150], eax
push dword [edi + 8]
call esi
push str.SetUGroupLib
mov dword [0x117be154], eax
push dword [edi + 8]
call esi
push str.SetAgentLib
mov dword [0x117be158], eax
push dword [edi + 8]
call esi
push str.SetAGroupLib
mov dword [0x117be15c], eax
push dword [edi + 8]
call esi
push str.SetGroupIDInfo
mov dword [0x117be160], eax
push dword [edi + 8]
call esi
push str.SetRelationship
mov dword [0x117be164], eax
push dword [edi + 8]
call esi
push str.PopupSDPropertyDlg
mov dword [0x117be168], eax
push dword [edi + 8]
call esi
push str.IsCompresHasEncryFile
mov dword [0x117be16c], eax
push dword [edi + 8]
call esi
mov dword [0x117be170], eax
cmp dword [0x117be144], ebx
je 0x11673b13
cmp dword [0x117be148], ebx
je 0x11673b13
cmp dword [0x117be14c], ebx
je 0x11673b13
cmp dword [0x117be150], ebx
je 0x11673b13
cmp dword [0x117be154], ebx
je 0x11673b13
cmp dword [0x117be158], ebx
je 0x11673b13
cmp dword [0x117be15c], ebx
je 0x11673b13
cmp dword [0x117be160], ebx
je 0x11673b13
cmp dword [0x117be164], ebx
je 0x11673b13
cmp dword [0x117be168], ebx
je 0x11673b13
cmp dword [0x117be16c], ebx
je 0x11673b13
cmp dword [0x117be170], ebx
je 0x11673b13
push 1
pop esi
jmp 0x11673b15
xor esi, esi
mov dword [edi + 4], esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.11685570
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.11685570
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.116690fc
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x116776e4
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
mov eax, 0x1176db07
call fcn.116bfcd0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0xc]
call fcn.1166b4ea
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x30], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x38], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi], 0x11773ba8
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x116779ff
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov ecx, 0x117be278
jmp 0x11677a1f
mov eax, 0x1176db95
call fcn.116bfcd0
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov byte [ebp - 4], 1
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
call fcn.11679a7a
mov byte [ebp - 4], 3
mov dword [esi + 0x4c], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], edi
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 4
call fcn.11692eb0
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 5
call fcn.11677b01
lea ecx, [esi + 0x104]
mov byte [ebp - 4], 6
call fcn.1167923f
lea ecx, [esi + 0x140]
mov byte [ebp - 4], 7
call fcn.11677bec
lea ecx, [esi + 0x1f4]
mov byte [ebp - 4], 8
call fcn.11677d61
mov ecx, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x21c], edi
mov dword [esi], 0x11773bac
mov dword [esi + 0x144], esi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1167891d
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1176ddf3
call fcn.116bfcd0
sub esp, 0x84
push esi
push edi
push 0xffffffffffffffff
xor edi, edi
push 0xffffffffffffffff
push edi
mov esi, ecx
push edi
push edi
push edi
lea ecx, [ebp - 0x54]
call fcn.116776e4
lea eax, [esi + 0x5c]
push 1
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.116933e0
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov ecx, dword [eax + ecx*4]
cmp dword [ecx + 0xc], edi
jne 0x11678983
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.11693440
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.1167776f
jmp 0x11678aa5
push ebx
call fcn.11679d68
mov edi, eax
lea ecx, [ebp - 0x54]
lea eax, [edi + 8]
push eax
call fcn.1167885f
push edi
lea ecx, [esi + 0x34]
call fcn.11679acc
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.11693440
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x3c], ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.11678ab5
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [ebp - 4], 2
call edi
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x90]
lea ecx, [esi + 0x140]
push eax
mov dword [ebp + 0xc], ecx
call fcn.116797e9
call edi
mov dword [ebp + 8], eax
mov eax, dword [0x117bf398]
test eax, eax
mov ebx, str.CTaskMgr2
mov esi, 0x117beb04
je 0x11678a22
mov eax, dword [ebp - 0x24]
push dword [eax]
push dword [eax + 4]
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push str.CTaskMgr2::_Dispose_start__Type__lu__Level__lu__Dispose_0x_x__0x_x_
push ebx
push 0xffffffffffffffff
push esi
call fcn.116bdf00
add esp, 0x20
lea ecx, [ebp - 0x54]
call fcn.116777ae
call edi
sub eax, dword [ebp + 8]
cmp eax, 0x3e8
jb 0x11678a4f
cmp dword [0x117bf398], 0
je 0x11678a72
push eax
mov eax, dword [ebp - 0x24]
push dword [eax]
push dword [eax + 4]
push str.CTaskMgr2::_Dispose_end__Dispose_0x_x__0x_x__span__lu__
jmp 0x11678a66
cmp dword [0x117bf398], 0
je 0x11678a72
push eax
mov eax, dword [ebp - 0x24]
push dword [eax]
push dword [eax + 4]
push str.CTaskMgr2::_Dispose_end__Dispose_0x_x__0x_x__span__lu_
push ebx
push 0xffffffffffffffff
push esi
call fcn.116bdf00
add esp, 0x1c
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x90]
push eax
call fcn.11679868
lea ecx, [ebp - 0x54]
call fcn.11677906
and byte [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.1167776f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.1167776f
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x11678ab5
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x1176de0b
call fcn.116bfcd0
push ecx
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x10], edx
mov dword [eax + 0xc], 0x11773800
mov edx, dword [ecx + 0x14]
and dword [ebp - 4], 0
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0x1c], edx
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x20], edx
mov edx, dword [ecx + 0x24]
mov dword [eax + 0x24], edx
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x28], edx
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x2c], edx
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
mov edx, dword [ecx + 0x34]
or dword [ebp - 4], 0xffffffff
mov dword [eax + 0x34], edx
mov ecx, dword [ecx + 0x38]
mov dword [eax], 0x11773ba8
mov dword [eax + 0x38], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4

Function at 0x11679673
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea esi, [edi + 0xa4]
call ebp
cmp dword [esi - 0x10], 0
jg 0x1167969e
mov ecx, dword [esi]
test ecx, ecx
je 0x1167969e
sub eax, ecx
cmp eax, 0x493e0
ja 0x116796a9
inc ebx
add esi, 4
cmp ebx, 4
jb 0x11679687
jmp 0x116796ba
call ebp
push eax
lea eax, [edi + ebx*4 + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1167ab5a
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1176e078
call fcn.116bfcd0
sub esp, 0xe18
xor edx, edx
push ebx
cmp dword [0x117be49c], edx
push esi
push edi
jne 0x1167ad61
and byte [ebp - 0x41c], dl
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x41b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xe22]
mov word [ebp - 0xe24], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x622]
mov word [ebp - 0x624], dx
rep stosd dword es:[edi], eax
push str.OAgent.ini
mov dword [0x117be49c], 1
mov dword [ebp - 0x10], edx
stosw word es:[edi], ax
call fcn.1165370a
push eax
lea eax, [ebp - 0x624]
push 0x1178f20c
push eax
call fcn.116c03e1
add esp, 0x10
lea eax, [ebp - 0x624]
mov esi, 0x400
mov ebx, 0x117b2774
push eax
lea eax, [ebp - 0xe24]
push esi
push eax
push ebx
push 0x11773c44
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edi, edi
cmp eax, edi
jbe 0x1167ac42
cmp word [ebp - 0x626], di
jne 0x1167ac42
lea eax, [ebp - 0x41c]
push esi
push eax
lea eax, [ebp - 0xe24]
push eax
call fcn.1169a0a0
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], edi
jne 0x1167ad24
lea ecx, [ebp - 0x18]
call fcn.11693ff0
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push SysStringLen
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.11694160
test eax, eax
mov edi, 0x11773c4c
je 0x1167acb1
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
push edi
call fcn.11694580
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x1167acb1
cmp dword [ebp - 0x10], esi
jae 0x1167aca4
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.116bfec0
add esp, 0xc
jmp 0x1167aca8
and dword [ebp - 0x10], 0
push dword [ebp - 0x1c]
call fcn.116bf860
pop ecx
lea ecx, [ebp - 0x18]
call fcn.116941b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.116940e0
cmp dword [ebp - 0x10], 0
jne 0x1167ad24
push 0x800
lea eax, [ebp - 0xe24]
push 0
push eax
call fcn.116bf870
add esp, 0xc
lea eax, [ebp - 0xe24]
push esi
push eax
push ebx
push edi
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
jbe 0x1167ad1e
cmp word [ebp - 0x626], 0
jne 0x1167ad1e
lea eax, [ebp - 0x41c]
push esi
push eax
lea eax, [ebp - 0xe24]
push eax
call fcn.1169a0a0
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1167ad61
cmp dword [ebp - 0x10], 4
jbe 0x1167ad61
lea eax, [ebp - 0x41c]
test eax, eax
je 0x1167ad61
cmp dword [ebp - 0x41c], 1
je 0x1167ad61
movzx eax, word [ebp - 0x400]
lea eax, [eax + eax + 0x22]
test eax, eax
je 0x1167ad61
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffffc
cmp eax, ecx
ja 0x1167ad61
mov eax, dword [ebp - 0x414]
mov dword [0x117be498], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1167bd60
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
call fcn.116d2f50
test eax, eax
je 0x1167bd80
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x1167bd87
mov dword [0x117be4a0], 0x57
xor eax, eax
jmp 0x1167be19
push esi
push edi
push 0xf003f
push ebx
push ebx
mov dword [ebp - 4], ebx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1167bdc4
push 0x10
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
je 0x1167bdc4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov dword [0x117be4a0], ebx
jne 0x1167bdfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x117bf398], ebx
mov dword [0x117be4a0], eax
je 0x1167bdfd
push eax
push eax
push str.CTSDEncryptDrv:_StartService___failed__error_ld_0x_08x__n
push str.TSDEncryptDrv
push 4
push 0x117beb04
call fcn.116bdf00
add esp, 0x18
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, ebx
je 0x1167be0a
push edi
call esi
cmp dword [ebp - 8], ebx
je 0x1167be14
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x11683c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x11683c8e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x11683c8e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x11683c93
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x11683c79
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x11683ca3
test esi, esi
jne 0x11683cc1
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x11683cbf
mov byte [eax + esi - 1], 0
jne 0x11683cc8
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x116893b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x11689400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x11689400
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x11689405
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x116893eb
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x11689412
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret