joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], esi
mov eax, dword [0x676668]
test al, 1
jne 0x46f290
or eax, 1
mov dword [0x676668], eax
call fcn.00402a80
mov ecx, eax
test ecx, ecx
je 0x46f38b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x5d6530
mov dword [0x67666c], eax
call fcn.00586b4d
add esp, 4
mov eax, dword [0x67666c]
cmp dword [eax - 0xc], 0
jne 0x46f367
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallMasterPDF_LY
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46f367
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0059f570
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 str.DisplayVersion
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46f346
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, 0x67666c
call fcn.00407300
mov ecx, dword [0x67666c]
add ecx, 0xfffffff0
call fcn.00407230
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop esi
call fcn.0058651a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402350
int3
Function at 0x471350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
mov ebx, 0x20019
push edi
mov dword [ebp - 0xc], eax
xor edi, edi
lea ecx, [ebp - 4]
push ecx
push ebx
push 0
push str.SoftwareClasses.pdf
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4713d3
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4713ca
mov eax, dword [ebp - 8]
shr eax, 1
inc eax
push 2
push eax
call fcn.005b2a54
add esp, 8
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x4713ca
push edi
call fcn.005a7d90
add esp, 4
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x4713f4
mov eax, dword [ebp - 0xc]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x4713f4
cmp ebx, 0x20019
jne 0x4713f4
mov ebx, 0x20119
jmp 0x471365
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x471460
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
call fcn.00471400
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
pop esi
test eax, eax
je 0x471481
cmp eax, 2
je 0x471481
xor al, al
ret
mov al, 1
ret
Function at 0x471490
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2077
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00402a80
mov ecx, eax
test ecx, ecx
jne 0x4714d2
push 0x80004005
call fcn.00402350
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x128], eax
push 0x110
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0059f570
add esp, 0xc
mov dword [ebp - 0x124], 0x114
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
or esi, 0xffffffff
cmp dword [ebp - 0x120], 5
jne 0x471527
xor ebx, ebx
jmp 0x471689
push str.SoftwareClasses_
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x12c], 0
call fcn.004063d0
push str..pdf
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x130]
call fcn.00406160
add esp, 4
push eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 2
call fcn.00406b20
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x130]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47158b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x134]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4715ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x12c]
push eax
push 0x2003f
push 0
push dword [ebp - 0x128]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x47167b
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea ecx, [ebp - 0x130]
call fcn.004063d0
push str..pdf
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x134]
call fcn.00406160
add esp, 4
push eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 4
call fcn.00406b20
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x134]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47162d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x130]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47164e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x12c]
push eax
push 0x2003f
push 0
lea eax, [ebp - 0x138]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
setne bl
test ebx, ebx
je 0x47167d
jmp 0x471689
xor ebx, ebx
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4716ab
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 esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret
Function at 0x4716d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d20a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x65b9c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
call fcn.00402a80
mov ecx, eax
test ecx, ecx
jne 0x47170e
push 0x80004005
call fcn.00402350
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push str..pdf
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_sUserChoice
push eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x14], 0
call fcn.00408250
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.Progid
push esi
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x471773
xor edi, edi
jmp 0x471787
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.005a7904
add esp, 8
mov edi, eax
neg edi
sbb edi, edi
inc edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4717a6
mov ecx, dword [esi]
push esi
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
mov esp, ebp
pop ebp
ret
Function at 0x471d70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2138
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov dword [ebp - 4], 0
mov esi, esp
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x134], esi
lea ecx, [ecx - 0x10]
call fcn.00407230
add eax, 0x10
mov ecx, reloc.WS2_32.dll_accept
mov dword [esi], eax
call fcn.00470670
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x134], esi
lea ecx, [ecx - 0x10]
call fcn.00407230
add eax, 0x10
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], eax
call fcn.00470670
add esp, 4
lea eax, [ebp - 0x130]
push 0x11c
push 0
push eax
call fcn.0059f570
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x12c], 0xa
je 0x471e28
call fcn.00471ee0
test eax, eax
je 0x471e86
push ecx
mov ecx, dword [ebp + 8]
mov esi, esp
mov dword [ebp - 0x134], esi
lea ecx, [ecx - 0x10]
call fcn.00407230
add eax, 0x10
mov ecx, reloc.WS2_32.dll_accept
mov dword [esi], eax
call fcn.00470c50
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x134], esi
lea ecx, [ecx - 0x10]
call fcn.00407230
add eax, 0x10
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], eax
call fcn.00470c50
add esp, 4
mov ecx, str.MasterPDF
call fcn.00471ac0
test eax, eax
je 0x471e86
mov edx, str.MasterPDF
call fcn.004717c0
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471ebc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret

Function at 0x471ee0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0059f570
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jne 0x471f4c
mov eax, dword [ebp - 0x118]
cmp eax, 2
je 0x471f39
cmp eax, 3
jne 0x471f4c
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret
Function at 0x472ab0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2320
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.0059f570
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push 0x104
push eax
push 0x6391f0
push dword [ebp + 0xc]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x472b5a
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x472b35
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00407300
mov edi, 1
jmp 0x472b5c
xor edi, edi
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x472b7d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x472b9c
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret

Function at 0x473af0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x473b21
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x473b10
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x47a2f0
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd3c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x65b9c4]
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
mov edx, str.MasterPDFData_LY
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x10]
call fcn.0047d890
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x47a35c
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 0x47a3b6
push edi
lea ecx, [ebp - 0x14]
call fcn.004063d0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.0046cab0
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 0x47a39f
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 0x47a3de
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00407230
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 0x47a3e8
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
Function at 0x47a400
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd3c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x65b9c4]
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
mov edx, str.UserData
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x10]
call fcn.0047a2f0
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x47a46c
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 0x47a4c6
push edi
lea ecx, [ebp - 0x14]
call fcn.004063d0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.0046cab0
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 0x47a4af
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 0x47a4ee
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00407230
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 0x47a4f8
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

Function at 0x47a510
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d28d8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x65b9c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov edx, str.Update
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x10]
call fcn.0047a2f0
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x47a579
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]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00407230
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 0x47a5ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47acc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2940
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x9c]
push eax
lea edx, [edi + 0x6c]
lea ecx, [ebp - 0x28]
call fcn.0047d1c0
push 0x676104
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0047d170
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x47ad31
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408090
push 0
push 0x80
push 3
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
push 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
jne 0x47ad78
xor bl, bl
jmp 0x47ae3c
push 0
push eax
mov byte [ebp - 0x44], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x47ae1d
test bl, 0x1f
jne 0x47ae1d
mov ecx, ebx
lea esi, [edi + 0xc4]
shr ecx, 5
push ecx
mov ecx, esi
call fcn.0047cb60
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
push ebx
push dword [esi]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47add4
cmp ebx, dword [ebp - 0x48]
je 0x47add4
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x47ae04
mov eax, dword [esi + 4]
xor edx, edx
sub eax, dword [esi]
sar eax, 5
test eax, eax
je 0x47ae04
xor ecx, ecx
mov eax, dword [esi]
lea ecx, [ecx + 0x20]
inc edx
mov dword [ecx + eax - 0x20], edi
mov eax, dword [esi]
mov dword [ecx + eax - 0x1c], 0
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 5
cmp edx, eax
jb 0x47ade4
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [ebp - 0x44]
movzx ecx, cl
mov eax, dword [eax + 0xc]
cmp eax, dword [edi + 0x124]
cmovne ecx, edx
mov dword [ebp - 0x44], ecx
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [edi + 0xc8]
sub ebx, dword [edi + 0xc4]
and ebx, 0xffffffe0
neg ebx
sbb bl, bl
and bl, byte [ebp - 0x44]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x47ae51
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00408090
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret
Function at 0x47ae70
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2978
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xc4]
cmp eax, dword [esi + 0xc8]
jne 0x47aeb2
xor al, al
jmp 0x47af88
lea eax, [esi + 0x9c]
push eax
lea edx, [esi + 0x6c]
lea ecx, [ebp - 0x40]
call fcn.0047d1c0
push 0x676104
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0047d170
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp eax, 8
jb 0x47aef2
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00408090
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47af6f
mov edi, dword [esi + 0xc8]
lea eax, [ebp - 0x44]
sub edi, dword [esi + 0xc4]
push 0
push eax
and edi, 0xffffffe0
mov dword [ebp - 0x44], 0
push edi
push dword [esi + 0xc4]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x47af59
cmp edi, dword [ebp - 0x44]
je 0x47af6f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
jmp 0x47af71
xor bl, bl
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x47af86
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00408090
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret
Function at 0x47b0a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d29ae
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x65b9c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x676104
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0047d1c0
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x67611c
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.0047d1c0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x47b143
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x47b126
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408090
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040eb60
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x47b158
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00408090
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x47b17f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408090
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058651a
mov esp, ebp
pop ebp
ret