joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6601ba0e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov esi, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x6603c249
push eax
call fcn.6601bac2
test eax, eax
mov dword [ebp - 8], eax
jne 0x6601ba79
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x110]
push edi
push eax
push 0
push dword [ebp - 4]
call esi
test eax, eax
je 0x6601ba9d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call fcn.6601bac2
test eax, eax
jne 0x6603c25a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push eax
call fcn.6601bac2
test eax, eax
jne 0x6603c262
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call fcn.6601ba0e
test eax, eax
jne 0x6603c251
lea eax, [ebp - 0x110]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x6601ba5c
mov dword [ebp - 4], esi
jmp 0x6601ba37
mov dword [ebp - 8], eax
inc ebx
jmp 0x6601bab4
mov dword [ebp - 8], eax
jmp 0x6601ba79
mov dword [ebp - 8], eax
jmp 0x6601ba93
Function at 0x6601bb6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6601bd98
push 0x660ed90d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x25c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x16c], esi
push 0x6601bd50
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xfa
lea eax, [ebp - 0x266]
push eax
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x64]
push eax
call fcn.6601b97f
push 0x6601bd84
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x26c]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, esi
jne 0x6603c285
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x164], 0x104
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x6603c285
mov dword [ebp - 0x158], esi
mov dword [ebp - 4], esi
push 8
push esi
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x16c], eax
cmp eax, esi
je 0x6603c290
mov dword [ebp - 0x160], 0x34
xor eax, eax
cmp dword [ebx + 0x48], esi
sete al
inc eax
mov dword [ebp - 0x15c], eax
push dword [ebp + 0xc]
call fcn.6601b4a6
mov dword [ebp - 0x158], eax
lea esi, [ebx + 0x10]
lea edi, [ebp - 0x154]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x30]
lea edi, [ebp - 0x144]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ax, word [ebx + 0x58]
mov word [ebp - 0x134], ax
mov ax, word [ebx + 0x5a]
mov word [ebp - 0x132], ax
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x130], eax
cmp dword [ebp + 0x10], 0
mov eax, 0x6601bd70
jne 0x6601bcd9
mov eax, 0x6601bd58
push eax
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x6603c2be
lea ecx, [ebp - 0x160]
push ecx
call eax
mov dword [ebp - 0x274], eax
test eax, eax
jl 0x6603c29c
xor eax, eax
mov dword [ebp - 0x20], eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x16c], 0
je 0x6601bd26
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x158], 0
je 0x6601bd3b
push dword [ebp - 0x158]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
push edi
call fcn.6601bac2
jmp 0x6601bd3e
or dword [ebp - 4], 0xffffffff
push 0x30
pop eax
jmp 0x6601bd3e
push eax
call fcn.66071e9f
jmp 0x6601bd0a
mov dword [ebp - 0x20], 0x30
jmp 0x6601bd0d
Function at 0x6601d35f
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test byte [eax + 0x76], 2
mov esi, dword [ebp + 0xc]
jne 0x6604577a
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
mov dword [ebp + 0xc], eax
jl 0x6604578e
pop edi
pop esi
pop ebx
leave
ret 8
pop edi
leave
ret 0x20
test esi, esi
je 0x66045784
push esi
call fcn.66018892
push 0x9c68
call fcn.66024fdc
cmp eax, 0x80020009
mov ebx, 0x1b8
jne 0x6604582d
cmp esi, edi
jne 0x660457bf
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
lea esi, [ebp - 0x20]
push eax
call fcn.660dd31d
mov dword [ebp - 4], 0x800a01b8
cmp dword [esi + 0x1c], 0x800a9c68
jne 0x660457cf
mov dword [esi + 0x1c], 0x800a01b8
xor edi, edi
cmp word [esi], di
jne 0x660457db
cmp dword [esi + 0x1c], edi
jge 0x66045821
mov eax, dword [esi + 0x1c]
cmp eax, edi
jge 0x6604581b
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0xa0000
je 0x6604581b
push eax
call fcn.6602467a
cmp eax, ebx
je 0x6604581b
cmp dword [esi + 8], edi
jne 0x6604581b
cmp dword [esi + 0xc], edi
jne 0x6604581b
cmp dword [esi + 0x10], edi
jne 0x6604581b
mov ecx, eax
or eax, 0x800a0000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x1c], ecx
push esi
call fcn.66024702
push esi
call fcn.66018892
push ebx
call fcn.66024fdc
cmp esi, edi
je 0x66045837
push esi
call fcn.66018892
push dword [ebp + 8]
call fcn.6602467a
cmp eax, 0x9c68
jne 0x6604584f
mov eax, ebx
mov dword [ebp + 0xc], 0x800a01b8
cmp eax, ebx
je 0x66045859
push eax
call fcn.66024fdc
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
call fcn.66024702
mov eax, 0x800a005b
jmp 0x6602817e
Function at 0x6601d9b7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, 0x8000
test dword [ebp + 0xc], edi
mov dword [ebp - 4], 1
jne 0x66033ec9
mov esi, dword [ebp + 8]
push esi
call fcn.6601da10
mov ax, word [esi + 0x10]
and ax, 0xff00
cmp ax, 0x600
jne 0x66033ee7
mov eax, dword [esi + 0x24]
shl eax, 0x1f
sar eax, 0x1f
test al, al
jne 0x66033ed6
and dword [esi + 0x24], 0xfffffffb
and dword [esi + 0x14], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
and byte [ebp + 0xd], 0x7f
and dword [ebp - 4], 0
jmp 0x6601d9d3
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 4], eax
jmp 0x6601d9ff
cmp ax, 0x800
jne 0x66033efb
push dword [ebp + 0xc]
push esi
call fcn.6607374a
jmp 0x6601da09
cmp ax, 0x200
jne 0x66033f09
push dword [esi + 0xc]
call fcn.66074241
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 0x28]
or eax, edi
xor edi, edi
push eax
push ebx
push edi
call fcn.66073fa0
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x66033f38
mov ecx, dword [esi + 0xc]
call fcn.66074294
push eax
push dword [ebx]
call fcn.66071e2d
jmp 0x6601da09
cmp dword [ebp - 4], edi
je 0x6601da07
cmp dword [ebp + 0xc], edi
jne 0x6601da07
push esi
call fcn.660733f0
mov ebx, eax
cmp ebx, edi
jge 0x6601da07
push esi
call fcn.6601da10
mov eax, ebx
jmp 0x6601da09
Function at 0x66023e73
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and dword [eax + 0x98], 0
add eax, 0x78
push eax
call fcn.66018892
mov eax, dword fs:[0]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0xfffffffd
je 0x66046f29
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
leave
ret 4
mov eax, dword [ebp - 4]
and dword [eax + 0x10], 0xfffffffd
jmp 0x66023eae

