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

Disassembly:
push esi
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea esi, [eax + 0x50]
mov eax, dword [esp + 0xc]
movzx ecx, word [eax]
and ch, 0xbf
cmp ecx, 0x24
jne 0x660ea3c4
mov esi, dword [esp + 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
lea edx, [esi + 8]
push edx
push eax
call dword [ecx + 0x20]
push 0
push eax
call fcn.6601d62b
mov word [esi], 3
mov eax, esi
pop esi
ret 8
push edi
push esi
push eax
call fcn.66024970
cmp eax, 0xffffffff
je 0x660ea3fc
test eax, eax
je 0x660ea3d8
mov eax, dword [eax - 4]
mov edi, dword [esp + 0xc]
cmp word [esi], 8
mov dword [edi + 8], eax
mov word [edi], 3
jne 0x660ea3f7
push dword [esi + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and word [esi], 0
mov eax, edi
pop edi
jmp 0x660ea3c0
mov edi, dword [esp + 0xc]
mov word [edi], 1
jmp 0x660ea3f7

Function at 0x660ea461
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]
lea esi, [eax + 0x50]
push esi
push dword [ebp + 0xc]
call fcn.66024970
cmp eax, 0xffffffff
je 0x660ea4bd
push dword [ebp + 0x10]
push eax
call sym.MSVBVM60.DLL_rtcRightBstr
cmp word [esi], 8
mov dword [ebp - 8], eax
mov word [ebp - 0x10], 8
jne 0x660ea4ab
push dword [esi + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and word [esi], 0
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 0xc
mov word [ebp - 0x10], 1
jmp 0x660ea4ab

Function at 0x660ea4f0
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]
lea esi, [eax + 0x50]
push esi
push dword [ebp + 0xc]
call fcn.66024970
cmp eax, 0xffffffff
je 0x660ea54f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call sym.MSVBVM60.DLL_rtcMidBstr
cmp word [esi], 8
mov dword [ebp - 8], eax
mov word [ebp - 0x10], 8
jne 0x660ea53d
push dword [esi + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and word [esi], 0
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 0x10
mov word [ebp - 0x10], 1
jmp 0x660ea53d
Function at 0x660ea557
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]
lea esi, [eax + 0x50]
push esi
push dword [ebp + 0xc]
call fcn.66024970
cmp eax, 0xffffffff
je 0x660ea5b6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call sym.MSVBVM60.DLL_rtcMidCharBstr
cmp word [esi], 8
mov dword [ebp - 8], eax
mov word [ebp - 0x10], 8
jne 0x660ea5a4
push dword [esi + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and word [esi], 0
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 0x10
mov word [ebp - 0x10], 1
jmp 0x660ea5a4

Function at 0x660eaac8
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]
lea esi, [eax + 0x50]
push esi
push dword [ebp + 0xc]
call fcn.66024970
cmp eax, 0xffffffff
je 0x660eab21
push eax
call sym.MSVBVM60.DLL_rtcLowerCaseBstr
cmp word [esi], 8
mov dword [ebp - 8], eax
mov word [ebp - 0x10], 8
jne 0x660eab0f
push dword [esi + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and word [esi], 0
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
mov word [ebp - 0x10], 1
jmp 0x660eab0f

Function at 0x660eab29
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]
lea esi, [eax + 0x50]
push esi
push dword [ebp + 0xc]
call fcn.66024970
cmp eax, 0xffffffff
je 0x660eab82
push eax
call sym.MSVBVM60.DLL_rtcTrimBstr
cmp word [esi], 8
mov dword [ebp - 8], eax
mov word [ebp - 0x10], 8
jne 0x660eab70
push dword [esi + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and word [esi], 0
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
mov word [ebp - 0x10], 1
jmp 0x660eab70
Function at 0x660eacf9
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]
lea esi, [eax + 0x50]
push esi
push dword [ebp + 0xc]
call fcn.66024970
cmp eax, 0xffffffff
je 0x660ead52
push eax
call sym.MSVBVM60.DLL_rtcLeftTrimBstr
cmp word [esi], 8
mov dword [ebp - 8], eax
mov word [ebp - 0x10], 8
jne 0x660ead40
push dword [esi + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and word [esi], 0
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
mov word [ebp - 0x10], 1
jmp 0x660ead40

Function at 0x660eaf0c
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]
lea esi, [eax + 0x50]
push esi
push dword [ebp + 0xc]
call fcn.66024970
cmp eax, 0xffffffff
je 0x660eaf65
push eax
call sym.MSVBVM60.DLL_rtcRightTrimBstr
cmp word [esi], 8
mov dword [ebp - 8], eax
mov word [ebp - 0x10], 8
jne 0x660eaf53
push dword [esi + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and word [esi], 0
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
mov word [ebp - 0x10], 1
jmp 0x660eaf53

Function at 0x660eb0c1
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea esi, [eax + 0x50]
mov edi, dword [esp + 0x18]
mov ax, word [edi]
test ah, 0x40
je 0x660eb12e
cmp ax, 0x4008
je 0x660eb0eb
push 0xd
call fcn.66025592
mov edi, dword [edi + 8]
mov eax, dword [esp + 0xc]
cmp word [eax], 8
je 0x660eb103
push 8
push eax
push esi
call fcn.660e58fd
mov eax, esi
push edi
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [eax + 8]
push 0
call sym.MSVBVM60.DLL___vbaMidStmtBstrB
cmp word [esi], 8
jne 0x660eb129
push dword [esi + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and word [esi], 0
pop edi
pop esi
ret 0x10
cmp ax, 8
je 0x660eb13d
push 8
push edi
push edi
call fcn.660e58fd
add edi, 8
jmp 0x660eb0ee
Function at 0x660eb274
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push dword [0x6610feb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ebx, [eax + 0x50]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call fcn.660253c4
xor edi, edi
mov esi, eax
cmp dword [ebp + 8], edi
jl 0x660eb2aa
cmp dword [ebp + 8], 0x3fffffff
jbe 0x660eb2b1
push 5
call fcn.66025592
cmp word [esi], 8
jne 0x660eb30b
mov esi, dword [esi + 8]
cmp esi, edi
jne 0x660eb2cb
xor eax, eax
cmp eax, edi
jne 0x660eb2d2
push 5
call fcn.66025592
mov eax, dword [esi - 4]
shr eax, 1
jmp 0x660eb2c0
mov ax, word [esi]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
cmp esi, edi
je 0x660eb394
push dword [ebp + 8]
push dword [ebp - 4]
push esi
call fcn.660e69b2
add esp, 0xc
mov ecx, ebx
call sym.MSVBVM60.DLL___vbaFreeVar
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
push esi
call fcn.660e464b
cmp dword [0x6610fed0], edi
mov dword [ebp - 4], eax
jne 0x660eb356
cmp ax, 0x100
jb 0x660eb356
xor ecx, ecx
mov cl, ah
push ecx
call fcn.660262c5
test eax, eax
pop ecx
jne 0x660eb351
mov al, byte [ebp - 3]
movzx ax, al
mov dword [ebp - 4], eax
cmp ax, 0x100
jb 0x660eb356
cmp dword [ebp + 8], 0x7fffffff
jbe 0x660eb356
push 5
call fcn.66025592
mov eax, dword [ebp - 4]
jmp 0x660eb33b
cmp ax, 0xff
jbe 0x660eb387
cmp dword [0x6610fed0], edi
jne 0x660eb387
xor ecx, ecx
mov byte [ebp + 0xf], al
mov cl, ah
lea eax, [ebp - 4]
push 1
push eax
mov byte [ebp + 0xe], cl
push 2
lea eax, [ebp + 0xe]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x660eb2d8
mov byte [ebp + 0xe], al
lea eax, [ebp - 4]
push 1
push eax
push 1
jmp 0x660eb376
push 0xe
call fcn.66025592

Function at 0x660eb3f8
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]
lea esi, [eax + 0x50]
push esi
push dword [ebp + 0xc]
call fcn.66024970
cmp eax, 0xffffffff
je 0x660eb451
push eax
call sym.MSVBVM60.DLL_rtcUpperCaseBstr
cmp word [esi], 8
mov dword [ebp - 8], eax
mov word [ebp - 0x10], 8
jne 0x660eb43f
push dword [esi + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and word [esi], 0
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
mov word [ebp - 0x10], 1
jmp 0x660eb43f
Function at 0x660ec83d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x66111038]
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
mov dword [eax], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
jne 0x660ec88b
mov eax, dword [0x66111e34]
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 4]
call fcn.6601b346
cmp eax, esi
jge 0x660ec8c6
push eax
call fcn.66024c30
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp ebx, 0x800
je 0x660ec86c
lea eax, [ebp - 0x18]
push 6
push eax
push 0x1004
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x660ec8b6
lea eax, [ebp - 0x18]
push eax
call fcn.6600ee48
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [0x66111038], ebx
mov dword [0x66111e34], eax
jmp 0x660ec86c
mov ecx, dword [ebp - 4]
cmp ecx, esi
jne 0x660ec932
xor eax, eax
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LCMapStringA]
push eax
push ecx
push dword [ebp + 0xc]
push ebx
call esi
mov edi, eax
mov eax, dword [ebp - 4]
test edi, edi
jne 0x660ec8f3
test eax, eax
je 0x660ec8ef
mov eax, dword [eax - 4]
test eax, eax
jne 0x660ec950
test edi, edi
je 0x660ec90e
push edi
push 0
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x660ec937
mov dword [ebp - 8], 0xe
cmp dword [ebp - 4], 0
je 0x660ec91c
push dword [ebp - 4]
call fcn.660146f6
cmp dword [ebp - 0x10], 0
je 0x660ec92a
push dword [ebp - 0x10]
call fcn.660146f6
mov eax, dword [ebp - 8]
jmp 0x660ec884
mov eax, dword [ecx - 4]
jmp 0x660ec8cf
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x660ec959
xor eax, eax
push edi
push dword [ebp - 0x10]
push eax
push ecx
push dword [ebp + 0xc]
push ebx
call esi
test eax, eax
jne 0x660ec95e
mov dword [ebp - 8], 5
jmp 0x660ec90e
mov eax, dword [ecx - 4]
jmp 0x660ec940
push dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
and dword [ebp - 8], 0
call fcn.660dfb15
test eax, eax
jge 0x660ec90e
push eax
call fcn.66024c30
mov dword [ebp - 8], eax
jmp 0x660ec90e
Function at 0x660ee6dd
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 0x660ee79f
cmp word [ebp + 0x10], bx
ja 0x660ee79f
call fcn.660d6cb3
test eax, eax
jne 0x660ee72b
push 2
push ebx
push ebx
push 9
push ebx
push ebx
push 0x2304
push ebx
push 6
call fcn.6600f6f2
cmp eax, ebx
jne 0x660ee79f
mov dword [ebp - 8], 1
push dword [0x6610feb0]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
mov edi, eax
cmp edi, ebx
je 0x660ee744
cmp dword [edi + 0x28], ebx
jne 0x660ee763
push 2
push dword [ebp + 8]
call fcn.6601051e
cmp eax, ebx
jne 0x660ee789
push dword [0x6610feb0]
mov dword [ebp - 4], 1
call esi
mov edi, eax
push 0x18c
call fcn.6600fdd3
cmp eax, ebx
je 0x660ee7a8
mov ecx, eax
call fcn.660ee7be
mov esi, eax
cmp esi, ebx
je 0x660ee789
cmp dword [esi + 0x44], ebx
jne 0x660ee7ac
mov eax, dword [esi]
push esi
call dword [eax + 8]
cmp dword [ebp - 4], ebx
je 0x660ee795
push 2
call fcn.660188a3
cmp dword [ebp - 8], ebx
je 0x660ee79f
call fcn.660194ab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor esi, esi
jmp 0x660ee77a
inc dword [edi + 0x28]
push 0x66110328
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, esi
jmp 0x660ee7a1

Function at 0x660ee7be
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x6610feb0]
mov esi, ecx
mov dword [esi], 0x66055ba8
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.660136c6
cmp eax, ebx
jge 0x660ee82d
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 0x660ee820
Function at 0x660eea1f
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
test ebx, ebx
je 0x660eeae8
push ebx
call fcn.660eeb4e
add esp, 4
test eax, eax
jne 0x660eea66
call fcn.6601687f
mov dword [eax], 0xf
call fcn.660168b4
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 0x660eeb42
inc eax
cmp eax, 0x104
ja 0x660eeb42
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
test edx, edx
jne 0x660eeafa
cmp eax, ecx
jg 0x660eeac2
mov eax, ecx
push eax
call fcn.6600212c
mov edx, eax
add esp, 4
test edx, edx
jne 0x660eeb15
call fcn.660168b4
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 0x660eea96
cmp eax, ecx
jle 0x660eeb15
call fcn.660168b4
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 0x660eeb4e
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x660eeb5c
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 0x660eeb8b
cmp eax, 1
je 0x660eeb8b
mov eax, 1
ret
xor eax, eax
ret

