joyce8/EMBER2024-capa huggingface dataset:
Function at 0x660d6cb9
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 0x660d6cee
push 5
call fcn.66025592
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x660d6d17
cmp word [eax], 8
jne 0x660d6d17
cmp dword [eax + 8], esi
jne 0x660d6d17
push esi
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
cmp ebx, esi
jne 0x660d6d1f
push 5
call fcn.66025592
push eax
call sym.MSVBVM60.DLL___vbaStrVarCopy
jmp 0x660d6d0a
cmp dword [0x6610fd90], esi
je 0x660d6dda
cmp ebx, esi
jne 0x660d6d93
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 0x660d6d56
push eax
call fcn.6600fdd3
cmp eax, esi
mov dword [ebp + 0xc], eax
jne 0x660d6d9a
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 0x660d6e0c
mov eax, dword [ebp + 0xc]
dec eax
dec eax
je 0x660d6df7
dec eax
je 0x660d6dfe
sub eax, 5
je 0x660d6e05
sub eax, 6
je 0x660d6e05
push 5
call fcn.66025592
mov eax, dword [ebx - 4]
shr eax, 1
jmp 0x660d6d31
cmp ebx, esi
jne 0x660d6dd3
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.660177d3
jmp 0x660d6d60
mov eax, dword [ebx - 4]
shr eax, 1
jmp 0x660d6da0
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 0x660d6d60
push 0x35
call fcn.66025592
push 0x4c
call fcn.66025592
push 7
call fcn.66025592
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 0x660d6f11
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 0x660d7062
mov eax, dword [ecx - 4]
shr eax, 1
push eax
push ecx
call fcn.660d7069
mov eax, dword [0x66111c7c]
cmp eax, ebx
je 0x660d7062
push eax
call fcn.660d78a4
cmp dword [0x66110330], ebx
jne 0x660d7048
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 [0x66110351], cl
mov cl, byte [ebp - 0x6f]
mov byte [0x66110352], cl
mov cx, word [0x6610ffdc]
and cx, 0x3ff
mov byte [0x66110350], al
cmp cx, 0x11
jne 0x660d6f9d
mov cl, byte [ebp - 0xeb]
mov byte [0x66110353], cl
cmp dword [0x6610fd90], ebx
jne 0x660d7019
mov esi, dword [sym.imp.USER32.dll_keybd_event]
cmp al, bl
je 0x660d6fbe
push ebx
push ebx
push ebx
push 0x14
call esi
push ebx
push 2
push ebx
push 0x14
call esi
cmp byte [0x66110351], bl
je 0x660d6fd8
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 [0x66110352], bl
je 0x660d6ff2
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 [0x6610ffdc]
and ax, 0x3ff
cmp ax, 0x11
jne 0x660d7019
cmp byte [0x66110353], bl
je 0x660d7019
push ebx
push ebx
push ebx
push 0x15
call esi
push ebx
push 2
push ebx
push 0x15
call esi
mov ax, word [0x6610ffdc]
mov byte [ebp - 0xec], bl
and ax, 0x3ff
mov byte [ebp - 0x70], bl
cmp ax, 0x11
mov byte [ebp - 0x6f], bl
jne 0x660d703b
mov byte [ebp - 0xeb], bl
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
call fcn.660d79f1
mov eax, dword [0x66111c7c]
cmp eax, ebx
je 0x660d7062
push eax
call fcn.660177d3
mov dword [0x66111c7c], ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x660d8501
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
push dword [0x66110dac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x660d85c6
mov edi, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
push 0x10
call edi
mov esi, eax
cmp esi, ebx
je 0x660d8536
push 0x20
call edi
mov edx, eax
cmp edx, ebx
jne 0x660d8542
push ebx
call fcn.660d84bd
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, 0x66111c88
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 [0x66111ca8]
push edi
mov dword [esi + 8], eax
mov dword [0x66111ca8], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push dword [0x66110dac]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp byte [0x661101a4], bl
je 0x660d85b5
push ebx
call fcn.660d9281
mov edi, eax
cmp edi, ebx
je 0x660d85b5
test byte [edi + 4], 8
je 0x660d85b2
mov eax, dword [edi + 8]
push ebx
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push edi
jmp 0x660d8595
push 1
push 1
push ebx
push ebx
push 0xfffffffffffffffe
push 0xfffffffffffffffa
push 1
call fcn.660d85cd
mov eax, esi
jmp 0x660d853e
Function at 0x660d885d
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 [0x6610ffe4], 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 0x660d897b
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 0x660d897b
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x41c]
push 0x66054ae0
push eax
call fcn.660ef881
add esp, 0xc
lea eax, [ebp - 0x41c]
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x660d891e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x66054acc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x660d8962
cmp dword [ebp - 0x18], esi
jne 0x660d8962
cmp dword [ebp - 0x10], ebx
je 0x660d8962
push 0x10
call fcn.6600fdd3
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 0x66054ac4
mov dword [esi + 8], ebx
push dword [ebp - 8]
mov byte [ebp - 1], bl
call fcn.660d8997
test eax, eax
jne 0x660d894b
cmp dword [esi], ebx
jne 0x660d894f
mov byte [ebp - 1], 1
cmp byte [ebp - 1], bl
jne 0x660d8973
mov eax, dword [0x6610ffe4]
mov dword [0x6610ffe4], esi
mov dword [esi + 0xc], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], ebx
jmp 0x660d8874
push esi
call fcn.660177d3
jmp 0x660d8962
mov esi, dword [0x6610ffe4]
cmp esi, ebx
je 0x660d8990
push esi
call fcn.660d8791
mov esi, dword [esi + 0xc]
jmp 0x660d8981
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x660da4b4
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [esp + 8], 0
mov esi, dword [eax + 0x1c]
je 0x660da4df
push 0x66054ee8
push dword [esp + 0xc]
call fcn.660ef921
pop ecx
test eax, eax
pop ecx
jne 0x660da4e7
push 1
push esi
call fcn.66010867
pop esi
ret 4
Function at 0x660dad92
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 0x660daed5
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 0x660dae6c
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 0x6601ae28
push dword [ebp + 0xc]
push eax
call dword [ecx + 0x18]
push dword [0x6610feb0]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test byte [eax + 0x76], 2
je 0x660dae5b
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.6601d62b
mov eax, dword [ebx + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
cmp edi, 0x80020009
jne 0x660dae6c
lea eax, [ebp - 0x30]
push eax
call fcn.66018aad
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
test eax, eax
mov dword [ebp + 0x14], eax
jne 0x660dade4
cmp dword [ebp + 0x10], eax
jne 0x660daecb
and dword [esi + 4], 0xfffffffe
mov dword [ebp + 0x14], esi
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx]
test ecx, ecx
je 0x660daecb
mov eax, dword [ecx + 4]
test eax, 0xfffffffe
jne 0x660daea7
mov eax, dword [ecx]
push ecx
mov dword [edx], eax
call fcn.660177d3
jmp 0x660dae88
mov edx, dword [esi + 4]
test edx, 0xfffffffe
jne 0x660daec6
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 0x660dae88
mov dword [ebp + 0x14], ecx
jmp 0x660dae88
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 0x660db39f
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea esi, [eax + 0x50]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.660253c4
mov cx, word [eax]
cmp cx, 8
jne 0x660db3e9
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push 7
push eax
push esi
call fcn.660e58e5
push eax
call fcn.6601d62b
fld qword [esi + 8]
pop esi
leave
ret 4
cmp cx, 7
jne 0x660db3f4
fld qword [eax + 8]
jmp 0x660db3e4
push 0xd
call fcn.66025592
Function at 0x660dc66f
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
jl 0x660dc68f
cmp esi, 0x3fffffff
jbe 0x660dc696
push 5
call fcn.66025592
push dword [ebp + 0xc]
call fcn.6602d920
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 0x18]
push 0xffffffffffffffef
pop ecx
mov eax, dword [eax]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x10], eax
lea eax, [esi + esi]
cmp eax, ecx
ja 0x660dc6c2
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x660dc6df
call fcn.6602da8f
push 0xe
call fcn.66025592
mov ebx, dword [ebp - 8]
lea edi, [esi - 1]
test esi, esi
je 0x660dc73d
mov esi, 0xff
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
call fcn.6602d655
cmp eax, 0xffffffff
je 0x660dc772
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 0xc], ecx
ja 0x660dc781
cmp eax, esi
jle 0x660dc76d
mov ecx, eax
mov byte [ebp + 0xb], al
sar ecx, 8
mov byte [ebp + 0xa], cl
xor ecx, ecx
cmp eax, esi
setg cl
push 1
inc ecx
push ebx
lea eax, [ebp + 0xa]
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add dword [ebp - 0xc], 2
inc ebx
inc ebx
mov eax, edi
dec edi
test eax, eax
jne 0x660dc6ee
call fcn.6602da8f
cmp dword [ebp - 4], 0
je 0x660dc78a
cmp dword [ebp - 4], 0x3e
jne 0x660dc756
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x20
je 0x660dc78a
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 4], 0
je 0x660dc7a7
push dword [ebp - 4]
call fcn.66025592
mov byte [ebp + 0xa], al
jmp 0x660dc716
cmp dword [ebp - 4], 0
jne 0x660dc73d
mov dword [ebp - 4], 0x3e
jmp 0x660dc73d
mov dword [ebp - 4], 0xe
jmp 0x660dc73d
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x660dc7a7
push eax
lea eax, [ebp - 8]
push dword [ebp - 8]
push eax
call fcn.660dfa92
test eax, eax
jne 0x660dc7a7
push 0xe
jmp 0x660dc768
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x660dd0de
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [eax + 0x18]
movsx eax, word [esp + 8]
push eax
call fcn.66025f9e
test byte [eax], 0x25
mov dword [esi], eax
je 0x660dd107
push 0x36
call fcn.66025592
mov dword [esi + 4], 2
pop esi
ret 4

