joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fb810
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5270
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x60f520]
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 esi, edx
mov ebx, ecx
mov edx, str.Update
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.004fb590
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4fb882
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
lea ecx, [ebp - 0x18]
call fcn.0040c2d0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.00513e30
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4fb8c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4fb8e4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0055199a
mov esp, ebp
pop ebp
ret

Function at 0x4fb910
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5270
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x60f520]
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
mov edx, str.Dump
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.004fb590
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4fb980
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
lea ecx, [ebp - 0x18]
call fcn.0040c2d0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.00513e30
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4fb9c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4fb9e3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0055199a
mov esp, ebp
pop ebp
ret
Function at 0x4fbab0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5270
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x60f520]
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
mov edx, str.VirtualDesktop
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.004fac50
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4fbb16
push dword [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0
lea ecx, [ebp - 0x18]
call fcn.0040c2d0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.00513e30
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4fbb58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4fbb79
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0055199a
mov esp, ebp
pop ebp
ret

Function at 0x4fde70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a559e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov dword [ebp - 0x10], 0x6419c0
call fcn.00500860
mov dword [ebp - 4], 0
mov dword [0x6419c8], 0
mov dword [0x6419cc], 0
mov dword [0x6419d0], 0
mov byte [ebp - 4], 1
xorps xmm0, xmm0
push 0
push 0x6419d8
mov dword [0x6419d4], 0xffffffff
movdqu xmmword [0x6419d8], xmm0
movq qword [0x6419e8], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x4fdf13
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4fdf0b
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x4fdf13
push eax
call fcn.0040c390
mov byte [ebp - 4], 2
mov dword [0x6419f0], 0
mov dword [0x6419f4], 0
call fcn.00429290
mov dword [0x6419f0], eax
call fcn.0040bce0
mov ecx, eax
test ecx, ecx
jne 0x4fdf4a
push 0x80004005
call fcn.0040c390
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [0x6419f8], eax
mov eax, dword [0x6419c4]
mov dword [eax + 0x30], 0x4ff070
mov eax, dword [0x6419c4]
mov dword [eax + 0x2c], 0x4ff200
mov eax, 0x6419c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4ffc40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5978
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x60f520]
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 edi, ecx
mov eax, dword [edi + 8]
xor ecx, ecx
sub eax, dword [edi + 4]
mov edx, dword [ebp + 8]
sar eax, 4
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
test eax, eax
je 0x4ffda8
xor esi, esi
or ebx, 0xffffffff
mov dword [ebp - 0x20], esi
mov eax, dword [edi + 4]
cmp dword [esi + eax + 0xc], 0
jne 0x4ffca5
cmp dword [ebp + 0xc], 0
je 0x4ffd8d
add eax, 4
mov dword [ebp - 0x14], 0
add eax, esi
lea ecx, [ebp - 0x14]
push eax
call fcn.00513e30
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ffdd7
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi + 8]
sub ecx, 0x10
call fcn.0040c3c0
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.005228c0
mov byte [ebp - 4], 2
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4ffdfc
push ecx
push esi
call fcn.00551d79
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
test eax, eax
mov ecx, ebx
setne byte [ebp - 0x19]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4ffd3e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
cmp byte [ebp - 0x19], 0
jne 0x4ffdcb
test ecx, ecx
jg 0x4ffd61
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4ffd84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov eax, dword [edi + 8]
inc ecx
sub eax, dword [edi + 4]
add esi, 0x10
sar eax, 4
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], esi
cmp ecx, eax
jb 0x4ffc91
mov eax, 1
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.0055199a
mov esp, ebp
pop ebp
ret 8
test ecx, ecx
jg 0x4ffdd7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4ffdf8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x4ffdad
push 0x80004005
call fcn.0040c390
int3
Function at 0x500200
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5a33
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x6434b4]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x500268
push 0x2c
call fcn.00551c81
add esp, 4
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x50025a
mov ecx, eax
call fcn.004947d0
jmp 0x50025c
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x6434b4], eax
push esi
push str.SetupUpdatePackage__s_
push str.Update
push eax
call fcn.00494d30
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x500281
sub ecx, edx
sar ecx, 1
je 0x500362
cmp dword [edi], 0
je 0x500362
push 0x44
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.00559380
add esp, 0xc
mov dword [ebp - 0x58], 0x44
lea eax, [ebp - 0x68]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x68], xmm0
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x5cd4a0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x50034a
push 0xffffffffffffffff
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x68]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x64]
call esi
xor edx, edx
lea ecx, [ebp - 0x6c]
call fcn.004fac50
mov dword [ebp - 4], 1
mov ecx, dword [edi]
test ecx, ecx
jne 0x500318
xor esi, esi
jmp 0x500322
push 1
push eax
call fcn.004ffc40
mov esi, eax
mov dword [ebp - 4], 0xffffffff
or edx, 0xffffffff
mov edi, dword [ebp - 0x6c]
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x500346
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
jmp 0x500364
push str.Create_Package_Process_Failed_
push str.Update
call fcn.00494cb0
push eax
call fcn.00494d30
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret 8
Function at 0x501ec0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5d84
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00429290
mov dword [edi], eax
lea esi, [edi + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], esi
mov dword [esi + 4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov dword [esi], vtable.::::::______M_________4_x_H_d_s_______s____.0
mov dword [ebp - 0x10], 0
call fcn.00503f00
mov ecx, dword [ebp - 0x10]
mov dword [esi + 4], ecx
push ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 4]
xorps xmm0, xmm0
mov dword [eax + 0x24], edi
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x24]
movdqu xmmword [ecx + 0x24], xmm0
mov dword [ecx + 0x24], eax
mov byte [ebp - 4], 2
mov dword [edi + 0x10], vtable.Y5h5555666a66666667_7_7A7777777848K8l8888889_99999:c:n:::::_3_9_________:_A__y_______Cv_q________w___.0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call fcn.0041b060
mov dword [edi + 0x18], eax
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [edi + 0x10]
mov dword [edi + 0x14], edi
mov dword [edi + 0x20], 0
call fcn.005045e0
mov byte [ebp - 4], 3
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
call fcn.00429290
mov dword [edi + 0x40], eax
mov byte [ebp - 4], 4
mov ecx, edi
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov eax, dword [edi + 0xc]
mov dword [eax + 0x30], 0x5027f0
call fcn.00502ce0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5045e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x60f520]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x50468a
push 0x2c
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00559380
add esp, 0xc
mov dword [esp + 4], 0x30
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x400000
mov dword [esp + 0x2c], str.Q360SoftMgrTimerWnd
mov dword [esp + 0xc], 0x48ac70
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [esp + 0x1c]
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x54]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x50469f
push esi
push 0xffffffffffffffeb
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0055199a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x34]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0055199a
mov esp, ebp
pop ebp
ret

Function at 0x504f30
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.0056c080
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x2d10], eax
test eax, eax
je 0x505096
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, edi
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.00504a40
add esp, 0x10
lea eax, [ebp - 0x204]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x505079
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2d00], 0
lea eax, [ebp - 0x2cfc]
movq qword [ebp - 0x2d0c], xmm0
push 0
push eax
mov dword [ebp - 0x2d04], 0
mov dword [ebp - 0x2d0c], 0
mov dword [ebp - 0x2d08], 0
call fcn.00559380
add esp, 0xc
lea eax, [ebp - 0x2d00]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d0c]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x50506e
push 0x3e8
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.00559380
mov edx, dword [ebp - 0x2ce4]
lea eax, [ebp - 0x5ec]
add esp, 0xc
push eax
push ecx
lea ecx, [ebp - 0x2cfc]
call fcn.0050aa70
add esp, 8
lea eax, [ebp - 0x5ec]
mov edx, 0x64
push SysReAllocString
push eax
push ecx
mov ecx, dword [ebp - 0x2d10]
call fcn.00504b00
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x505083
inc esi
cmp esi, 0x10
jl 0x504f60
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret
Function at 0x5053a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f4
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x4f4], ebx
test ebx, ebx
je 0x50559a
push esi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00559380
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x4ec]
add esp, 0xc
push eax
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x505565
push edi
xor edi, edi
mov dword [ebp - 0x4e0], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x4e0]
push eax
lea eax, [ebp - 0x2d4]
push eax
push edi
push dword [ebp - 0x4ec]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x505556
lea eax, [ebp - 0x4f0]
push eax
push 1
push 0
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp - 0x4ec]
call esi
test eax, eax
jne 0x505520
lea eax, [ebp - 0x4e8]
mov dword [ebp - 0x4e4], 1
push eax
lea eax, [ebp - 0x4dc]
mov dword [ebp - 0x4e8], 0x208
push eax
lea eax, [ebp - 0x4e4]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x4f0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x505518
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00559380
add esp, 8
lea edx, [ebp - 0xcc]
lea ecx, [ebp - 0x4dc]
call fcn.00505280
add esp, 4
test eax, eax
je 0x505518
cmp byte [ebp - 0x68], 0
je 0x5054df
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x505518
lea ecx, [ebp - 0x68]
mov edx, 0x64
lea esi, [ebp - 0xcc]
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x50550a
mov al, byte [esi + ecx]
test al, al
je 0x50550a
mov byte [ecx], al
inc ecx
dec edx
jne 0x5054f1
jmp 0x50550e
test edx, edx
jne 0x50550f
dec ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [ecx], 0
push dword [ebp - 0x4f0]
call ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x4e0]
mov dword [ebp - 0x4e0], 0x104
push eax
lea eax, [ebp - 0x2d4]
inc edi
push eax
push edi
push dword [ebp - 0x4ec]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x505434
push dword [ebp - 0x4ec]
call ebx
mov ebx, dword [ebp - 0x4f4]
pop edi
cmp byte [ebp - 0x68], 0
pop esi
je 0x50559a
push SysReAllocString
lea eax, [ebp - 0x68]
mov edx, 0x64
push eax
push ecx
mov ecx, ebx
call fcn.00504b00
xor ecx, ecx
test eax, eax
pop ebx
setns cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.0055199a
mov esp, ebp
pop ebp
ret
Function at 0x506280
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6328
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x60f520]
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 esi, ecx
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5063e1
xor ecx, ecx
mov eax, 0x2aaaaaab
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 8]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x5063e1
xor ecx, ecx
or ebx, 0xffffffff
mov dword [ebp - 0x20], ecx
lea esp, [esp]
mov eax, dword [esi + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
mov esi, dword [eax + ecx + 4]
mov edx, dword [eax + ecx]
test esi, esi
je 0x506322
lea eax, [esi + 4]
mov ecx, 1
lock xadd dword [eax], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
test edx, edx
je 0x506341
push dword [ebp - 0x28]
mov ecx, edx
call fcn.00505b00
test eax, eax
jne 0x50639c
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x50636f
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x50636f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x50636f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x24]
mov eax, 0x2aaaaaab
inc dword [ebp - 0x1c]
add dword [ebp - 0x20], 0xc
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 8]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x1c], eax
jae 0x5063e1
mov ecx, dword [ebp - 0x20]
jmp 0x506300
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 8]
push dword [eax + edx*4 + 8]
push edi
call fcn.00506410
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x5063ee
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x5063ee
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x5063ee
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x5063ee
mov dword [edi + 4], 0
mov dword [edi], 0
mov eax, edi
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.0055199a
mov esp, ebp
pop ebp
ret 8
Function at 0x507980
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6540
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x60f520]
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
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.004fb7d0
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5079da
xor esi, esi
jmp 0x507ac6
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0x5be2fc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
push eax
push dword [ebp - 0x14]
lea ecx, [ebx + 0x4c]
call fcn.0051e640
test eax, eax
je 0x507ab4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x507ab4
lea edi, [ebx + 1]
push edi
call fcn.00550341
add esp, 4
mov esi, eax
push edi
push 0
push esi
call fcn.00559380
add esp, 0xc
push ebx
push dword [ebp - 0x1c]
push esi
call fcn.00559410
add esp, 0xc
lea ecx, [ebp - 0x20]
push edi
push esi
call fcn.004e3b00
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x1c]
mov ecx, edi
lea edx, [ebx + 0x30]
call fcn.0050c200
test eax, eax
je 0x507ab7
mov al, byte [ebx + 0x38]
test al, al
je 0x507a7f
cmp al, 7
jne 0x507ab7
push ecx
push str._settings
lea ecx, [ebx + 0x30]
call fcn.004e6b80
mov cl, byte [eax + 8]
test cl, cl
je 0x507a99
cmp cl, 7
jne 0x507ab7
push ecx
push str.timestamp
mov ecx, eax
call fcn.004e6b80
lea edx, [ebx + 0x40]
mov ecx, eax
call fcn.0050c830
mov esi, eax
jmp 0x507ab9
mov edi, dword [ebp - 0x1c]
xor esi, esi
test edi, edi
je 0x507ac6
push edi
call fcn.005527f2
add esp, 4
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x507aea
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0055199a
mov esp, ebp
pop ebp
ret