joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40627e
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x44c200], 2
jl 0x4062a3
movaps xmm0, xmmword [0x4367f0]
movaps xmmword [0x443040], xmm0
movaps xmm0, xmmword [0x4367e0]
movaps xmmword [0x443050], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.0040666c
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x4367b8]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x4062b1
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x4069ea
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x406a14
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x443060]
inc edi
sub esi, 1
jne 0x4069fc
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x406bf3
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x44277c]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
xor ebp, ebp
cmp dword [edi], 2
lea esi, [edi + 4]
jne 0x406c54
mov eax, dword [esi]
push ebp
push ebp
push ebp
push ebp
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push 0x20
push ebx
call fcn.004073f1
mov edx, ebp
movzx eax, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor eax, ebp
inc edx
mov ebp, eax
cmp edx, 0x20
jb 0x406c37
mov dword [esi], eax
xor ebp, ebp
cmp dword [edi], 3
jne 0x406c7d
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x24]
push eax
push 0x20
push esi
push 0x20
push ebx
call fcn.004073f1
push 0x20
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00424250
add esp, 0xc
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004210f9
add esp, 0x28
ret 8
Function at 0x4073f1
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1d4
mov eax, dword [0x44277c]
xor eax, esp
mov dword [esp + 0x1d0], eax
mov eax, dword [esp + 0x1e0]
mov edx, dword [esp + 0x1f0]
push ebx
mov ebx, dword [esp + 0x1e0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1ec]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1f8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1fc]
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
push ebp
mov ebp, dword [esp + 0x1e0]
push esi
push edi
mov edi, dword [esp + 0x1fc]
mov dword [esp + 0x1c], edi
cmp ebx, 0x40
jbe 0x40749d
lea eax, [esp + 0xf8]
push eax
call fcn.00412084
push ebx
push ebp
lea eax, [esp + 0x100]
push eax
call fcn.004120ca
lea eax, [esp + 0x1a0]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.00411fa1
mov edx, dword [esp + 0x10]
lea ebp, [esp + 0x1a0]
push 0x20
pop ebx
test edi, edi
je 0x4074b7
cmp byte [edx], 0
je 0x4074b7
mov esi, edi
lea edi, [esp + 0x28]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
jmp 0x407522
xor edx, edx
test ebx, ebx
je 0x4074dd
mov esi, ebp
lea eax, [esp + 0x160]
sub esi, eax
lea ecx, [esp + 0x160]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x4074c8
cmp ebx, 0x40
jae 0x4074fc
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x160]
push eax
add ecx, ebx
push 0x36
push ecx
call fcn.00422640
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call fcn.00412084
push 0x40
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004120ca
test edi, edi
je 0x407533
mov edx, dword [esp + 0x10]
cmp byte [edx], 0
jne 0x407533
push 0x1a
pop ecx
lea esi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
push dword [esp + 0x1f4]
lea eax, [esp + 0x2c]
push dword [esp + 0x24]
push eax
call fcn.004120ca
lea eax, [esp + 0x1c0]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00411fa1
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40757f
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x40757f
mov esi, edi
lea edi, [esp + 0x90]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
jmp 0x4075ee
test ebx, ebx
je 0x4075a3
lea eax, [esp + 0x160]
sub ebp, eax
xor edx, edx
lea ecx, [esp + 0x160]
add ecx, edx
mov al, byte [ecx + ebp]
xor al, 0x5c
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x40758e
cmp ebx, 0x40
jae 0x4075c2
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x160]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.00422640
add esp, 0xc
lea eax, [esp + 0x90]
push eax
call fcn.00412084
push 0x40
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.004120ca
test edi, edi
je 0x407602
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
jne 0x407602
push 0x1a
pop ecx
lea esi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x20
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.004120ca
push dword [esp + 0x24]
lea eax, [esp + 0x94]
push eax
call fcn.00411fa1
mov ecx, dword [esp + 0x1e0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004210f9
add esp, 0x1d4
ret 0x24
Function at 0x407645
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x19c
mov eax, dword [0x44277c]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x1a8]
push ebx
mov ebx, dword [esp + 0x1b8]
push ebp
mov ebp, dword [esp + 0x1c0]
push esi
mov esi, dword [esp + 0x1b8]
push edi
mov edi, dword [esp + 0x1c0]
push 0x40
mov dword [esp + 0x18], eax
pop eax
cmp esi, eax
jae 0x407694
mov eax, esi
push eax
push ecx
lea eax, [esp + 0x14c]
push eax
call fcn.00424250
add esp, 0xc
cmp esi, 0x44
jae 0x407867
xor ecx, ecx
lea eax, [esi + 1]
mov byte [esp + esi + 0x144], cl
cmp eax, 0x44
jae 0x407867
mov byte [esp + eax + 0x144], cl
lea eax, [esi + 2]
cmp eax, 0x44
jae 0x407867
push ecx
push ecx
push ecx
mov byte [esp + eax + 0x150], cl
lea eax, [esp + 0x110]
push ecx
push eax
lea eax, [esi + 4]
mov byte [esp + esi + 0x15b], 1
push eax
lea eax, [esp + 0x15c]
push eax
push dword [esp + 0x1d0]
push dword [esp + 0x34]
call fcn.004073f1
push 0x20
lea eax, [esp + 0x108]
push eax
lea eax, [esp + 0x12c]
push eax
call fcn.00424250
mov eax, dword [esp + 0x1d8]
add esp, 0xc
dec eax
mov dword [esp + 0xfc], ebx
mov dword [esp + 0xec], eax
xor esi, esi
mov dword [esp + 0xf8], edi
push 0x10
pop eax
push 0x20
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0x104], ebp
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 0
mov dword [esp + 0x1c], esi
pop ebx
mov edi, dword [esp + esi + 0xec]
test edi, edi
je 0x4077eb
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x198]
push eax
push ebx
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x1d0]
push esi
call fcn.004073f1
push ebx
lea eax, [esp + 0x18c]
push eax
lea eax, [esp + 0x10c]
push eax
call fcn.00424250
add esp, 0xc
xor ecx, ecx
mov al, byte [esp + ecx + 0x104]
xor byte [esp + ecx + 0x124], al
inc ecx
cmp ecx, ebx
jb 0x4077cf
sub edi, 1
jne 0x40777f
mov esi, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x128]
push eax
push dword [esp + esi + 0x100]
call fcn.00424250
add esi, 4
add esp, 0xc
mov dword [esp + 0x18], esi
cmp esi, 0xc
jb 0x407770
push 0x44
lea eax, [esp + 0x148]
push eax
call fcn.0041145a
push ebx
lea eax, [esp + 0x128]
push eax
call fcn.0041145a
push ebx
lea eax, [esp + 0x108]
push eax
call fcn.0041145a
push ebx
lea eax, [esp + 0x18c]
push eax
call fcn.0041145a
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004210f9
add esp, 0x19c
ret 0x20
call fcn.004213f9
int3
Function at 0x40ace8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435150
mov eax, dword fs:[0]
push eax
mov eax, 0x5048
call fcn.00421590
mov eax, dword [0x44277c]
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, dword [ebp + 8]
lea eax, [ebp - 0x3010]
mov ebx, 0x800
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x40aecd
cmp eax, ebx
jae 0x40aecd
push ebx
lea eax, [ebp - 0x4010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40aecd
cmp eax, ebx
jae 0x40aecd
lea eax, [ebp - 0x3010]
push eax
call fcn.0040e208
mov dword [ebp - 0x5054], eax
lea eax, [ebp - 0x4010]
push eax
call fcn.0040e208
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x40aecd
push edi
push dword [ebp - 0x5054]
call fcn.00414168
test eax, eax
je 0x40aecd
push edi
push esi
call fcn.0040e208
push eax
call fcn.00414168
test eax, eax
jne 0x40aecd
mov word [ebp - 0x1010], ax
mov edi, ebx
test ax, ax
jne 0x40ae2a
push 0x800
push esi
lea eax, [ebp - 0x1010]
push eax
call fcn.0041268b
push edi
push str.rtmp_d
push 0x800
lea eax, [ebp - 0x1010]
push eax
call fcn.0040e208
push eax
call fcn.00404c00
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call fcn.0040bccb
test al, al
je 0x40ae0f
xor eax, eax
mov word [ebp - 0x1010], ax
jmp 0x40ae16
mov ax, word [ebp - 0x1010]
add edi, 0x7b
cmp edi, 0x2710
jl 0x40adbd
test ax, ax
je 0x40aecd
mov edi, 0x800
lea eax, [ebp - 0x2010]
push edi
push esi
push eax
call fcn.0041268b
push edi
push dword [ebp - 0x5054]
lea eax, [ebp - 0x2010]
push eax
call fcn.0040e27e
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40aecd
lea ecx, [ebp - 0x5050]
call fcn.0040aeeb
push esi
mov dword [ebp - 4], ebx
call fcn.0040bccb
test al, al
jne 0x40ae90
push 0x12
push esi
lea ecx, [ebp - 0x5050]
call fcn.0040b01e
mov bl, al
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test bl, bl
je 0x40aebe
lea ecx, [ebp - 0x5050]
call fcn.0040afd0
lea ecx, [ebp - 0x5050]
call fcn.0040b11a
lea ecx, [ebp - 0x5050]
call fcn.0040af2f
mov al, 1
jmp 0x40aecf
xor al, al
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.004210f9
leave
ret 4
Function at 0x40b2b0
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1058
call fcn.00421590
mov eax, dword [0x44277c]
xor eax, esp
mov dword [esp + 0x1054], eax
push ebx
mov ebx, dword [esp + 0x1064]
push ebp
mov ebp, dword [esp + 0x1064]
push edi
mov edi, ecx
mov dword [esp + 0xc], ebp
and dword [edi + 0x1034], 0
cmp byte [edi + 0x30], 0
jne 0x40b2f5
test bl, 4
jne 0x40b2f5
xor al, al
jmp 0x40b2f7
mov al, 1
push esi
mov esi, ebx
shr esi, 1
not esi
and esi, 1
inc esi
shl esi, 0x1e
test bl, 1
je 0x40b310
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test al, al
je 0x40b31f
or ebx, 2
lea ecx, [esp + 0x1c]
call fcn.00407eed
cmp byte [edi + 0x24], 0
je 0x40b334
or esi, 0x100
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40b39b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push 0x800
push eax
push dword [esp + 0x18]
call fcn.0040da1e
test al, al
je 0x40b3a8
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40b3a3
mov dword [esp + 0x14], eax
jmp 0x40b3a3
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp ebp, 0xffffffff
jne 0x40b3b9
cmp dword [esp + 0x14], 2
jne 0x40b3b9
mov dword [edi + 0x1034], 1
cmp byte [edi + 0x24], 0
pop esi
je 0x40b3df
cmp ebp, 0xffffffff
je 0x40b3df
or dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
or dword [esp + 0x14], 0xffffffff
push 0
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x1c], al
mov dword [edi + 0x10], eax
setne bl
mov byte [edi + 0x15], al
je 0x40b40b
push 0x800
push dword [esp + 0x10]
lea ecx, [edi + 0x32]
mov dword [edi + 8], ebp
push ecx
call fcn.0041268b
mov byte [edi + 0x25], 0
mov ecx, dword [esp + 0x1060]
mov al, bl
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004210f9
add esp, 0x1058
ret 8
Function at 0x40b9ba
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, ecx
test esi, esi
jne 0x40b9cf
mov al, 1
jmp 0x40baea
cmp dword [ebp + 0x10], 1
lea ecx, [ebp + 8]
mov dword [esp + 0xc], ecx
jne 0x40b9eb
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp + 8]
mov dword [ecx], eax
jmp 0x40b9ef
mov dword [esp + 0xc], ecx
push ebx
push edi
and dword [esp + 0x10], 0
xor bl, bl
cmp dword [ebp + 0x10], 0
je 0x40ba43
xor edi, edi
test esi, esi
je 0x40ba64
mov eax, esi
sub eax, edi
cmp eax, 0x4000
jb 0x40ba14
mov eax, 0x4000
push 0
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x28]
add eax, edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bl
jne 0x40ba60
mov ecx, dword [esp + 0x14]
add edi, 0x4000
cmp edi, esi
jb 0x40ba04
jmp 0x40ba60
push 0
lea eax, [esp + 0x14]
push eax
push esi
push dword [esp + 0x28]
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
test bl, bl
jne 0x40bae2
cmp byte [ebp + 0x1e], 0
je 0x40bae2
cmp dword [ebp + 0x10], 0
jne 0x40bae2
push 0
lea edi, [ebp + 0x32]
mov ecx, 0x4450c4
push edi
call fcn.00407b1e
test al, al
je 0x40bad5
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x10], esi
jae 0x40b9f1
cmp dword [esp + 0x10], 0
jbe 0x40b9f1
mov edi, dword [ebp]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x436278]
mov ecx, ebp
call esi
sub eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x436278]
mov ecx, ebp
call dword [edi + 0x10]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
jmp 0x40b9f1
push edi
push 0
mov ecx, 0x4450c4
call fcn.00407e45
pop edi
mov al, bl
mov byte [ebp + 0xc], 1
pop ebx
pop esi
pop ebp
pop ecx
pop ecx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00421590
mov eax, dword [0x44277c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bd2c
push 0x800
lea eax, [ebp - 0x1004]
push eax
push edi
call fcn.0040da1e
test al, al
je 0x40bd2c
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004210f9
leave
ret 4
Function at 0x40bee1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00421590
mov eax, dword [0x44277c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040e1ec
movzx eax, word [eax]
cmp eax, 0x2e
je 0x40bf1c
cmp eax, 0x20
je 0x40bf1c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40bf4f
push esi
call fcn.0040bccb
test al, al
jne 0x40bf62
push 0x800
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.0040da1e
test al, al
je 0x40bf62
push 0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40bf62
cmp byte [ebp + 0xc], 0
je 0x40bf5e
push dword [ebp + 0x10]
push esi
call fcn.0040c2e5
xor eax, eax
jmp 0x40bf7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x40bf7a
xor eax, eax
cmp ecx, 3
sete al
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004210f9
leave
ret 0xc

Function at 0x40c0aa
Capabilities:
Move file

Disassembly:
mov eax, 0x2004
call fcn.00421590
mov eax, dword [0x44277c]
xor eax, esp
mov dword [esp + 0x2000], eax
push ebx
push esi
mov esi, dword [esp + 0x2014]
push edi
mov edi, dword [esp + 0x2014]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test eax, eax
jne 0x40c126
push ebp
mov ebp, 0x800
lea eax, [esp + 0x1010]
push ebp
push eax
push edi
call fcn.0040da1e
test al, al
je 0x40c125
push ebp
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0040da1e
test al, al
je 0x40c125
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
pop ebp
mov ecx, dword [esp + 0x200c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004210f9
add esp, 0x2004
ret 8

Function at 0x40c2e5
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00421590
mov eax, dword [0x44277c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x40c33f
push 0x800
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.0040da1e
test al, al
je 0x40c33f
push dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.004210f9
leave
ret 8
Function at 0x40c4a8
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1254
call fcn.00421590
mov eax, dword [0x44277c]
xor eax, esp
mov dword [esp + 0x1250], eax
push ebx
mov ebx, dword [esp + 0x1260]
lea eax, [esp + 4]
push ebp
push esi
mov esi, dword [esp + 0x1264]
or ebp, 0xffffffff
push edi
mov edi, dword [esp + 0x1270]
push eax
cmp esi, ebp
jne 0x40c548
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, ebp
jne 0x40c563
push 0x800
lea eax, [esp + 0x264]
push eax
push ebx
call fcn.0040da1e
test al, al
je 0x40c522
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, ebp
jne 0x40c563
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40c53b
cmp eax, 3
je 0x40c53b
cmp eax, 0x12
je 0x40c53b
mov al, 1
jmp 0x40c53d
xor al, al
mov byte [edi + 0x1044], al
jmp 0x40c60b
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c563
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x40c53d
mov ebp, 0x800
push ebp
push ebx
push edi
call fcn.0041268b
push ebp
lea eax, [esp + 0x40]
push eax
push edi
call fcn.0040e27e
mov ecx, dword [esp + 0x2c]
xor eax, eax
add eax, dword [esp + 0x30]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0x10]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1004], ecx
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x102c], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1034], ecx
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x1038], eax
lea eax, [esp + 0x24]
mov dword [edi + 0x103c], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.00413724
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.00413724
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.00413724
and dword [edi + 0x1040], 0
mov eax, esi
mov ecx, dword [esp + 0x1260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004210f9
add esp, 0x1254
ret 0xc

Function at 0x40cdb9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x44277c]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [0x4450dc], 0
jne 0x40ce1c
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 0xa
ja 0x40ce0c
jne 0x40ce08
cmp dword [ebp - 0x74], 0x55f0
jb 0x40ce08
call fcn.0040ce64
test al, al
je 0x40ce0c
xor al, al
jmp 0x40ce0e
mov al, 1
mov byte [0x4450dd], al
mov byte [0x4450dc], 1
jmp 0x40ce21
mov al, byte [0x4450dd]
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004210f9
add ebp, 0x98
leave
ret
Function at 0x40da1e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00421590
mov eax, dword [0x44277c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1014]
push edi
mov edi, dword [esp + 0x101c]
cmp word [esi], 0
je 0x40dbb7
push esi
call fcn.0040dbdf
push esi
call fcn.00426433
pop ecx
push esi
mov ebx, eax
call fcn.0040dc0a
test al, al
je 0x40daf7
push esi
call fcn.0040dbdf
test al, al
je 0x40dab0
lea eax, [ebx + 4]
cmp dword [esp + 0x1020], eax
jbe 0x40dbb7
push dword [esp + 0x1020]
push 0x436bf8
push edi
call fcn.0041268b
push dword [esp + 0x1020]
push esi
push edi
call fcn.00412663
mov al, 1
jmp 0x40dbb9
push 0x5c
pop eax
cmp word [esi], ax
jne 0x40dbb7
lea ebp, [esi + 2]
cmp word [ebp], ax
jne 0x40dbb7
mov esi, dword [esp + 0x1020]
lea eax, [ebx + 6]
cmp esi, eax
jbe 0x40dbb7
push esi
push 0x436bf8
push edi
call fcn.0041268b
push esi
push 0x436c04
push edi
call fcn.00412663
push esi
push ebp
jmp 0x40daa3
lea eax, [esp + 0x10]
mov ebp, 0x7ff
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40dbb7
cmp eax, ebp
ja 0x40dbb7
movzx eax, word [esi]
push eax
call fcn.0040dcc2
test al, al
je 0x40db5c
lea eax, [ebx + 6]
mov ebx, dword [esp + 0x1020]
cmp ebx, eax
jbe 0x40dbb7
push ebx
push 0x436bf8
push edi
call fcn.0041268b
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push ebx
push eax
push edi
call fcn.00412663
push ebx
jmp 0x40daa2
push 0x800
lea eax, [esp + 0x14]
push eax
call fcn.0040d52f
lea eax, [esp + 0x10]
push eax
call fcn.00426433
add ebx, 4
add eax, ebx
mov ebx, dword [esp + 0x1024]
pop ecx
cmp ebx, eax
jbe 0x40dbb7
push ebx
push 0x436bf8
push edi
call fcn.0041268b
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00412663
cmp word [esi], 0x2e
jne 0x40db56
movzx eax, word [esi + 2]
push eax
call fcn.0040dcc2
test al, al
je 0x40db56
add esi, 4
jmp 0x40db56
xor al, al
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004210f9
add esp, 0x1004
ret 0xc