joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11682683
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 0x117a56bc
push ebx
call fcn.116d2138
add esp, 0xc
test eax, eax
jne 0x116826a8
add ebx, 8
push ebx
call fcn.116d0747
cmp eax, 4
pop ecx
jb 0x1168275f
cmp word [ebx + 2], 0x3a
jne 0x1168275f
cmp word [ebx + 4], 0x5c
lea eax, [ebx + 4]
mov dword [ebp - 4], eax
jne 0x1168275f
push esi
mov esi, 0x117a2468
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.116d1ffd
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 0x1168275f
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 0x1168275f
push dword [ebp - 4]
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp + 0x10]
dec eax
push 0x117a2470
push eax
push dword [ebp + 0xc]
call fcn.116d0db0
add esp, 0x14
jmp 0x11682770
mov eax, dword [ebp + 0x10]
dec eax
push eax
push ebx
push dword [ebp + 0xc]
call fcn.116d0d04
add esp, 0xc
push 1
pop eax
pop edi
pop ebx
leave
ret
Function at 0x116827e3
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.11682777
add esp, 0xc
test eax, eax
je 0x1168293c
mov esi, 0x117a2468
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 0x116828cc
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.116d0747
mov esi, eax
pop ecx
test esi, esi
jbe 0x116828a1
lea eax, [ebp - 0x46c]
push esi
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.116d064f
add esp, 0xc
test eax, eax
je 0x116828a7
inc word [ebp - 0xc]
jmp 0x11682839
lea eax, [ebp + esi*2 - 0x264]
test eax, eax
je 0x116828cc
push eax
lea eax, [ebp - 0xc]
push eax
push 0x117a2470
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.116d0db0
add esp, 0x14
jmp 0x11682939
push 8
lea eax, [ebp - 0x264]
push 0x117a24e0
push eax
call fcn.116d064f
add esp, 0xc
test eax, eax
jne 0x11682902
lea eax, [ebp - 0x254]
push eax
push 0x117a24d4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.116d0db0
add esp, 0x10
jmp 0x11682939
push 0x19
lea eax, [ebp - 0x264]
push str.DeviceLanmanRedirector_
push eax
call fcn.116d064f
add esp, 0xc
test eax, eax
jne 0x11682924
lea eax, [ebp - 0x232]
jmp 0x116828ec
push dword [ebp + 0x10]
lea eax, [ebp - 0x264]
push dword [ebp + 0xc]
push eax
call fcn.11682683
add esp, 0xc
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x11688369
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
mov eax, 0x1177e4ef
call fcn.116d0630
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0xc]
call fcn.1167bd08
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], 0x11784be8
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

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

Disassembly:
mov ecx, 0x117cf988
jmp 0x116886a4
mov eax, 0x1177e57d
call fcn.116d0630
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.1168a6ff
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.116a3e80
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 5
call fcn.11688786
lea ecx, [esi + 0x104]
mov byte [ebp - 4], 6
call fcn.11689ec4
lea ecx, [esi + 0x140]
mov byte [ebp - 4], 7
call fcn.11688871
lea ecx, [esi + 0x1f4]
mov byte [ebp - 4], 8
call fcn.116889e6
mov ecx, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x21c], edi
mov dword [esi], 0x11784bec
mov dword [esi + 0x144], esi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x116895a2
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1177e7db
call fcn.116d0630
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.11688369
lea eax, [esi + 0x5c]
push 1
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.116a43b0
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 0x11689608
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.116a4410
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.116883f4
jmp 0x1168972a
push ebx
call fcn.1168a9ed
mov edi, eax
lea ecx, [ebp - 0x54]
lea eax, [edi + 8]
push eax
call fcn.116894e4
push edi
lea ecx, [esi + 0x34]
call fcn.1168a751
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.116a4410
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.1168973a
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.1168a46e
call edi
mov dword [ebp + 8], eax
mov eax, dword [0x117d15f0]
test eax, eax
mov ebx, str.CTaskMgr2
mov esi, 0x117d0d5c
je 0x116896a7
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.116ce860
add esp, 0x20
lea ecx, [ebp - 0x54]
call fcn.11688433
call edi
sub eax, dword [ebp + 8]
cmp eax, 0x3e8
jb 0x116896d4
cmp dword [0x117d15f0], 0
je 0x116896f7
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 0x116896eb
cmp dword [0x117d15f0], 0
je 0x116896f7
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.116ce860
add esp, 0x1c
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x90]
push eax
call fcn.1168a4ed
lea ecx, [ebp - 0x54]
call fcn.1168858b
and byte [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.116883f4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.116883f4
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1168973a
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x1177e7f3
call fcn.116d0630
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], 0x11784840
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], 0x11784be8
mov dword [eax + 0x38], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1168a2f8
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 0x1168a323
mov ecx, dword [esi]
test ecx, ecx
je 0x1168a323
sub eax, ecx
cmp eax, 0x493e0
ja 0x1168a32e
inc ebx
add esi, 4
cmp ebx, 4
jb 0x1168a30c
jmp 0x1168a33f
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 0x1168b7df
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1177ea60
call fcn.116d0630
sub esp, 0xe18
xor edx, edx
push ebx
cmp dword [0x117cfbac], edx
push esi
push edi
jne 0x1168b9e6
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 [0x117cfbac], 1
mov dword [ebp - 0x10], edx
stosw word es:[edi], ax
call fcn.116636ee
push eax
lea eax, [ebp - 0x624]
push 0x117a01ec
push eax
call fcn.116d0d41
add esp, 0x10
lea eax, [ebp - 0x624]
mov esi, 0x400
mov ebx, 0x117c3dd4
push eax
lea eax, [ebp - 0xe24]
push esi
push eax
push ebx
push 0x11784c84
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edi, edi
cmp eax, edi
jbe 0x1168b8c7
cmp word [ebp - 0x626], di
jne 0x1168b8c7
lea eax, [ebp - 0x41c]
push esi
push eax
lea eax, [ebp - 0xe24]
push eax
call fcn.116ab070
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], edi
jne 0x1168b9a9
lea ecx, [ebp - 0x18]
call fcn.116a4fc0
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push SysStringLen
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.116a5130
test eax, eax
mov edi, 0x11784c8c
je 0x1168b936
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
push edi
call fcn.116a5550
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x1168b936
cmp dword [ebp - 0x10], esi
jae 0x1168b929
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.116d0820
add esp, 0xc
jmp 0x1168b92d
and dword [ebp - 0x10], 0
push dword [ebp - 0x1c]
call fcn.116d01c0
pop ecx
lea ecx, [ebp - 0x18]
call fcn.116a5180
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.116a50b0
cmp dword [ebp - 0x10], 0
jne 0x1168b9a9
push 0x800
lea eax, [ebp - 0xe24]
push 0
push eax
call fcn.116d01d0
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 0x1168b9a3
cmp word [ebp - 0x626], 0
jne 0x1168b9a3
lea eax, [ebp - 0x41c]
push esi
push eax
lea eax, [ebp - 0xe24]
push eax
call fcn.116ab070
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1168b9e6
cmp dword [ebp - 0x10], 4
jbe 0x1168b9e6
lea eax, [ebp - 0x41c]
test eax, eax
je 0x1168b9e6
cmp dword [ebp - 0x41c], 1
je 0x1168b9e6
movzx eax, word [ebp - 0x400]
lea eax, [eax + eax + 0x22]
test eax, eax
je 0x1168b9e6
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffffc
cmp eax, ecx
ja 0x1168b9e6
mov eax, dword [ebp - 0x414]
mov dword [0x117cfba8], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1168cb29
Capabilities:
Start service

