joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ec50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
mov dword [ebx], 0
cmp word [esi], 0x2a
jne 0x46ecd4
push 5
lea eax, [esi + 2]
push str.FILE:
push eax
call fcn.004ba048
add esp, 0xc
test eax, eax
jne 0x46ecd4
push 0x10
push eax
lea eax, [esi + 0xc]
push eax
call fcn.004b818f
add esp, 0xc
cmp eax, 0xffffffff
je 0x46ecd4
push 0
lea edx, [ebp - 0x48]
mov dword [ebp - 8], 0x10002
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
call fcn.0046e9e0
or ecx, 0xffffffff
add esp, 4
test eax, eax
cmove ecx, dword [ebp - 0x48]
mov dword [ebx], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
mov eax, dword [0x523994]
xor edi, edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46ecf8
push edi
mov ecx, eax
call dword [0x4e933c]
call dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x46ed0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, dword [0x523994]
test esi, esi
je 0x46ed25
push dword [ebp - 0x10]
mov ecx, esi
call dword [0x4e933c]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a057b
mov esp, ebp
pop ebp
ret

Function at 0x46ed40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.004a1180
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x523994]
push edi
xor edi, edi
mov dword [ebp - 0x10008], ecx
lea ebx, [edi + 1]
test esi, esi
je 0x46ed7c
push edi
mov ecx, esi
call dword [0x4e933c]
call esi
mov ebx, eax
lea eax, [ebp - 0x10004]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x46ed9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x46edc7
lea edx, [ebp - 0x10004]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46eda5
mov ecx, dword [ebp - 0x10008]
lea eax, [ebp - 0x10004]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.0040a190
mov esi, dword [0x523994]
test esi, esi
je 0x46eddc
push ebx
mov ecx, esi
call dword [0x4e933c]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a057b
mov esp, ebp
pop ebp
ret
Function at 0x46f760
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov ebx, ecx
mov edi, edx
mov dword [ebp - 0x210], edi
test ebx, ebx
je 0x46f8a8
cmp word [ebx], 0
je 0x46f8a8
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x46f88f
cmp esi, 0x104
jae 0x46f7d9
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0040a190
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004aceb0
mov edi, eax
add esp, 4
test edi, edi
je 0x46f877
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x46f853
cmp eax, esi
jae 0x46f832
mov ecx, dword [ebp - 0x210]
push esi
push edi
call fcn.0040a190
push edi
call fcn.004acec0
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
push edi
mov esi, 0x7a
call fcn.004acec0
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call fcn.004acec0
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
mov esi, 8
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
pop edi
xor ecx, ebp
pop ebx
call fcn.004a057b
mov esp, ebp
pop ebp
ret
Function at 0x476940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov ecx, 0x521314
push 0
call fcn.004a1b3f
mov edi, eax
mov esi, 1
test edi, edi
je 0x476a87
mov ebx, dword [ebp + 8]
mov eax, ebx
shr eax, 4
mov dword [ebp - 8], eax
inc eax
movzx eax, ax
mov dword [ebp - 4], eax
nop dword [eax]
push 0
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x4769a1
push ebx
mov edx, eax
mov ecx, edi
call fcn.00476bd0
add esp, 4
test eax, eax
jne 0x4769bc
push esi
mov ecx, 0x521314
inc esi
call fcn.004a1b3f
mov edi, eax
test edi, edi
je 0x476a87
mov eax, dword [ebp - 4]
jmp 0x476980
test edi, edi
je 0x476a87
mov eax, dword [ebp - 8]
inc eax
push 6
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x476a87
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x476a87
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x476a87
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and ebx, 0xf
jbe 0x476a25
cmp esi, ecx
jae 0x476a87
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ebx, 1
jne 0x476a13
cmp esi, ecx
jae 0x476a87
cmp word [esi], 0
je 0x476a87
mov ebx, dword [ebp - 0xc]
mov ecx, 1
movzx edi, word [esi]
mov eax, dword [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x476a50
push edi
mov ecx, ebx
call fcn.00476310
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.004bac4a
push eax
call fcn.00476c40
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x476a92
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00426330
int3

Function at 0x476bd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x476c2b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x476c2b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x476c18
cmp esi, edx
jae 0x476c2b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x476c06
cmp esi, edx
jae 0x476c2b
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x478710
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [0x523a74], esi
jne 0x47874d
sub esp, 8
lea ecx, [esi + 1]
call fcn.004784c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x478824
or dword [0x523a70], 2
mov eax, dword [0x523a74]
test eax, eax
je 0x47875d
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x523a64]
mov ecx, eax
inc eax
mov dword [0x523a64], eax
test ecx, ecx
jne 0x478812
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004b9ef8
add esp, 4
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push 0x104
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ax, word [ebp - 0x210]
xor ecx, ecx
cmp cx, ax
je 0x4787b9
mov ecx, 0x25
cmp cx, ax
jne 0x4787dd
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x210]
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, 4
call fcn.00468750
mov esi, eax
test esi, esi
jne 0x47880d
or dword [0x523a70], 1
mov cl, 1
call fcn.004770f0
mov esi, eax
test esi, esi
jne 0x47880d
call fcn.00477990
call fcn.00478360
jmp 0x478812
call fcn.00478840
mov eax, dword [0x523a74]
test eax, eax
je 0x478822
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a057b
mov esp, ebp
pop ebp
ret
Function at 0x47f540
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, edx
mov dword [ebp - 0x210], eax
test esi, esi
je 0x47f6d2
test eax, eax
je 0x47f6d2
push ebx
push 4
push 0x505370
push esi
call fcn.004b18e1
add esp, 0xc
test eax, eax
je 0x47f5d6
push 4
push 0x504620
push esi
call fcn.004b18e1
add esp, 0xc
test eax, eax
je 0x47f5d6
mov eax, 0x3a
cmp ax, word [esi + 2]
jne 0x47f605
mov eax, 0x5c
cmp ax, word [esi + 4]
jne 0x47f605
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004b3125
add esp, 0xc
lea ebx, [ebp - 0x208]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
jmp 0x47f625
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004b3125
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x204]
push 0x5c
push eax
call fcn.004a3968
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x47f61f
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x204]
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
push edi
push dword [ebp - 0x210]
mov word [ebx], cx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x47f693
cmp eax, edi
jae 0x47f693
mov ecx, dword [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47f650
sub ecx, edx
sar ecx, 1
je 0x47f693
lea eax, [ebp - 0x20c]
sub ebx, eax
sar ebx, 1
lea esi, [esi + ebx*2]
mov edx, esi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x47f673
sub edx, ebx
sar edx, 1
lea eax, [edx + 1]
add eax, ecx
cmp eax, edi
jbe 0x47f6a6
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
sub edi, ecx
push edi
push esi
lea eax, [eax + ecx*2]
push eax
call fcn.004b3125
add esp, 0xc
mov eax, 1
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004a057b
mov esp, ebp
pop ebp
ret
Function at 0x483710
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x483718
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48372b
test al, 0x10
jne 0x48372b
mov al, 1
ret
xor al, al
ret

Function at 0x483730
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x483738
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48374b
test al, 0x10
je 0x48374b
mov al, 1
ret
xor al, al
ret

Function at 0x483b10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
push esi
mov esi, ecx
mov dword [esp + 4], edx
push edi
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x483b2b
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x483c4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x483b77
cmp dword [esi + 0x14], 8
jb 0x483b50
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x483b64
test al, 0x10
jne 0x483c4f
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x483b6f
xor eax, eax
nop
mov edi, dword [esi + 0x14]
mov ecx, esi
cmp edi, 8
jb 0x483b8c
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
inc eax
push 2
push 0x505fb4
push eax
call fcn.0040e040
add esp, 0xc
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x483c08
inc eax
mov dword [esp + 0x20], 0
cmp dword [esi + 0x10], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
mov ecx, esi
cmovb eax, dword [esi + 0x10]
mov dword [esp + 0x24], 0
cmp edi, 8
jb 0x483bd2
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0040a4a0
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
push dword [esp + 8]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x10]
call fcn.0040a590
mov eax, dword [esp + 0xc]
jmp 0x483b80
mov eax, esi
cmp edi, 8
jb 0x483c11
mov eax, dword [esi]
push dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x483c4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x483c30
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x483c40
test al, 0x10
jne 0x483c4f
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x484290
Capabilities:
Query environment variable

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 0x4e6440
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x98
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
xorps xmm0, xmm0
mov dword [ebp - 0x50], esi
push 0x108
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
call fcn.0040a410
mov edx, eax
mov dword [ebp - 0x24], 0x104
xor eax, eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x20], 0x107
mov ecx, 0x82
mov edi, edx
rep stosd dword es:[edi], eax
mov word [edx + 0x208], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
push dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x34]
push eax
push str._TMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, eax
test ecx, ecx
je 0x4845dd
mov eax, dword [ebp - 0x24]
cmp ecx, eax
ja 0x4845dd
dec ecx
cmp ecx, eax
ja 0x484379
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], ecx
cmovae eax, dword [ebp - 0x34]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x484386
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040c260
lea eax, [ebp - 0x34]
push eax
call fcn.00484630
xorps xmm0, xmm0
lea ecx, [ebp - 0x34]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
xor eax, eax
movups xmm0, xmmword [ebp - 0x34]
mov dword [esi + 0x14], 0
mov word [ebp - 0x34], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
call fcn.0040a590
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Unable_to_expand__TMP__environment_variable_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0048def0
push 0x518f50
lea eax, [ebp - 0x6c]
push eax
call fcn.004a2f8b
push str.Unable_to_expand__TEMP__environment_variable_
push 0x5060d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x80]
call fcn.00413770
push 0x518f50
lea eax, [ebp - 0x80]
push eax
call fcn.004a2f8b
int3
Function at 0x4846f0
Capabilities:
Check if file exists
Get file attributes

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 0x4e64a7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
push esi
push edi
mov eax, dword [0x51c100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x24], 0
movups xmmword [esi], xmm0
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x14], ecx
mov word [esi], ax
lea edi, [eax + 1]
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x48477d
mov eax, dword [ecx]
mov dword [ebp - 0x28], eax
call fcn.0048b080
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov eax, ecx
mov dword [ebp - 0x4c], edx
cmp dword [ecx + 0x14], 8
jb 0x484798
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x4847a8
mov eax, dword [ecx]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 4], 1
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 7
push eax
lea eax, [ebp - 0x50]
or edi, 2
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x24], edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00485da0
lea eax, [ebp - 0x44]
add esp, 0x10
cmp esi, eax
je 0x484821
mov ecx, esi
call fcn.0040a590
movups xmm0, xmmword [ebp - 0x44]
xor eax, eax
mov word [ebp - 0x44], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
and edi, 0xfffffffd
call fcn.0040a590
cmp dword [esi + 0x10], 0
mov eax, esi
je 0x48487a
cmp dword [esi + 0x14], 8
jb 0x484840
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x484857
mov ecx, dword [ebp - 0x14]
test al, 0x10
je 0x484773
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x484861
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x484878
mov ecx, dword [ebp - 0x14]
test al, 0x10
jne 0x484773
mov eax, esi
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 0x484890
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov bh, 1
mov esi, edx
push edi
mov edi, ecx
mov bl, bh
nop dword [eax + eax]
test bl, bl
je 0x4848e0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4848ae
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov bl, 1
cmp eax, 0xffffffff
je 0x4848e0
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4848d3
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
sete bl
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4848ea
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4848f4
mov eax, dword [edi]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x484933
add bh, 0xff
je 0x48492d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x48491c
cmp eax, 0x20
mov eax, 0x14
jne 0x484921
mov eax, 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4848a0
pop edi
pop esi
xor al, al
pop ebx
ret
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48493d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x484966
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 8
jb 0x48495e
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
mov al, 1
pop ebx
ret

Function at 0x484ba0
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebx
push esi
mov bh, 1
mov esi, edx
push edi
mov edi, ecx
mov bl, bh
nop dword [eax + eax]
test bl, bl
je 0x484bf0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x484bbe
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov bl, 1
cmp eax, 0xffffffff
je 0x484bf0
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x484be3
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
sete bl
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x484bfa
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x484c04
mov eax, dword [edi]
push 0xb
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x484c43
add bh, 0xff
je 0x484c3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x484c2c
cmp eax, 0x20
mov eax, 0x14
jne 0x484c31
mov eax, 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x484bb0
pop edi
pop esi
xor al, al
pop ebx
ret
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x484c4d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x484c76
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 8
jb 0x484c6e
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
mov al, 1
pop ebx
ret