Function at 0x660dd173
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 0x18]
push 2
push dword [esp + 8]
push dword [eax + 4]
push dword [eax]
call fcn.66026093
call fcn.660dd1de
ret 4

Function at 0x660dd491
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and word [ebp - 0x20], 0
lea edi, [eax + 0x50]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
call fcn.660253c4
mov esi, eax
mov ax, word [esi]
cmp ax, 0xa
jne 0x660dd4fc
cmp dword [esi + 8], 0x80020004
jne 0x660dd4fc
or ecx, 0xffffffff
test cx, cx
je 0x660dd500
call fcn.660dddcb
mov ecx, edi
mov dword [ebp - 8], eax
mov word [ebp - 0x10], 8
call sym.MSVBVM60.DLL___vbaFreeVar
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x10]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
leave
ret 8
xor ecx, ecx
jmp 0x660dd4d0
cmp ax, 8
je 0x660dd530
movzx ecx, ax
test ecx, ecx
jl 0x660dd517
cmp ecx, 0xe
jle 0x660dd52c
cmp ecx, 0x11
je 0x660dd52c
test ah, 0x20
jne 0x660dd52c
cmp ax, 0x24
je 0x660dd52c
push 0x1ca
call fcn.66025592
push 0xd
jmp 0x660dd527
push dword [esi + 8]
call fcn.660dddd3
jmp 0x660dd4da