Function at 0x660eeb8e
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 0x660eebc7
mov eax, dword [esp + 4]
cmp ah, 0x3a
jne 0x660eebc7
and eax, 0xff
push eax
call fcn.660efd28
mov esi, eax
add esp, 4
sub esi, 0x40
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x660eebd1
Capabilities:
Set current directory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp ebx, 1
jl 0x660eec36
cmp ebx, 0x1f
jg 0x660eec36
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 0x660eec18
push 0xc
call fcn.66002045
add esp, 4
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.66016848
add esp, 4
push 0xc
call fcn.66002045
add esp, 4
or eax, 0xffffffff
pop ebx
ret
call fcn.660168b4
mov dword [eax], 0xd
call fcn.6601687f
mov dword [eax], 0xf
or eax, 0xffffffff
pop ebx
ret
Function at 0x660eec7d
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 0x660eecfd
lea ecx, [esp + 4]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x660eecfd
mov eax, dword [esp + 4]
cmp al, 0x5c
je 0x660eecb2
cmp al, 0x2f
jne 0x660eecbf
cmp al, ah
jne 0x660eecbf
xor eax, eax
add esp, 0x10c
ret
and eax, 0xff
mov byte [esp], 0x3d
push eax
call fcn.660f1141
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 0x660eecfd
xor eax, eax
add esp, 0x10c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.66016848
add esp, 4
or eax, 0xffffffff
add esp, 0x10c
ret

