joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4854b0
Capabilities:
Delete file
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7658
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6609c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x14], esi
mov ebx, ecx
test ebx, ebx
je 0x4855de
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4855de
test esi, esi
je 0x4855de
call fcn.00402b70
mov ecx, eax
test ecx, ecx
jne 0x485513
push 0x80004005
call fcn.00402440
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push str._s.write_cache
push eax
call fcn.004082f0
mov esi, dword [ebp - 0x10]
add esp, 0xc
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x4855ab
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 8]
push ecx
push edi
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x18]
xor eax, eax
cmp dword [ebp - 0x10], edi
sete al
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4855ab
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4855ca
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
xor eax, eax
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 0x485600
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7688
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x6609c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
test esi, esi
je 0x4856aa
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4856aa
mov dword [ebp - 0x1c], vtable.CxAutoArray_unsigned_char_.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea edx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
mov ecx, esi
call fcn.004800e0
mov esi, dword [ebp - 0x18]
add esp, 4
test eax, eax
je 0x485688
cmp dword [ebp - 0x10], 0
je 0x485688
mov edx, edi
mov ecx, esi
call fcn.00485820
mov edi, eax
jmp 0x48568a
xor edi, edi
test esi, esi
je 0x485697
push esi
call fcn.0058a6e5
add esp, 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
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4856c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d76c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6609c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.00406470
mov dword [ebp - 4], 0
mov edx, 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x485723
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00407330
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.005a663e
mov edx, eax
add esp, 8
test edx, edx
js 0x48580c
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x48580c
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x485772
push dword [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
call fcn.00402b70
mov ecx, eax
test ecx, ecx
jne 0x485787
push 0x80004005
call fcn.00402440
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00485a40
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x4857ba
push dword [esi - 0xc]
mov edx, esi
mov ecx, edi
call fcn.004854b0
add esp, 4
mov edi, eax
jmp 0x4857bc
xor edi, edi
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4857da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4857f9
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
push 0x80070057
call fcn.00402440
int3
Function at 0x488360
Capabilities:
Check os version
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0e88
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6609c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], 0
je 0x4883e6
mov eax, dword [0x661a5c]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x4883ca
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4883b5
mov dword [0x661a5c], 1
jmp 0x4883ce
push esi
push dword [ebp + 0xc]
mov dword [0x661a5c], 0
call fcn.004898b0
jmp 0x488411
test eax, eax
je 0x4883db
push esi
push dword [ebp + 0xc]
call fcn.004885c0
test eax, eax
jne 0x488411
push esi
push dword [ebp + 0xc]
call fcn.004898b0
jmp 0x488411
push dword [ebp + 0xc]
call fcn.004891e0
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call esi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x488433
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x488450
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d21d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6609c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [0x661a5c]
cmp eax, 0xffffffff
jne 0x4884a7
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x48849b
mov dword [0x661a5c], 1
jmp 0x4884ab
mov dword [0x661a5c], 0
jmp 0x4884bc
test eax, eax
je 0x4884bc
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004894c0
mov esi, eax
test esi, esi
jne 0x4884c9
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00489a70
mov esi, eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4884eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x488500
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2db8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x6609c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push dword [ebp + 8]
call fcn.004891e0
mov edi, dword [ebp + 8]
mov ebx, eax
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test ebx, ebx
setne dl
add eax, 0xfffffff0
mov dword [ebp - 0x10], edx
or ecx, 0xffffffff
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x48859d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4898b0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7d36
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x6609c4]
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, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x489a4c
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], eax
call fcn.00402b70
mov ecx, eax
test ecx, ecx
jne 0x489960
push 0x80004005
call fcn.00402440
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x21c]
push dword [esi + 8]
push dword [esi]
push str.__s___s
push eax
call fcn.004082f0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005a3020
add esp, 0x1c
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.00489c80
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.005ab399
add esp, 8
test eax, eax
je 0x489a16
test esi, esi
jne 0x4899eb
lea eax, [esi + 0xd]
jmp 0x489a1c
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4899f0
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x489a1c
mov eax, dword [ebp - 0x220]
xor ebx, ebx
mov byte [ebp - 4], 0
test eax, eax
sete bl
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x489a3f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x489a4e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x489a4e
xor ebx, ebx
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.00589ffa
mov esp, ebp
pop ebp
ret 8
Function at 0x489a70
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x6609c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
call fcn.005a3020
add esp, 0xc
mov dword [ebp - 0x418], 0x104
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x41c]
push eax
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x20c], 0
je 0x489b27
test esi, esi
je 0x489b10
lea edx, [ebp - 0x20c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x489af2
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.004073a0
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00589ffa
mov esp, ebp
pop ebp
ret 8
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.005a3020
add esp, 0xc
mov dword [ebp - 0x418], 0x104
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], 1
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x414], 0
je 0x489bc5
test esi, esi
je 0x489b10
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489b90
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004073a0
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00589ffa
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00589ffa
mov esp, ebp
pop ebp
ret 8

Function at 0x489be0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x67b7f0], 0
mov dword [ebp - 8], 0
jne 0x489c0d
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push 0x67b7f0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ecx, dword [ebp + 8]
push 0x67b7f0
call fcn.00406470
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x489c30
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x67b9f0], 0
mov dword [ebp - 8], 0
jne 0x489c5f
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push 0x67b9f0
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
mov ecx, dword [ebp + 8]
push 0x67b9f0
call fcn.00406470
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x489c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x489cf1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x489cbf
cmp eax, 2
jne 0x489cdb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x489ceb
test ecx, ecx
je 0x489ce6
test cl, 1
jne 0x489cdb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x489ceb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x489d90
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7d9f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 8
push esi
push edi
mov eax, dword [0x6609c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 1
lea ecx, [edi + 0x28]
push edi
mov dword [edi], vtable.CKDUpdateMgr.1.0
mov dword [edi + 4], vtable.CKDUpdateMgr.0
call fcn.0048b1b0
mov byte [ebp - 4], 2
lea esi, [edi + 0x30]
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00421e60
mov dword [esi], eax
lea eax, [edi + 0x38]
mov byte [ebp - 4], 3
xorps xmm0, xmm0
push 0
movups xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x489e6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x489e66
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x489e6e
push eax
call fcn.00402440
mov byte [ebp - 4], 4
call fcn.00402b70
mov ecx, eax
test ecx, ecx
jne 0x489e87
push 0x80004005
call fcn.00402440
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x54], eax
mov byte [ebp - 4], 5
lea eax, [edi + 0x24]
push dword [ebp - 0x18]
push eax
push 0x661a70
call fcn.0040e7a0
add esp, 0xc
movzx eax, ax
lea ecx, [edi + 4]
push 0
push eax
push 0
push 0
push 0x56000000
push 0
push 0
push 0xfffffffffffffffd
call fcn.0040e6f0
mov eax, dword [edi + 0x2c]
mov dword [edi + 0x50], 0
mov dword [edi + 0x58], 0
mov dword [eax + 0x38], 0x48abd0
mov dword [eax + 0x3c], 0
mov eax, dword [edi + 0x2c]
mov dword [eax + 0x30], 0x48aab0
mov dword [eax + 0x34], 0
mov eax, edi
mov dword [edi + 0x5c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x48a3f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7e70
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6609c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [edi + 0x50]
mov dword [edi + 0x58], ebx
test eax, eax
je 0x48a57e
mov eax, dword [eax + 8]
cmp dword [eax - 0xc], ebx
je 0x48a57e
push 0x62f864
push str.start
push str.update
call fcn.0046c9a0
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0047c360
mov dword [ebp - 4], ebx
lea esi, [edi + 0x54]
mov ecx, dword [edi + 0x50]
push dword [ecx + 0x18]
push dword [eax]
push str._skdSetup__s.exe
push esi
call fcn.004082f0
mov dword [ebp - 4], 0xffffffff
add esp, 0x10
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48a496
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48a4c5
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.00480250
mov edx, dword [edi + 0x50]
mov ecx, eax
add edx, 0xc
mov ebx, 1
call fcn.0040d5e0
mov byte [ebp - 0xd], bl
test al, al
jne 0x48a4c9
mov byte [ebp - 0xd], 0
test bl, 1
je 0x48a4e9
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48a4e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
push ecx
mov esi, esp
je 0x48a522
mov dword [ebp - 0x14], esi
mov ecx, dword [edi + 0x54]
sub ecx, 0x10
call fcn.004072d0
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.0048a7d0
xor eax, eax
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
mov ecx, dword [edi + 0x54]
sub ecx, 0x10
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x1c], esi
call fcn.004072d0
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
mov ecx, dword [edi + 0x50]
add ecx, 8
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esi
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.004072d0
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
call fcn.0048a5b0
xor eax, eax
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
cmp dword [edi + 0x5c], ebx
je 0x48a58b
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, 0x80004005
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
Function at 0x48a7d0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7f10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6609c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
jne 0x48a827
cmp dword [esi + 0x5c], eax
je 0x48a81d
push eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ebx, 0x80004005
jmp 0x48a8ac
mov ecx, esi
call fcn.0048b030
call fcn.00402b70
mov ecx, eax
test ecx, ecx
jne 0x48a843
push 0x80004005
call fcn.00402440
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
cmp dword [esi + 0x58], 0
je 0x48a864
push 8
push str._S__R__U
jmp 0x48a86b
push 5
push str._S__U
call fcn.004073a0
mov esi, dword [ebp - 0x10]
push 1
push 0
push esi
push dword [ebp + 8]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor ebx, ebx
add esi, 0xfffffff0
mov byte [ebp - 4], bl
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48a8ac
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x48a8cb
mov ecx, dword [eax]
push eax
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 esp, ebp
pop ebp
ret 4