joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c990
Capabilities:
Get common file path
Get disk size

Disassembly:
sub esp, 0x418
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x414], eax
mov ecx, 0x3a
mov word [esp + 0xa], cx
mov edx, 0x5c
xor ecx, ecx
push 0x400
mov word [esp + 0x10], dx
xor eax, eax
push ecx
lea edx, [esp + 0x1a]
push edx
mov word [esp + 0x14], ax
mov word [esp + 0x1a], ax
mov word [esp + 0x1c], cx
call fcn.004d5720
add esp, 0xc
push 0x200
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov cx, word [esp + 0x10]
push 4
lea edx, [esp + 0x14]
push 0x53ef00
push edx
mov word [esp + 0x14], cx
call fcn.004db106
add esp, 0xc
test eax, eax
jne 0x46ca1a
mov ax, word [esp + 0x18]
mov word [esp + 8], ax
push 0
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x46ca5e
cmp dword [esp + 4], 0
ja 0x46ca5e
jb 0x46ca44
cmp dword [esp], 0x6400000
ja 0x46ca5e
mov eax, 1
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004d6555
add esp, 0x418
ret
mov ecx, dword [esp + 0x414]
xor ecx, esp
xor eax, eax
call fcn.004d6555
add esp, 0x418
ret

Function at 0x46ca80
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x240c
call fcn.004d7c90
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x2408], eax
mov eax, dword [esp + 0x2420]
push ebx
mov ebx, dword [esp + 0x241c]
push esi
mov esi, dword [esp + 0x2418]
push edi
mov edi, dword [esp + 0x2420]
xor ecx, ecx
push 0x1ffe
push ecx
lea edx, [esp + 0x41e]
push edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x420], cx
call fcn.004d5720
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x418]
push ecx
lea edx, [esp + 0x2430]
push edx
push ebx
push edi
push esi
mov dword [esp + 0x24], 0x2000
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x46cb1f
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2408]
xor ecx, esp
call fcn.004d6555
add esp, 0x240c
ret
push ebp
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.004d5720
push ebx
lea edx, [esp + 0x28]
push str._s4321
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2444]
mov ebp, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esp, 0x18
push eax
lea ecx, [esp + 0x41c]
push ecx
push edx
lea eax, [esp + 0x24]
push eax
push edi
push esi
call ebp
test eax, eax
je 0x46cb77
xor eax, eax
jmp 0x46cb96
mov ecx, dword [esp + 0x2434]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x242c]
push ecx
push edx
push eax
push ebx
push edi
push esi
call ebp
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x2418]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d6555
add esp, 0x240c
ret
Function at 0x46cbb0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x2408
call fcn.004d7c90
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x2404], eax
push ebx
mov ebx, dword [esp + 0x2418]
push esi
mov esi, dword [esp + 0x2414]
push edi
mov edi, dword [esp + 0x241c]
xor eax, eax
push 0x1ffe
push eax
lea ecx, [esp + 0x41a]
push ecx
mov word [esp + 0x41c], ax
call fcn.004d5720
xor edx, edx
push 0x3fe
push edx
lea eax, [esp + 0x26]
push eax
mov dword [esp + 0x24], 0x2000
mov word [esp + 0x28], dx
call fcn.004d5720
push ebx
lea ecx, [esp + 0x2c]
push str._s4321
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x414]
push eax
lea ecx, [esp + 0x242c]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x46cc70
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2404]
xor ecx, esp
call fcn.004d6555
add esp, 0x2408
ret
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x2424]
push eax
lea ecx, [esp + 0x414]
push ecx
push edx
push ebx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x46cc56
lea eax, [esp + 0x10]
push eax
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ecx, dword [esp + 0x2410]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.004d6555
add esp, 0x2408
ret
Function at 0x46d450
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x1258
call fcn.004d7c90
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x1254], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1268]
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x26e]
push ecx
mov word [esp + 0x270], ax
call fcn.004d5720
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0xa7a]
push eax
mov word [esp + 0xa7c], dx
call fcn.004d5720
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46d4b5
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x46d4da
push 0x53ef10
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea ecx, [esp + 0xa68]
push ecx
call ebp
push 0x520f7c
lea edx, [esp + 0xa68]
push edx
call edi
push 0x250
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004d5720
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xa68]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x46d64e
test ebx, ebx
je 0x46d64e
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x522388
lea eax, [esp + 0x40]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46d576
test dx, dx
je 0x46d572
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46d576
add eax, 4
add ecx, 4
test dx, dx
jne 0x46d550
xor eax, eax
jmp 0x46d57b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46d61d
mov ecx, 0x520f60
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46d5b6
test dx, dx
je 0x46d5b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46d5b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x46d590
xor eax, eax
jmp 0x46d5bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46d61d
push esi
lea eax, [esp + 0x268]
push eax
call ebp
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x268]
push edx
call edi
lea eax, [esp + 0x264]
push eax
call ebx
test al, 0x10
je 0x46d5f9
lea ecx, [esp + 0x264]
push ecx
call fcn.0046d450
add esp, 4
jmp 0x46d61d
test al, 1
je 0x46d60f
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46d544
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
jmp 0x46d650
xor eax, eax
mov ecx, dword [esp + 0x1264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d6555
add esp, 0x1258
ret
Function at 0x46d680
Capabilities:
Get common file path

Disassembly:
sub esp, 0xa84
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0xa80], eax
push esi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x28e]
push ecx
mov word [esp + 0x290], ax
call fcn.004d5720
mov eax, dword [esp + 0xa98]
lea edx, [esp + 0xa9c]
push edx
push eax
lea ecx, [esp + 0x298]
push 0x800
push ecx
call fcn.004d96cf
push 0x1ff
lea edx, [esp + 0xa5]
push 0
push edx
mov byte [esp + 0xac], 0
call fcn.004d5720
add esp, 0x28
push 0x200
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x5224dc
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x84]
push 0x5224d8
push edx
call fcn.004d9591
mov esi, eax
add esp, 8
test esi, esi
je 0x46d797
xor eax, eax
push 0x3e
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.004d5720
xor edx, edx
push 0x3e
push edx
lea eax, [esp + 0x5a]
push eax
mov word [esp + 0x5c], dx
call fcn.004d5720
add esp, 0x18
lea ecx, [esp + 0x284]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004d94b1
add esp, 4
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004d93e0
add esp, 4
push eax
push 0x5224c0
push esi
call fcn.004d9204
push esi
call fcn.004d9188
add esp, 0x18
mov ecx, dword [esp + 0xa84]
pop esi
xor ecx, esp
call fcn.004d6555
add esp, 0xa84
ret
Function at 0x46d7c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xb8c]
sub esp, 0xc0c
mov eax, dword [0x56c3c0]
xor eax, ebp
mov dword [ebp + 0xb88], eax
push ebx
push esi
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x76]
push ecx
mov word [ebp - 0x78], ax
call fcn.004d5720
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x80]
push ecx
push 0
push 0x523cb8
push SysReAllocStringLen
mov dword [ebp - 0x7c], 0x800
mov dword [ebp - 0x80], 1
call ebx
test eax, eax
je 0x46d82f
xor eax, eax
jmp 0x46d907
push str.ShellOpencommand
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x78]
push eax
call edi
inc eax
cmp eax, 0x3fffffff
jle 0x46d856
xor eax, eax
jmp 0x46d86f
lea esi, [eax + eax]
mov eax, esi
call fcn.004d6570
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x78]
push ecx
push eax
call fcn.0044a300
push eax
push 0x548560
call fcn.00468970
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp + 0x78a]
push eax
mov word [ebp + 0x788], dx
call fcn.004d5720
add esp, 0x14
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp + 0x788]
push edx
lea eax, [ebp - 0x80]
push eax
push 0
lea ecx, [ebp - 0x78]
push ecx
push SysReAllocStringLen
mov dword [ebp - 0x7c], 0x400
call ebx
test eax, eax
jne 0x46d828
lea edx, [ebp + 0x788]
push edx
call edi
inc eax
cmp eax, 0x3fffffff
jle 0x46d8d8
xor eax, eax
jmp 0x46d8f4
lea esi, [eax + eax]
mov eax, esi
call fcn.004d6570
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x788]
push ecx
push eax
call fcn.0044a300
push eax
push 0x548560
call fcn.00468970
add esp, 8
mov eax, 1
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xb88]
xor ecx, ebp
call fcn.004d6555
add ebp, 0xb8c
mov esp, ebp
pop ebp
ret

Function at 0x46e6a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall8FFD53B4_AB20_4B9C_B95B_318DAFC43E5B
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46e728
push 0x1ff
push eax
lea ecx, [esp + 0x15]
push ecx
mov byte [esp + 0x18], al
call fcn.004d5720
mov ecx, dword [esp + 0x10]
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.InstallLocation
push ecx
mov dword [esp + 0x20], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46e728
lea edx, [esp + 0xc]
push edx
lea ecx, [esi + 0xb0]
call fcn.0044d300
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.004d6555
add esp, 0x20c
ret
Function at 0x476ba0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x518f18
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x56c3c0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0044c460
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
sub eax, 0x10
push eax
mov dword [esp + 0x1c], 0
call fcn.0044c460
mov dl, byte [esp + 0x30]
add esp, 8
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0xc], eax
mov byte [esi + 8], dl
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10
Function at 0x4798e0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, ecx
xor edx, edx
cmp dword [edi + 0x3cc], edx
jle 0x479906
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
mov cl, byte [esi]
xor byte [eax], cl
inc edx
inc esi
inc eax
cmp edx, dword [edi + 0x3cc]
jl 0x4798f6
pop esi
pop edi
ret 8

Function at 0x47a3f0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], vtable.CEncryptMd5.0
call fcn.004d5720
add esp, 0xc
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret
Function at 0x47cf10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
or eax, 0xffffffff
test ecx, ecx
je 0x47cf3c
mov edx, dword [esp + 4]
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x569ef8]
dec ecx
inc edx
test ecx, ecx
jne 0x47cf20
pop esi
not eax
ret

