joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4380a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5c70
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x521390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [ebx]
mov edi, dword [ebp + 8]
mov byte [edi], al
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov edx, dword [ebx + 8]
lea eax, [ebx + 0xc]
push eax
lea ecx, [edi + 0xc]
mov dword [edi + 8], edx
call fcn.00407120
xor ecx, ecx
lea eax, [edi + 0x18]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], eax
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 4
lea ecx, [ebx + 0x18]
mov byte [ebp - 4], 1
push ecx
mov dword [eax], vtable.CObjectVector_struct_CArcExtInfo_.0
call fcn.00444d20
xor eax, eax
mov byte [ebp - 4], 2
lea esi, [edi + 0x2c]
push eax
mov dword [esi], vtable.CBuffer_unsigned_char_.0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.004cbf71
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0x30]
add esp, 4
cmp eax, ecx
jbe 0x43815d
mov edi, eax
call fcn.00403120
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x34]
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
call fcn.004cbf80
mov edi, dword [ebp + 8]
add esp, 0xc
mov dl, byte [ebx + 0x38]
mov byte [edi + 0x38], dl
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 4
Function at 0x438590
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e4138
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x521390]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0xc], ecx
lea edx, [esp + 0xc]
push edx
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x30], ecx
mov byte [edi], cl
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
test esi, esi
je 0x43861d
movzx eax, word [esp + 0xc]
add eax, 0xfffffffe
cmp eax, 0x3e
ja case.0x4385f8.8
movzx ecx, byte [eax + 0x4386b4]
jmp dword [ecx*4 + 0x4386ac]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov ax, word [esp + 0xc]
cmp ax, 0xb
jne 0x43864c
cmp word [esp + 0x14], 0
setne cl
mov byte [edi], cl
movzx eax, ax
add eax, 0xfffffffe
cmp eax, 0x3e
ja case.0x438645.8
movzx ecx, byte [eax + 0x4386fc]
jmp dword [ecx*4 + 0x4386f4]
test ax, ax
je 0x438633
movzx eax, ax
add eax, 0xfffffffe
cmp eax, 0x3e
ja case.0x438663.8
movzx edx, byte [eax + 0x438744]
jmp dword [edx*4 + 0x43873c]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, 0x80004005
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43b620
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, dword [esi + 8]
test eax, eax
je 0x43b662
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
nop
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + eax*4 - 4]
mov edi, dword [edx]
push 0
push edi
call ebx
test eax, eax
je 0x43b649
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 8]
mov eax, dword [esi]
mov edx, dword [eax + 4]
dec ecx
push 1
push ecx
mov ecx, esi
call edx
mov eax, dword [esi + 8]
test eax, eax
jne 0x43b630
pop edi
pop ebx
ret
Function at 0x43c100
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push esi
push edi
mov dword [ebp - 4], edx
cmp dword [ebx + 0x30], edx
jle 0x43c17b
mov eax, dword [ebx + 0x34]
jmp 0x43c123
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov edi, dword [ebp + 0x10]
mov ecx, dword [esi + 0x20]
add eax, 4
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x24]
inc edx
cmp edi, eax
jb 0x43c152
ja 0x43c140
cmp dword [ebp + 0xc], ecx
jb 0x43c152
sub dword [ebp + 0xc], ecx
sbb edi, eax
mov dword [ebp + 0x10], edi
cmp edx, dword [ebx + 0x30]
jl 0x43c120
mov dword [ebp - 4], edx
jmp 0x43c17e
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov dword [ebp - 4], edx
mov edx, dword [ebp + 0xc]
push edi
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jne 0x43c1f5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edi
jmp 0x43c17e
mov edi, dword [ebp + 0x10]
cmp edx, dword [ebx + 0x30]
jge 0x43c1d7
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x30]
mov edi, dword [eax + edx*4 - 4]
mov eax, dword [edi + 4]
test eax, eax
je 0x43c1a3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 4], 0
mov edi, dword [edi + 8]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x43c1ba
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x28]
mov edx, dword [eax + 4]
dec ecx
push 1
push ecx
lea ecx, [ebx + 0x28]
call edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x30]
jl 0x43c183
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
mov dword [ebx + 8], 0
mov dword [ebx + 0x24], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x444130
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5a5a
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x521390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [edi], 0xffffffff
xor ebx, ebx
mov eax, 4
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], eax
mov dword [edi + 4], vtable.CObjectVector_struct_CProperty_.0
mov dword [ebp - 4], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], eax
mov dword [edi + 0x18], vtable.CObjectVector_struct_CUpdateArchiveCommand_.0
mov al, 1
mov byte [ebp - 4], al
mov byte [edi + 0x2c], al
lea eax, [edi + 0x30]
push eax
call fcn.0042b6f0
mov byte [ebp - 4], 2
lea esi, [edi + 0x8c]
mov byte [edi + 0x88], bl
call fcn.004061f0
mov byte [ebp - 4], 3
lea esi, [edi + 0x9c]
mov word [edi + 0x98], bx
call fcn.004061f0
mov byte [ebp - 4], 4
lea esi, [edi + 0xac]
mov word [edi + 0xa8], bx
mov byte [edi + 0xaa], bl
call fcn.004061f0
lea esi, [edi + 0xb8]
mov byte [ebp - 4], 5
call fcn.004061f0
mov dword [edi + 0xc8], ebx
mov dword [edi + 0xcc], ebx
mov dword [edi + 0xd0], ebx
mov dword [edi + 0xd4], 8
mov dword [edi + 0xc4], vtable.CRecordVector_unsigned_long_long_unsigned___int64__.0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4443d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3b78
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x521390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 6
mov eax, dword [esi + 0xcc]
push eax
xor ebx, ebx
push ebx
lea ecx, [esi + 0xc4]
mov dword [esi + 0xc4], vtable.CBaseRecordVector.0
call dword [0x4f5224]
mov eax, dword [esi + 0xd0]
push eax
call fcn.004cbf71
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov eax, dword [esi + 0xb8]
push eax
call fcn.004cbf71
mov eax, dword [esi + 0xac]
push eax
call fcn.004cbf71
mov eax, dword [esi + 0x9c]
push eax
call fcn.004cbf71
mov eax, dword [esi + 0x8c]
push eax
call fcn.004cbf71
mov eax, dword [esi + 0x7c]
push eax
call fcn.004cbf71
mov eax, dword [esi + 0x70]
push eax
call fcn.004cbf71
mov eax, dword [esi + 0x60]
push eax
call fcn.004cbf71
mov eax, dword [esi + 0x54]
push eax
call fcn.004cbf71
mov eax, dword [esi + 0x48]
push eax
call fcn.004cbf71
mov eax, dword [esi + 0x3c]
push eax
call fcn.004cbf71
mov eax, dword [esi + 0x30]
push eax
call fcn.004cbf71
lea edi, [esi + 0x18]
add esp, 0x30
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CObjectVector_struct_CUpdateArchiveCommand_.0
mov byte [ebp - 4], 7
mov ecx, dword [edi + 8]
push ecx
push ebx
mov ecx, edi
call dword [0x4f8648]
mov byte [ebp - 4], bl
mov edx, dword [edi + 8]
push edx
push ebx
mov ecx, edi
mov dword [edi], vtable.CBaseRecordVector.0
call dword [0x4f5224]
mov eax, dword [edi + 0xc]
push eax
call fcn.004cbf71
add esp, 4
add esi, 4
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [ebp + 8], esi
mov dword [esi], vtable.CObjectVector_struct_CProperty_.0
mov dword [ebp - 4], 8
mov eax, dword [esi + 8]
push eax
push ebx
mov ecx, esi
call dword [0x4f863c]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 8]
push ecx
push ebx
mov ecx, esi
mov dword [esi], vtable.CBaseRecordVector.0
call dword [0x4f5224]
mov edx, dword [esi + 0xc]
push edx
call fcn.004cbf71
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x448e90
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esi + 8]
push edi
cmp eax, 0x105
jg 0x448efd
cmp eax, 0x106
je 0x448efd
xor ecx, ecx
mov eax, 0x106
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cbe29
add esp, 4
cmp dword [esi + 8], 0
mov edi, eax
jle 0x448eeb
xor eax, eax
cmp dword [esi + 4], eax
jle 0x448ee0
nop
mov ecx, dword [esi]
mov dx, word [ecx + eax*2]
mov word [edi + eax*2], dx
inc eax
cmp eax, dword [esi + 4]
jl 0x448ed0
mov eax, dword [esi]
push eax
call fcn.004cbf71
add esp, 4
mov ecx, dword [esi + 4]
xor edx, edx
mov dword [esi], edi
mov word [edi + ecx*2], dx
mov dword [esi + 8], 0x106
mov eax, dword [esi]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x448f20
mov edx, edi
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x448f16
xor edx, edx
mov word [edi + ecx*2], dx
dec eax
mov dword [esi + 4], ecx
mov ecx, 0x103
cmp ecx, eax
sbb eax, eax
inc eax
pop edi
ret
Function at 0x4492f0
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x449300
xor al, al
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
ret

Function at 0x449310
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e56f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x521390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [eax + 0x20]
shr ecx, 4
add eax, 0x28
push eax
test cl, 1
je 0x44938f
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00421850
push eax
mov byte [ebp - 4], 1
call fcn.004493f0
mov ecx, dword [ebp - 0x18]
push ecx
mov bl, al
call fcn.004cbf71
mov edx, dword [ebp + 8]
push edx
call fcn.004cbf71
add esp, 0x18
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00421850
mov esi, dword [eax]
add esp, 0xc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4493b9
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov edx, dword [ebp - 0x18]
push edx
call fcn.004cbf71
mov eax, dword [ebp + 8]
push eax
call fcn.004cbf71
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4493f0
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e8e48
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x521390]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x521390]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [esp + 0x6c]
mov dword [esp + 0x30], edi
call fcn.004061f0
push 0x5c
lea eax, [esp + 0x28]
push edi
push eax
mov dword [esp + 0x9c], 0
call fcn.0042ea20
add esp, 0xc
push 0x2a
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x9c], 1
call fcn.0042ea20
add esp, 0xc
mov dword [esp + 0x14], 0xffffffff
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 3
call fcn.00407120
mov byte [esp + 0x90], 5
mov eax, dword [esp + 0x38]
push eax
call fcn.004cbf71
add esp, 4
mov esi, 0x2e
cmp dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x14]
je 0x4494bc
push ecx
lea ecx, [esp + 0x48]
call fcn.00449d90
jmp 0x4494c9
mov ebx, dword [esp + 0x18]
lea edi, [esp + 0x44]
call fcn.00449cc0
test al, al
je 0x449559
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x6c]
shr edx, 4
test dl, 1
je 0x4494fe
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4494fe
cmp word [edi], si
jne 0x4494fe
cmp eax, 1
je 0x4494a5
cmp word [edi + 2], si
jne 0x4494fe
cmp eax, 2
je 0x4494a5
lea eax, [esp + 0x44]
push eax
sub esp, 0xc
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.00407120
call fcn.00449310
add esp, 0x10
test al, al
jne 0x4494a5
mov eax, dword [esp + 0x18]
push eax
call fcn.004cbf71
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, 0xffffffff
je 0x44953f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004cbf71
add esp, 4
push edi
call fcn.004cbf71
add esp, 4
xor al, al
jmp 0x4495d1
mov edx, dword [esp + 0x18]
push edx
call fcn.004cbf71
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, 0xffffffff
je 0x449576
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x30]
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4495a7
mov eax, dword [esp + 0x24]
push eax
call fcn.004cbf71
mov ecx, dword [esp + 0x70]
add esp, 4
push ecx
call fcn.004cbf71
add esp, 4
xor al, al
jmp 0x4495d1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [esp + 0x24]
test eax, eax
push edx
setne bl
call fcn.004cbf71
mov eax, dword [esp + 0x70]
add esp, 4
push eax
call fcn.004cbf71
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004cbf11
mov esp, ebp
pop ebp
ret
Function at 0x449700
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esi + 8]
push edi
cmp eax, 0x105
jg 0x44976d
cmp eax, 0x106
je 0x44976d
xor ecx, ecx
mov eax, 0x106
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cbe29
add esp, 4
cmp dword [esi + 8], 0
mov edi, eax
jle 0x44975b
xor eax, eax
cmp dword [esi + 4], eax
jle 0x449750
nop
mov ecx, dword [esi]
mov dx, word [ecx + eax*2]
mov word [edi + eax*2], dx
inc eax
cmp eax, dword [esi + 4]
jl 0x449740
mov eax, dword [esi]
push eax
call fcn.004cbf71
add esp, 4
mov ecx, dword [esi + 4]
xor edx, edx
mov dword [esi], edi
mov word [edi + ecx*2], dx
mov dword [esi + 8], 0x106
mov eax, dword [esi]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x449790
mov edx, edi
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x449786
xor edx, edx
mov word [edi + ecx*2], dx
dec eax
mov dword [esi + 4], ecx
mov ecx, 0x103
cmp ecx, eax
sbb eax, eax
inc eax
pop edi
ret

Function at 0x449880
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esi + 8]
push edi
cmp eax, 0x105
jg 0x4498ed
cmp eax, 0x106
je 0x4498ed
xor ecx, ecx
mov eax, 0x106
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cbe29
add esp, 4
cmp dword [esi + 8], 0
mov edi, eax
jle 0x4498db
xor eax, eax
cmp dword [esi + 4], eax
jle 0x4498d0
nop
mov ecx, dword [esi]
mov dx, word [ecx + eax*2]
mov word [edi + eax*2], dx
inc eax
cmp eax, dword [esi + 4]
jl 0x4498c0
mov eax, dword [esi]
push eax
call fcn.004cbf71
add esp, 4
mov ecx, dword [esi + 4]
xor edx, edx
mov dword [esi], edi
mov word [edi + ecx*2], dx
mov dword [esi + 8], 0x106
mov eax, dword [esi]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x449910
mov edx, edi
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x449906
xor edx, edx
mov word [edi + ecx*2], dx
dec eax
mov dword [esi + 4], ecx
mov ecx, 0x103
cmp ecx, eax
sbb eax, eax
inc eax
pop edi
ret

Function at 0x449930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 8]
push edi
cmp eax, 0x105
jg 0x44999f
cmp eax, 0x106
je 0x44999f
xor ecx, ecx
mov eax, 0x106
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cbe29
add esp, 4
cmp dword [esi + 8], 0
mov edi, eax
jle 0x44998d
xor eax, eax
cmp dword [esi + 4], eax
jle 0x449982
mov ecx, dword [esi]
mov dx, word [ecx + eax*2]
mov word [edi + eax*2], dx
inc eax
cmp eax, dword [esi + 4]
jl 0x449972
mov eax, dword [esi]
push eax
call fcn.004cbf71
add esp, 4
mov ecx, dword [esi + 4]
xor edx, edx
mov dword [esi], edi
mov word [edi + ecx*2], dx
mov dword [esi + 8], 0x106
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, dword [esi]
xor ecx, ecx
cmp word [edi], cx
je 0x4499ca
mov edx, edi
lea ecx, [ecx]
add edx, 2
inc ecx
cmp word [edx], 0
jne 0x4499c0
xor edx, edx
mov word [edi + ecx*2], dx
mov dword [esi + 4], ecx
pop edi
pop ebp
ret
Function at 0x4499e0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebx], 0
push esi
push edi
mov edi, eax
je 0x449a13
mov esi, dword [ebx + 4]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x449a00
xor al, al
jmp 0x449a0c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
sete al
mov byte [ebx], al
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
mov esi, edi
call fcn.00449930
mov esi, eax
add esp, 8
test esi, esi
je 0x449a36
lea eax, [ebx + 4]
call fcn.00406270
mov byte [ebx], 1
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x449b30
Capabilities:
Create directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8df8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x521390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea esi, [ebp - 0x20]
mov byte [ebp - 0x24], bl
call fcn.004061f0
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00449a40
test al, al
je 0x449c82
mov al, byte [ebp - 0x24]
mov esi, dword [ebp - 0x20]
test al, al
je 0x449bb7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x449b96
xor al, al
jmp 0x449ba2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
sete al
test al, al
sete cl
mov byte [ebp - 0x24], al
test cl, cl
je 0x449c82
or edi, 0xffffffff
mov dword [ebp - 4], edi
test al, al
je 0x449be6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x449bd2
xor al, al
jmp 0x449bde
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
sete al
mov byte [ebp - 0x24], al
push esi
call fcn.004cbf71
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx]
add esp, 4
lea esi, [ebp - 0x34]
call fcn.004061f0
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], edi
lea edi, [ebp - 0x5c]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00449cc0
mov bl, al
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
je 0x449c26
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
push edx
call fcn.004cbf71
add esp, 4
test bl, bl
jne 0x449c5c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x449c9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x449c8a
lea esi, [ebp - 0x20]
mov byte [ebp - 0x24], 0
call fcn.004061f0
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.00449a40
test al, al
jne 0x449b7b
lea edi, [ebp - 0x24]
call fcn.00403eb0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, eax
mov dword [esi], 0
mov eax, dword [ebp + 0xc]
cmp eax, 0x400000
jbe 0x44a023
mov eax, 0x400000
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push edi
push eax
mov dword [ebp - 4], 0
call ebx
mov ecx, dword [ebp - 4]
add dword [esi], ecx
test eax, eax
je 0x44a058
test ecx, ecx
je 0x44a04e
add edi, ecx
sub dword [ebp + 0xc], ecx
jne 0x44a014
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x44a0d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, eax
mov dword [esi], 0
mov eax, dword [ebp + 0xc]
cmp eax, 0x400000
jbe 0x44a0f3
mov eax, 0x400000
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push edi
push eax
mov dword [ebp - 4], 0
call ebx
mov ecx, dword [ebp - 4]
add dword [esi], ecx
test eax, eax
je 0x44a128
test ecx, ecx
je 0x44a11e
add edi, ecx
sub dword [ebp + 0xc], ecx
jne 0x44a0e4
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8