joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4289d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ac70
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x47800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x460244
lea ecx, [esi + 4]
mov byte [esi], 0
call fcn.0042c540
push 0x460244
lea ecx, [esi + 8]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0xc]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x10]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x14]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x1c]
mov byte [esi + 0x18], 0
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x20]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x24]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x28]
call fcn.0042c540
lea ecx, [esi + 0x30]
mov dword [esi + 0x2c], 1
call fcn.00428c60
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 0x428c60
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ac70
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x47800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x460244
call fcn.0042c540
push 0x460244
lea ecx, [esi + 4]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 8]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0xc]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x10]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x14]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x18]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x1c]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x20]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x24]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x28]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x2c]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x30]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x34]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x38]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x3c]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x40]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x44]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x48]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x4c]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x50]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x54]
call fcn.0042c540
push 0x460244
lea ecx, [esi + 0x58]
call fcn.0042c540
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 0x430fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x47800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43103b
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x430ffd
cmp eax, 2
jne 0x431019
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x431035
test ecx, ecx
je 0x431030
test cl, 1
jne 0x431019
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x431035
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004568f7
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004568f7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x442110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x47800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 8], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x442148
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x442166
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x18], 0
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x44225b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x44225b
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x44225b
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x18], eax
test eax, eax
je 0x44225b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x44224b
push ebx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push dword [esi + 0x18]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x442242
mov ecx, dword [ebp - 8]
call fcn.00441e50
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x442242
mov eax, dword [ecx + 8]
mov dword [ecx + 8], 0
test eax, eax
jne 0x44222e
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004568f7
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44223b
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], 0
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x18], 0
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004568f7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x442cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x47800c]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x47ab30]
push edi
push 0xf0
push eax
push esi
mov dword [ebp - 0x134], ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x442e7e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x442e7e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x442e7e
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 0x1234
nop dword [eax]
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x442e69
mov ecx, dword [esi + 4]
mov dword [ebp - 0x130], eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x138], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x442dd8
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x104]
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
push 3
push esi
call fcn.00442fd0
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x130]
push 0
push 0x143
movzx eax, ax
push eax
mov eax, dword [ebp - 0x134]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x108]
cmove edi, ecx
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x442e56
push eax
call ebx
add esp, 4
jmp 0x442e56
cmp dx, ax
jne 0x442e5b
push 3
lea eax, [ebp - 0x238]
mov dword [ebp - 0x12c], 1
push esi
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x128], 0xffffffff
mov dword [ebp - 0x23c], eax
call fcn.00442fd0
mov eax, dword [ebp - 0x23c]
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x124], eax
cmp eax, ecx
je 0x442e27
push eax
call ebx
add esp, 4
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x130]
push 0
push 0x40b
movzx eax, ax
push eax
mov eax, dword [ebp - 0x134]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov edx, 0x1234
add esi, dword [ebp - 0x138]
test edi, edi
jne 0x442d30
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004568f7
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004568f7
mov esp, ebp
pop ebp
ret 4
Function at 0x443c80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x184
mov eax, dword [0x47800c]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x4000
push esi
mov esi, edx
push edi
mov edi, ecx
test word [esi], ax
je 0x443cc1
push 0
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov eax, 0xbfff
and word [esi], ax
push 0x30
lea eax, [esp + 0x14]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x110
lea eax, [esp + 0x84]
mov dword [esp + 0x20], 0x30
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [esp + 0x70], 0x114
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x443d1a
mov eax, dword [esp + 0x74]
cmp eax, 5
jae 0x443d22
cmp eax, 4
jne 0x443d1a
cmp dword [esp + 0x78], 0x5a
jae 0x443d22
mov dword [esp + 0x10], 0x2c
movzx ecx, word [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], edi
test ecx, 0x100
je 0x443d44
or eax, 3
mov dword [esp + 0x1c], eax
test ecx, 0x200
je 0x443d53
or eax, 8
mov dword [esp + 0x1c], eax
test ecx, 0x1000
je 0x443d64
or eax, 0x1000
mov dword [esp + 0x1c], eax
test ecx, 0x2000
je 0x443e09
push 0x30
lea eax, [esp + 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x110
lea eax, [esp + 0x84]
mov dword [esp + 0x50], 0x30
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [esp + 0x70], 0x114
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x443dc9
mov eax, dword [esp + 0x74]
cmp eax, 5
jae 0x443dd1
cmp eax, 4
jne 0x443dc9
cmp dword [esp + 0x78], 0x5a
jae 0x443dd1
mov dword [esp + 0x40], 0x2c
lea eax, [esp + 0x40]
mov dword [esp + 0x44], 0x10
push eax
push 0
push edi
push ebx
mov dword [esp + 0x60], edi
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x443e09
mov eax, dword [esp + 0x48]
or dword [esp + 0x14], 0x10
and eax, 0xfffff7fb
or dword [esp + 0x18], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x10]
push eax
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004568f7
mov esp, ebp
pop ebp
ret
Function at 0x4444f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x47800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x44452f
push str.CWebView::Show
push str._s_failed___no_window_handle_created_
push 2
push 2
call fcn.004506f0
add esp, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004568f7
mov esp, ebp
pop ebp
ret
push ebx
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 2
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
lea eax, [ebp - 0x20]
push 1
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x444595
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
push edi
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x20]
push eax
call esi
lea eax, [ebp - 0x20]
push eax
call edi
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call ebx
test eax, eax
jne 0x444576
pop edi
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
pop esi
call fcn.004568f7
mov esp, ebp
pop ebp
ret
Function at 0x44c840
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov eax, esi
shr eax, 0x1f
push edi
movd xmm0, esi
sub esp, 8
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x468360]
divsd xmm0, qword [0x468330]
movsd qword [ebp - 0xc], xmm0
fld qword [ebp - 0xc]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0xc]
movsd xmm0, qword [ebp - 0xc]
add esp, 8
mulsd xmm0, qword [0x468338]
call fcn.004583c1
mov dword [ebp - 8], eax
test ebx, ebx
je 0x44c97c
mov edi, dword [ebp + 8]
test edi, edi
je 0x44c97c
cmp eax, dword [ebp + 0xc]
ja 0x44c97c
xor ecx, ecx
test esi, esi
je 0x44c942
cmp ecx, esi
jae 0x44c8ca
movzx edx, byte [ecx + ebx]
inc ecx
jmp 0x44c8cc
xor edx, edx
cmp ecx, esi
jae 0x44c8da
movzx eax, byte [ecx + ebx]
inc ecx
mov dword [ebp - 4], eax
jmp 0x44c8e1
mov dword [ebp - 4], 0
cmp ecx, esi
jae 0x44c8ec
movzx eax, byte [ecx + ebx]
inc ecx
jmp 0x44c8ee
xor eax, eax
shl edx, 8
add edx, dword [ebp - 4]
shl edx, 8
add edx, eax
mov eax, edx
shr eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__b]
mov byte [edi], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__b]
mov byte [edi + 1], al
mov eax, edx
shr eax, 6
and edx, 0x3f
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__b]
mov byte [edi + 2], al
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__b]
mov byte [edi + 3], al
add edi, 4
cmp ecx, esi
jb 0x44c8c3
mov edi, dword [ebp + 8]
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
lea eax, [edx + edx*2]
mov edx, dword [ebp - 8]
sub esi, eax
mov ecx, dword [esi*4 + 0x4661d8]
test ecx, ecx
jle 0x44c96e
lea eax, [edx - 1]
add eax, edi
mov byte [eax], 0x3d
lea eax, [eax - 1]
sub ecx, 1
jne 0x44c963
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov dword [eax], edx
mov al, 1
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e0a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45df68
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x47800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor bl, bl
call fcn.0040f730
mov ecx, eax
test ecx, ecx
jne 0x44e0e3
push 0x80004005
call fcn.0041ffc0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x44e0fd
xor ecx, ecx
jmp 0x44e111
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44e102
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.0042d9b0
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44e160
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x44e13f
cmp eax, 3
je 0x44e13f
cmp eax, 0x15
jne 0x44e160
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44e181
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x44e181
mov bl, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44e181
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.004568f7
mov esp, ebp
pop ebp
ret
Function at 0x44e910
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e028
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x47800c]
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 dword [ebp - 0x38], edx
mov byte [ebp - 0x31], cl
mov dword [ebp - 4], 0
mov ebx, 1
mov esi, dword [ebp + 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ecx
jge 0x44e969
push 0
lea ecx, [ebp + 8]
call fcn.0042d950
mov esi, dword [ebp + 8]
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44e970
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045694e
mov edi, eax
add esp, 4
mov eax, dword [ebp + 8]
sub ebx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, ebx
jge 0x44e9b7
push 0
lea ecx, [ebp + 8]
call fcn.0042d950
mov eax, dword [ebp + 8]
push eax
lea eax, [esi + 2]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
xor eax, eax
add esp, 0xc
cmp byte [ebp - 0x31], 0
mov dword [edi + esi*2], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
mov eax, 0x14
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], edi
mov word [ebp - 0x20], ax
jne 0x44e9f3
mov eax, 0x54
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1e], 0
push eax
mov dword [ebp - 0x16], 0
mov dword [ebp - 0x1a], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push edi
mov esi, eax
call fcn.00456908
add esp, 4
mov eax, 0x8123
test edi, edi
cmovne edi, eax
test esi, esi
sete bl
test bl, bl
jne 0x44ea43
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x44ea43
mov ecx, dword [ebp - 0x38]
call fcn.0042c600
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x44ea65
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
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.004568f7
mov esp, ebp
pop ebp
ret
Function at 0x44ea90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e058
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x47800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov bl, cl
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44eafb
test al, 0x10
je 0x44eafb
push ecx
mov ecx, dword [ebp + 8]
mov esi, esp
mov dword [ebp - 0x10], esi
lea ecx, [ecx - 0x10]
call fcn.0042d8f0
add eax, 0x10
mov edx, edi
mov cl, bl
mov dword [esi], eax
call fcn.0044e910
add esp, 4
mov bl, al
jmp 0x44eb16
push dword [ebp + 8]
push str.CFileSystemUtils::DeleteDirectory
push str._s_Directory_does_not_exist___s_
push 0
push 6
call fcn.004506f0
add esp, 0x14
mov bl, 1
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x44eb38
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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 0x44ecd0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ecx
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44ed02
test al, 0x10
je 0x44ed02
push dword [esi]
push str.CFileSystemUtils::CreateDirectoryRecurcive
push str._s_Directory_already_exists___s_
push 0
push 6
call fcn.004506f0
add esp, 0x14
mov al, 1
pop esi
pop ecx
ret
push 0
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push dword [esi]
push str.CFileSystemUtils::CreateDirectoryRecurcive
test eax, eax
je 0x44ed4c
cmp eax, 0xb7
jne 0x44ed36
push str._s_Failed_to_create_directory_because_but_just_because_it_already_exists___s_
push 0
push 6
call fcn.004506f0
add esp, 0x14
mov al, 1
pop esi
pop ecx
ret
push str._s_Failed_to_create_directory___s_
push 0
push 6
call fcn.004506f0
add esp, 0x14
xor al, al
pop esi
pop ecx
ret
push str._s_Created_directory_successfully___s_
push 0
push 6
call fcn.004506f0
add esp, 0x14
mov al, 1
pop esi
pop ecx
ret
Function at 0x44ed70
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e0b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x47800c]
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, edx
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0xc]
push 0xb8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xcc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebx]
lea ecx, [ebp - 0xcc]
call fcn.0044f330
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0x5c]
mov eax, dword [eax + 4]
mov esi, dword [ebp + eax - 0xc0]
call fcn.0044f280
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
test esi, esi
je 0x44ee24
push dword [ebx]
push str.CFileSystemUtils::CopyFileW
push str._s_file_not_exists___s_
push 0
push 6
call fcn.004506f0
mov ecx, dword [ebp - 0x14]
add esp, 0x14
push 0x14
push str.file_does_not_exists
call fcn.0042d9b0
xor al, al
jmp 0x44eec5
push ecx
mov ecx, edi
call fcn.0044ecd0
add esp, 4
test al, al
jne 0x44ee4f
push dword [edi]
push str.CFileSystemUtils::CopyFileW
push str._s_directory_create_error___s_
push 0
push 6
call fcn.004506f0
add esp, 0x14
xor al, al
jmp 0x44eec5
call fcn.0040f730
mov ecx, eax
test ecx, ecx
jne 0x44ee64
push 0x80004005
call fcn.0041ffc0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp - 0x14]
push dword [edi]
push str._s_s
push eax
call fcn.0042e6b0
mov esi, dword [ebp - 0x14]
add esp, 0x10
push 0
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov dword [ebp - 4], 0xffffffff
setne bl
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x44eec3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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.004568f7
mov esp, ebp
pop ebp
ret