joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50e1e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a713e
mov eax, dword fs:[0]
push eax
sub esp, 8
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
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.0050e4e0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.0050e4e0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
je 0x50e2f4
test dl, 0x10
jne 0x50e2f4
mov eax, 1
jmp 0x50e2f6
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.0050e390
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 0x1c
Function at 0x513b80
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7570
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 dword [ebp - 0x1c], edx
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
test eax, eax
jne 0x513c21
lea ecx, [ebp - 0x14]
call fcn.0040c2d0
lea edx, [ebp - 0x14]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00513d50
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x513bf8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x513c0f
push dword [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jmp 0x513c5d
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x513c67
push esi
lea ecx, [ebp - 0x18]
call fcn.0040c2d0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00513860
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x513c67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.00513c90
push 3
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x513c90
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597f78
mov eax, dword fs:[0]
push eax
push ecx
push ebx
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 esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call esi
test eax, eax
je 0x513d39
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
test eax, eax
jne 0x513d39
push edi
call esi
test eax, eax
je 0x513d39
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x513cf0
push edi
call ebx
test eax, eax
jne 0x513d39
lea ecx, [ebp - 0x10]
call fcn.0040b840
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
lea eax, [ebp - 0x10]
push 0x5cdd40
push eax
call fcn.00422de0
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call ebx
push 1
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
push 4
push 0
push esi
call edi
lea ecx, [ebp - 0x10]
call fcn.0040c450
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x514220
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7618
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov dword [ebp - 0x1c], 0
call fcn.0040bce0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x514272
push 0x80004005
call fcn.0040c390
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x5142e6
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5142e6
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x50]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov ecx, dword [ecx]
call fcn.00513790
test eax, eax
je 0x5142ca
mov eax, dword [ebp - 0x48]
mov esi, eax
movzx eax, ax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x44]
mov ebx, eax
shr esi, 0x10
shr ebx, 0x10
movzx eax, ax
jmp 0x5142cc
xor eax, eax
push eax
push ebx
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push esi
push str._d._d._d._d
push eax
call fcn.00422de0
mov esi, dword [ebp - 0x14]
add esp, 0x18
add esi, 0xfffffff0
mov ecx, esi
call fcn.0040c3c0
add eax, 0x10
or ecx, 0xffffffff
mov dword [edi], eax
lea eax, [esi + 0xc]
mov dword [ebp - 4], ecx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51430f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5147f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a768b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
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 dword [ebp - 0x244], edx
mov edi, ecx
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x5148f9
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x5148f9
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.00559380
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x5148f2
or ebx, 0xffffffff
lea esp, [esp]
mov edx, dword [ebp - 0x234]
lea ecx, [ebp - 0x240]
call fcn.00514960
lea edx, [ebp - 0x240]
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.00514120
test eax, eax
je 0x5148ba
mov edx, edi
lea ecx, [ebp - 0x240]
call fcn.00514120
test eax, eax
jne 0x514917
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5148e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x514880
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.0055199a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x244]
test ecx, ecx
je 0x514929
mov eax, dword [ebp - 0x234]
mov dword [ecx], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x51494d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x5148fb

Function at 0x514b40
Capabilities:
Terminate process

Disassembly:
push esi
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x514b73
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
test eax, eax
je 0x514b6d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
Function at 0x514b80
Capabilities:
Check if file exists
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a770b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
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, edx
mov edi, ecx
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x514cc7
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x514cc7
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x514cc7
push 0x228
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.00559380
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x514cb5
mov ecx, ebx
call fcn.00429180
nop
mov edx, dword [ebp - 0x238]
lea ecx, [ebp - 0x244]
call fcn.00514960
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.00514120
test eax, eax
je 0x514c78
lea edx, [ebp - 0x244]
mov ecx, edi
call fcn.00514120
test eax, eax
je 0x514c78
movzx eax, byte [0x64185d]
push eax
lea eax, [ebp - 0x238]
push eax
push ecx
lea eax, [ebp - 0x24c]
mov ecx, ebx
push eax
call fcn.004292c0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x244]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x514c9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x514c20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp eax, dword [ebx + 4]
sbb eax, eax
neg eax
jmp 0x514cc9
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.0055199a
mov esp, ebp
pop ebp
ret
Function at 0x514cf0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7762
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
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, edx
mov edi, ecx
mov dword [ebp - 0x240], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], 0
call fcn.0040bce0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x514d5b
push 0x80004005
call fcn.0040c390
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0
mov dword [ebp - 4], 0
push 2
mov dword [ebp - 0x244], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x514e11
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.00559380
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x514e0a
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [ebp - 0x234], ebx
jne 0x514df6
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x514dd4
mov ecx, dword [ebp - 0x240]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0040c1c0
lea eax, [ebp - 0x23c]
push eax
push esi
call edi
test eax, eax
jne 0x514dc3
mov edi, dword [ebp - 0x240]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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

