joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10174d60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push esi
push edi
mov dword [ebp - 4], 0
mov word [eax], cx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x10174dfa
push edi
call sub.msvcrt.dll_malloc
mov esi, eax
add esp, 4
test esi, esi
je 0x10174dfa
push esi
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10174de8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x10202944
push esi
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [ebp - 8]
mov dword [ebp - 4], eax
movzx ecx, word [edx + 0xc]
push ecx
movzx ecx, word [edx + 0xe]
push ecx
movzx ecx, word [edx + 8]
push ecx
movzx ecx, word [edx + 0xa]
push ecx
push str._hd._hd._hd._hd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1000aa70
add esp, 0x1c
push esi
call sub.msvcrt.dll_free
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10174e10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20219
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 1
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], 0x208
push eax
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.100585c0
test eax, eax
jne 0x10174eae
mov eax, dword [ebp - 0x214]
cmp eax, 1
je 0x10174e82
cmp eax, 2
je 0x10174e82
cmp eax, 7
jne 0x10174eae
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
push 0x102029dc
dec eax
push eax
push esi
call fcn.1000aa70
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10174ea1
jmp 0x10174efb
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x10174f28
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
push 0x102029dc
dec eax
push eax
push esi
call fcn.1000aa70
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 2]
jmp 0x10174ef0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10174ef0
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x210], ecx
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x10174f14
xor eax, eax
mov word [esi + ecx*2 - 2], ax
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x10174f90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x10174fe8
cmp dword [ebp - 0x114], 5
jne 0x10174fe8
cmp dword [ebp - 0x110], 0
jne 0x10174fe8
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret

Function at 0x10175000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x1017505e
cmp dword [ebp - 0x114], 5
jne 0x1017505e
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x1017504b
cmp eax, 1
jne 0x1017505e
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret

Function at 0x101750e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x114], 6
sete al
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x10176b60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
xor edi, edi
call fcn.10003180
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10176b8a
push esi
call ebx
push 0x2f
call fcn.10003680
add esp, 4
test eax, eax
je 0x10176ba6
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x10176bb6
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 8], eax
test esi, esi
je 0x10176bc4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 8], edi
jne 0x10176c86
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10176be5
push esi
call ebx
push 0x41
call fcn.10003680
add esp, 4
test eax, eax
je 0x10176c09
lea ecx, [ebp + 0x1c]
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call eax
jmp 0x10176c21
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
test esi, esi
je 0x10176c2f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 8], edi
jne 0x10176c48
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, 1
je 0x10176c43
cmp eax, 2
jne 0x10176c48
mov edi, 1
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10176c60
push esi
call ebx
push 0x44
call fcn.10003680
add esp, 4
push dword [ebp - 8]
test eax, eax
je 0x10176c75
call eax
jmp 0x10176c7b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10176c86
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101791f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movzx eax, byte [ebp + 0x14]
xor eax, 1
mov dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
shl eax, 8
push esi
add eax, 0x20119
mov byte [ebp + 0x17], 0
mov dword [ebp - 8], eax
push edi
mov edi, ebx
test ebx, ebx
jne 0x10179224
mov edi, reloc.OLEAUT32.dll_SysReAllocString
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1017923a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x31
call fcn.10003680
add esp, 4
test eax, eax
je 0x10179259
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 8]
push 0
push dword [ebp + 0xc]
push edi
call eax
jmp 0x1017926c
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test esi, esi
je 0x10179279
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x101792f0
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
call fcn.10003180
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1017929b
push esi
call edi
push 0x41
call fcn.10003680
mov ecx, dword [ebp + 0x10]
add esp, 4
push 0
push 0
push 0
push 0
push ecx
push dword [ebp + 8]
test eax, eax
je 0x101792bc
call eax
jmp 0x101792c2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 8], eax
test esi, esi
je 0x101792d0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 8], 0
push dword [ebp - 4]
jne 0x101792e9
mov bl, 1
call fcn.10034ac0
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10034ac0
jmp 0x101792f6
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
jne 0x10179379
mov dword [ebp - 4], ebx
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1017930f
push esi
call edi
push 0x31
call fcn.10003680
add esp, 4
test eax, eax
je 0x10179332
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 8]
push 0
push dword [ebp + 0xc]
push SysReAllocString
call eax
jmp 0x10179349
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push 0
push dword [ebp + 0xc]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test esi, esi
je 0x10179356
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x10179379
push edi
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.10023dd0
push dword [ebp - 4]
test eax, eax
je 0x101792d9
call fcn.10034ac0
mov al, byte [ebp + 0x17]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1017fdb0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x84]
test esi, esi
je 0x1017fdd9
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0xa4], 0
je 0x1017fdec
mov edi, 1
jmp 0x1017ffc1
mov ecx, ebx
call fcn.1017dbf0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x10210ca4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push str...deepscan_
push eax
call edi
push str.360MalwareSection.dll
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x1017ffbf
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10034be0
add esp, 8
test eax, eax
je 0x1017fe73
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0x9c], eax
test eax, eax
je 0x1017ff9c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Section_Open
push eax
call edi
push str.Section_Duplicate
push dword [ebx + 0x9c]
mov dword [ebx + 0xa8], eax
call edi
push str.Section_Close
push dword [ebx + 0x9c]
mov dword [ebx + 0xac], eax
call edi
push str.Section_Insert
push dword [ebx + 0x9c]
mov dword [ebx + 0xb0], eax
call edi
push str.Section_Restore
push dword [ebx + 0x9c]
mov dword [ebx + 0xb4], eax
call edi
push str.Section_GetRecordCount
push dword [ebx + 0x9c]
mov dword [ebx + 0xb8], eax
call edi
push str.Section_DeleteRecord
push dword [ebx + 0x9c]
mov dword [ebx + 0xbc], eax
call edi
push str.Section_GetNextRecord
push dword [ebx + 0x9c]
mov dword [ebx + 0xc0], eax
call edi
push str.Section_DeleteBatchInfo
push dword [ebx + 0x9c]
mov dword [ebx + 0xc4], eax
call edi
push str.Section_GetModifyId
push dword [ebx + 0x9c]
mov dword [ebx + 0xc8], eax
call edi
cmp dword [ebx + 0xa8], 0
mov dword [ebx + 0xcc], eax
je 0x1017ff95
cmp dword [ebx + 0xac], 0
je 0x1017ff95
cmp dword [ebx + 0xb0], 0
je 0x1017ff95
cmp dword [ebx + 0xb4], 0
je 0x1017ff95
cmp dword [ebx + 0xb8], 0
je 0x1017ff95
cmp dword [ebx + 0xbc], 0
je 0x1017ff95
cmp dword [ebx + 0xc0], 0
je 0x1017ff95
cmp dword [ebx + 0xc4], 0
je 0x1017ff95
cmp dword [ebx + 0xc8], 0
je 0x1017ff95
test eax, eax
jne 0x1017ff9c
mov ecx, ebx
call fcn.1017dbf0
mov ecx, ebx
call fcn.10180260
test eax, eax
je 0x1017ffb8
mov dword [ebx + 0xa4], 1
mov edi, 1
jmp 0x1017ffc1
mov ecx, ebx
call fcn.1017dbf0
xor edi, edi
test esi, esi
je 0x1017ffcc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x10180260
Capabilities:
Create directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x224], edi
lea esi, [edi + 0x84]
test esi, esi
je 0x1018028f
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [edi + 0x70]
call fcn.1017fa30
cmp dword [edi + 0xa0], 0
mov ebx, eax
jne 0x101803e8
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x10210ca4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...AntiSection
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x101803ed
call fcn.10003180
mov edi, dword [eax + 0x154]
test edi, edi
je 0x1018030a
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xe
call fcn.10003680
add esp, 4
test eax, eax
je 0x10180323
lea ecx, [ebp - 0x20c]
push ecx
call eax
jmp 0x10180330
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x220], eax
test edi, edi
je 0x10180341
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x220]
cmp eax, 0xffffffff
je 0x1018035d
test al, 0x10
jne 0x1018035d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10180384
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10180384
xor ebx, ebx
jmp 0x101803ed
mov edi, dword [ebp - 0x224]
mov dword [ebp - 0x21c], 0x10
mov dword [ebp - 0x218], 0x800
mov dword [ebp - 0x214], 0x3e8
mov eax, dword [edi + 0xa8]
mov dword [edi + 0xa0], 0
mov dword [ebp - 0x210], 0
test eax, eax
je 0x101803dc
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
call eax
mov dword [edi + 0xa0], eax
test ebx, ebx
jne 0x101803e8
cmp dword [edi + 0xa0], ebx
je 0x101803ed
mov ebx, 1
test esi, esi
je 0x101803f8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x10189120
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push str._USERPROFILE_AppDataLocalIconCache.db
push eax
call fcn.10008d60
mov edi, dword [ebp - 4]
add esp, 8
cmp dword [edi - 4], 1
jle 0x1018914e
push dword [edi - 0xc]
lea ecx, [ebp - 4]
call fcn.10002c20
mov edi, dword [ebp - 4]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10189164
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x13
call fcn.10003680
add esp, 4
push edi
test eax, eax
je 0x10189177
call eax
jmp 0x1018917d
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x10189188
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
push dword [eax - 8]
push eax
call fcn.101e6fd0
mov ecx, dword [ebp - 4]
xor edx, edx
add esp, 8
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 4]
mov word [ecx + eax*2], dx
or eax, 0xffffffff
mov edx, dword [ebp - 4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
pop edi
pop esi
test eax, eax
jg 0x101891c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esp, ebp
pop ebp
ret
Function at 0x1018c5d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0x10202940
je 0x1018c70d
push edi
call fcn.1000aa00
add esp, 4
test eax, eax
je 0x1018c60b
mov ecx, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push edi
call fcn.10123f40
mov ecx, dword [ebp + 0xc]
call fcn.10124190
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1018c621
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 8
call fcn.10003680
add esp, 4
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push edi
test eax, eax
je 0x1018c643
call eax
jmp 0x1018c649
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test esi, esi
je 0x1018c656
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0xffffffff
je 0x1018c70d
mov eax, dword [str._Shell__r_nCommand2_r_nIconFileexplorer.exe_3_r_n_Taskbar__r_nCommandToggleDesktop_r_n]
mov edi, eax
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1018c673
sub edi, ecx
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1018c692
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xa
call fcn.10003680
add esp, 4
push 0
test eax, eax
je 0x1018c6af
lea ecx, [ebp + 8]
push ecx
push edi
push dword [ebp + 0xc]
push ebx
call eax
jmp 0x1018c6be
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x1018c6cb
push esi
call edi
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1018c6e1
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x14
call fcn.10003680
add esp, 4
push ebx
test eax, eax
je 0x1018c6f4
call eax
jmp 0x1018c6fa
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1018c701
push esi
call edi
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x1018cce0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [esi + 0x218], 0
cmp dword [0x1025acd4], 0
je 0x1018ce94
cmp dword [0x1025b434], 0
je 0x1018ce94
mov eax, dword [0x1025b450]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x1018cd75
cmp dword [0x1025b454], 0xffffffff
je 0x1018cd75
push eax
mov dword [ebp - 0x210], 0
call edi
test eax, eax
jne 0x1018cd75
mov eax, dword [0x1025b458]
test eax, eax
je 0x1018cd75
lea ecx, [ebp - 0x210]
push ecx
call eax
push eax
push dword [0x1025b450]
call ebx
push dword [ebp - 0x210]
push dword [0x1025b454]
call ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
call fcn.100ddff0
test eax, eax
je 0x1018cdbe
push 0x20019
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 2
push str.52A4F021_7B75_48A9_9F6B_4B87A210BC8F
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push SysReAllocString
call fcn.10176900
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1018ce00
lea eax, [ebp - 0x20c]
push eax
push 0x1a
call fcn.100099b0
add esp, 8
test eax, eax
je 0x1018ce00
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
push str.MicrosoftInternet_ExplorerQuick_Launch_
mov byte [eax], 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esi]
lea ecx, [ebp - 0x20c]
push 0
push dword [0x1025ace4]
push ecx
mov ecx, esi
call dword [eax + 0x54]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x7c]
call fcn.100de1d0
test eax, eax
je 0x1018ce3e
push 0
push 0
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.1018ceb0
mov dword [esi + 0x218], eax
mov eax, dword [0x1025b450]
cmp eax, 0xffffffff
je 0x1018ce7e
cmp dword [0x1025b454], 0xffffffff
je 0x1018ce7e
push eax
call edi
test eax, eax
je 0x1018ce7e
cmp dword [0x1025b45c], 0
je 0x1018ce7e
push dword [0x1025b454]
call edi
push eax
call dword [0x1025b45c]
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x1025b450]
call ebx
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
Function at 0x1018e5b0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1025b070
mov dword [0x1025b070], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1018e678
push 0x40
push eax
lea eax, [ebp - 0x44]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x4c], 1
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x40
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1018e64b
movsx eax, byte [ebp - 0x44]
sub eax, 0x30
mov dword [0x1025b080], 2
mov dword [0x1025b074], eax
lea eax, [ebp - 0x42]
push eax
call sub.msvcrt.dll_atoi
mov ecx, eax
add esp, 4
mov dword [0x1025b078], ecx
jmp 0x1018e67e
push ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, ax
mov bl, 4
shr ecx, 8
cmp bl, al
movzx edx, al
sbb eax, eax
mov dword [0x1025b074], edx
neg eax
mov dword [0x1025b078], ecx
inc eax
mov dword [0x1025b080], eax
pop ebx
jmp 0x1018e684
mov ecx, dword [0x1025b078]
mov edx, dword [0x1025b074]
cmp edx, 6
ja 0x1018e690
jne 0x1018e6b2
cmp ecx, 2
jb 0x1018e6b2
push str.RtlGetVersion
push 0x10204308
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1018e6b2
push 0x1025b070
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret

Function at 0x101917f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1019180b
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xe
call fcn.10003680
add esp, 4
push dword [ebp + 8]
test eax, eax
je 0x10191820
call eax
jmp 0x10191826
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
test esi, esi
je 0x10191833
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
cmp edi, 0xffffffff
pop edi
setne al
pop esi
pop ebp
ret