joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46dc20
Capabilities:
Get file version info
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56545b
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov byte [ebp - 0x628], 0
push 0x206
push eax
mov word [ebp - 0x218], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x216]
movq qword [ebp - 0x627], xmm0
push eax
mov byte [ebp - 0x61f], 0
call fcn.00531bd0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x46de4d
lea eax, [ebp - 0x640]
mov dword [ebp - 0x640], 0
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x46de4d
lea eax, [ebp - 0x619]
mov byte [ebp - 0x619], 0
push eax
push edi
lea ecx, [ebp - 0x63c]
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 0
call fcn.0041a930
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
mov esi, dword [ebp - 0x63c]
push esi
push edi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x46de15
lea eax, [ebp - 0x630]
mov dword [ebp - 0x62c], 0
push eax
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x630], 0
push eax
push 0x58af04
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x46de15
cmp dword [ebp - 0x630], 0x34
jne 0x46de15
mov edi, dword [ebp - 0x62c]
test edi, edi
je 0x46de15
push 0x3ff
lea eax, [ebp - 0x617]
mov word [ebp - 0x628], 0x24
push 0
push eax
mov dword [ebp - 0x622], 0xd
mov dword [ebp - 0x626], 0x55aa0000
call fcn.00531bd0
movq xmm0, qword [ebp - 0x628]
add esp, 0xc
mov ax, word [ebp - 0x620]
mov word [ebp - 0x610], ax
movq qword [ebp - 0x618], xmm0
mov eax, dword [edi + 8]
mov dword [ebp - 0x60e], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x60a], eax
mov al, byte [ebx + 0x140c]
mov byte [ebp - 0x606], al
mov eax, dword [ebx + 0x180]
push 0
mov dword [ebp - 0x605], eax
lea eax, [ebp - 0x618]
push 0x17
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x46de15
mov edi, 1
jmp 0x46de17
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x46de49
push esi
call fcn.005295dd
add esp, 4
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 0
mov eax, edi
jmp 0x46de4f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret 4
Function at 0x470450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0
push 0x40000000
push 3
push 0
push 3
push 0x40000000
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push str..pipemsg_D66E1F7A_5D94_4645_9BA1_CF75474D4FAA
movdqu xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [0x5ba1b0]
mov dword [ecx + 0xd0], eax
cmp eax, 0xffffffff
jne 0x4704a2
xor eax, eax
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [ebp - 0xc], 3
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x5ba1b0]
push dword [eax + 0xd0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4704f4
cmp dword [ebp - 4], 4
je 0x47050d
call ebx
cmp eax, 0x3e5
jne 0x47050d
push 0xffffffffffffffff
push esi
call edi
cmp eax, 0x102
je 0x4705ab
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
add eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
mov eax, dword [0x5ba1b0]
push dword [eax + 0xd0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x470543
cmp dword [ebp - 4], 4
je 0x470558
call ebx
cmp eax, 0x3e5
jne 0x470558
push 0xffffffffffffffff
push esi
call edi
cmp eax, 0x102
je 0x4705ab
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp dword [eax - 4], 1
jle 0x47056e
push dword [eax - 0xc]
call fcn.004024c0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
mov eax, dword [0x5ba1b0]
push dword [ecx]
push dword [eax + 0xd0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x470596
cmp dword [ebp - 4], 4
je 0x4705b6
call ebx
cmp eax, 0x3e5
jne 0x4705b6
push 0xffffffffffffffff
push esi
call edi
cmp eax, 0x102
jne 0x4705b6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x5ba1b0]
push dword [eax + 0xd0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4705e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x40000000
push 3
push 0
push 3
push 0x40000000
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push str..pipemsg_D66E1F7A_5D94_4645_9BA1_CF75474D4FAA
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [0x5ba1b0]
mov dword [ecx + 0xd0], eax
cmp eax, 0xffffffff
jne 0x470644
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [ebp - 0x1c], 2
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], esi
push eax
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x5ba1b0]
push dword [eax + 0xd0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x470688
cmp dword [ebp - 0x18], 4
je 0x4706a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4706a9
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x47073d
mov ecx, dword [0x5ba1b0]
movzx eax, word [ecx + 0xfc]
mov word [ebp - 0x14], ax
movzx eax, word [ecx + 0xf4]
mov word [ebp - 0x12], ax
movzx eax, word [ecx + 0x100]
mov word [ebp - 0xc], ax
movzx eax, word [ecx + 0xf6]
mov word [ebp - 0x10], ax
movzx eax, word [ecx + 0x102]
mov word [ebp - 0xa], ax
movzx eax, word [ecx + 0xf8]
mov word [ebp - 0xe], ax
movzx eax, word [ecx + 0x104]
mov word [ebp - 8], ax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
push 0xe
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 0xd0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x470720
cmp dword [ebp - 0x18], 4
je 0x47074e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x47074e
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x47074e
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5ba1b0]
push dword [eax + 0xd0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.005295e2
mov esp, ebp
pop ebp
ret
Function at 0x471370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565a48
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x58d568
push dword [eax]
call fcn.0052e5ea
mov edi, eax
add esp, 8
test edi, edi
je 0x4714f4
mov ebx, dword [0x5ba1b0]
or esi, 0xffffffff
add ebx, 0x1428
mov dword [ebp - 0x24], vtable.CLockMgr_class_CMutexWrapper_.0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
cmp dword [ebx], 0
je 0x4713f5
call dword [sym.imp.USER32.dll_InSendMessage]
test eax, eax
mov ecx, 0x2710
cmovne esi, ecx
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
cmp esi, dword [eax + 4]
je 0x4714d0
lea ebx, [ebx]
mov eax, dword [esi]
push edi
push 1
push 4
mov eax, dword [eax - 0xc]
lea ecx, [eax + eax]
mov eax, dword [esi + 4]
mov dword [ebp + 8], ecx
mov eax, dword [eax - 0xc]
add eax, eax
mov dword [ebp - 0x10], eax
add eax, 0x11
add eax, ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0052b6e4
push edi
push 1
lea eax, [ebp + 8]
push 4
push eax
call fcn.0052b6e4
mov eax, dword [esi]
add esp, 0x20
cmp dword [eax - 4], 1
jle 0x47145f
push dword [eax - 0xc]
mov ecx, esi
call fcn.004024c0
push edi
push dword [ebp + 8]
push 1
push dword [esi]
call fcn.0052b6e4
push edi
push 1
lea eax, [ebp - 0x10]
push 4
push eax
call fcn.0052b6e4
mov eax, dword [esi + 4]
add esp, 0x20
cmp dword [eax - 4], 1
jle 0x471491
push dword [eax - 0xc]
lea ecx, [esi + 4]
call fcn.004024c0
push edi
push dword [ebp - 0x10]
push 1
push dword [esi + 4]
call fcn.0052b6e4
push edi
push 1
lea eax, [esi + 0xc]
push 1
push eax
call fcn.0052b6e4
push edi
push 1
lea eax, [esi + 8]
push 4
push eax
call fcn.0052b6e4
mov eax, dword [ebp + 0xc]
add esi, 0x10
add esp, 0x30
cmp esi, dword [eax + 4]
jne 0x471410
mov ebx, dword [ebp - 0x18]
push edi
call fcn.0052c324
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebx]
mov dword [ebp - 0x24], vtable.CLockMgr_class_CMutexWrapper_.0
test eax, eax
je 0x4714f4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x471510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565a80
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x581a44
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004031c0
mov dword [ebp - 4], 0
test esi, esi
je 0x4715ec
jns 0x47156d
push 0x80070057
call fcn.004027b0
mov eax, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x47158d
push esi
lea ecx, [ebp - 0x10]
call fcn.00402590
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x4715a1
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004024c0
mov eax, dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00529878
mov edx, eax
add esp, 8
test edx, edx
js 0x471563
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x471563
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
cmp dword [ebx + 0xd8], ecx
je 0x4715ec
push str.SysWOW64
push str.system32
lea ecx, [ebp - 0x10]
call fcn.004140e0
push 0x12
push str._sstray_flists.dat
lea ecx, [ebp - 0x10]
call fcn.00443ec0
lea eax, [ebx + 0x144]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00471140
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47162f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e460
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [0x5ba1b0]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x581a44
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004031c0
mov dword [ebp - 4], 0
test esi, esi
je 0x47171e
jns 0x47169f
push 0x80070057
call fcn.004027b0
mov eax, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x4716bf
push esi
lea ecx, [ebp - 0x10]
call fcn.00402590
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x4716d3
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004024c0
mov eax, dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00529878
mov edx, eax
add esp, 8
test edx, edx
js 0x471695
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x471695
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
cmp dword [ebx + 0xd8], ecx
je 0x47171e
push str.SysWOW64
push str.system32
lea ecx, [ebp - 0x10]
call fcn.004140e0
push 0x12
push str._sstray_flists.dat
lea ecx, [ebp - 0x10]
call fcn.00443ec0
lea eax, [ebx + 0x144]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00471370
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x471761
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471780
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565a80
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x581a44
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004031c0
mov dword [ebp - 4], 0
test esi, esi
je 0x47185c
jns 0x4717dd
push 0x80070057
call fcn.004027b0
mov eax, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x4717fd
push esi
lea ecx, [ebp - 0x10]
call fcn.00402590
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x471811
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004024c0
mov eax, dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00529878
mov edx, eax
add esp, 8
test edx, edx
js 0x4717d3
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x4717d3
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
cmp dword [ebx + 0xd8], ecx
je 0x47185c
push str.SysWOW64
push str.system32
lea ecx, [ebp - 0x10]
call fcn.004140e0
push 0x12
push str._sstray_slists.dat
lea ecx, [ebp - 0x10]
call fcn.00443ec0
lea eax, [ebx + 0x138]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00471140
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47189f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4718b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e460
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [0x5ba1b0]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x581a44
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004031c0
mov dword [ebp - 4], 0
test esi, esi
je 0x47198e
jns 0x47190f
push 0x80070057
call fcn.004027b0
mov eax, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x47192f
push esi
lea ecx, [ebp - 0x10]
call fcn.00402590
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x471943
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004024c0
mov eax, dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00529878
mov edx, eax
add esp, 8
test edx, edx
js 0x471905
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x471905
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
cmp dword [ebx + 0xd8], ecx
je 0x47198e
push str.SysWOW64
push str.system32
lea ecx, [ebp - 0x10]
call fcn.004140e0
push 0x12
push str._sstray_slists.dat
lea ecx, [ebp - 0x10]
call fcn.00443ec0
lea eax, [ebx + 0x138]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00471370
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4719d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4719f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565a80
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x581a44
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004031c0
mov dword [ebp - 4], 0
test esi, esi
je 0x471acc
jns 0x471a4d
push 0x80070057
call fcn.004027b0
mov eax, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x471a6d
push esi
lea ecx, [ebp - 0x10]
call fcn.00402590
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x471a81
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004024c0
mov eax, dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00529878
mov edx, eax
add esp, 8
test edx, edx
js 0x471a43
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x471a43
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
cmp dword [ebx + 0xd8], ecx
je 0x471acc
push str.SysWOW64
push str.system32
lea ecx, [ebp - 0x10]
call fcn.004140e0
push 0x14
push str._sstray_devlists.dat
lea ecx, [ebp - 0x10]
call fcn.00443ec0
lea eax, [ebx + 0x150]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00471140
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x471b0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471b20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e460
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [0x5ba1b0]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x581a44
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004031c0
mov dword [ebp - 4], 0
test esi, esi
je 0x471bfe
jns 0x471b7f
push 0x80070057
call fcn.004027b0
mov eax, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x471b9f
push esi
lea ecx, [ebp - 0x10]
call fcn.00402590
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x471bb3
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004024c0
mov eax, dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00529878
mov edx, eax
add esp, 8
test edx, edx
js 0x471b75
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x471b75
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
cmp dword [ebx + 0xd8], ecx
je 0x471bfe
push str.SysWOW64
push str.system32
lea ecx, [ebp - 0x10]
call fcn.004140e0
push 0x14
push str._sstray_devlists.dat
lea ecx, [ebp - 0x10]
call fcn.00443ec0
lea eax, [ebx + 0x150]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00471370
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x471c41
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565a80
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0
call edi
push 0x581a44
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004031c0
mov dword [ebp - 4], 0
test esi, esi
je 0x471d39
jns 0x471cbe
push 0x80070057
call fcn.004027b0
mov eax, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x471cde
push esi
lea ecx, [ebp - 0x10]
call fcn.00402590
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x471cf2
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004024c0
mov eax, dword [ebp - 0x10]
push eax
push esi
call edi
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00529878
mov edx, eax
add esp, 8
test edx, edx
js 0x471cb4
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x471cb4
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
cmp dword [ebx + 0xd8], ecx
je 0x471d39
push str.SysWOW64
push str.system32
lea ecx, [ebp - 0x10]
call fcn.004140e0
push 0x15
push str._sstray_forbidden.dat
lea ecx, [ebp - 0x10]
call fcn.00443ec0
push 0x58d618
push dword [ebp - 0x10]
call fcn.0052e5ea
mov esi, eax
add esp, 8
test esi, esi
je 0x471db8
push 2
push 0
push esi
call fcn.0052e84c
push esi
call fcn.0052ec5f
push 0
push 0
push esi
mov ebx, eax
call fcn.0052e84c
add esp, 0x1c
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x471db8
push esi
push ebx
push 1
push ebx
push edi
call fcn.0052d4fd
add esp, 0x14
test eax, eax
je 0x471daf
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00414550
push esi
call fcn.0052c324
add esp, 4
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x471ddc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4