joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4b0014]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x4b3790]
push edi
push 0xf0
push eax
push esi
mov dword [ebp - 0x130], ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x445fc4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x445fc4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x445fc4
mov edx, 0x1234
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x445faf
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x134], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x445f24
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00461b50
add esp, 0xc
lea eax, [ebp - 0x104]
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
push 3
push esi
call fcn.00446110
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x130]
push 0
push 0x143
push ebx
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 0x445f9c
push eax
call fcn.00464579
add esp, 4
jmp 0x445f9c
cmp dx, ax
jne 0x445fa1
push 3
lea eax, [ebp - 0x234]
mov dword [ebp - 0x12c], 1
push esi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x128], 0xffffffff
mov dword [ebp - 0x238], eax
call fcn.00446110
mov eax, dword [ebp - 0x238]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x124], eax
cmp eax, ecx
je 0x445f76
push eax
call fcn.00464579
add esp, 4
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x130]
push 0
push 0x40b
push ebx
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 - 0x134]
test edi, edi
jne 0x445e86
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 4
Function at 0x446dc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x184
mov eax, dword [0x4b0014]
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 0x446e01
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 fcn.00461b50
push 0x110
lea eax, [esp + 0x84]
mov dword [esp + 0x20], 0x30
push 0
push eax
call fcn.00461b50
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 0x446e5a
mov eax, dword [esp + 0x74]
cmp eax, 5
jae 0x446e62
cmp eax, 4
jne 0x446e5a
cmp dword [esp + 0x78], 0x5a
jae 0x446e62
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 0x446e84
or eax, 3
mov dword [esp + 0x1c], eax
test ecx, 0x200
je 0x446e93
or eax, 8
mov dword [esp + 0x1c], eax
test ecx, 0x1000
je 0x446ea4
or eax, 0x1000
mov dword [esp + 0x1c], eax
test ecx, 0x2000
je 0x446f49
push 0x30
lea eax, [esp + 0x44]
push 0
push eax
call fcn.00461b50
push 0x110
lea eax, [esp + 0x84]
mov dword [esp + 0x50], 0x30
push 0
push eax
call fcn.00461b50
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 0x446f09
mov eax, dword [esp + 0x74]
cmp eax, 5
jae 0x446f11
cmp eax, 4
jne 0x446f09
cmp dword [esp + 0x78], 0x5a
jae 0x446f11
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 0x446f49
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.0045d27f
mov esp, ebp
pop ebp
ret
Function at 0x4474a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4b0014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x4474df
push 0x49cee0
push str._s_failed___no_window_handle_created_
push 2
push 2
call fcn.004569b0
add esp, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d27f
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 0x447545
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 0x447526
pop edi
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
pop esi
call fcn.0045d27f
mov esp, ebp
pop ebp
ret

Function at 0x449110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487d9a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4b0014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.0045e713
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4491d0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00461028
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x4ad904
push eax
call fcn.00461caa
push edi
push esi
call fcn.0045ea5b
add esp, 8
mov eax, esi
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.0045d27f
mov esp, ebp
pop ebp
ret 4
Function at 0x4524f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485146
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b0014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0045d295
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0045e958
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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 0x453020
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 + 0x49fdb0]
divsd xmm0, qword [0x49fd78]
movsd qword [ebp - 0xc], xmm0
fld qword [ebp - 0xc]
fstp qword [esp]
call fcn.004811b0
fstp qword [ebp - 0xc]
movsd xmm0, qword [ebp - 0xc]
add esp, 8
mulsd xmm0, qword [0x49fd80]
call fcn.00482561
mov dword [ebp - 8], eax
test ebx, ebx
je 0x45315c
mov edi, dword [ebp + 8]
test edi, edi
je 0x45315c
cmp eax, dword [ebp + 0xc]
ja 0x45315c
xor ecx, ecx
test esi, esi
je 0x453122
cmp ecx, esi
jae 0x4530aa
movzx edx, byte [ecx + ebx]
inc ecx
jmp 0x4530ac
xor edx, edx
cmp ecx, esi
jae 0x4530ba
movzx eax, byte [ecx + ebx]
inc ecx
mov dword [ebp - 4], eax
jmp 0x4530c1
mov dword [ebp - 4], 0
cmp ecx, esi
jae 0x4530cc
movzx eax, byte [ecx + ebx]
inc ecx
jmp 0x4530ce
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_]
mov byte [edi], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 1], al
mov eax, edx
shr eax, 6
and edx, 0x3f
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 2], al
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 3], al
add edi, 4
cmp ecx, esi
jb 0x4530a3
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 + 0x49dc00]
test ecx, ecx
jle 0x45314e
lea eax, [edx - 1]
add eax, edi
mov byte [eax], 0x3d
lea eax, [eax - 1]
sub ecx, 1
jne 0x453143
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 0x454800
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488b68
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4b0014]
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.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x454843
push 0x80004005
call fcn.0041ffd0
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 0x45485d
xor ecx, ecx
jmp 0x454871
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x454862
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.0042da10
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4548c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x45489f
cmp eax, 3
je 0x45489f
cmp eax, 0x15
jne 0x4548c0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4548e1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4548e1
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 0x4548e1
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.0045d27f
mov esp, ebp
pop ebp
ret
Function at 0x454e30
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488c28
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4b0014]
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 0x454e89
push 0
lea ecx, [ebp + 8]
call fcn.0042d930
mov esi, dword [ebp + 8]
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x454e90
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.0045d2c8
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 0x454ed7
push 0
lea ecx, [ebp + 8]
call fcn.0042d930
mov eax, dword [ebp + 8]
push eax
lea eax, [esi + 2]
push eax
push edi
call fcn.0046d1a6
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 0x454f12
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.0045d290
add esp, 4
mov eax, 0x8123
test edi, edi
cmovne edi, eax
test esi, esi
sete bl
test bl, bl
jne 0x454f62
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x454f62
mov ecx, dword [ebp - 0x38]
call fcn.0042c480
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 0x454f84
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.0045d27f
mov esp, ebp
pop ebp
ret
Function at 0x454fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488c58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b0014]
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 0x455019
test al, 0x10
je 0x455019
push ecx
mov ecx, dword [ebp + 8]
mov esi, esp
mov dword [ebp - 0x10], esi
lea ecx, [ecx - 0x10]
call fcn.0042d8d0
add eax, 0x10
mov edx, edi
mov cl, bl
mov dword [esi], eax
call fcn.00454e30
add esp, 4
mov bl, al
jmp 0x455034
push dword [ebp + 8]
push str.CFileSystemUtils::DeleteDirectory
push str._s_Directory_does_not_exist___s_
push 0
push 6
call fcn.004569b0
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 0x455056
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 0x455220
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x455250
test al, 0x10
je 0x455250
push dword [esi]
push str.CFileSystemUtils::CreateDirectoryRecurcive
push str._s_Directory_already_exists___s_
push 0
push 6
call fcn.004569b0
add esp, 0x14
mov al, 1
pop esi
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 0x455298
cmp eax, 0xb7
jne 0x455283
push str._s_Failed_to_create_directory_because_but_just_because_it_already_exists___s_
push 0
push 6
call fcn.004569b0
add esp, 0x14
mov al, 1
pop esi
ret
push str._s_Failed_to_create_directory___s_
push 0
push 6
call fcn.004569b0
add esp, 0x14
xor al, al
pop esi
ret
push str._s_Created_directory_successfully___s_
push 0
push 6
call fcn.004569b0
add esp, 0x14
mov al, 1
pop esi
ret
Function at 0x4552b0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488cb8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4b0014]
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, edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
call fcn.00455130
test al, al
jne 0x45531e
push dword [edi]
push str.CFileSystemUtils::CopyFileW
push str._s_file_not_exists___s_
push 0
push 6
call fcn.004569b0
add esp, 0x14
mov ecx, ebx
push 0x14
push str.file_does_not_exists
call fcn.0042da10
xor al, al
jmp 0x4553bc
push ecx
mov ecx, esi
call fcn.00455220
add esp, 4
test al, al
jne 0x455349
push dword [esi]
push str.CFileSystemUtils::CopyFileW
push str._s_directory_create_error___s_
push 0
push 6
call fcn.004569b0
add esp, 0x14
xor al, al
jmp 0x4553bc
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x45535e
push 0x80004005
call fcn.0041ffd0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp - 0x14]
push dword [esi]
push str._s_s
push eax
call fcn.0042e840
mov esi, dword [ebp - 0x14]
add esp, 0x10
push 0
push esi
push dword [edi]
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 0x4553ba
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.0045d27f
mov esp, ebp
pop ebp
ret
Function at 0x456070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488d68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4b0014]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x45619e
cmp byte [ebx + 0x3d], 0
je 0x45619e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4560c9
xor al, al
jmp 0x4561a0
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00451720
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x45612f
sub eax, 1
je 0x456133
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x456186
xor bl, bl
jmp 0x456188
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x456168
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0046d712
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x45612b
cmp byte [ebx + 0x3d], 0
je 0x456186
test esi, esi
jne 0x4560f1
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0044c080
jmp 0x4560ee
mov bl, 1
cmp ecx, 0x10
jb 0x45619a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0042d5e0
mov al, bl
jmp 0x4561a0
mov al, 1
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.0045d27f
mov esp, ebp
pop ebp
ret
Function at 0x4566e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488e52
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x4b0014]
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, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x444], 0
mov dword [ebp - 4], 2
xorps xmm0, xmm0
mov dword [ebp - 0x440], 0
movups xmmword [ebp - 0x43c], xmm0
mov dword [ebp - 0x424], 0
movq qword [ebp - 0x42c], xmm0
mov dword [edi], 0
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x45676b
push 0x80004005
call fcn.0041ffd0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], 1
push 0
push eax
call fcn.00461b50
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00461b50
add esp, 0x18
mov dword [ebp - 0x440], esi
cmp byte [ebp + 0x18], 0
mov eax, 1
mov ecx, 0x11
cmovne eax, ecx
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
je 0x456810
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x456810
test al, 0x10
je 0x456810
push ecx
mov ecx, dword [ebp + 0x10]
mov esi, esp
mov dword [ebp - 0x448], esi
lea ecx, [ecx - 0x10]
call fcn.0042d8d0
add eax, 0x10
mov dword [esi], eax
call fcn.00456610
add esp, 4
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
je 0x456852
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x218]
push eax
push 0x499654
push edi
call fcn.0042e840
add esp, 0xc
jmp 0x456859
mov ecx, edi
call fcn.0042c480
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp + 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45687a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x456896
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.0045d27f
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4579f0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4b0014]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push str.CProcessKiller::CProcessKiller
push str._s_Started
push 0
push 5
mov esi, ecx
call fcn.004569b0
add esp, 0x10
mov dword [esp + 8], 0
lea eax, [esp + 8]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x457ad3
lea eax, [esp + 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x457ad3
mov eax, dword [esp + 0xc]
push 0
push 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
push 0
push dword [esp + 0x1c]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x457aaa
push str.CProcessKiller::CProcessKiller
push str._s_Successfully_changed_token_privileges
push 0
push 5
call fcn.004569b0
add esp, 0x10
jmp 0x457ad3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x457abc
movzx eax, ax
or eax, 0x80070000
push eax
push str.CProcessKiller::CProcessKiller
push str._s_Failed_to_change_token_privileges_error__0x_x_
push 0
push 5
call fcn.004569b0
add esp, 0x14
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret