joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4415a0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x441618
cmp dword [esp + 8], 0x3e9
jne 0x441618
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x441618
push 4
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3e9
push esi
call dword [sym.imp.USER32.dll_KillTimer]
push 0x213
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x441602
mov dword [eax + 0x20], 0
call fcn.004412a0
test eax, eax
je 0x441618
push 0
push 0
push 0xf
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
pop esi
ret 4

Function at 0x4418a0
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x489938
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [0x4bcb00]
lea eax, [esp + 0xc]
push eax
call fcn.00416880
lea edi, [ebx + 0x18]
mov dword [esp + 0x28], 0
call fcn.0040b8a0
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44190d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
mov dword [ebx + 0xc], 0x1f4
cmp dword [ecx - 0xc], 0
jne 0x44196a
mov eax, dword [ebx + 8]
test eax, eax
je 0x4419cb
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4419cb
mov edx, dword [ebx + 8]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 8]
push 0x3e9
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [ebx + 0x20], 0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x20
ret
cmp dword [ebx + 0x10], 0
je 0x4419cb
cmp dword [ebx + 0x14], 0
je 0x4419cb
call fcn.00441620
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4419cb
call fcn.00440c70
test eax, eax
jne 0x4419cb
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
mov eax, dword [esp + 0x14]
push 1
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [ebx + 8]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x20
ret
Function at 0x441c60
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push edi
mov ebx, eax
lea eax, [esp + 0x14]
push eax
xor edi, edi
push ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
cmp ecx, 0xffffffff
jne 0x441cb2
cmp eax, edi
je 0x441cb2
jle 0x441d2f
and eax, 0xffff
or eax, 0x80070000
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push edx
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x441cdf
call fcn.004164a0
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
mov ecx, dword [esp + 0x10]
push edi
push ecx
mov edx, edi
push edx
mov dword [esi + 4], ecx
mov ecx, edi
push ecx
push ebp
push eax
mov dword [esi + 0x18], ebp
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
cmp eax, edi
mov dword [esi], eax
jne 0x441d2d
call fcn.004164a0
mov ebx, eax
cmp ebx, edi
jl 0x441d15
mov ebx, 0x80004005
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], edi
mov eax, ebx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x441d40
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, eax
test edi, edi
mov esi, ecx
je 0x441d6d
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, 4
mov ecx, edi
mov dword [esp + 8], eax
call fcn.00441db0
test eax, eax
jge 0x441d9d
push edi
push 4
push 2
mov eax, ebx
call fcn.00441c60
mov edi, eax
test edi, edi
jl 0x441d9b
mov esi, dword [esi + 8]
push 4
mov eax, esi
call fcn.00441b00
add esp, 4
test eax, eax
jne 0x441d9b
push esi
call fcn.00441bd0
add esp, 4
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret

Function at 0x442580
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x14
push 0
push 0x80
push 2
push 0
push eax
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x44263c
call fcn.004164a0
test eax, eax
jl 0x442638
mov eax, dword [esi]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x4425dc
call fcn.004164a0
test eax, eax
jl 0x4425e2
mov eax, dword [esp + 8]
or eax, dword [esp + 0xc]
jne 0x44260a
mov eax, dword [esi]
push 0
lea ecx, [esp + 0xc]
push ecx
push 2
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44260a
call fcn.004164a0
mov edx, dword [esi]
push 2
lea ecx, [esp + 0x10]
push ecx
push 0
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x442636
call fcn.004164a0
xor eax, eax
add esp, 0x14
ret
mov dword [esi], eax
jmp 0x4425b1
Function at 0x442650
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x487e88
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [esp + 0x20]
cmp dword [esi + 4], 0
jne 0x4426f5
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00443ba0
push 2
push 0x49b728
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x24], 0
call fcn.0042d890
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [esp + 0x10]
push edx
push ecx
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4426c9
call fcn.004164a0
mov edi, eax
jmp 0x4426cb
xor edi, edi
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44273d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x44273d
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [ebx + ebx]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edx
push eax
mov eax, dword [esi]
push eax
call ebx
test eax, eax
jne 0x44271b
call fcn.004164a0
mov edi, eax
test edi, edi
jl 0x44273d
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
push 0x49b928
push edx
call ebx
test eax, eax
jne 0x44273b
call fcn.004164a0
mov edi, eax
jmp 0x44273d
xor edi, edi
xor eax, eax
test edi, edi
setge al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x10
ret 4

Function at 0x442760
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, edx
cmp dword [esi + 4], 0
mov ebx, ecx
jne 0x4427cf
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00443ba0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [esp + 0x10]
push edx
push ecx
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4427a0
call fcn.004164a0
mov esi, eax
jmp 0x4427a2
xor esi, esi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4427fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
test esi, esi
pop esi
setge al
pop ebx
add esp, 8
ret
push 0
lea ecx, [esp + 0x10]
push ecx
lea edx, [ebx + ebx]
push edx
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4427fc
call fcn.004164a0
mov esi, eax
xor eax, eax
test esi, esi
pop esi
setge al
pop ebx
add esp, 8
ret
xor esi, esi
xor eax, eax
test esi, esi
pop esi
setge al
pop ebx
add esp, 8
ret
Function at 0x442950
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x28
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x24], eax
mov ecx, dword [ecx]
xor eax, eax
push esi
push ecx
push 0xf
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov word [esp + 0x2e], ax
lea eax, [esp + 0x10]
push eax
xor esi, esi
push esi
push str.DefaultVersion
push str.Properties
mov word [esp + 0x20], si
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4429cc
push 0xa
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.0046dbe5
add esp, 0xc
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00469efd
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00469efd
add esp, 0x28
ret

Function at 0x4429e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x48b13e
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [0x4bb38c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4bb38c
call edx
add eax, 0x10
mov dword [esi], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov ecx, 0xa
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
cmp edi, eax
mov byte [esp + 0x14], 2
mov byte [esi + 0x34], al
mov byte [esi + 0x35], al
je 0x442a71
mov ecx, edi
lea ebx, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
cmp dx, ax
jne 0x442a60
sub ecx, ebx
sar ecx, 1
mov eax, ecx
mov ebx, eax
push edi
mov eax, esi
call fcn.00415d80
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jle 0x442a8c
mov ecx, edi
mov edx, esi
call fcn.00442b60
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x4433b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x489838
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x4bb38c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4bb38c
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x24], esi
call fcn.00443280
cmp eax, esi
mov edi, dword [esp + 0xc]
je 0x443422
push 0xa
lea edx, [esp + 0x14]
push edx
push edi
call fcn.0046dbe5
add esp, 0xc
mov esi, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443446
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0xc
Function at 0x444790
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x48d516
mov eax, dword fs:[0]
push eax
mov eax, 0x3208
call fcn.00480ea0
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x3204], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0x321c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x322c]
cmp dword [ebp + 8], 0
mov ebx, ecx
mov edi, edx
jne 0x4447f8
push ebp
call fcn.00444030
test eax, eax
jl 0x444924
cmp dword [ebp + 8], 0
je 0x444924
lea esi, [esp + 0x20]
call fcn.00443f30
cmp dword [esp + 0x3230], 1
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0x1003
lea ecx, [esp + 0x30]
push ecx
push 0xffffffffffffffff
push ebx
push 0
sete al
push 0
mov byte [esp + 0x31a8], al
call esi
push 0
push 0
push 0x103
lea edx, [esp + 0x1034]
push edx
or ebx, 0xffffffff
push ebx
push edi
push 0
push 0
call esi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.00416880
mov dword [esp + 0x3224], 0
mov ecx, dword [esp + 0x14]
push 0x5c
push ecx
call fcn.0046bde9
add esp, 8
test eax, eax
je 0x4448e7
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, ebx
je 0x4448e7
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
call fcn.00421810
lea edi, [esp + 0x14]
mov byte [esp + 0x3224], 1
call fcn.0040b8a0
mov byte [esp + 0x3224], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4448c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jle 0x4448e7
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4448e7
mov ecx, dword [esp + 0x14]
push eax
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
call edx
test eax, eax
jge 0x444928
mov dword [esp + 0x3224], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x444924
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x444967
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
xor ecx, ecx
test eax, eax
setge cl
mov dword [esp + 0x3224], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x444965
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x321c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3204]
xor ecx, esp
call fcn.00469efd
add esp, 0x3214
ret 8
Function at 0x4459a5
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
je 0x4459cd
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4459e7
mov ecx, dword [esi + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
ret 4
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4459e7
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
ret 4

Function at 0x446360
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
mov eax, 0x2178
call fcn.00480ea0
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x2174], eax
mov eax, dword [esp + 0x217c]
push ebx
push ebp
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x28], ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4463b5
call fcn.004164a0
cmp eax, ebx
jge 0x4463b7
xor eax, eax
jmp 0x4464fe
mov ebp, eax
push esi
xor eax, eax
push 0x5c
lea edx, [esp + 0x18]
push ebx
push edx
mov byte [esp + 0x7c], bl
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov word [esp + 0x89], ax
mov byte [esp + 0x8b], al
call fcn.0046ea20
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x6c], ebx
push ebx
lea eax, [esp + 0x10]
push eax
push 0x2000
lea ecx, [esp + 0x18c]
push ecx
push ebp
mov dword [esp + 0x20], ebx
call esi
test eax, eax
jne 0x446444
call fcn.004164a0
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x446463
push eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x188]
call fcn.0043a730
add esp, 8
jmp 0x446421
cmp ebp, ebx
je 0x446470
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
lea eax, [esp + 0x70]
push edi
push eax
lea esi, [esp + 0x1c]
call fcn.0043aa10
push 0xfe
lea ecx, [esp + 0x8e]
push ebx
push ecx
mov word [esp + 0x94], bx
call fcn.0046ea20
add esp, 0x10
lea edi, [esp + 0x84]
xor esi, esi
jmp 0x4464b0
movzx edx, byte [esp + esi + 0x74]
push edx
push 0x493ac4
push 3
push edi
call fcn.0046a972
add esi, 1
add esp, 0x10
add edi, 4
cmp esi, 0x10
jb 0x4464b0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x88]
push ecx
call fcn.0046a574
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
cmp ebp, ebx
pop edi
je 0x4464fb
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x217c]
pop ebp
pop ebx
xor ecx, esp
call fcn.00469efd
add esp, 0x2178
ret 4
Function at 0x4467b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x489769
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
push edi
mov dword [esp + 0xc], 0
call fcn.00405d00
add esp, 4
mov dword [esp + 0x14], 0
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
mov dword [esp + 8], 1
jle 0x446824
lea ecx, [eax - 1]
test ecx, ecx
jl 0x446864
cmp ecx, eax
jg 0x446864
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x446824
push 0x5c
call fcn.00416550
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x44684f
push 7
push str.update_
push edi
call fcn.004164c0
mov eax, dword [edi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret 4
push 0x80070057
call fcn.00416be0
int3
Function at 0x447220
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x488610
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x40], ebp
mov esi, dword [esp + 0x48]
or ebx, 0xffffffff
cmp dword [esi - 0xc], ebp
je 0x447367
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x447367
mov ecx, dword [esi - 0xc]
cmp ecx, ebp
jle 0x44729f
lea eax, [ecx - 1]
cmp eax, ebp
jl 0x4473aa
cmp eax, ecx
jg 0x4473aa
movzx eax, word [esi + eax*2]
cmp ax, 0x5c
je 0x44729f
push 0x5c
lea edi, [esp + 0x4c]
call fcn.00416550
mov esi, dword [esp + 0x48]
mov esi, dword [esi - 0xc]
lea eax, [esi - 1]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x48]
call fcn.00421810
lea edi, [esp + 0x48]
mov byte [esp + 0x40], 1
call fcn.0040b8a0
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4472e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x48]
mov word [esp + 0x28], 0x414
mov dword [esp + 0x2e], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x32], ebp
mov ebp, dword [esi - 0xc]
xor ecx, ecx
lea ebx, [ebp + 2]
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00460f82
mov edi, eax
lea eax, [ebx + ebx]
push eax
push 0
push edi
call fcn.0046ea20
lea ecx, [ebp + ebp]
push ecx
push esi
push edi
call fcn.0046e6b0
add esp, 0x1c
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test edi, edi
mov ebx, eax
je 0x447365
push edi
call fcn.0046a201
add esp, 4
xor ebp, ebp
xor eax, eax
cmp ebx, ebp
sete al
add esi, 0xfffffff0
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
mov edi, eax
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x447394
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
push 0x80070057
call fcn.00416be0
int3

Function at 0x447ba5
Capabilities:
Clear file content

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, ecx
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
lea ecx, [esp + 4]
push ecx
push 0
push edx
mov ecx, esi
mov dword [esp + 0x10], 0
call eax
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop esi
pop ecx
ret 4
Function at 0x447d70
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [ecx + 8]
cmp edx, 0xffffffff
je 0x447dbe
mov eax, dword [esp + 4]
test eax, eax
je 0x447dbe
mov ecx, dword [eax]
push esi
mov esi, dword [eax + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x447dab
mov eax, 0x80004005
pop esi
ret 4
mov eax, dword [esp + 8]
sub eax, esi
neg eax
sbb eax, eax
and eax, 0x80004005
pop esi
ret 4
mov eax, 0x80070057
ret 4

Function at 0x447e83
Capabilities:
Clear file content

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
xor eax, eax
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call edx
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop esi
add esp, 8
ret 8

Function at 0x448b30
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xa0
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa4]
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xb0]
push ecx
push eax
lea edi, [esp + 0x10]
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
call fcn.0044c9d0
push esi
mov esi, edi
call fcn.0044ca90
mov ecx, dword [esp + 0xb0]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
call fcn.00469efd
add esp, 0xa0
ret

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

Disassembly:
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4496f8
test al, 0x10
jne 0x4496f8
mov eax, 1
ret
xor eax, eax
ret