joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11671dcc
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.11671d60
add esp, 0xc
test eax, eax
je 0x11671f25
mov esi, 0x117912a4
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 0x11671eb5
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.116bf9b7
mov esi, eax
pop ecx
test esi, esi
jbe 0x11671e8a
lea eax, [ebp - 0x46c]
push esi
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.116bf8bf
add esp, 0xc
test eax, eax
je 0x11671e90
inc word [ebp - 0xc]
jmp 0x11671e22
lea eax, [ebp + esi*2 - 0x264]
test eax, eax
je 0x11671eb5
push eax
lea eax, [ebp - 0xc]
push eax
push 0x117912ac
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.116c0020
add esp, 0x14
jmp 0x11671f22
push 8
lea eax, [ebp - 0x264]
push 0x1179131c
push eax
call fcn.116bf8bf
add esp, 0xc
test eax, eax
jne 0x11671eeb
lea eax, [ebp - 0x254]
push eax
push 0x11791310
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.116c0020
add esp, 0x10
jmp 0x11671f22
push 0x19
lea eax, [ebp - 0x264]
push str.DeviceLanmanRedirector_
push eax
call fcn.116bf8bf
add esp, 0xc
test eax, eax
jne 0x11671f0d
lea eax, [ebp - 0x232]
jmp 0x11671ed5
push dword [ebp + 0x10]
lea eax, [ebp - 0x264]
push dword [ebp + 0xc]
push eax
call fcn.11671c6c
add esp, 0xc
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x11673b46
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x1176d0cc
call fcn.116bf8a0
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x78]
call fcn.1166917d
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.116d2a90
test eax, eax
je 0x11673bb5
call fcn.116aac70
push eax
lea ecx, [ebp - 0x18]
call fcn.11684ff0
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push str._sSysWOW64
push eax
call fcn.11688710
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.11685790
jmp 0x11673bc3
call fcn.116ab120
push eax
lea ecx, [ebp - 0x10]
call fcn.11685a10
push str.sdfattr.dll
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0x1178f20c
push eax
call fcn.11688710
add esp, 0x10
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 8], eax
call fcn.116d2dd0
test eax, eax
je 0x11673c0e
call fcn.116d2a90
test eax, eax
je 0x11673c0e
lea ecx, [ebp - 0x2c]
call fcn.11659098
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.116590db
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x11673cd1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetSecurityRegion
push eax
call esi
push str.SetGlobalInfo
mov dword [0x117be2ac], eax
push dword [edi + 8]
call esi
push str.SetPolicyInfo
mov dword [0x117be2b0], eax
push dword [edi + 8]
call esi
push str.SetUserCfgInfo
mov dword [0x117be2b4], eax
push dword [edi + 8]
call esi
push str.SetUserLib
mov dword [0x117be2b8], eax
push dword [edi + 8]
call esi
push str.SetUGroupLib
mov dword [0x117be2bc], eax
push dword [edi + 8]
call esi
push str.SetAgentLib
mov dword [0x117be2c0], eax
push dword [edi + 8]
call esi
push str.SetAGroupLib
mov dword [0x117be2c4], eax
push dword [edi + 8]
call esi
push str.SetGroupIDInfo
mov dword [0x117be2c8], eax
push dword [edi + 8]
call esi
push str.SetRelationship
mov dword [0x117be2cc], eax
push dword [edi + 8]
call esi
push str.PopupSDPropertyDlg
mov dword [0x117be2d0], eax
push dword [edi + 8]
call esi
push str.IsCompresHasEncryFile
mov dword [0x117be2d4], eax
push dword [edi + 8]
call esi
mov dword [0x117be2d8], eax
cmp dword [0x117be2ac], ebx
je 0x11673d36
cmp dword [0x117be2b0], ebx
je 0x11673d36
cmp dword [0x117be2b4], ebx
je 0x11673d36
cmp dword [0x117be2b8], ebx
je 0x11673d36
cmp dword [0x117be2bc], ebx
je 0x11673d36
cmp dword [0x117be2c0], ebx
je 0x11673d36
cmp dword [0x117be2c4], ebx
je 0x11673d36
cmp dword [0x117be2c8], ebx
je 0x11673d36
cmp dword [0x117be2cc], ebx
je 0x11673d36
cmp dword [0x117be2d0], ebx
je 0x11673d36
cmp dword [0x117be2d4], ebx
je 0x11673d36
cmp dword [0x117be2d8], ebx
je 0x11673d36
push 1
pop esi
jmp 0x11673d38
xor esi, esi
mov dword [edi + 4], esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.11685790
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.11685790
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.11669212
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x11677907
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
mov eax, 0x1176d733
call fcn.116bf8a0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0xc]
call fcn.1166b606
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 0x11677c22
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov ecx, 0x117be3e0
jmp 0x11677c42
mov eax, 0x1176d7c1
call fcn.116bf8a0
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.11679c9d
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.116930d0
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 5
call fcn.11677d24
lea ecx, [esi + 0x104]
mov byte [ebp - 4], 6
call fcn.11679462
lea ecx, [esi + 0x140]
mov byte [ebp - 4], 7
call fcn.11677e0f
lea ecx, [esi + 0x1f4]
mov byte [ebp - 4], 8
call fcn.11677f84
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 0x11678b40
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1176da1f
call fcn.116bf8a0
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.11677907
lea eax, [esi + 0x5c]
push 1
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.11693600
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 0x11678ba6
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.11693660
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.11677992
jmp 0x11678cc8
push ebx
call fcn.11679f8b
mov edi, eax
lea ecx, [ebp - 0x54]
lea eax, [edi + 8]
push eax
call fcn.11678a82
push edi
lea ecx, [esi + 0x34]
call fcn.11679cef
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.11693660
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.11678cd8
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.11679a0c
call edi
mov dword [ebp + 8], eax
mov eax, dword [0x117bf508]
test eax, eax
mov ebx, str.CTaskMgr2
mov esi, 0x117bec74
je 0x11678c45
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.116bdad0
add esp, 0x20
lea ecx, [ebp - 0x54]
call fcn.116779d1
call edi
sub eax, dword [ebp + 8]
cmp eax, 0x3e8
jb 0x11678c72
cmp dword [0x117bf508], 0
je 0x11678c95
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 0x11678c89
cmp dword [0x117bf508], 0
je 0x11678c95
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.116bdad0
add esp, 0x1c
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x90]
push eax
call fcn.11679a8b
lea ecx, [ebp - 0x54]
call fcn.11677b29
and byte [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.11677992
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.11677992
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x11678cd8
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x1176da37
call fcn.116bf8a0
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 0x11679896
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 0x116798c1
mov ecx, dword [esi]
test ecx, ecx
je 0x116798c1
sub eax, ecx
cmp eax, 0x493e0
ja 0x116798cc
inc ebx
add esi, 4
cmp ebx, 4
jb 0x116798aa
jmp 0x116798dd
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 0x1167ad7d
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1176dca4
call fcn.116bf8a0
sub esp, 0xe18
xor edx, edx
push ebx
cmp dword [0x117be604], edx
push esi
push edi
jne 0x1167af84
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 [0x117be604], 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.116bffb1
add esp, 0x10
lea eax, [ebp - 0x624]
mov esi, 0x400
mov ebx, 0x117b28d4
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 0x1167ae65
cmp word [ebp - 0x626], di
jne 0x1167ae65
lea eax, [ebp - 0x41c]
push esi
push eax
lea eax, [ebp - 0xe24]
push eax
call fcn.1169a2c0
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], edi
jne 0x1167af47
lea ecx, [ebp - 0x18]
call fcn.11694210
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push SysStringLen
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.11694380
test eax, eax
mov edi, 0x11773c4c
je 0x1167aed4
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
push edi
call fcn.116947a0
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x1167aed4
cmp dword [ebp - 0x10], esi
jae 0x1167aec7
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.116bfa90
add esp, 0xc
jmp 0x1167aecb
and dword [ebp - 0x10], 0
push dword [ebp - 0x1c]
call fcn.116bf430
pop ecx
lea ecx, [ebp - 0x18]
call fcn.116943d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.11694300
cmp dword [ebp - 0x10], 0
jne 0x1167af47
push 0x800
lea eax, [ebp - 0xe24]
push 0
push eax
call fcn.116bf440
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 0x1167af41
cmp word [ebp - 0x626], 0
jne 0x1167af41
lea eax, [ebp - 0x41c]
push esi
push eax
lea eax, [ebp - 0xe24]
push eax
call fcn.1169a2c0
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1167af84
cmp dword [ebp - 0x10], 4
jbe 0x1167af84
lea eax, [ebp - 0x41c]
test eax, eax
je 0x1167af84
cmp dword [ebp - 0x41c], 1
je 0x1167af84
movzx eax, word [ebp - 0x400]
lea eax, [eax + eax + 0x22]
test eax, eax
je 0x1167af84
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffffc
cmp eax, ecx
ja 0x1167af84
mov eax, dword [ebp - 0x414]
mov dword [0x117be600], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1167bf83
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
call fcn.116d2b20
test eax, eax
je 0x1167bfa3
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x1167bfaa
mov dword [0x117be608], 0x57
xor eax, eax
jmp 0x1167c03c
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 0x1167bfe7
push 0x10
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
je 0x1167bfe7
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 [0x117be608], ebx
jne 0x1167c020
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x117bf508], ebx
mov dword [0x117be608], eax
je 0x1167c020
push eax
push eax
push str.CTSDEncryptDrv:_StartService___failed__error_ld_0x_08x__n
push str.TSDEncryptDrv
push 4
push 0x117bec74
call fcn.116bdad0
add esp, 0x18
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, ebx
je 0x1167c02d
push edi
call esi
cmp dword [ebp - 8], ebx
je 0x1167c037
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x11683e60
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 0x11683eae
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x11683eae
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x11683eb3
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x11683e99
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x11683ec3
test esi, esi
jne 0x11683ee1
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 0x11683edf
mov byte [eax + esi - 1], 0
jne 0x11683ee8
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x116895d0
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 0x11689620
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x11689620
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x11689625
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x1168960b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x11689632
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 0x11694450
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 0x11694491
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 0x11694493
mov esi, edi
test esi, esi
je 0x11694508
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 0x116944fd
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x116944fd
cmp dword [esp + 0x1c], eax
jbe 0x116944ce
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 0x116944fd
cmp esi, edi
je 0x116944ef
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 0x11694508
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 0x11694520
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 0x11694585
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 0x11694585
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x11694585
cmp dword [esp + 0x18], eax
jbe 0x1169456b
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 0x11694589
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x11694660
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x116946bf
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 0x116946bf
cmp dword [esp + 0xc], 3
jne 0x116946bf
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x116946bf
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 0x116946bf
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 0x116947a0
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 0x11694814
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 0x11694814
cmp dword [esp + 0x10], 3
jne 0x11694814
mov edx, dword [esp + 0x18]
push edx
call fcn.116bf498
mov edi, eax
add esp, 4
test edi, edi
je 0x11694814
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1169480b
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.116bf430
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8

Function at 0x11694820
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1176e89f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x11773dfc]
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 0x1169488b
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 0x1169488d
mov esi, edi
test esi, esi
je 0x11694957
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 0x1169494c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x116948cf
cmp eax, 2
je 0x116948cf
cmp eax, 6
je 0x116948cf
cmp eax, 7
jne 0x1169494c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.116bf498
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 0x11694932
lea ecx, [esp + 0x14]
call fcn.11685a10
cmp esi, dword [esp + 0x14]
je 0x11694927
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.116bf430
add esp, 4
jmp 0x11694969
call fcn.116bf430
add esp, 4
lea ecx, [esp + 0x10]
push 0x117b28d4
call fcn.11685a10
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x11694957
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x11694969
push eax
lea ecx, [esp + 0x14]
call fcn.11685a10
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.11684d90
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.11685790
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