joyce8/EMBER2024-capa huggingface dataset:
Function at 0x660cade4
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 1
mov bx, word [eax + 4]
mov ecx, dword [edi + 0x30]
mov esi, dword [ecx + 0x34]
pop ecx
cmp dword [eax], ecx
jne 0x660cae05
mov ebx, ecx
movzx eax, bx
test eax, eax
jl 0x660cae88
cmp eax, ecx
jle 0x660cae38
cmp eax, 2
jne 0x660cae88
cmp dword [esi + 0xd48], 0
je 0x660cae34
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call fcn.660cac3c
xor eax, eax
jmp 0x660cae69
cmp dword [esi + 0xd48], 0
je 0x660cae48
push ecx
push esi
call fcn.660cacd3
cmp bx, 1
jne 0x660cae34
push dword [edi + 0x30]
mov esi, dword [edi + 0x3c]
call fcn.6606ef64
push esi
push edi
call fcn.6602293f
test eax, eax
je 0x660cae70
mov eax, 0x16c
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call fcn.660ca8b7
jmp 0x660cae34
push 5
pop eax
jmp 0x660cae69

Function at 0x660cae8d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
and dword [ebp + 8], 0
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
inc eax
shr eax, 1
je 0x660caeb0
mov cx, word [esi]
xor word [ebp + 8], cx
inc esi
inc esi
dec eax
jne 0x660caea4
mov cl, byte [ebp + 8]
xor eax, eax
mov al, byte [ebp + 9]
pop esi
xor eax, ecx
pop ebp
ret 4

