joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410260
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57fb16
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x6039b0]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x41030c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x41030c
call fcn.0040e720
mov esi, eax
jmp 0x4103fc
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41032f
call fcn.0040e720
jmp 0x4103ef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x41034d
call fcn.0040e720
jmp 0x4103ef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x41036e
mov esi, 0x8007000e
jmp 0x4103f1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040e6d0
jmp 0x410398
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x4103af
mov esi, 0x8007000e
jmp 0x4103f1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4103cf
call fcn.0040e720
jmp 0x4103ef
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00410100
mov esi, eax
test edi, edi
je 0x4103fc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x410420
lea ecx, [ebp - 0x418]
call fcn.0040e680
nop word [eax + eax]
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 - 0x14]
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4121b0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x210]
push edi
push ecx
push 1
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x210], 0
push eax
mov dword [ebp - 0x214], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412270
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00553bc0
add esp, 0xc
mov dword [ebp - 0x214], 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
jmp 0x412272
xor edi, edi
mov edx, dword [ebp + 0xc]
push esi
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412290
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4122aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
pop esi
jg 0x4122c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0055042c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413020
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ff90
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6039b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp + 8]
push str..temp
mov edx, edi
call fcn.0040b270
add esp, 4
mov dword [ebp - 4], 0
push 0x5c
push dword [edi]
call fcn.005537c7
add esp, 8
or ebx, 0xffffffff
test eax, eax
je 0x413145
sub eax, dword [edi]
sar eax, 1
test eax, eax
jle 0x413145
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004131d0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x14]
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
push esi
call fcn.0041a710
add esp, 4
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x4130d8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
jmp 0x413128
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov edi, eax
push edi
mov dword [ebp - 0x18], 0
call fcn.00413180
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
jne 0x413128
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x413147
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x413147
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x413166
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 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 8
Function at 0x414350
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 4]
cmp dword [eax + 0x10], 0
je 0x414378
call fcn.004144a0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414397
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 4]
push esi
call fcn.00414f00
test eax, eax
je 0x414383
push esi
lea eax, [ebp - 0x210]
push 0x5e2b08
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
test esi, esi
je 0x4143fc
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4143fc
lea eax, [ebp - 0x228]
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414475
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x210]
call fcn.00414720
test eax, eax
je 0x414475
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x21c]
jne 0x414475
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp - 0x220]
jne 0x414475
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp - 0x22c]
jne 0x414475
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x230]
jne 0x414475
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x210]
push eax
call fcn.004150f0
test al, al
jne 0x414485
mov eax, dword [edi + 4]
mov ecx, edi
push dword [eax + 0xc]
push dword [eax + 0x10]
call fcn.00414530
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0055042c
mov esp, ebp
pop ebp
ret 8

Function at 0x414f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x414f24
cmp dword [esi + 4], 0
je 0x414f1d
push eax
call fcn.00556b67
add esp, 4
mov dword [esi + 0x10], 0
push 0x5e2ae4
push dword [ebp + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
call fcn.0055eed9
mov edi, eax
add esp, 8
test edi, edi
jne 0x414f4e
pop edi
pop esi
pop ebp
ret 4
push ebx
push 2
push 0
push edi
call fcn.0055f223
push edi
call fcn.0055f81c
push 0
push 0
push edi
mov ebx, eax
call fcn.0055f223
add esp, 0x1c
test ebx, ebx
jle 0x414f8e
push ebx
mov ecx, esi
call fcn.00414fb0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x414f8e
push edi
push 1
push ebx
push eax
call fcn.0055f9f3
add esp, 0x10
push edi
call fcn.0055fb9a
add esp, 4
xor eax, eax
cmp dword [esi + 0x10], eax
setne al
pop ebx
pop edi
pop esi
pop ebp
ret 4
Function at 0x4150f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580196
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6039b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebx]
push dword [eax + 4]
call fcn.004154f0
mov eax, dword [ebx]
mov dword [eax + 4], eax
mov eax, dword [ebx]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 8], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 4], 0
test eax, eax
je 0x4151b0
push 0x5e2ae4
push eax
call fcn.0055eed9
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je 0x4151b0
push edi
call fcn.00564870
add esp, 4
push eax
call fcn.00564865
add esp, 4
mov esi, eax
lea eax, [ebp - 0x24]
push edi
push 1
push 8
push eax
call fcn.0055f9f3
add esp, 0x10
mov byte [ebp + 0xb], 0
cmp dword [ebp - 0x24], 0x78646972
jne 0x41523f
cmp dword [ebp - 0x20], 0x8000
jb 0x4151c6
push edi
call fcn.0055fb9a
add esp, 4
xor al, al
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
add esi, 0xfffffff8
push esi
call fcn.0055ed12
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x41523f
push edi
push 1
push esi
push ebx
call fcn.0055f9f3
lea edx, [ebx + esi]
mov ecx, ebx
xor ebx, ebx
mov dword [ebp + 8], edx
add esp, 0x10
cmp dword [ebp - 0x20], ebx
jle 0x41522d
mov edi, dword [ebp - 0x14]
nop word [eax + eax]
mov esi, dword [ecx + 0xc]
add esi, 0x12
add esi, ecx
cmp esi, edx
ja 0x41522a
push dword [ecx + 8]
lea eax, [ecx + 0x10]
push dword [ecx + 4]
push dword [ecx]
mov ecx, edi
push eax
call fcn.00415010
mov edx, dword [ebp + 8]
inc ebx
mov ecx, esi
cmp ebx, dword [ebp - 0x20]
jl 0x415200
mov edi, dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.00556b67
add esp, 4
cmp ebx, dword [ebp - 0x20]
sete byte [ebp + 0xb]
push edi
call fcn.0055fb9a
mov al, byte [ebp + 0xb]
add esp, 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
Function at 0x41a4a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
jne 0x41a4d0
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret 0x14
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.00553bc0
push esi
lea eax, [ebp - 0x80c]
push 0x5dfb38
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x40
lea eax, [ebp - 0x860]
push 0
push eax
call fcn.00553bc0
add esp, 0x24
mov dword [ebp - 0x864], 0x44
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x838], 1
xorps xmm0, xmm0
mov edi, 1
movups xmmword [ebp - 0x81c], xmm0
push eax
lea eax, [ebp - 0x864]
mov word [ebp - 0x834], di
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x80c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41a4bc
push dword [ebp - 0x81c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x818]
call esi
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0055042c
mov esp, ebp
pop ebp
ret 0x14

Function at 0x41a590
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x41a63c
mov eax, dword [0x5e76c4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x22], xmm0
push 0x38
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x5c]
movq qword [ebp - 0x12], xmm0
movq xmm0, qword [0x5e76bc]
push 0
push eax
mov dword [ebp - 0xa], 0
mov word [ebp - 6], 0
movq qword [ebp - 0x24], xmm0
call fcn.00553bc0
add esp, 0xc
mov dword [ebp - 0x60], 0x3c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x4c], 0
push eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x5c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41a63c
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0055042c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41a650
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
mov eax, edx
push 3
push SysReAllocStringLen
push ecx
mov dword [eax], 0
mov dword [ebp - 4], eax
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41a6c3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
test eax, eax
je 0x41a6ff
cmp eax, 0xffffffff
je 0x41a6ff
add eax, 8
push 0x608cd8
push eax
call fcn.005509c7
mov ebx, dword [ebp - 4]
mov ecx, eax
add esp, 8
mov dword [ebx], ecx
test ecx, ecx
jne 0x41a6cc
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
add eax, 8
push eax
push 0
push ecx
call fcn.00553bc0
add esp, 0xc
mov dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push dword [edi]
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp ecx, dword [edi]
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41adf0
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 0x580daf
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 8
push esi
push edi
mov eax, dword [0x6039b0]
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.0041c240
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.00411b70
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 0x41aece
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41aec6
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x41aece
push eax
call fcn.00402a80
mov byte [ebp - 4], 4
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x41aee7
push 0x80004005
call fcn.00402a80
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 0x6047f0
call fcn.004072f0
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.00407170
mov eax, dword [edi + 0x2c]
mov dword [edi + 0x50], 0
mov dword [edi + 0x58], 0
mov dword [eax + 0x38], 0x41bc60
mov dword [eax + 0x3c], 0
mov eax, dword [edi + 0x2c]
mov dword [eax + 0x30], 0x41bb40
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 0x41b450
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580e80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6039b0]
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 0x41b5de
mov eax, dword [eax + 8]
cmp dword [eax - 0xc], ebx
je 0x41b5de
push 0x5dfc54
push 0x5daa04
push str.update
call fcn.00435e80
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0041f890
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.004063c0
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 0x41b4f6
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 0x41b525
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.004429f0
mov edx, dword [edi + 0x50]
mov ecx, eax
add edx, 0xc
mov ebx, 1
call fcn.004161e0
mov byte [ebp - 0xd], bl
test al, al
jne 0x41b529
mov byte [ebp - 0xd], 0
test bl, 1
je 0x41b549
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b549
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 0x41b582
mov dword [ebp - 0x14], esi
mov ecx, dword [edi + 0x54]
sub ecx, 0x10
call fcn.00407a70
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.0041b830
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.00407a70
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.00407a70
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
call fcn.0041b610
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 0x41b5eb
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 0x41b830
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580c50
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6039b0]
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 0x41b887
cmp dword [esi + 0x5c], eax
je 0x41b87d
push eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ebx, 0x80004005
jmp 0x41b90c
mov ecx, esi
call fcn.0041c0c0
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x41b8a3
push 0x80004005
call fcn.00402a80
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 0x41b8c4
push 8
push str._S__R__U
jmp 0x41b8cb
push 5
push str._S__U
call fcn.00407ba0
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 0x41b90c
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 0x41b92b
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
Function at 0x41f670
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581480
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x6039b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
call fcn.004377b0
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41f6d7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test edi, edi
je 0x41f731
push edi
lea ecx, [ebp - 0x14]
call fcn.00407740
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.0043b4d0
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f71a
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], edi
dec edi
test edi, edi
jmp 0x41f759
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00407a70
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [esi], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f763
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 edi
pop esi
mov esp, ebp
pop ebp
ret