Function at 0x660eed16
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 0x660eed3c
test byte [esp + 0xc], 0x80
je 0x660eed50
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x660eed54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.66016848
add esp, 4
or eax, 0xffffffff
pop esi
ret
or al, 1
jmp 0x660eed30
xor eax, eax
pop esi
ret

Function at 0x660ef03a
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 0x660ef09a
push esi
call fcn.6600205b
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 0x660ef0b5
push ecx
push edx
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x660ef0b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.660026ff
add esp, 4
test edi, edi
je 0x660ef0b0
push edi
call fcn.66016848
add esp, 4
xor eax, eax
pop edi
pop esi
ret

Function at 0x660efc9e
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x660efcc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x660efcc8
push eax
call fcn.66016848
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
jmp 0x660efcb3
xor eax, eax
ret

Function at 0x660efcf6
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 0x660efd21
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x660efd25
push eax
call fcn.66016848
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
jmp 0x660efd10
xor eax, eax
ret
Function at 0x660f0eb7
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x6610d050]
cmp eax, 0xffffffff
je 0x660f0f53
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x660f0edb
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x660f0f44
mov eax, dword [esi + 0x24]
test eax, eax
je 0x660f0eeb
push eax
call fcn.660026ff
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x660f0efb
push eax
call fcn.660026ff
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x660f0f0b
push eax
call fcn.660026ff
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x660f0f1b
push eax
call fcn.660026ff
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x660f0f2b
push eax
call fcn.660026ff
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x660f0f3b
push eax
call fcn.660026ff
add esp, 4
push esi
call fcn.660026ff
add esp, 4
mov eax, dword [0x6610d050]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret