joyce8/EMBER2024-capa huggingface dataset:
Function at 0x660ed13d
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp word [ebp + 0xc], 4
push esi
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jne 0x660ed1ff
cmp word [ebp + 0x10], bx
ja 0x660ed1ff
call fcn.660d5877
test eax, eax
jne 0x660ed18b
push 2
push ebx
push ebx
push 9
push ebx
push ebx
push 0x212f
push ebx
push 6
call fcn.6600f66f
cmp eax, ebx
jne 0x660ed1ff
mov dword [ebp - 8], 1
push dword [0x6610ee98]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
mov edi, eax
cmp edi, ebx
je 0x660ed1a4
cmp dword [edi + 0x28], ebx
jne 0x660ed1c3
push 2
push dword [ebp + 8]
call fcn.6601049b
cmp eax, ebx
jne 0x660ed1e9
push dword [0x6610ee98]
mov dword [ebp - 4], 1
call esi
mov edi, eax
push 0x18c
call fcn.6600fd50
cmp eax, ebx
je 0x660ed208
mov ecx, eax
call fcn.660ed21e
mov esi, eax
cmp esi, ebx
je 0x660ed1e9
cmp dword [esi + 0x44], ebx
jne 0x660ed20c
mov eax, dword [esi]
push esi
call dword [eax + 8]
cmp dword [ebp - 4], ebx
je 0x660ed1f5
push 2
call fcn.660186ee
cmp dword [ebp - 8], ebx
je 0x660ed1ff
call fcn.66019290
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor esi, esi
jmp 0x660ed1da
inc dword [edi + 0x28]
push 0x6610f310
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, esi
jmp 0x660ed201

Function at 0x660ed21e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x6610ee98]
mov esi, ecx
mov dword [esi], 0x66055d90
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
mov dword [esi + 0x40], eax
pop ebp
mov dword [eax + 0x24], esi
push 9
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [esi + 8]
mov dword [esi + 4], ebp
mov word [esi + 0x30], bp
mov dword [esi + 0x38], ebx
mov word [esi + 0x3c], bx
mov word [esi + 0x188], bx
mov word [esi + 0x18a], bx
rep stosd dword es:[edi], eax
lea eax, [esi + 0x2c]
mov word [esi + 0x14], 2
push eax
push ebx
mov dword [eax], ebx
call fcn.660135e3
cmp eax, ebx
jge 0x660ed28d
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x40]
pop edi
mov dword [eax + 0x24], ebx
mov eax, esi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x44], ebp
jmp 0x660ed280
Function at 0x660ed47f
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
test ebx, ebx
je 0x660ed548
push ebx
call fcn.660ed5ae
add esp, 4
test eax, eax
jne 0x660ed4c6
call fcn.660166a7
mov dword [eax], 0xf
call fcn.660166dc
mov dword [eax], 0xd
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x14]
add bl, 0x40
push 0x104
push edx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0x2e
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x660ed5a2
inc eax
cmp eax, 0x104
ja 0x660ed5a2
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
test edx, edx
jne 0x660ed55a
cmp eax, ecx
jg 0x660ed522
mov eax, ecx
push eax
call fcn.66002122
mov edx, eax
add esp, 4
test edx, edx
jne 0x660ed575
call fcn.660166dc
mov dword [eax], 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x660ed4f6
cmp eax, ecx
jle 0x660ed575
call fcn.660166dc
mov dword [eax], 0x22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret

Function at 0x660ed5ae
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x660ed5bc
mov eax, 1
ret
add al, 0x40
mov byte [esp + 5], 0x3a
mov byte [esp + 4], al
lea eax, [esp + 4]
push eax
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x660ed5eb
cmp eax, 1
je 0x660ed5eb
mov eax, 1
ret
xor eax, eax
ret

Function at 0x660ed5ee
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x660ed627
mov eax, dword [esp + 4]
cmp ah, 0x3a
jne 0x660ed627
and eax, 0xff
push eax
call fcn.660ee788
mov esi, eax
add esp, 4
sub esi, 0x40
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x660ed631
Capabilities:
Set current directory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp ebx, 1
jl 0x660ed696
cmp ebx, 0x1f
jg 0x660ed696
push 0xc
call fcn.66001ef2
add esp, 4
lea eax, [esp + 8]
add bl, 0x40
mov byte [esp + 9], 0x3a
push eax
mov byte [esp + 0xc], bl
mov byte [esp + 0xe], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x660ed678
push 0xc
call fcn.6600203b
add esp, 4
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.66016670
add esp, 4
push 0xc
call fcn.6600203b
add esp, 4
or eax, 0xffffffff
pop ebx
ret
call fcn.660166dc
mov dword [eax], 0xd
call fcn.660166a7
mov dword [eax], 0xf
or eax, 0xffffffff
pop ebx
ret
Function at 0x660ed6dd
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x660ed75d
lea ecx, [esp + 4]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x660ed75d
mov eax, dword [esp + 4]
cmp al, 0x5c
je 0x660ed712
cmp al, 0x2f
jne 0x660ed71f
cmp al, ah
jne 0x660ed71f
xor eax, eax
add esp, 0x10c
ret
and eax, 0xff
mov byte [esp], 0x3d
push eax
call fcn.660efba1
add esp, 4
mov byte [esp + 1], al
lea edx, [esp + 4]
lea eax, [esp]
push edx
push eax
mov byte [esp + 0xa], 0x3a
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x660ed75d
xor eax, eax
add esp, 0x10c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.66016670
add esp, 4
or eax, 0xffffffff
add esp, 0x10c
ret

Function at 0x660ed776
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x660ed79c
test byte [esp + 0xc], 0x80
je 0x660ed7b0
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x660ed7b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.66016670
add esp, 4
or eax, 0xffffffff
pop esi
ret
or al, 1
jmp 0x660ed790
xor eax, eax
pop esi
ret

Function at 0x660eda9a
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x74
push 1
xor edi, edi
call fcn.66001e61
mov esi, eax
add esp, 8
test esi, esi
je 0x660edafa
push esi
call fcn.66002051
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x14]
push eax
push esi
push 0x660edb15
push ecx
push edx
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x660edb12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.660026f5
add esp, 4
test edi, edi
je 0x660edb10
push edi
call fcn.66016670
add esp, 4
xor eax, eax
pop edi
pop esi
ret

Function at 0x660ee6fe
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x660ee724
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x660ee728
push eax
call fcn.66016670
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
jmp 0x660ee713
xor eax, eax
ret

Function at 0x660ee756
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x660ee781
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x660ee785
push eax
call fcn.66016670
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
jmp 0x660ee770
xor eax, eax
ret
Function at 0x660ef917
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x6610c050]
cmp eax, 0xffffffff
je 0x660ef9b3
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x660ef93b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x660ef9a4
mov eax, dword [esi + 0x24]
test eax, eax
je 0x660ef94b
push eax
call fcn.660026f5
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x660ef95b
push eax
call fcn.660026f5
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x660ef96b
push eax
call fcn.660026f5
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x660ef97b
push eax
call fcn.660026f5
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x660ef98b
push eax
call fcn.660026f5
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x660ef99b
push eax
call fcn.660026f5
add esp, 4
push esi
call fcn.660026f5
add esp, 4
mov eax, dword [0x6610c050]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x660f073b
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x66110088
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x660f075f
add eax, 8
inc ebp
cmp eax, 0x66110118
jb 0x660f0750
cmp ecx, dword [ebp*8 + 0x66110088]
jne 0x660f0906
mov eax, dword [0x66110e28]
cmp eax, 1
je 0x660f08c8
test eax, eax
jne 0x660f078b
cmp dword [0x6610a00c], 1
je 0x660f08c8
cmp ecx, 0xfc
je 0x660f0906
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x660f07c6
mov ecx, 5
mov esi, 0x66056170
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x660f080f
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x6605616c
add ebx, ecx
push ebx
call fcn.66016214
add esp, 0xc
mov ecx, 6
mov esi, 0x66056150
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x6605614a
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x66056124
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x6611008c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.660f35ca
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x6610c200]
test eax, eax
je 0x660f08d9
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x660f08e3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x6611008c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x660f210c
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.660300e8
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.6602584d
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x660f224c
push 2
push ebp
push ebx
call fcn.6602584d
add esp, 0xc
cmp eax, 0xffffffff
je 0x660f224c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x660f21ed
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.660f3797
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x660f2192
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.66025e0a
add esp, 0xc
cmp eax, 0xffffffff
je 0x660f21d3
sub esi, eax
test esi, esi
jg 0x660f2183
push edi
push ebx
call fcn.660f3797
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.6602584d
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
call fcn.660166a7
cmp dword [eax], 5
jne 0x660f21e8
call fcn.660166dc
mov dword [eax], 0xd
or ebp, 0xffffffff
jmp 0x660f21ac
jge 0x660f2233
push 0
push ecx
push ebx
call fcn.6602584d
add esp, 0xc
push ebx
call fcn.660258b1
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x660f2233
call fcn.660166dc
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.660166a7
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.6602584d
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x660f32e4
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x660f34a2
push 0x3d
push edi
call fcn.660e1cb4
mov esi, eax
add esp, 8
test esi, esi
je 0x660f34a2
cmp edi, esi
je 0x660f34a2
mov dl, byte [esi + 1]
mov ecx, dword [0x66110e2c]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x6610c62c]
cmp eax, ecx
jne 0x660f333b
push eax
call fcn.660f355b
add esp, 4
mov dword [0x6610c62c], eax
test eax, eax
jne 0x660f33b6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x660f3362
mov eax, dword [0x66110e30]
test eax, eax
je 0x660f3362
call fcn.660f05e9
test eax, eax
je 0x660f33b1
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x660f336e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.66002122
add esp, 4
mov dword [0x6610c62c], eax
test eax, eax
je 0x660f34a2
mov dword [eax], 0
mov eax, dword [0x66110e30]
test eax, eax
jne 0x660f33b1
push 4
call fcn.66002122
add esp, 4
mov dword [0x66110e30], eax
test eax, eax
je 0x660f34a2
mov dword [eax], 0
mov eax, dword [0x6610c62c]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.660f34e7
mov esi, eax
add esp, 8
test esi, esi
jl 0x660f34b3
cmp dword [ebx], 0
je 0x660f34b3
test ebp, ebp
je 0x660f34ab
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.660026f5
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x660f340d
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x660f33fc
lea eax, [esi*4]
push eax
push ebx
call fcn.660ef9d4
add esp, 8
test eax, eax
je 0x660f3427
mov dword [0x6610c62c], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x660f349a
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.66002122
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x660f349a
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.660026f5
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x660f342b
test ebp, ebp
jne 0x660f349a
test esi, esi
jge 0x660f34bd
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.660ef9d4
add esp, 8
test eax, eax
je 0x660f34a2
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x6610c62c], eax
jmp 0x660f342b
Function at 0x660f58c7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x66030320
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x660f5922
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x6601a430
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x660f5912
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4
xor eax, eax
jmp 0x660f591d
Function at 0x660f74ea
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.660e4e03
xor esi, esi
cmp eax, esi
jne 0x660f75e2
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0x104
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x1a4]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edi, eax
push 1
lea eax, [ebp - 0xa0]
push esi
push eax
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x20]
lea eax, [eax + eax + 2]
push eax
push esi
push 0x78
call fcn.660d9ad7
mov ebx, dword [ebp - 0x1c]
cmp edi, esi
jne 0x660f75c2
cmp ebx, esi
jne 0x660f7598
push 7
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x660f758c
cmp edi, esi
jne 0x660f758c
push 5
pop edi
lea ecx, [ebp - 0x20]
call fcn.66029978
mov eax, edi
jmp 0x660f75e5
mov eax, dword [ebp - 0xc]
push esi
inc eax
push esi
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x10]
push esi
push eax
push ebx
push esi
push dword [ebp - 4]
call fcn.660e4ff0
cmp eax, esi
jne 0x660f75c6
push ebx
push dword [ebp - 4]
call fcn.660e4ec0
cmp eax, esi
je 0x660f7598
push 5
jmp 0x660f7577
cmp eax, 0x103
jne 0x660f75c2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x660f75ec
lea ecx, [ebp - 0x20]
call fcn.66029978
push 5
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.660e4e62
test eax, eax
lea ecx, [ebp - 0x20]
jne 0x660f75dd
call fcn.66029978
xor eax, eax
jmp 0x660f75e5
Function at 0x660fd05d
Capabilities:
Packed with generic packer

Disassembly:
mov eax, dword [edx]
pop ecx
mov eax, dword [eax + 0x18]
push dword [eax + 0x10]
push ecx
mov ecx, 0x660fd53e
cmp byte [0x6610f190], 0
jne 0x661018ba
pushal
push esp
push edx
call 0x660d777c
popal
jmp fcn.660fd079

Function at 0x660ff017
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov si, word [ecx]
push edi
mov di, word [edx]
mov eax, 0x7fff
and edi, eax
and esi, eax
cmp di, 9
je 0x66106812
cmp si, 9
je 0x66106812
movzx eax, word [ebp + 8]
push 0x30001
push eax
push ecx
push edx
call dword [0x6610ee44]
mov dword [ebp + 8], eax
Function at 0x660ff43c
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x6610ee98]
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov bp, word [ebx]
lea edi, [eax + 0x50]
mov ax, word [esi]
cmp bp, 8
jb 0x6610646c
mov ecx, ebp
and ecx, 0xffff
cmp ecx, 0x11
ja case.0x660ff47d.6
xor edx, edx
mov dl, byte [ecx + 0x66101840]
jmp dword [edx*4 + 0x66101818]
cmp ebx, esi
je 0x660ff4be
mov ecx, esi
call sym.MSVBVM60.DLL___vbaFreeVar
mov ebx, dword [ebx + 8]
mov word [esi], 8
test ebx, ebx
mov dword [esi + 8], 0
je 0x660ff4be
je 0x661064f3
mov eax, dword [ebx - 4]
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test eax, eax
mov dword [esi + 8], eax
je 0x661064fa
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp ax, 8
jae 0x660ff464
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov ecx, esi
mov dword [ecx], edx
mov edx, dword [ebx + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
and eax, 0xffff
cmp eax, 0x11
ja case.0x661064a8.7
xor ecx, ecx
mov cl, byte [eax + 0x661065ec]
jmp dword [ecx*4 + 0x661065cc]
mov eax, dword [esi + 8]
test eax, eax
je case.0x661064a8.0
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov eax, esi
mov dword [eax], ecx
mov ecx, dword [ebx + 8]
mov dword [eax + 4], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esi + 8]
test eax, eax
je case.0x661064a8.0
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp case.0x661064a8.0
mov ecx, esi
call sym.MSVBVM60.DLL___vbaFreeVar
jmp case.0x661064a8.0
xor eax, eax
jmp 0x660ff4ab
push 7
call fcn.66024fdc
mov eax, dword [ebx + 8]
push edi
push 3
push 0
push 0
push 0
push 0
push eax
call fcn.660ddd03
mov ecx, esi
call sym.MSVBVM60.DLL___vbaFreeVar
mov ecx, edi
mov edx, esi
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, esi
mov ecx, dword [ecx + 0xc]
mov dword [edi], 0
mov dword [edx + 0xc], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, 0x2000
je 0x6610658d
lea edx, [esp + 0x10]
push edx
push ebx
call fcn.66107aa3
test eax, eax
je 0x66106561
push eax
call fcn.66024fdc
mov word [edi], bp
mov eax, dword [esp + 0x10]
mov ecx, esi
mov dword [edi + 8], eax
call sym.MSVBVM60.DLL___vbaFreeVar
mov ecx, dword [esp + 0x10]
mov dx, word [edi]
mov dword [esi + 8], ecx
mov word [esi], dx
mov dword [edi], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
push edi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
push 0
push eax
call fcn.6601d35f
mov ecx, esi
call sym.MSVBVM60.DLL___vbaFreeVar
mov eax, edi
mov ecx, esi
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [edi], 0
mov dword [ecx + 0xc], eax
jmp 0x660ff4be