joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011fd0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005e7eb
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x10081708]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], ecx
xor ebx, ebx
call fcn.10003510
mov ecx, eax
test ecx, ecx
je 0x10012175
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x240], eax
mov dword [ebp - 4], ebx
mov esi, 0x1a
call fcn.1004468c
cdq
idiv esi
lea edi, [edx + 0x61]
call fcn.1004468c
cdq
idiv esi
lea esi, [edx + 0x61]
call fcn.1004468c
cdq
mov ecx, 0x1a
idiv ecx
movzx eax, di
push eax
movzx eax, si
add edx, 0x61
push eax
movzx eax, dx
push eax
call fcn.1004468c
cdq
mov ecx, 0x1a
idiv ecx
add edx, 0x61
movzx eax, dx
push eax
lea eax, [ebp - 0x240]
push str._c_c_c_c32.exe
push eax
call fcn.10003420
add esp, 0x18
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, dword [ebp - 0x240]
mov edi, eax
cmp edi, 0xffffffff
je 0x100120fc
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.10037300
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x100120f5
nop dword [eax]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.10044517
add esp, 8
test eax, eax
je 0x1001214c
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100120d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x244]
lea eax, [ebp - 0x240]
push eax
add ecx, 0x40
call fcn.10003980
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10012130
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002bf51
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x14
jg 0x1001215e
inc ebx
jmp 0x10012026
mov ecx, dword [ebp - 0x244]
push 8
add ecx, 0x40
push str.Link.exe
call fcn.10003730
jmp 0x10012111
push 0x80004005
call fcn.100031a0
int3
Function at 0x100135c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005e92a
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x10081708]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x428], esi
lea eax, [esi + 8]
mov dword [esi], vtable.CSmartLogger.0
push eax
mov dword [esi + 4], vtable._BaseModule::CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [ebp - 4], 1
call fcn.10003510
mov ecx, eax
test ecx, ecx
je 0x10013732
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
push 0x100642f4
push 0
mov byte [ebp - 4], 2
mov dword [esi + 0x30], 1
call fcn.10047f1c
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10037300
add esp, 0x14
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10037300
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x100642f8
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [0x10083518], eax
lea eax, [ebp - 0x218]
push str.Logpop.log
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100136f6
sub edx, ecx
lea eax, [ebp - 0x218]
sar edx, 1
lea ecx, [esi + 0x2c]
push edx
push eax
call fcn.10003730
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002bf51
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100031a0
int3
Function at 0x10014530
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov edx, 1
push esi
push edi
mov dword [ebp - 0xc], ebx
mov eax, dword [ebx]
mov dword [ebx + 4], eax
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, 0x104
or edx, eax
jge 0x1001456a
push 0x104
lea ecx, [ebx + 0x30]
call fcn.100035f0
mov ecx, dword [ebx + 0x30]
push 0x104
push ecx
call fcn.1002cbf0
mov eax, dword [ebx + 0x30]
test eax, eax
jne 0x10014580
xor ecx, ecx
jmp 0x10014596
push dword [eax - 8]
push eax
call fcn.1003c752
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x1001462e
mov eax, dword [ebx + 0x30]
cmp ecx, dword [eax - 8]
jg 0x1001462e
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea edi, [ebx + 0x28]
xor edx, edx
mov dword [eax - 0xc], ecx
mov eax, dword [ebx + 0x30]
push edx
push edx
push 1
push edx
mov word [eax + ecx*2], dx
call esi
push 0
push 0
push 1
push 0
mov dword [edi], eax
add ebx, 0x2c
call esi
mov esi, dword [ebp - 0xc]
mov ecx, esi
mov dword [ebx], eax
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 8], 0
call fcn.100141c0
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 2
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
mov ecx, esi
call fcn.100141c0
lea eax, [esi + 0x38]
push eax
push 0
push esi
push 0x10014bc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 0x34], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.100031a0
int3
Function at 0x10015b60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005ecdd
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10081708]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [edi + 0xc], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], vtable.IHttpTaskCallback.0
mov dword [edi + 0x30], vtable.ConfigCenter::IConfigClientEx.0
lea ecx, [edi + 0x38]
mov dword [edi], vtable.CPopTrayClient.0
mov dword [edi + 8], vtable.CPopTrayClient.1.0
mov dword [edi + 0x2c], vtable.CPopTrayClient.2.0
mov dword [edi + 0x30], vtable.CPopTrayClient.3.0
call fcn.10007a20
mov byte [ebp - 4], 3
call fcn.10003510
mov ecx, eax
test ecx, ecx
je 0x10015cc5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0xc0], eax
mov byte [ebp - 4], 4
call fcn.10003510
mov ecx, eax
test ecx, ecx
je 0x10015ccf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0xc4], eax
lea esi, [edi + 0xd0]
mov byte [ebp - 4], 5
mov ecx, esi
mov dword [edi + 0xc8], 0
mov dword [edi + 0xcc], 0
call fcn.10007890
push esi
lea ecx, [edi + 0x1a8]
mov byte [ebp - 4], 6
call fcn.100115b0
push esi
lea ecx, [edi + 0x204]
mov byte [ebp - 4], 7
mov dword [edi + 0x1fc], 0
mov dword [edi + 0x200], 1
call fcn.10014c00
push esi
lea ecx, [edi + 0x268]
mov byte [ebp - 4], 8
mov dword [edi + 0x264], 0
call fcn.10023cf0
push esi
lea ecx, [edi + 0x2b0]
mov byte [ebp - 4], 9
call fcn.1001d710
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100031a0
push 0x80004005
call fcn.100031a0
int3
Function at 0x10016050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005e710
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x10081708]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0xc]
mov dword [esi], vtable.CPopTrayClient.0
mov dword [esi + 8], vtable.CPopTrayClient.1.0
mov dword [esi + 0x2c], vtable.CPopTrayClient.2.0
mov dword [esi + 0x30], vtable.CPopTrayClient.3.0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100160a8
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_DestroyWindow]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esi + 0x2b0]
call fcn.10015eb0
mov edx, dword [esi + 0x2ac]
or ebx, 0xffffffff
sub edx, 0x10
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100160d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi + 0x2a4]
test edi, edi
je 0x10016102
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x10016102
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x10016102
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [esi + 0x27c]
test eax, eax
je 0x10016112
push eax
call fcn.10025fc9
lea ecx, [esi + 0x204]
call fcn.10015d90
lea ecx, [esi + 0x1a8]
call fcn.10015ce0
lea ecx, [esi + 0xd0]
call fcn.10007f70
mov edx, dword [esi + 0xc4]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10016150
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0xc0]
sub edx, 0x10
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1001616b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esi + 0x38]
call fcn.10008100
mov dword [esi + 0x30], vtable.ConfigCenter::IConfigClient.0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10016187
push eax
call fcn.10025fc9
test byte [ebp + 8], 1
mov dword [esi], vtable.CTrayClientBase.0
je 0x100161a1
push 0x328
push esi
call fcn.1002bbd2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100168a0
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10081708]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebx + 4], eax
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.100446ad
call fcn.10016730
push 0x208
mov edi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10037300
add esp, 0x10
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call esi
push str.NetBridge.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100169ba
lea eax, [ebp - 0x20c]
push eax
call fcn.10026340
add esp, 4
test eax, eax
je 0x100169ba
cmp dword [edi], 0
jne 0x100169ba
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x100169ba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x100169ba
call eax
mov dword [edi + 0xc], eax
call fcn.10016730
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x100169ee
mov eax, dword [ecx]
call dword [eax]
mov edi, eax
test edi, edi
je 0x100169f0
mov eax, dword [edi]
mov ecx, edi
push 0
push str.ungzip
call dword [eax + 0x30]
mov eax, dword [edi]
mov ecx, edi
push 0
push str.gzip
call dword [eax + 0x30]
jmp 0x100169f0
xor edi, edi
mov dword [ebx + 0x1fc], edi
test edi, edi
je 0x10016a0c
mov esi, dword [edi]
lea eax, [ebx + 0x2c]
mov edx, ebx
mov ecx, edi
neg edx
sbb edx, edx
and edx, eax
push edx
call dword [esi]
lea ecx, [ebx + 0xd0]
call fcn.1000af50
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002bf51
mov esp, ebp
pop ebp
ret 8
Function at 0x100184f0
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x100185a7
push ebx
push 4
call fcn.10017950
mov ebx, eax
test ebx, ebx
je 0x100185a0
mov ecx, ebx
call fcn.10015ab0
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x10018528
mov ecx, dword [edi + 0x50]
push eax
call fcn.10008710
push esi
mov esi, dword [edi + 0x48]
mov ecx, ebx
call fcn.10015ad0
push eax
mov ecx, esi
call fcn.10018990
call fcn.100144a0
mov ecx, ebx
mov esi, eax
call fcn.10015ae0
mov ecx, dword [esi]
push 1
push dword [eax]
push esi
call dword [ecx + 4]
push 0x12345678
push dword [edi + 4]
mov dword [edi + 0x24], 0
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [edi + 0x34]
call fcn.10012d80
mov ecx, dword [edi + 0x30]
pop esi
test ecx, ecx
je 0x10018592
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x30], 0
mov dword [edi + 0x78], 1
pop ebx
xor eax, eax
pop edi
ret 0x10
xor eax, eax
pop edi
ret 0x10
Function at 0x10019500
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
mov eax, dword [esi + 4]
je 0x10019583
push 0
push 0xc8
push 0x12345678
push eax
mov dword [esi + 0x24], 8
call dword [sym.imp.USER32.dll_SetTimer]
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x48]
xor ecx, ecx
push 0xb
push 0
push 0
cmp dword [eax + 0x30], ecx
push 0
setne cl
push 0
add ecx, 0xfffffffe
push ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x48]
test eax, eax
je 0x100195c6
push dword [eax + 0x24]
mov ecx, dword [esi + 0x50]
call fcn.10010b70
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x50]
add eax, 0x40
push eax
call fcn.1000a960
mov ecx, eax
call fcn.1001a9a0
pop esi
pop ebp
ret 4
push 0x12345678
push eax
mov dword [esi + 0x24], 0
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [esi + 0x34]
call fcn.10012d80
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x100195bf
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x30], 0
pop esi
pop ebp
ret 4