Disassembly:
push ecx
push esi
call fcn.116e38b0
test eax, eax
je 0x1168cb46
xor esi, esi
cmp dword [esp + 0xc], esi
jne 0x1168cb4d
mov dword [0x117cfbb0], 0x57
xor eax, eax
jmp 0x1168cc13
push ebx
push ebp
push edi
push 0xf003f
push esi
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
mov ebx, str.TSDEncryptDrv
test ebp, ebp
mov edi, 0x117d0d5c
je 0x1168cb99
push 0x10
push dword [esp + 0x1c]
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1168cba9
push dword [esp + 0x20]
push dword [esp + 0x20]
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [esp + 0x10], eax
jmp 0x1168cbc3
cmp dword [0x117d15f0], 0
je 0x1168cbc3
push str.CTSDEncryptDrv:_StartService_fail_to_OpenSCManager
jmp 0x1168cbb7
cmp dword [0x117d15f0], 0
je 0x1168cbc3
push str.CTSDEncryptDrv:_StartService_fail_to_OpenService
push ebx
push 4
push edi
call fcn.116ce860
add esp, 0x10
and dword [0x117cfbb0], 0
cmp dword [esp + 0x10], 0
jne 0x1168cbf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x117d15f0], 0
mov dword [0x117cfbb0], eax
je 0x1168cbf8
push eax
push eax
push str.CTSDEncryptDrv:_StartService_failed__error_ld_0x_08x__n
push ebx
push 4
push edi
call fcn.116ce860
add esp, 0x18
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x1168cc05
push esi
call edi
test ebp, ebp
je 0x1168cc0c
push ebp
call edi
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x11694c10
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 0x11694c5e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x11694c5e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x11694c63
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x11694c49
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x11694c73
test esi, esi
jne 0x11694c91
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 0x11694c8f
mov byte [eax + esi - 1], 0
jne 0x11694c98
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x1169a380
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 0x1169a3d0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1169a3d0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x1169a3d5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x1169a3bb
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x1169a3e2
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
Function at 0x116a5200
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x116a5241
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x116a5243
mov esi, edi
test esi, esi
je 0x116a52b8
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x116a52ad
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x116a52ad
cmp dword [esp + 0x1c], eax
jbe 0x116a527e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x116a52ad
cmp esi, edi
je 0x116a529f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x116a52b8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x116a52d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x116a5335
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x116a5335
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x116a5335
cmp dword [esp + 0x18], eax
jbe 0x116a531b
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x116a5339
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x116a5410
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x116a546f
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x116a546f
cmp dword [esp + 0xc], 3
jne 0x116a546f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x116a546f
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x116a546f
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x116a5550
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx]
test esi, esi
push edi
je 0x116a55c4
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x116a55c4
cmp dword [esp + 0x10], 3
jne 0x116a55c4
mov edx, dword [esp + 0x18]
push edx
call fcn.116d0228
mov edi, eax
add esp, 4
test edi, edi
je 0x116a55c4
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x116a55bb
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
pop ecx
ret 8
push edi
call fcn.116d01c0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8

Function at 0x116a55d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1177f6ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x11784e74]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x116a563b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x116a563d
mov esi, edi
test esi, esi
je 0x116a5707
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x116a56fc
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x116a567f
cmp eax, 2
je 0x116a567f
cmp eax, 6
je 0x116a567f
cmp eax, 7
jne 0x116a56fc
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.116d0228
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x116a56e2
lea ecx, [esp + 0x14]
call fcn.116967c0
cmp esi, dword [esp + 0x14]
je 0x116a56d7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.116d01c0
add esp, 4
jmp 0x116a5719
call fcn.116d01c0
add esp, 4
lea ecx, [esp + 0x10]
push 0x117c3dd4
call fcn.116967c0
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x116a5707
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x116a5719
push eax
lea ecx, [esp + 0x14]
call fcn.116967c0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.11695b40
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.11696540
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x116a5cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
call fcn.1169bed0
test esi, esi
je 0x116a5d92
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x116a5d92
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x116a5d09
cmp eax, 2
je 0x116a5d09
cmp eax, 6
je 0x116a5d09
cmp eax, 7
jne 0x116a5d92
mov edx, dword [esp + 0x14]
push edi
add edx, 2
push edx
call fcn.116d0228
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ebx
push 0
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
pop edi
jne 0x116a5d89
cmp word [ebx], ax
mov esi, ebx
je 0x116a5d74
mov ecx, dword [esp + 0x18]
push esi
mov edx, dword [ecx + 4]
push edx
call fcn.1169c380
push esi
call fcn.116d0747
lea esi, [esi + eax*2 + 2]
add esp, 4
cmp word [esi], 0
jne 0x116a5d53
push ebx
call fcn.116d01c0
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call fcn.116d01c0
add esp, 4
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8