Function at 0x66023fad
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
push dword [0x6610ee98]
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x40], eax
mov dword [esi + 4], 0x66019fd0
lea eax, [esi + 0x30]
mov dword [esi + 8], 0x66019fb8
mov dword [esi], 0x6602f810
mov dword [esi + 4], 0x6602f800
mov dword [esi + 8], 0x6602f7e8
mov dword [esi + 0x5c], 1
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi + 0x60], eax
mov eax, esi
pop esi
ret

Function at 0x66024363
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea esi, [eax + 0x50]
push esi
push dword [ebp + 0xc]
call fcn.660243ba
cmp eax, 0xffffffff
je 0x66047080
push dword [ebp + 0x10]
push eax
call sym.MSVBVM60.DLL_rtcLeftBstr
cmp word [esi], 8
mov dword [ebp - 8], eax
mov word [ebp - 0x10], 8
je 0x6604706e
mov word [ebp - 0x10], 1
jmp 0x660243a8

Function at 0x66024528
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test byte [eax + 0x76], 2
jne 0x66045b4e
mov eax, dword [esp + 4]
test eax, eax
jge 0x66045b62
cmp eax, 0x800a9c68
je 0x66045b58
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
push eax
call fcn.6602456c
jmp 0x66045b62
push 0x9c68
call fcn.66024fdc
mov eax, 0x800a01b8
jmp 0x66024555
ret 0x10
Function at 0x660247a2
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
cmp dword [eax], 0xc00000fd
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0xc]
je 0x66046e75
mov eax, dword [edi + 8]
cmp eax, edi
ja 0x660248c9
lea ecx, [ebp - 4]
cmp eax, ecx
jb 0x660248c9
test esi, esi
je 0x660248c9
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x660248c9
mov ax, word [esi + 2]
cmp ax, 4
jb 0x660248c9
cmp ax, 0x14
ja 0x660248c9
mov ecx, dword [ebp + 8]
test byte [ecx + 4], 6
jne 0x660248ce
mov ax, word [esi]
test al, 0x30
je 0x660248e2
cmp dword [edi + 0x14], 0
je 0x660248e2
test byte [edi + 0x10], 2
jne 0x660248e2
push ecx
call fcn.660248f7
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call fcn.6602493a
test eax, eax
je 0x660248c9
cmp dword [ebp + 0xc], 0
jne 0x660248ec
push edi
call fcn.660ff18c
call fcn.66024977
xor eax, eax
cmp dword [ebp + 0xc], eax
jne 0x66046f12
test byte [esi], 0x30
je 0x66046ecb
cmp dword [edi + 0x14], eax
je 0x66046ecb
test byte [edi + 0x10], 2
jne 0x66046ecb
push eax
push 1
push eax
push esi
push edi
call fcn.6602498e
test byte [esi], 0x40
push dword [0x6610ee98]
jne 0x66046e92
call ebx
and dword [eax + 0x98], 0
mov eax, dword [edi + 0x14]
cmp eax, 0xfffffffe
je 0x66046ebd
cmp eax, 0xffffffff
jne 0x66046eaa
push dword [edi + 0x1c]
push edi
call fcn.66024a32
push 1
pop eax
jmp 0x660248dd
push 1
pop ebx
push ebx
push ebx
push ebx
push esi
push edi
call fcn.6602498e
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
test al, 1
jne 0x66024837
jmp 0x660248c9
test byte [esi], 1
jne 0x66024856
jmp 0x660248c9
test byte [eax + 4], 6
jne 0x660247c4
push dword [0x6610ee98]
call ebx
lea ecx, [ebp - 4]
mov dword [eax + 0x44], ecx
jmp 0x660247c4
call ebx
mov ecx, dword [edi + 0x1c]
mov edx, dword [esi + 0x18]
movzx ecx, word [edx + ecx*2 + 2]
mov dword [eax + 0x98], ecx
jmp 0x660248ab
test eax, eax
je 0x660248c9
push edi
call fcn.660e7044
jmp 0x660248c9
push dword [edi + 0x1c]
push edi
call fcn.660e701a
jmp 0x660248c9
cmp dword [ebp + 0xc], eax
jne 0x66046f12
test byte [edi + 0x10], 1
je 0x66046f12
test byte [esi], 0x80
jne 0x66046f12
push dword [0x6610ee98]
call ebx
push eax
call fcn.66014435
push eax
call fcn.6602dab8
push eax
push 0x13
call fcn.6601532c
push dword [0x6610ee98]
call ebx
add eax, 0x78
push eax
call fcn.6602e749
push 0x9c68
call fcn.66024fdc
push 1
push 1
push eax
push esi
push edi
call fcn.6602498e
push edi
call fcn.660e70ad
jmp 0x660248c9

Function at 0x660248f7
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax], 0xc000008f
jne 0x66024930
cmp dword [eax + 0x10], 2
jne 0x66024930
mov ecx, 0xdeadcafe
cmp dword [eax + 0x14], ecx
jne 0x66024930
cmp dword [eax + 0x18], ecx
jne 0x66024930
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x94], 0x800a9c68
je 0x66024935
xor eax, eax
ret 4
push 1
pop eax
jmp 0x66024932
Function at 0x66024d90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push esi
push edi
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add eax, 0x50
and word [ebp - 0x14], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.66024e0e
mov esi, eax
cmp word [esi], 1
je 0x660441c4
mov cx, word [esi]
cmp cx, 8
jne 0x660441cb
push dword [esi + 8]
lea eax, [ebp - 0x234]
push eax
call fcn.66024e36
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.66024f03
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
pop ecx
jne 0x660441f5
push 0x35
call fcn.66024fdc
push 0x5e
call fcn.66024fdc
movzx eax, cx
test eax, eax
jl 0x660441dc
cmp eax, 0xe
jle 0x660441f1
cmp eax, 0x11
je 0x660441f1
test ch, 0x20
jne 0x660441f1
cmp cx, 0x24
je 0x660441f1
push 0x1ca
call fcn.66024fdc
push 0xd
jmp 0x660441ec
test byte [ebp - 0x12c], 0x16
je 0x6604421d
lea eax, [ebp - 0x12c]
push eax
push ebx
call fcn.660ee1a6
pop ecx
test eax, eax
pop ecx
je 0x660441f5
push ebx
call fcn.6602eaa6
pop ecx
jmp 0x66024e07
lea eax, [ebp - 0x234]
push 0x5c
push eax
call fcn.66027fa9
pop ecx
mov esi, eax
pop ecx
inc esi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 8], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x66044252
push ebx
call fcn.6602eaa6
pop ecx
push 0x35
call fcn.66024fdc
mov esi, dword [ebp + 8]
test byte [ebp - 0x12c], 0x16
jne 0x660442f4
lea edi, [ebp - 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x130]
add ecx, esi
cmp ecx, eax
jbe 0x66044289
push ebx
call fcn.6602eaa6
pop ecx
push 0x35
call fcn.66024fdc
lea edi, [ebp - 0x118]
or ecx, 0xffffffff
xor eax, eax
push 7
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x234]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.660253ff
test eax, eax
je 0x660442cd
push ebx
call fcn.6602eaa6
pop ecx
push 0x37
call fcn.66024fdc
lea eax, [ebp - 0x234]
push eax
call fcn.660ee6fe
test eax, eax
pop ecx
je 0x660442f4
push ebx
call fcn.6602eaa6
pop ecx
call fcn.660dbb07
test eax, eax
je 0x660442f4
push eax
call fcn.66024fdc
lea eax, [ebp - 0x12c]
push eax
push ebx
call fcn.660ee1a6
pop ecx
test eax, eax
pop ecx
je 0x6604424f
push ebx
call fcn.6602eaa6
pop ecx
mov ecx, dword [ebp - 4]
call sym.MSVBVM60.DLL___vbaFreeVar
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x66024fdc
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [esp + 0xc]
cmp esi, 0x9c68
je 0x66025016
mov eax, esi
add edi, 0x78
or esi, 0x800a0000
push edi
neg eax
sbb eax, eax
and eax, esi
push eax
call fcn.6602503e
push edi
call fcn.66024702
push edi
call fcn.66014435
test eax, eax
je 0x66024ff8
test byte [eax + 0x28], 4
jne 0x6602502a
or byte [edi + 0x76], 2
test eax, eax
je 0x66024ff8
push eax
call fcn.6602dab8
push eax
push 0x13
call fcn.6601532c
jmp 0x66024ff8
Function at 0x6602503e
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push esi
call fcn.66018892
mov dword [esi + 0x18], fcn.660d68c2
add esi, 4
mov eax, dword [esp + 8]
cmp dword [esi], 0
mov dword [esi + 0x18], eax
jne 0x6602508d
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x24], 0
jne 0x6602508d
cmp dword [esi], 0
jne 0x6602508d
push eax
call fcn.66014435
test eax, eax
je 0x6602508d
mov ecx, dword [eax + 0x40]
and dword [esi], 0
mov edx, esi
call fcn.66025091
pop esi
ret 8

Function at 0x660250e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [eax + 0x18]
lea eax, [ebp - 8]
push eax
call fcn.66025191
test eax, eax
jne 0x66043727
mov eax, dword [ebp + 8]
cmp word [eax], 0xa
jne 0x6604372d
cmp dword [eax + 8], 0x80020004
jne 0x6604372d
and dword [ebp - 4], 0

Function at 0x66025191
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.66014435
test eax, eax
je 0x6604600f
cmp dword [0x6610ee9c], 0
jne 0x66046003
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 4]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
xor eax, eax
ret 4
mov ecx, eax
call fcn.660dcbd4
jmp 0x660251bb
mov eax, dword [esp + 4]
and dword [eax], 0
jmp 0x660251c4

Function at 0x660253ff
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 0x18]
and dword [ebp - 4], 0
movsx ebx, word [eax + 0xc]
mov edi, dword [eax + 8]
test ebx, ebx
jle 0x66025435
cmp word [edi], 0
jne 0x66025444
add edi, 0xc
inc dword [ebp - 4]
cmp dword [ebp - 4], ebx
jl 0x66025424
xor eax, eax
cmp dword [ebp - 4], ebx
pop edi
pop esi
setne al
pop ebx
leave
ret 8
mov esi, dword [edi + 8]
mov eax, dword [esi + 0x20]
lea eax, [eax + esi + 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x660436a9
xor eax, eax
test eax, eax
je 0x6602542a
jmp 0x66025435
movzx eax, word [ebp + 0xc]
mov esi, dword [esi]
mov ecx, esi
or ecx, eax
cmp ecx, 1
je 0x66025460
or esi, eax
or esi, 0x24
cmp esi, 0x24
je 0x66025460
jmp 0x66025435
Function at 0x66025add
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 0x10]
mov esi, dword [eax + 0x1c]
lea ebx, [eax + 0x50]
cmp word [edi], 9
mov dword [ebp - 8], ebx
je 0x660437d3
Function at 0x66025e0a
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
je 0x6604827c
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x6610c200]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
jne 0x66048289
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
jne 0x6604829a
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x660483d6
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x6604833b
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push 2
push ebp
push ecx
call fcn.6602584d
add esp, 0xc
jmp 0x66025e60
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x66025e9e
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x660482e7
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x660482d4
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x660482b7
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x660483c7
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x66048332
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x660482b3
mov esi, dword [esp + 0x14]
jmp 0x66025e9e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x66048383
cmp eax, 5
jne 0x6604836c
call fcn.660166dc
mov dword [eax], 9
call fcn.660166a7
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.66016670
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x660483a3
cmp byte [ebp], 0x1a
jne 0x660483a3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.660166dc
mov dword [eax], 0x1c
call fcn.660166a7
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x66048332
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x66025e9e
Function at 0x66025fee
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov eax, dword fs:[0]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
test byte [esi + 0x10], 2
jne 0x66046f35
and dword [esi + 0x10], 0
pop esi
leave
ret
push dword [0x6610ee98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and dword [eax + 0x98], 0
add eax, 0x78
push eax
call fcn.66018892
jmp 0x66026009

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

Disassembly:
mov eax, dword [0x6610e7a8]
push esi
test eax, eax
je 0x66027af1
test byte [eax + 0x3c], 1
jne 0x66027af1
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x6610f608]
cmp eax, 0x1d4c0
ja 0x66027af3
pop esi
ret
call dword [sym.imp.ole32.dll_CoFreeUnusedLibraries]
call esi
mov dword [0x6610f608], eax
jmp 0x66027af1

Function at 0x66027b7c
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push dword [0x6610ee98]
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.66024e0e
mov esi, eax
mov ax, word [esi]
cmp ax, 0xa
je 0x66043dcd
xor ecx, ecx
test cx, cx
jne 0x66043de2
cmp ax, 8
jne 0x66043df3
push dword [esi + 8]
push dword [ebp + 0xc]
call fcn.66027be4
mov ecx, edi
mov esi, eax
call sym.MSVBVM60.DLL___vbaFreeVar
mov eax, esi
pop edi
pop esi
leave
ret 8
cmp dword [esi + 8], 0x80020004
jne 0x66027bb3
or ecx, 0xffffffff
jmp 0x66027bb5
mov ecx, edi
call sym.MSVBVM60.DLL___vbaFreeVar
call fcn.660dc13d
jmp 0x66027bde
movzx ecx, ax
test ecx, ecx
jl 0x66043e04
cmp ecx, 0xe
jle 0x66043e19
cmp ecx, 0x11
je 0x66043e19
test ah, 0x20
jne 0x66043e19
cmp ax, 0x24
je 0x66043e19
push 0x1ca
call fcn.66024fdc
push 0xd
jmp 0x66043e14