Function at 0x10019630
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10081708]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
mov dword [ebx], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x100196bf
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.10037300
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x100196b8
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10044517
add esp, 8
test eax, eax
je 0x100196d2
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10019693
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002bf51
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x228]
push esi
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002bf51
mov esp, ebp
pop ebp
ret
Function at 0x1001a390
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f0d0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10081708]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.1000a8a0
add esp, 8
mov eax, dword [ebp - 0x10]
or esi, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x1001a53e
call fcn.10003510
mov ecx, eax
test ecx, ecx
je 0x1001a57b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edx, [eax + 0x10]
mov dword [ebp + 0xc], edx
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x800
or eax, ecx
mov edi, dword [ebx]
mov byte [ebp - 4], 1
jge 0x1001a422
push 0x800
lea ecx, [ebp + 0xc]
call fcn.100035f0
mov edx, dword [ebp + 0xc]
cmp dword [edx - 8], 0x800
jl 0x1001a571
push edi
push 0x800
mov dword [edx - 0xc], 0x800
xor ecx, ecx
mov eax, dword [ebp + 0xc]
push edx
push 0x10061598
push str.spreadids
mov word [eax + 0x1000], cx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp + 0xc]
mov edi, eax
push dword [ecx - 8]
push ecx
call fcn.1003c752
mov edx, eax
add esp, 8
test edx, edx
js 0x1001a571
mov ecx, dword [ebp + 0xc]
cmp edx, dword [ecx - 8]
jg 0x1001a571
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov word [eax + edx*2], cx
cmp edi, 0x7ff
je 0x1001a49f
cmp edi, 0x7fe
jne 0x1001a502
mov ecx, dword [ebp + 0xc]
mov edx, 1
mov edi, dword [ebx]
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, 0x1000
or eax, edx
jge 0x1001a4c8
push 0x1000
lea ecx, [ebp + 0xc]
call fcn.100035f0
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 8], 0x1000
jl 0x1001a571
push edi
push 0x1000
mov dword [ecx - 0xc], 0x1000
xor edx, edx
mov eax, dword [ebp + 0xc]
push ecx
push 0x10061598
push str.spreadids
mov word [eax + 0x2000], dx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.10005b40
push dword [ebp + 0xc]
push dword [ebx]
push str.GetSpreadId__s:_s
call fcn.100133d0
mov edx, dword [ebp + 0xc]
add esp, 0x14
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a53e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1001a55d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.100031a0
push 0x80004005
call fcn.100031a0
int3
Function at 0x1001adf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10081708]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x220], 0
push 0
push eax
mov esi, 1
mov dword [ebp - 0x21c], 0
call fcn.10037300
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x220]
add esp, 0xc
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], 0x208
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
push SysReAllocString
call edi
test eax, eax
jne 0x1001af05
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.ThemeActive
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001aef9
mov ecx, 0x10062a04
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001aec9
test dx, dx
je 0x1001aec5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001aec9
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001aea3
xor eax, eax
jmp 0x1001aece
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1001aef9
push str._Taskbar_IsPopByReg_ThemeManagerThemeActive0__not_pop
call fcn.100133d0
add esp, 4
call fcn.100144a0
push 1
push 0
push str.break_theme_active
mov ecx, dword [eax]
push str.SoulDancer
push eax
call dword [ecx]
xor esi, esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x210], 0xffffffff
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsDWM
push SysReAllocString
mov dword [ebp - 0x218], 4
mov dword [ebp - 0x214], 4
call edi
test eax, eax
jne 0x1001b016
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.CompositionPolicy
push dword [ebp - 0x21c]
call edi
test eax, eax
jne 0x1001afa9
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x1001afa9
cmp eax, 2
je 0x1001afa9
push str._Taskbar_IsPopByReg_DWMCompositionPolicy_not_equal_to_0_or_2__not_pop
call fcn.100133d0
add esp, 4
call fcn.100144a0
push 1
push 0
push str.break_preview
mov ecx, dword [eax]
push str.SoulDancer
push eax
call dword [ecx]
xor esi, esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], 0xffffffff
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.Composition
push dword [ebp - 0x21c]
call edi
test eax, eax
jne 0x1001b00a
cmp dword [ebp - 0x210], eax
jne 0x1001b00a
push str._Taskbar_IsPopByReg_DWMComposition0__not_pop
call fcn.100133d0
add esp, 4
call fcn.100144a0
push 1
push 0
push str.break_composition
mov ecx, dword [eax]
push str.SoulDancer
push eax
call dword [ecx]
xor esi, esi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, str.Not_pop
test esi, esi
mov ecx, str.Can_pop
cmove ecx, eax
push ecx
push esi
push str._Taskbar_IsPopByReg_d___s
call fcn.100133d0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.1002bf51
mov esp, ebp
pop ebp
ret