Function at 0x5152e0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7820
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push 0
push 1
push dword [ebp + 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x5153a5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5153a5
push eax
lea ecx, [ebp - 0x18]
call fcn.00442450
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x1c]
push 0
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 1
push dword [ebp + 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
mov ecx, esi
lea eax, [ebp - 0x18]
push eax
call fcn.0050db90
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5153b9
push eax
call fcn.00551995
add esp, 4
jmp 0x5153b9
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
cmp dword [ebp + 0x1c], 0x10
jb 0x5153ca
push dword [ebp + 8]
call fcn.00551995
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x516d70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, SysReAllocString
mov dword [ebp - 4], eax
push esi
test edx, edx
je 0x516dc6
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x516ddd
mov eax, dword [ebp - 4]
cmp eax, 0x80000001
je 0x516dc0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
cmp eax, 0x80000001
je 0x516dee
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x516fa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jne 0x516fb3
xor eax, eax
pop esi
pop ebp
ret 8
cmp dword [esi + 0x18], 0
jne 0x516fd1
push 0
push 0x3e8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 0x18], eax
test eax, eax
je 0x516fac
cmp dword [esi + 0x1c], 0
jne 0x517007
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0
push esi
push 0x517100
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x517036
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x24]
call fcn.005171a0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 1
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x516fac
mov eax, 1
pop esi
pop ebp
ret 8
Function at 0x5173a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7b58
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi]
mov ebx, dword [ebp + 8]
sub ecx, 0x10
call fcn.0040c3c0
lea esi, [eax + 0x10]
mov dword [ebp - 0x50], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x51740b
push 0x104
lea ecx, [ebp - 0x50]
call fcn.0040c110
mov esi, dword [ebp - 0x50]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x51754f
cmp eax, dword [esi - 8]
jg 0x51754f
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x51744b
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov dword [ebp - 0x4c], vtable..12.0
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
mov byte [ebp - 0x30], 0
push ebx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x4c]
call fcn.004efed0
mov byte [ebp - 4], 2
mov eax, dword [edi + 4]
cmp dword [eax - 0xc], 0
jle 0x5174a0
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push edi
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [edi + 8]
push eax
call fcn.00517770
jmp 0x5174b8
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
mov ecx, dword [edi]
call fcn.0050be70
add esp, 4
cmp dword [ebp - 0x18], 0x10
mov edi, eax
jb 0x5174cb
push dword [ebp - 0x2c]
call fcn.00551995
add esp, 4
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x4c], vtable..12.0
jb 0x5174f5
push dword [ebp - 0x48]
call fcn.00551995
add esp, 4
add esi, 0xfffffff0
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
or ecx, 0xffffffff
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0x5cbb20
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51752f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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 - 0x14]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.0040c390
int3
Function at 0x517a10
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0a70
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp + 8]
push edi
call fcn.0040c2d0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xc]
test edx, edx
jns 0x517a5c
push 0x80070057
call fcn.0040c390
or esi, 0xffffffff
cmp word [eax], 0x22
jne 0x517acb
cmp edx, 1
jle 0x517acb
add eax, 2
push 0x22
push eax
call fcn.00553c53
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x517ac8
mov eax, dword [ebp + 8]
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x517acb
lea eax, [ecx - 1]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.00429d90
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040b7d0
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517ac8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
test eax, eax
je 0x517af9
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x517af6
push 0
push 0
push dword [ebp + 0xc]
push edi
push 0x5bc458
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
mov eax, dword [ebp + 8]
jmp 0x517afb
mov eax, dword [ebp + 8]
xor edi, edi
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x517b19
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x10

Function at 0x518060
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x5180ad
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5180ad
lea ecx, [edi + 8]
mov edx, 0x104
sub esi, ecx
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x5180a1
movzx eax, word [esi + ecx]
test ax, ax
je 0x5180a1
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x518083
jmp 0x5180a5
test edx, edx
jne 0x5180a8
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea ecx, [edi + 0x210]
mov esi, str.updump
mov edx, 0x104
sub esi, ecx
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x5180e8
movzx eax, word [esi + ecx]
test ax, ax
je 0x5180e8
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x5180c0
xor eax, eax
pop edi
mov word [ecx - 2], ax
pop esi
pop ebp
ret 8
test edx, edx
jne 0x5180f8
xor eax, eax
pop edi
mov word [ecx - 2], ax
pop esi
pop ebp
ret 8
xor eax, eax
pop edi
mov word [ecx], ax
pop esi
pop ebp
ret 8