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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x100cb9b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.100686c0
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.1008c9e0
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1008d58a
mov al, byte [edi + ecx]
test al, al
je 0x1008d58a
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1008d571
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x1008d5ab
inc eax
sub ecx, 1
jne 0x1008d5a0
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x1008d600
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x1008d5f5
lea edi, [ebp - 0x84]
mov eax, 0x7fffffff
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x1008d5f4
mov bl, byte [edi + ecx]
test bl, bl
je 0x1008d5f4
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x1008d5e0
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.100686c0
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x100baddc
push str.SoftwareComMaster
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x1008d6ba
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x1008d684
test cl, cl
je 0x1008d680
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x1008d684
add eax, 2
add esi, 2
test cl, cl
jne 0x1008d664
xor eax, eax
jmp 0x1008d689
sbb eax, eax
or eax, 1
test eax, eax
je 0x1008d6ba
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1008d696
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.SoftwareComMaster
push 0x80000002
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1008d6c3
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x100baddc
push str.SoftwareComMaster
push 0x80000002
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1004b6e5
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x78f5448a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x18c3573c
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x403010
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403044
call fcn.00402ff0
cmp eax, 7
jb 0x403044
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.00402fd0
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403050
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403083
call fcn.00402ff0
test eax, eax
je 0x403083
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00402fd0
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403130
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x792a74]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x403179
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403179
push 0xc00
call eax
test eax, eax
jne 0x40320e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40320e
cmp ecx, 0x104
ja 0x40320e
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x4031b2
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x40320d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x4031d5
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x4031d2
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004477dd
mov esp, ebp
pop ebp
ret
Function at 0x406a10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x20
mov eax, dword [edi + 4]
cmp eax, ecx
mov dword [edi + 0x78], 0
cmova eax, ecx
mov dword [edi + 0x7c], 0
mov dword [edi + 0x54], eax
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 0x30], 1
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 1
mov dword [edi + 0x70], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x90], 0xffffffff
mov dword [edi + 0x94], 0xffffffff
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x58], 0
cmp eax, dword [edi + 0x20]
je 0x406b43
mov ecx, 0x20
lea ebx, [edi + 0xd0]
mov dword [ebp + 8], ecx
nop word [eax + eax]
mov eax, dword [ebx]
test eax, eax
je 0x406b18
mov dword [ebx], 0
nop dword [eax]
mov ecx, dword [ebx - 8]
mov esi, dword [eax]
push eax
mov ecx, dword [ecx + 0x14]
push ecx
mov eax, dword [ecx + 4]
call eax
mov eax, esi
test esi, esi
jne 0x406b00
mov ecx, dword [ebp + 8]
add ebx, 0x28
sub ecx, 1
mov dword [ebp + 8], ecx
jne 0x406af0
mov ecx, dword [edi + 0x5c]
test ecx, ecx
je 0x406b3b
mov eax, dword [edi + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov dword [edi + 0x5c], 0
mov eax, dword [edi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x10]
mov dword [edi + 0x98], eax
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
mov dword [edi + 0x9c], 0
lea ebx, [edi + eax*8]
mov dword [edi + 0xa0], 0
lea eax, [ecx + 1]
mov dword [edi + 0xa4], 0
mov dword [edi + 0x58], eax
lea eax, [ebx + 0x20]
push eax
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
call fcn.00409db0
lea esi, [ebx + 0x1c]
test eax, eax
jne 0x406c28
push esi
call fcn.00409db0
test eax, eax
jne 0x406c28
lea eax, [ebx + 0x20]
push eax
call fcn.00409ed0
test eax, eax
jne 0x406c28
push esi
call fcn.00409ed0
test eax, eax
jne 0x406c28
push ebx
call fcn.00407d40
mov dword [ebp - 4], eax
test eax, eax
je 0x406c39
mov dword [edi + 0x44], 0
lea esi, [edi + 0xe4]
mov dword [ebp + 8], 0x20
nop dword [eax]
cmp dword [esi - 4], 0
lea ebx, [esi + 4]
je 0x406c0e
push ebx
call fcn.00409ed0
push esi
call fcn.00409ed0
lea eax, [esi - 4]
push eax
call fcn.0040a0f0
push esi
call fcn.00409f00
push ebx
call fcn.00409f00
add esi, 0x28
sub dword [ebp + 8], 1
jne 0x406bf0
mov eax, dword [ebp - 4]
test eax, eax
jle 0x406c32
movzx eax, ax
or eax, 0x80070000
test eax, eax
je 0x406c39
mov dword [edi + 0x40], eax
cmp dword [edi + 0x38], 0
jne 0x406c52
cmp dword [edi + 0x40], 0
jne 0x406c52
cmp dword [edi + 0x3c], 0
jne 0x406c52
mov dword [edi + 0x44], 0
xor ecx, ecx
cmp dword [edi + 0x44], ecx
pop edi
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4086f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call fcn.00448f30
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x408787
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, eax
xor edi, edi
movzx eax, word [edi + 0x458570]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x4087d0
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x4087b4
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x4087b0
mov edi, dword [ebp + 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x408820
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x408810
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4097f0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x40983b
cmp edx, 0x40
je 0x409827
mov eax, 0x40
lea ecx, [esi + 0x40]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.00448f30
add esp, 0xc
mov eax, dword [esi]
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov edx, edi
push 1
mov ecx, ebx
call eax
xor edx, edx
jmp 0x409841
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.00448f30
mov ecx, dword [esi + 8]
add esp, 0xc
mov eax, dword [esi + 0xc]
mov edx, edi
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
mov ecx, ebx
push 1
call eax
mov edi, dword [ebp + 0xc]
mov edx, ebx
mov ebx, 4
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x409884
pop edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4098f0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x792a4c]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
pop ebp
ret 4

Function at 0x40a0a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.0044b887
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x40a0cd
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d640
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [ebp + 0x10]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push 0x2002
call fcn.00410f60
test al, al
jne 0x40d673
lea ecx, [ebp - 4]
xor bl, bl
call fcn.00410f90
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40d6c3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.004489b0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40d6c3
pop edi
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov bl, 1
call fcn.00410f90
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
lea ecx, [ebp - 4]
xor bl, bl
call fcn.00410f90
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40d6e0
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45497d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x792a74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [ebp + 0xb], al
test al, al
je 0x40d7c5
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40d7c2
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
lea eax, [eax*2 + 2]
push eax
push dword [esi]
push 0xd
call fcn.0040d640
push 0
mov bl, al
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040c740
mov ecx, dword [ebp - 0x14]
inc ecx
mov byte [ebp - 4], 1
push ecx
push dword [ebp - 0x18]
push 1
call fcn.0040d640
mov edi, 1
movzx ebx, bl
push edi
test al, al
lea eax, [ebp - 0x24]
push esi
push eax
cmovne ebx, edi
call fcn.0040c740
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040ac20
push dword [ebp - 0x24]
call fcn.00447a1c
mov eax, dword [ebp - 0x14]
add esp, 4
inc eax
push eax
push dword [ebp - 0x18]
push 7
call fcn.0040d640
push dword [ebp - 0x18]
test al, al
movzx ebx, bl
cmovne ebx, edi
call fcn.00447a1c
add esp, 4
jmp 0x40d7cb
mov al, byte [ebp + 0xb]
xor bl, bl
test al, al
je 0x40d7d1
call dword [sym.imp.USER32.dll_CloseClipboard]
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 8
Function at 0x40e880
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x796698], 0
jne 0x40e8b8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040c310
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00447a1c
add esp, 4
test esi, esi
pop esi
jmp 0x40e8c5
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40e8cf
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x40e8e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040fa80
cmp eax, 0xffffffff
je 0x40e90d
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x40e90d
and eax, 0xfffffffe
push eax
push esi
call fcn.0040eda0
test al, al
je 0x40e94c
cmp byte [0x796698], 0
push esi
jne 0x40e939
lea eax, [ebp - 0xc]
push eax
call fcn.0040c310
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00447a1c
add esp, 4
test esi, esi
jmp 0x40e941
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40e94c
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40e960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454b1b
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x792a74]
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]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x796698], cl
jne 0x40ea0c
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40eae8
cmp eax, 0x114
jae 0x40eae8
lea eax, [ebp - 0x128]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.0040c2e0
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0040acf0
push dword [ebp - 0x36c]
call fcn.00447a1c
add esp, 4
mov al, 1
jmp 0x40eaea
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
je 0x40eae8
cmp esi, 0x114
jae 0x40ea57
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.0040ae70
mov al, 1
jmp 0x40eaea
lea ecx, [ebp - 0x360]
call fcn.0040abf0
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x40ea7d
push esi
lea ecx, [ebp - 0x360]
call fcn.0040ba70
push dword [ebp - 0x360]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test edx, edx
je 0x40eada
mov ecx, dword [ebp - 0x360]
xor eax, eax
mov word [ecx + esi*2], ax
cmp word [ecx], ax
je 0x40eaa9
inc eax
cmp word [ecx + eax*2], 0
jne 0x40eaa1
mov dword [ebp - 0x35c], eax
cmp eax, edx
jne 0x40eada
lea eax, [esi - 1]
cmp eax, edx
jne 0x40eada
lea eax, [ebp - 0x360]
mov ecx, edi
push eax
call fcn.0040acf0
push dword [ebp - 0x360]
call fcn.00447a1c
add esp, 4
mov al, 1
jmp 0x40eaea
push dword [ebp - 0x360]
call fcn.00447a1c
add esp, 4
xor al, al
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.004477dd
mov esp, ebp
pop ebp
ret 4

Function at 0x40ec20
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4549ad
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x792a74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x796698], 0
push dword [ebp + 0xc]
jne 0x40ec93
lea eax, [ebp - 0x24]
push eax
call fcn.0040c310
mov esi, eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
call fcn.0040c310
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00447a1c
push dword [ebp - 0x24]
call fcn.00447a1c
add esp, 8
test esi, esi
jmp 0x40ec9e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40ecb4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40ecd0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x796698], 0
jne 0x40ed06
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040c310
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00447a1c
add esp, 4
test esi, esi
pop esi
jmp 0x40ed11
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40ed1b
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x40eda0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x796698], 0
jne 0x40edd9
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040c310
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00447a1c
add esp, 4
test esi, esi
pop esi
jmp 0x40ede7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40edf1
mov al, 1
mov esp, ebp
pop ebp
ret 8
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x40ee00
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
mov eax, ecx
push esi
mov esi, ecx
and esi, 0x3fff
and eax, 0xf0000000
cmove esi, ecx
cmp byte [0x796698], 0
jne 0x40ee54
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040c310
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00447a1c
add esp, 4
test esi, esi
je 0x40ee6b
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40ee6b
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x796698], 0
jne 0x40faba
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040c310
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00447a1c
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 4