Function at 0x660dd53a
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and word [ebp - 0x10], 0
lea edi, [eax + 0x50]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.660253c4
mov esi, eax
mov ax, word [esi]
cmp ax, 0xa
jne 0x660dd594
cmp dword [esi + 8], 0x80020004
jne 0x660dd594
or ecx, 0xffffffff
test cx, cx
je 0x660dd598
call fcn.660dddcb
mov ecx, edi
mov esi, eax
call sym.MSVBVM60.DLL___vbaFreeVar
mov eax, esi
pop edi
pop esi
leave
ret 4
xor ecx, ecx
jmp 0x660dd579
cmp ax, 8
je 0x660dd5c8
movzx ecx, ax
test ecx, ecx
jl 0x660dd5af
cmp ecx, 0xe
jle 0x660dd5c4
cmp ecx, 0x11
je 0x660dd5c4
test ah, 0x20
jne 0x660dd5c4
cmp ax, 0x24
je 0x660dd5c4
push 0x1ca
call fcn.66025592
push 0xd
jmp 0x660dd5bf
push dword [esi + 8]
call fcn.660dddd3
jmp 0x660dd583
Function at 0x660dd936
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor eax, eax
mov edi, pe_nt_image_headers32
push eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 3
push eax
push 3
push SysReAllocStringLen
mov dword [ebp - 4], eax
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x660dd98a
push 0
push edi
push 3
push 0
push 3
push 0x40000000
push dword [ebp + 0xc]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x660dd995
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.660dcf9c
pop edi
pop esi
leave
ret 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x660dd9c5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x660dd9cd
call fcn.660dcf9c
mov dword [ebp - 4], eax
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov eax, dword [ebp - 4]
jmp 0x660dd98f

Function at 0x660ddb00
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
je 0x660ddb2c
cmp word [esi], 0
je 0x660ddb2c
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x104
jbe 0x660ddb33
push 0x35
call fcn.66025592
push 1
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.660ddd2e
mov esi, dword [ebp + 0xc]
mov eax, esi
or al, 0x27
cmp eax, 0x27
je 0x660ddb55
push 5
call fcn.66025592
test esi, esi
jne 0x660ddb5e
mov esi, pe_nt_image_headers32
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x660ddba6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x660ddba2
call esi
cmp eax, 0x35
je 0x660ddba2
call esi
cmp eax, 0x57
je 0x660ddba2
call esi
cmp eax, 0x13
je 0x660ddba2
push 0x35
pop eax
movzx eax, ax
test eax, eax
je 0x660ddba6
push eax
call fcn.66025592
push 0x4b
jmp 0x660ddb94
pop edi
pop esi
leave
ret 8

Function at 0x660ddc2f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [ebp + 8]
test eax, eax
je 0x660ddcb1
cmp word [eax], 0
je 0x660ddcb1
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.66025404
test eax, eax
jne 0x660ddcad
lea eax, [ebp - 0x108]
push 0x66055062
push eax
call fcn.660e3236
pop ecx
test eax, eax
pop ecx
je 0x660ddc72
push 0x34
pop eax
jmp 0x660ddcad
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x660ddcab
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
dec eax
je 0x660ddcb1
dec eax
je 0x660ddca7
dec eax
dec eax
je 0x660ddca3
sub eax, 0x30
je 0x660ddcb1
push 5
jmp 0x660ddc6f
push 0x4b
jmp 0x660ddc6f
push 0x4c
jmp 0x660ddc6f
xor eax, eax
leave
ret 8
push 0x35
jmp 0x660ddc6f
Function at 0x660ddf84
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push dword [0x6610feb0]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x14]
push dword [eax + 8]
push dword [ebx + 0x18]
call fcn.66015979
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x18]
mov ecx, dword [ecx + 0xc]
mov dword [edx], ecx
mov edx, dword [esp + 0x1c]
movzx ecx, word [esi + 2]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + 0x18]
mov dword [edx], ecx
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x18]
test byte [ecx + 0x28], 2
jne 0x660ddfdf
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x24]
mov dword [ecx], eax
pop edi
mov eax, ebx
pop esi
pop ebx
ret 0x10

Function at 0x660deac4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
call fcn.660138dd
mov esi, eax
lea ecx, [esi + 0x4c]
mov eax, dword [ecx]
test eax, eax
je 0x660deaf5
cmp dword [eax], 0
jne 0x660deaf0
mov edx, dword [eax + 0xc]
inc word [esi + 0x44]
mov dword [ecx], edx
mov edx, dword [esi + 0x48]
mov dword [eax + 0xc], edx
mov dword [esi + 0x48], eax
jmp 0x660dead1
lea ecx, [eax + 0xc]
jmp 0x660dead1
mov ax, word [esi + 0x44]
cmp ax, word [esi + 0x46]
jae 0x660deb8f
call fcn.660deb93
mov edi, eax
test edi, edi
je 0x660deb5a
push dword [0x6610feb0]
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 0x18]
mov dword [eax + 0x18], ebx
lea eax, [edi + 4]
movzx ebx, word [eax]
mov ecx, dword [esi + 0x50]
mov ax, word [eax]
add word [esi + 0x44], ax
mov dword [esi + 0x50], edi
mov dword [ecx], edi
mov edi, dword [edi + 8]
test ebx, ebx
jbe 0x660deaf5
mov eax, ebx
shl eax, 4
add eax, edi
and dword [eax - 0x10], 0
mov ecx, dword [esi + 0x48]
sub eax, 0x10
dec ebx
mov dword [esi + 0x48], eax
mov dword [eax + 0xc], ecx
je 0x660deaf5
jmp 0x660deb45
mov eax, dword [esi + 0x50]
movzx ebx, word [eax + 4]
shl ebx, 1
mov eax, ebx
shl eax, 4
add eax, 0xc
push eax
call fcn.6600fdd3
mov edi, eax
test edi, edi
jne 0x660deb81
push 0x8007000e
call fcn.660dec27
lea eax, [edi + 4]
lea ecx, [edi + 0xc]
mov dword [edi + 8], ecx
mov word [eax], bx
jmp 0x660deb28
pop edi
pop esi
pop ebx
ret
Function at 0x660dfc2c
Capabilities:
Get thread local storage value

Disassembly:
push ecx
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 0x70]
lea ecx, [esp + 3]
sub eax, 0x8000
cmp ecx, eax
sbb eax, eax
and eax, 0x800a001c
pop ecx
ret