Function at 0x660cd85d
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov eax, dword [ebp + 8]
push esi
push edi
and dword [ebp - 4], 0
push 8
and dword [eax], 0
pop esi
push 3
mov dword [ebp - 0x14], esi
pop edi
mov dword [ebp - 0x10], 2
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 9
call fcn.660143aa
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x660cd8a6
mov eax, 0x800a0209
pop edi
pop esi
pop ebx
leave
ret 8
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x660cd932
xor edi, edi
lea esi, [ebp - 0x14]
push dword [esi]
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x660cd90a
inc edi
add esi, 4
cmp edi, 4
jb 0x660cd8b6
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
push ebx
call esi
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x660cd8ff
cmp dword [0x6610f5e8], eax
je 0x660cd8ed
cmp ebx, 2
jne 0x660cd8ed
push 9
call esi
push 0
push 0
push eax
push ebx
push edi
push dword [ebp + 8]
call fcn.660cd661
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
jmp 0x660cd89f
mov ebx, dword [ebp + edi*4 - 0x14]
cmp ebx, 3
jne 0x660cd8cb
mov esi, dword [sym.imp.USER32.dll_EnumClipboardFormats]
push 0
call esi
test eax, eax
je 0x660cd8cb
cmp eax, 3
je 0x660cd92e
cmp eax, 0xe
je 0x660cd92e
push eax
jmp 0x660cd91b
mov ebx, eax
jmp 0x660cd8cb
cmp ebx, 2
je 0x660cd8cb
cmp ebx, edi
je 0x660cd8cb
cmp ebx, esi
je 0x660cd8cb
cmp ebx, 0xe
je 0x660cd8cb
cmp ebx, 9
je 0x660cd8cb
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, 0x800a01cc
jmp 0x660cd89f
Function at 0x660d153a
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
xor ebx, ebx
cmp dword [0x6610e71c], ebx
je 0x660d1553
xor eax, eax
pop ebx
leave
ret
push edi
lea eax, [ebp - 8]
push esi
push eax
push 0x20006
push ebx
push 0x660546ec
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x660d1590
cmp eax, 5
je 0x660d15cc
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xc], eax
jmp 0x660d15cc
lea eax, [ebp - 4]
mov edi, 0x660509b4
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
cmp esi, ebx
je 0x660d15f0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
cmp esi, ebx
je 0x660d15f0
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0xc], esi
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x660d15dc
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
je 0x660d15e6
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0xc]
pop esi
pop edi
jmp 0x660d1550
mov edi, 0x100
lea eax, [ebp - 0x118]
push edi
push eax
push dword [0x6610e6c8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x660d1626
mov eax, esi
and esi, 0xffff
or esi, 0x80070000
neg eax
sbb eax, eax
and eax, esi
jmp 0x660d158b
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
mov ebx, 0x660546d8
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x660d1682
cmp dword [ebp - 0x18], 1
jne 0x660d1682
lea esi, [ebp - 0x218]
lea eax, [ebp - 0x118]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x660d16cd
test cl, cl
je 0x660d167c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x660d16cd
inc eax
inc eax
inc esi
inc esi
test cl, cl
jne 0x660d165e
xor eax, eax
test eax, eax
je 0x660d16c6
lea edi, [ebp - 0x118]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x118]
push ecx
push eax
push 1
push 0
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x660d16c6
push 4
lea ecx, [ebp - 0x14]
pop eax
push eax
push ecx
push eax
push 0
push 0x660546c8
mov dword [ebp - 0x14], eax
push dword [ebp - 4]
call esi
xor ebx, ebx
jmp 0x660d15cc
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x660d167e
Function at 0x660d16d4
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x6610e71c], 0
je 0x660d16e5
xor eax, eax
leave
ret
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
and dword [ebp - 4], esi
push 0x660546ec
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x660d1715
push 0x660509b4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x660d1721
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp dword [ebp - 4], 0
je 0x660d1730
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x660d1986
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [0x6610fd48], esi
je 0x660d1a14
mov eax, dword [0x66110c24]
mov dword [0x6610fd48], esi
test eax, eax
je 0x660d19b7
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [0x66110c24], 0
lea eax, [ebp - 8]
push 6
push eax
push 3
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x660d1a14
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 8]
push eax
mov ebx, str.vb6_s.dll
lea eax, [ebp - 0x18]
push ebx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call edi
test eax, eax
mov dword [0x66110c24], eax
jne 0x660d1a14
and byte [ebp - 6], al
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call edi
mov dword [0x66110c24], eax
mov eax, dword [0x66110c24]
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
test ebp, ebp
push edi
mov esi, ecx
je 0x660d2548
and dword [ebp], 0
mov eax, dword [esi + 4]
test al, 2
jne 0x660d256d
test al, 0x20
jne 0x660d2592
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edi, eax
mov eax, dword [esi + 0x20]
mov ecx, edi
sub ecx, eax
cmp ecx, dword [esi + 0x14]
jae 0x660d2576
cmp edi, eax
jb 0x660d2576
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 1
mov ecx, esi
call fcn.660d24c0
mov dword [esi + 0x24], edi
call ebx
test ebp, ebp
mov dword [esi + 0x20], eax
je 0x660d2592
mov dword [ebp], 1
push 1
pop eax
jmp 0x660d256f
Function at 0x660d2670
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 1
call ebx
mov esi, dword [edi + 0x2c]
xor ecx, ecx
cmp esi, ecx
mov dword [ebp - 0xc], eax
jne 0x660d269f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
inc dword [esi]
cmp dword [ebp + 8], ecx
je 0x660d278d
mov dword [ebp + 0xc], 1
cmp dword [ebp + 8], ecx
je 0x660d26c1
mov eax, dword [edi + 0x14]
and ah, 0xf7
or al, 0x20
mov dword [edi + 0x14], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], ecx
test al, 2
jne 0x660d274e
cmp dword [ebp + 8], ecx
je 0x660d2796
and eax, 0x20
cmp eax, ecx
je 0x660d274e
mov eax, dword [esi + 0xc]
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test eax, eax
je 0x660d270a
cmp dword [ebp + 8], 0
mov eax, dword [esi + 4]
je 0x660d279e
and eax, 0x10
test eax, eax
jne 0x660d2720
xor eax, eax
mov ecx, esi
cmp dword [ebp + 8], eax
mov dword [ebp - 8], eax
push eax
je 0x660d27a6
call fcn.660d24c0
cmp dword [ebp + 0x10], 0
je 0x660d2741
call ebx
mov ecx, eax
sub ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x660d2737
cmp eax, dword [ebp - 0xc]
jae 0x660d273b
and dword [ebp + 0x10], 0
cmp dword [ebp + 0x10], 0
jne 0x660d274c
mov ecx, edi
call fcn.66028741
test eax, eax
je 0x660d27b0
xor ecx, ecx
cmp dword [ebp - 4], ecx
je 0x660d275c
cmp dword [ebp - 8], ecx
jne 0x660d26c1
cmp dword [ebp + 8], ecx
je 0x660d2765
and dword [edi + 0x14], 0xffffffdf
push 1
push 0xffffffffffffffff
push esi
mov ecx, edi
call fcn.660113a3
xor eax, eax
cmp dword [ebp - 4], eax
je 0x660d2698
cmp dword [ebp - 8], eax
je 0x660d2698
push 1
pop eax
jmp 0x660d2698
and dword [ebp + 0xc], 0xfffffffe
jmp 0x660d26b1
and eax, 0x40
jmp 0x660d26db
and eax, 8
jmp 0x660d2706
call fcn.66018c8d
jmp 0x660d2720
xor ecx, ecx
jmp 0x660d275c

Function at 0x660d44e6
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [0x6610ee98]
call esi
cmp dword [eax + 0x34], 0
jne 0x660d453b
cmp word [eax + 0x38], 0
jne 0x660d453b
push dword [0x6610ee98]
call esi
test byte [eax + 0xa0], 2
jne 0x660d453b
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.660d432a
pop esi
pop ebp
ret 0x24
xor eax, eax
jmp 0x660d4536
Function at 0x660d496c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [esp + 0x10]
mov edi, eax
push esi
mov eax, dword [esi]
call dword [eax + 4]
mov eax, dword [edi + 0xa0]
test al, 2
je 0x660d4997
test al, 1
je 0x660d49a1
push 0
push esi
mov ecx, ebx
call fcn.6601d0c0
push esi
push 0xd
call fcn.6601532c
mov eax, dword [esi]
push esi
call dword [eax + 8]
test eax, eax
jbe 0x660d49cf
push esi
mov ecx, ebx
call fcn.6602e8a7
test eax, eax
jl 0x660d49d1
test byte [esi + 0x2c], 0x10
je 0x660d49cf
mov ecx, dword [esi + 0x1c]
lea eax, [esi + 0x1c]
push eax
call dword [ecx + 8]
xor eax, eax
pop edi
pop esi
pop ebx
ret 4

Function at 0x660d4a37
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [esp + 4], 0
jne 0x660d4a5c
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
mov ecx, eax
push dword [esp + 0xc]
call fcn.660d5758
xor eax, eax
ret 8
push 5
pop eax
jmp 0x660d4a59

Function at 0x660d4b2a
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0xc]
xor eax, eax
cmp word [esp + 4], 0xffff
je 0x660d4b4f
movzx eax, word [esp + 4]
mov ecx, dword [ecx + 8]
mov eax, dword [ecx + eax*4]
ret 4
Function at 0x660d587d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], 0x44
cmp ax, 9
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], ax
jbe 0x660d58b2
push 5
call fcn.66024fdc
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x660d58db
cmp word [eax], 8
jne 0x660d58db
cmp dword [eax + 8], esi
jne 0x660d58db
push esi
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
cmp ebx, esi
jne 0x660d58e3
push 5
call fcn.66024fdc
push eax
call sym.MSVBVM60.DLL___vbaStrVarCopy
jmp 0x660d58ce
cmp dword [0x6610ed74], esi
je 0x660d599e
cmp ebx, esi
jne 0x660d5957
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
inc eax
push esi
push eax
push ebx
push esi
push esi
call edi
cmp eax, esi
mov dword [ebp + 8], eax
je 0x660d591a
push eax
call fcn.6600fd50
cmp eax, esi
mov dword [ebp + 0xc], eax
jne 0x660d595e
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, esi
jne 0x660d59d0
mov eax, dword [ebp + 0xc]
dec eax
dec eax
je 0x660d59bb
dec eax
je 0x660d59c2
sub eax, 5
je 0x660d59c9
sub eax, 6
je 0x660d59c9
push 5
call fcn.66024fdc
mov eax, dword [ebx - 4]
shr eax, 1
jmp 0x660d58f5
cmp ebx, esi
jne 0x660d5997
xor eax, eax
push esi
push esi
push dword [ebp + 8]
inc eax
push dword [ebp + 0xc]
push eax
push ebx
push esi
push esi
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp + 0xc]
mov edi, eax
call fcn.660175eb
jmp 0x660d5924
mov eax, dword [ebx - 4]
shr eax, 1
jmp 0x660d5964
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
jmp 0x660d5924
push 0x35
call fcn.66024fdc
push 0x4c
call fcn.66024fdc
push 7
call fcn.66024fdc
push 0x2710
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
fild dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x660d5ac0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp ecx, ebx
push edi
je 0x660d5c11
mov eax, dword [ecx - 4]
shr eax, 1
push eax
push ecx
call fcn.660d5c18
mov eax, dword [0x66110c64]
cmp eax, ebx
je 0x660d5c11
push eax
call fcn.660d6453
cmp dword [0x6610f318], ebx
jne 0x660d5bf7
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov cl, byte [ebp - 0x70]
mov al, byte [ebp - 0xec]
mov byte [0x6610f339], cl
mov cl, byte [ebp - 0x6f]
mov byte [0x6610f33a], cl
mov cx, word [0x6610efc4]
and cx, 0x3ff
mov byte [0x6610f338], al
cmp cx, 0x11
jne 0x660d5b4c
mov cl, byte [ebp - 0xeb]
mov byte [0x6610f33b], cl
cmp dword [0x6610ed74], ebx
jne 0x660d5bc8
mov esi, dword [sym.imp.USER32.dll_keybd_event]
cmp al, bl
je 0x660d5b6d
push ebx
push ebx
push ebx
push 0x14
call esi
push ebx
push 2
push ebx
push 0x14
call esi
cmp byte [0x6610f339], bl
je 0x660d5b87
push ebx
push ebx
mov edi, 0x90
push ebx
push edi
call esi
push ebx
push 2
push ebx
push edi
call esi
cmp byte [0x6610f33a], bl
je 0x660d5ba1
push ebx
push ebx
mov edi, 0x91
push ebx
push edi
call esi
push ebx
push 2
push ebx
push edi
call esi
mov ax, word [0x6610efc4]
and ax, 0x3ff
cmp ax, 0x11
jne 0x660d5bc8
cmp byte [0x6610f33b], bl
je 0x660d5bc8
push ebx
push ebx
push ebx
push 0x15
call esi
push ebx
push 2
push ebx
push 0x15
call esi
mov ax, word [0x6610efc4]
mov byte [ebp - 0xec], bl
and ax, 0x3ff
mov byte [ebp - 0x70], bl
cmp ax, 0x11
mov byte [ebp - 0x6f], bl
jne 0x660d5bea
mov byte [ebp - 0xeb], bl
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
call fcn.660d65a0
mov eax, dword [0x66110c64]
cmp eax, ebx
je 0x660d5c11
push eax
call fcn.660175eb
mov dword [0x66110c64], ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x660d7079
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
push dword [0x6610fd74]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x660d713e
mov edi, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
push 0x10
call edi
mov esi, eax
cmp esi, ebx
je 0x660d70ae
push 0x20
call edi
mov edx, eax
cmp edx, ebx
jne 0x660d70ba
push ebx
call fcn.660d7035
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 8
xor eax, eax
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
and dword [edx + 0x14], 0xfffffffc
or dword [edx + 0xc], 0xffffffff
mov edi, 0x66110c70
mov dword [esi], edx
push edi
mov dword [esi + 4], edx
mov dword [esi + 0xc], ebx
mov dword [edx + 8], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x66110c90]
push edi
mov dword [esi + 8], eax
mov dword [0x66110c90], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push dword [0x6610fd74]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp byte [0x6610f190], bl
je 0x660d712d
push ebx
call fcn.660d7df9
mov edi, eax
cmp edi, ebx
je 0x660d712d
test byte [edi + 4], 8
je 0x660d712a
mov eax, dword [edi + 8]
push ebx
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push edi
jmp 0x660d710d
push 1
push 1
push ebx
push ebx
push 0xfffffffffffffffe
push 0xfffffffffffffffa
push 1
call fcn.660d7145
mov eax, esi
jmp 0x660d70b6
Function at 0x660d73d5
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0xc], ebx
mov dword [0x6610efcc], ebx
mov eax, dword [ebp - 0xc]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ebx
inc dword [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x14], 0x200
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x660d74f3
push 4
lea eax, [ebp - 8]
pop esi
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x1c], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jne 0x660d74f3
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x41c]
push 0x66054cc8
push eax
call fcn.660ee2e1
add esp, 0xc
lea eax, [ebp - 0x41c]
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x660d7496
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x66054cb4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x660d74da
cmp dword [ebp - 0x18], esi
jne 0x660d74da
cmp dword [ebp - 0x10], ebx
je 0x660d74da
push 0x10
call fcn.6600fd50
mov esi, eax
xor eax, eax
mov edi, esi
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x66054cac
mov dword [esi + 8], ebx
push dword [ebp - 8]
mov byte [ebp - 1], bl
call fcn.660d750f
test eax, eax
jne 0x660d74c3
cmp dword [esi], ebx
jne 0x660d74c7
mov byte [ebp - 1], 1
cmp byte [ebp - 1], bl
jne 0x660d74eb
mov eax, dword [0x6610efcc]
mov dword [0x6610efcc], esi
mov dword [esi + 0xc], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], ebx
jmp 0x660d73ec
push esi
call fcn.660175eb
jmp 0x660d74da
mov esi, dword [0x6610efcc]
cmp esi, ebx
je 0x660d7508
push esi
call fcn.660d7309
mov esi, dword [esi + 0xc]
jmp 0x660d74f9
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x660d902c
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [esp + 8], 0
mov esi, dword [eax + 0x1c]
je 0x660d9057
push 0x660550d0
push dword [esp + 0xc]
call fcn.660ee381
pop ecx
test eax, eax
pop ecx
jne 0x660d905f
push 1
push esi
call fcn.66010787
pop esi
ret 4
Function at 0x660d98fd
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
mov ecx, eax
neg ecx
push esi
lea esi, [ebx + 0x34]
sbb ecx, ecx
and dword [ebp - 0xc], 0
and ecx, dword [ebp + 0x10]
and dword [ebp - 4], 0
test dword [esi + 4], 0xfffffffe
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
mov dword [ebp + 0x14], esi
je 0x660d9a40
mov eax, dword [ebx + 8]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 1
or al, 1
mov dword [ebp + 0x10], ecx
mov dword [esi + 4], eax
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
test eax, 0xfffffffe
je 0x660d99d7
lea edx, [ebp + 8]
and al, 0xfe
push edx
lea edx, [ebp - 0x30]
push edx
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
push 0
push edx
push 1
push 0x409
push 0x6601ac08
push dword [ebp + 0xc]
push eax
call dword [ecx + 0x18]
push dword [0x6610ee98]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test byte [eax + 0x76], 2
je 0x660d99c6
mov eax, dword [esi + 4]
and al, 0xfe
or eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.6601d35f
mov eax, dword [ebx + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
cmp edi, 0x80020009
jne 0x660d99d7
lea eax, [ebp - 0x30]
push eax
call fcn.66018892
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
test eax, eax
mov dword [ebp + 0x14], eax
jne 0x660d994f
cmp dword [ebp + 0x10], eax
jne 0x660d9a36
and dword [esi + 4], 0xfffffffe
mov dword [ebp + 0x14], esi
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx]
test ecx, ecx
je 0x660d9a36
mov eax, dword [ecx + 4]
test eax, 0xfffffffe
jne 0x660d9a12
mov eax, dword [ecx]
push ecx
mov dword [edx], eax
call fcn.660175eb
jmp 0x660d99f3
mov edx, dword [esi + 4]
test edx, 0xfffffffe
jne 0x660d9a31
mov edi, eax
xor edi, edx
and edi, 1
xor edi, eax
and eax, 1
mov dword [esi + 4], edi
mov dword [ecx + 4], eax
jmp 0x660d99f3
mov dword [ebp + 0x14], ecx
jmp 0x660d99f3
mov ebx, dword [ebx + 8]
push ebx
mov eax, dword [ebx]
call dword [eax + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x660d9f0a
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea esi, [eax + 0x50]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.66024e0e
mov cx, word [eax]
cmp cx, 8
jne 0x660d9f54
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push 7
push eax
push esi
call fcn.660e4425
push eax
call fcn.6601d35f
fld qword [esi + 8]
pop esi
leave
ret 4
cmp cx, 7
jne 0x660d9f5f
fld qword [eax + 8]
jmp 0x660d9f4f
push 0xd
call fcn.66024fdc