Function at 0x47cf40
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47cf66
or eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x47cf80
Capabilities:
Get disk information

Disassembly:
push 4
call fcn.004910ff
mov ecx, dword [esp + 8]
mov dl, byte [ecx]
add esp, 4
xor ecx, ecx
push eax
mov byte [eax], dl
mov word [eax + 2], cx
call dword [sym.imp.USER32.dll_CharUpperW]
mov edx, 0xffbf
add word [eax], dx
mov cl, byte [eax]
mov dword [esp + 4], 0
push eax
mov byte [esp + 8], cl
call fcn.004910f4
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [esp + 4]
mov edx, 1
shl edx, cl
test edx, eax
setne al
ret
Function at 0x47cfe0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x1258
call fcn.004d7c90
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x1254], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1268]
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x26e]
push ecx
mov word [esp + 0x270], ax
call fcn.004d5720
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0xa7a]
push eax
mov word [esp + 0xa7c], dx
call fcn.004d5720
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47d045
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x47d06a
push 0x53ef10
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea ecx, [esp + 0xa68]
push ecx
call ebp
push 0x520f7c
lea edx, [esp + 0xa68]
push edx
call edi
push 0x250
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004d5720
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xa68]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x47d1db
test ebx, ebx
je 0x47d1db
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x522388
lea eax, [esp + 0x40]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47d106
test dx, dx
je 0x47d102
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47d106
add eax, 4
add ecx, 4
test dx, dx
jne 0x47d0e0
xor eax, eax
jmp 0x47d10b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47d1ad
mov ecx, 0x520f60
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47d146
test dx, dx
je 0x47d142
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47d146
add eax, 4
add ecx, 4
test dx, dx
jne 0x47d120
xor eax, eax
jmp 0x47d14b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47d1ad
push esi
lea eax, [esp + 0x268]
push eax
call ebp
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x268]
push edx
call edi
lea eax, [esp + 0x264]
push eax
call ebx
test al, 0x10
je 0x47d189
lea ecx, [esp + 0x264]
push ecx
call fcn.0047cfe0
add esp, 4
jmp 0x47d1ad
test al, 1
je 0x47d19f
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47d0d4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov al, 1
jmp 0x47d1dd
xor al, al
mov ecx, dword [esp + 0x1264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d6555
add esp, 0x1258
ret
Function at 0x47d280
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47d2a6
xor eax, eax
pop ebx
ret
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [esp + 0x14]
mov dword [edi], eax
inc eax
push eax
call fcn.004d5c5c
mov esi, eax
add esp, 4
test esi, esi
jne 0x47d2d4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [edi]
inc ecx
push ecx
push 0
push esi
call fcn.004d5720
mov edx, dword [edi]
add esp, 0xc
push 0
push edi
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47d300
push esi
call fcn.004d5b05
add esp, 4
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x47d310
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47d336
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push edi
push ecx
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edi, ecx
test edi, edi
je 0x47d372
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47d3e5
xor eax, eax
pop esi
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret
Function at 0x47de30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x56c3c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
setne al
push 0
push 0
mov dword [ebp - 8], 1
add eax, 2
push eax
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47de92
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6555
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x47dea3
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0xc]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47dec4
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0xc]
je 0x47decb
mov dword [ebp - 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x47df12
test ebx, ebx
jne 0x47df12
test edi, edi
je 0x47deef
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x47def3
xor eax, eax
jmp 0x47df09
lea esi, [eax + eax]
mov eax, esi
call fcn.004d6570
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0044a300
push eax
call fcn.004db27f
add esp, 4
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6555
mov esp, ebp
pop ebp
ret
Function at 0x47e180
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov ebx, 3
mov dword [esp + 0x14], edi
cmp edi, ebx
jbe 0x47e22c
cmp word [ebp + ebx*2], 0x5c
jne 0x47e223
call fcn.0049f0da
push eax
push ebx
push ebp
lea ecx, [esp + 0x1c]
call fcn.0044c2a0
mov esi, dword [esp + 0x10]
push esi
call fcn.0047dc40
add esp, 4
test eax, eax
jne 0x47e207
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], esp
mov edi, esp
push eax
call fcn.0044c460
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0047e0c0
add esp, 4
test eax, eax
jne 0x47e28e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x47e268
mov edi, dword [esp + 0x14]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e223
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
cmp ebx, edi
jb 0x47e1a5
push ebp
call fcn.0047dc40
add esp, 4
test eax, eax
jne 0x47e2aa
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ebp
call fcn.0044d470
call fcn.0047e0c0
add esp, 4
test eax, eax
jne 0x47e2aa
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x47e2ac
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e284
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e2aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret