joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c580
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x516d95
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x91c
push esi
push edi
mov esi, dword [esp + 0x938]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x126]
mov word [esp + 0x124], 0
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x563070]
test esi, esi
je 0x45c66c
test eax, eax
jne 0x45c62b
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x14]
mov dword [0x563070], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], 2
jne 0x45c61f
cmp dword [esp + 0x14], 5
jb 0x45c61f
mov ecx, dword [str.GlobalOCULAR_]
mov dword [0x563074], ecx
jmp 0x45c62b
mov edx, dword [0x54c930]
mov dword [0x563074], edx
mov eax, dword [esp + 0x93c]
test eax, eax
mov eax, dword [0x54c930]
jne 0x45c640
mov eax, dword [0x563074]
mov ecx, dword [esp + 0x944]
mov edx, dword [esp + 0x940]
push ecx
push edx
push esi
push eax
lea eax, [esp + 0x134]
push str._s__s__08x__08x
push eax
call fcn.00421140
add esp, 0x18
jmp 0x45c6fb
test eax, eax
jne 0x45c6c0
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x14]
mov dword [0x563070], 1
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], 2
jne 0x45c6b6
cmp dword [esp + 0x14], 5
jb 0x45c6b6
mov edx, dword [str.GlobalOCULAR_]
mov dword [0x563074], edx
jmp 0x45c6c0
mov eax, dword [0x54c930]
mov dword [0x563074], eax
mov eax, dword [esp + 0x93c]
test eax, eax
mov eax, dword [0x54c930]
jne 0x45c6d5
mov eax, dword [0x563074]
mov ecx, dword [esp + 0x944]
mov edx, dword [esp + 0x940]
push ecx
push edx
push eax
lea eax, [esp + 0x130]
push str._s___08x__08x
push eax
call fcn.00421140
add esp, 0x14
lea ecx, [esp + 0x124]
push ecx
lea ecx, [esp + 0xc]
call fcn.004ff17f
mov esi, dword [esp + 0x934]
lea edx, [esp + 8]
push edx
mov ecx, esi
mov dword [esp + 0x930], 1
call fcn.004fee78
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x92c], 0
call fcn.004ff10b
mov ecx, dword [esp + 0x924]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x928
ret
Function at 0x4623e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xc], ebx
jl 0x462465
cmp dword [esi + 0x14], ebx
je 0x46243f
mov ecx, dword [esi + 0x18]
xor eax, eax
mov dword [esp + 9], eax
push edi
mov edi, dword [sym.imp.WSOCK32.dll_htonl]
mov word [esp + 0x11], ax
push ecx
mov byte [esp + 0x10], bl
mov byte [esp + 0x17], al
call edi
push ebx
mov dword [esp + 0x10], eax
call edi
lea edx, [esp + 0xc]
push 8
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
push edx
push 0xd
push ebx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
pop edi
jge 0x46243f
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esi + 0xc]
push 1
push ecx
call dword [sym.imp.WSOCK32.dll_shutdown]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x4679d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov esi, 0x8000
push edi
cmp eax, esi
mov dword [esp + 0x14], esi
jbe 0x4679ee
mov dword [esp + 0x14], eax
mov esi, eax
push esi
call fcn.004fed42
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
mov ebp, dword [esp + 0x24]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], ebx
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jne 0x467a2d
xor ebx, ebx
jmp 0x467a4a
lea eax, [esp + 0x24]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x467a46
or ebx, 0xffffffff
jmp 0x467a4a
mov ebx, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x467a9d
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push 0
push ecx
push eax
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x467a82
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x467a99
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004fed6b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x2c]
cmp ebx, esi
jae 0x467ac2
test ebx, ebx
je 0x467b96
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push 0
push edx
push ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x467b96
lea ecx, [ebx + edi]
add edi, eax
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edi
call fcn.004fed42
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x24], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x467af6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jg 0x467b35
push 0
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
je 0x467b35
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push 0
push eax
push esi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x467b2f
or esi, 0xffffffff
jmp 0x467b37
mov esi, dword [esp + 0x28]
jmp 0x467b37
xor esi, esi
mov edx, dword [esp + 0x2c]
push 0
push 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebx, ebx
je 0x467b5f
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
add edx, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
add edi, esi
mov dword [esp + 0x10], edx
test esi, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov ebx, esi
jg 0x467af2
push eax
call fcn.004fed6b
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.004fed6b
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x467bb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
jne 0x467bd3
or ebx, eax
jmp 0x467bd5
mov ebx, eax
push 2
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
je 0x467bef
mov dword [esp + 0x1c], eax
push 0
push ebx
push esi
call fcn.00467ef0
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub eax, ebp
sub ecx, ebp
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x467c17
mov dword [esp + 0x20], eax
push 0x8000
call fcn.004fed42
mov ebx, eax
add esp, 4
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push 0
push 0
lea ecx, [eax + ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x24]
push 0
push edx
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x467c61
or eax, 0xffffffff
jmp 0x467c9d
mov edi, dword [esp + 0x24]
mov eax, edi
test edi, edi
mov dword [esp + 0x14], eax
jle 0x467c9d
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x467c99
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x467ca8
cmp dword [esp + 0x10], edi
jne 0x467ca8
mov eax, dword [esp + 0x14]
add ebp, eax
cmp eax, 0x8000
jne 0x467cbb
jmp 0x467c31
push ebx
call fcn.004fed6b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
sub eax, ecx
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call fcn.004fed6b
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x467cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x517a5b
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
mov ebx, dword [esp + 0x134]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
je 0x467e94
push ebx
call fcn.00421123
add esp, 4
test eax, eax
je 0x467e94
push ebx
lea ecx, [esp + 0x18]
call fcn.004ff17f
mov esi, dword [esp + 0x144]
mov dword [esp + 0x138], ebp
cmp esi, ebp
je 0x467d61
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x467e80
neg esi
sbb esi, esi
mov dword [esp + 0x18], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
and esi, 0xc0000000
add esi, 0xc0000000
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x467e34
mov eax, dword [esp + 0x18]
test eax, eax
je 0x467d97
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x54ca58]
cmp eax, 0xffffffff
jne 0x467dd2
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x114
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, 2
sete al
mov dword [0x54ca58], eax
test eax, eax
je 0x467deb
push 0
push 0x80
push 4
push 0
push 1
push esi
push ebx
call ebp
mov edi, eax
jmp 0x467e19
push ebx
lea ecx, [esp + 0x14]
call fcn.00433db0
mov edx, dword [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 1
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.004345c0
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 3
mov dword [esp + 0x18], eax
jl 0x467d7e
cmp edi, 0xffffffff
je 0x467eca
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push edi
call esi
cmp eax, 0xffffffff
jne 0x467e4c
or ebp, eax
jmp 0x467e4e
mov ebp, eax
push 2
push 0
push 0
push edi
call esi
cmp eax, 0xffffffff
jne 0x467e60
or ebx, eax
jmp 0x467e62
mov ebx, eax
push 0
push 0
push ebp
push edi
call esi
test ebx, ebx
jne 0x467eca
mov eax, dword [esp + 0x144]
test eax, eax
je 0x467eb0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call fcn.004ff10b
or eax, 0xffffffff
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
lea eax, [esp + 0x10]
push 2
push eax
push 0
push edi
mov dword [esp + 0x20], 0xfeff
call fcn.004679d0
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call fcn.004ff10b
mov eax, edi
jmp 0x467e97
Function at 0x468110
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x56333c]
test eax, eax
jne 0x4681fc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x5630d8
mov dword [0x56333c], 1
mov dword [0x5630d8], 0x114
call esi
mov edx, dword [0x5630e8]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x54ca60], eax
je 0x4681de
push edi
push 0x5631f0
mov dword [0x5631f0], 0x11c
call esi
push 0x547ff8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x563334], eax
call edi
mov dword [0x563338], eax
mov eax, dword [0x563334]
pop edi
test eax, eax
push 0x563310
je 0x4681ac
call eax
jmp 0x4681b2
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x5631f4]
cmp eax, 6
jae 0x4681ca
cmp eax, 5
jne 0x4681de
cmp dword [0x5631f8], 2
jb 0x4681de
cmp word [0x563310], 9
jne 0x4681de
mov dword [0x5630cc], 1
push 0x5630e0
push 0x5630dc
call fcn.00468530
add esp, 8
call fcn.00468210
mov eax, 1
pop esi
ret
mov eax, 1
ret

Function at 0x469230
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f890
push 0x420c54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x563340]
xor ebx, ebx
cmp eax, ebx
jne 0x469390
mov word [ebp - 0x220], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x46938b
mov word [ebp - 0x42c], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.user32.dll
lea ecx, [ebp - 0x220]
push ecx
push 0x5457c0
lea edx, [ebp - 0x42c]
push edx
call fcn.00421140
add esp, 0x10
mov dword [ebp - 0x434], ebx
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x224], eax
push eax
call fcn.004fed42
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x46938b
push esi
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x469382
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x54da68
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x469382
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x563340], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x469382
push esi
call fcn.004fed6b
add esp, 4
mov eax, dword [0x563340]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ba30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x46baf0
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.0042122a
add esp, 8
test eax, eax
je 0x46ba7f
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x46bae9
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x46bae9
lea edx, [esp + 0xc]
test edx, edx
je 0x46bae9
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x46bac6
push eax
lea eax, [esp + 0x10]
push eax
push 0x5457c0
push ebx
push edi
call fcn.004212c7
add esp, 0x14
xor esi, esi
jmp 0x46baf8
lea ecx, [esp + 0xc]
push ecx
call fcn.00421123
add esp, 4
cmp ebx, eax
jbe 0x46baf8
lea edx, [esp + 0xc]
push edx
push edi
call fcn.004210fe
add esp, 8
xor esi, esi
jmp 0x46baf8
mov esi, 0x57
jmp 0x46baf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x5633b4], esi
je 0x46bb09
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret

Function at 0x46bf50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x46bff4
mov edi, dword [esp + 0x218]
test edi, edi
je 0x46bfed
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x46bfed
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x46bfed
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x46bfca
lea edx, [esp + 0xc]
push eax
push edx
push 0x5457c0
push ebx
push edi
call fcn.004212c7
add esp, 0x14
xor esi, esi
jmp 0x46bffc
lea eax, [esp + 0xc]
push eax
call fcn.00421123
add esp, 4
cmp ebx, eax
jbe 0x46bffc
lea ecx, [esp + 0xc]
push ecx
push edi
call fcn.004210fe
add esp, 8
xor esi, esi
jmp 0x46bffc
mov esi, 0x57
jmp 0x46bffc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x5633b4], esi
je 0x46c00d
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret
Function at 0x473e20
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
test ebx, ebx
jne 0x473e3c
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.0042cf20
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.0042cc20
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x473ec0
cmp byte [esp + 0x10], 0x5c
jne 0x473ec0
cmp byte [esp + 0x11], 0x5c
jne 0x473ec0
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.0042cc20
add esp, 8
test eax, eax
je 0x473f3e
inc eax
push 0x5c
push eax
call fcn.0042cc20
add esp, 8
mov esi, eax
test esi, esi
je 0x473f3e
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x473f02
test bl, 1
je 0x473ef1
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x473f74
cmp ebx, 0xffffffff
je 0x473f0b
test edi, edi
jne 0x473f1a
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x473f74
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.0042cc20
mov esi, eax
add esp, 8
test esi, esi
jne 0x473ec4
test ebp, ebp
je 0x473f74
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x473f69
test al, 0x10
jne 0x473f74
test al, 1
je 0x473f5c
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x473f74
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x473f90
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x473fac
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call fcn.004219e5
mov edi, 0x5c
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00421fe5
lea edx, [esp + 0x24]
mov esi, eax
push edx
call fcn.00421123
add esp, 0x18
cmp eax, 2
jbe 0x474031
cmp word [esp + 0x10], di
jne 0x474031
cmp word [esp + 0x12], di
jne 0x474031
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00421fe5
add esp, 8
test eax, eax
je 0x4740b9
add eax, 2
push edi
push eax
call fcn.00421fe5
add esp, 8
mov esi, eax
test esi, esi
je 0x4740b9
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x474079
test bl, 1
je 0x474068
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x4740ef
cmp ebx, 0xffffffff
je 0x474082
test edi, edi
jne 0x474091
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x4740ef
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call fcn.00421fe5
mov esi, eax
add esp, 8
test esi, esi
jne 0x474039
test ebp, ebp
je 0x4740ef
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4740e4
test al, 0x10
jne 0x4740ef
test al, 1
je 0x4740d7
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x4740ef
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x477b00
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x518318
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x477b32
call fcn.004ae5c0
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x477b43
mov ecx, SysReAllocStringLen
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x477b98
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x477b7e
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x477cc4
cmp dword [esp + 0x18], ebx
jne 0x477b98
cmp dword [esp + 0x14], ebx
je 0x477cc4
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x477ba9
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.004fee78
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x477bef
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x477bef
call fcn.00468780
test eax, eax
je 0x477bef
push 0x546420
lea ecx, [esp + 0x14]
call fcn.004ff2a2
push ebx
lea ecx, [esp + 0x14]
call fcn.004ff538
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
je 0x477c9e
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x477c2b
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x477c9e
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x477c79
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x477c7c
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x477c74
mov dword [esi + 0x10], ebx
jmp 0x477c7c
mov dword [esi + 0x10], ecx
jmp 0x477c7c
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.004ff10b
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.004ff10b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret