joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100406af
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x34], 0
je 0x100406cc
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x7c]
xor byte [ecx], al
inc edx
cmp edx, 0x33
jb 0x100406ba
mov byte [esi + 0x34], 0
pop esi
ret

Function at 0x100406ce
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
je 0x100406eb
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x7c]
xor byte [ecx], al
inc edx
cmp edx, 0x23
jb 0x100406d9
mov byte [esi + 0x24], 0
pop esi
ret

Function at 0x100406ed
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1a5], 0
je 0x10040713
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x7c]
xor byte [ecx], al
inc edx
cmp edx, 0x1a4
jb 0x100406fb
mov byte [esi + 0x1a5], 0
pop esi
ret

Function at 0x10040715
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2c], 0
je 0x10040732
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x7c]
xor byte [ecx], al
inc edx
cmp edx, 0x2b
jb 0x10040720
mov byte [esi + 0x2c], 0
pop esi
ret

Function at 0x10040734
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x22], 0
je 0x10040751
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x7c]
xor byte [ecx], al
inc edx
cmp edx, 0x21
jb 0x1004073f
mov byte [esi + 0x22], 0
pop esi
ret

Function at 0x10040753
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x5f], 0
je 0x10040770
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x7c]
xor byte [ecx], al
inc edx
cmp edx, 0x5e
jb 0x1004075e
mov byte [esi + 0x5f], 0
pop esi
ret

Function at 0x10040772
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x3c], 0
je 0x1004078f
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x7c]
xor byte [ecx], al
inc edx
cmp edx, 0x3b
jb 0x1004077d
mov byte [esi + 0x3c], 0
pop esi
ret

Function at 0x10040791
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x68], 0
je 0x100407ae
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x7c]
xor byte [ecx], al
inc edx
cmp edx, 0x67
jb 0x1004079c
mov byte [esi + 0x68], 0
pop esi
ret

Function at 0x100407b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x41], 0
je 0x100407cd
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x7c]
xor byte [ecx], al
inc edx
cmp edx, 0x40
jb 0x100407bb
mov byte [esi + 0x41], 0
pop esi
ret

Function at 0x100407cf
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x8b], 0
je 0x100407f5
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x7c]
xor byte [ecx], al
inc edx
cmp edx, 0x8a
jb 0x100407dd
mov byte [esi + 0x8b], 0
pop esi
ret

Function at 0x100407f7
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2b], 0
je 0x10040814
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x7c]
xor byte [ecx], al
inc edx
cmp edx, 0x2a
jb 0x10040802
mov byte [esi + 0x2b], 0
pop esi
ret
Function at 0x10040816
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1e], 0
je 0x10040833
xor edx, edx
lea ecx, [esi + edx]
lea eax, [edx + 0x7c]
xor byte [ecx], al
inc edx
cmp edx, 0x1d
jb 0x10040821
mov byte [esi + 0x1e], 0
pop esi
ret
Function at 0x1004d4e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1004d690
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1004d5ad
mov edx, dword [ebp - 4]
cmp edx, dword [0x1005e090]
jb 0x1004d52a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1005e094]
ja 0x1004d52a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1004d4fa
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004d550
jmp 0x1004d5ad
cmp dword [ebp - 0x14], 0x10000
jne 0x1004d593
cmp dword [ebp - 0x18], 0x10000
jb 0x1004d593
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1004d586
mov eax, dword [ebp - 8]
jmp 0x1004d5af
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004d5a8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1004d690
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004d4fa
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1004d5c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1004d6c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1004d685
mov edx, dword [ebp - 4]
cmp edx, dword [0x1005e090]
jb 0x1004d605
mov eax, dword [ebp - 4]
cmp eax, dword [0x1005e094]
ja 0x1004d605
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1004d5d5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004d62b
jmp 0x1004d685
cmp dword [ebp - 0x14], 0x10000
jne 0x1004d66e
cmp dword [ebp - 0x18], 0x10000
jb 0x1004d66e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1004d661
mov eax, dword [ebp - 8]
jmp 0x1004d687
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004d680
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1004d6c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004d5d5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402b60
Capabilities:
Check os version

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

Function at 0x402c00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402c34
call fcn.00402b40
cmp eax, 7
jb 0x402c34
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.00402b20
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 0x402c40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402c73
call fcn.00402b40
test eax, eax
je 0x402c73
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00402b20
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 0x402d70
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0xa59064]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402db9
push str.SetDefaultDllDirectories
push 0xa1d790
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402db9
push 0xc00
call eax
test eax, eax
jne 0x402e58
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402e58
cmp eax, 0x104
ja 0x402e58
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x402df3
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x402e57
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
inc esi
mov eax, edi
test cl, cl
je 0x402e30
nop dword [eax + eax]
movzx ecx, cl
mov word [eax], cx
add eax, 2
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x402e20
xor ecx, ecx
mov dword [eax], 0x64002e
push 8
mov dword [eax + 4], 0x6c006c
mov word [eax + 8], cx
lea eax, [ebp - 0x2d4]
push ecx
push eax
call ebx
mov cl, byte [esi]
test cl, cl
jne 0x402e14
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009857d7
mov esp, ebp
pop ebp
ret
Function at 0x408160
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.009dd200
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 0x4081f7
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 + 0xa1d7b0]
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 0x408240
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x408224
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x408220
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 0x408290
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x408280
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x409200
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 0x40924f
cmp edx, 0x40
je 0x40923b
mov ecx, 0x40
lea edi, [esi + 0x40]
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
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 0x409255
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.009dd200
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 0x409298
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop edi
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 0x409300
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [section..data]
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 0x409ab0
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.009e10c5
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x409add
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 0x40cf30
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.004107f0
test al, al
jne 0x40cf63
lea ecx, [ebp - 4]
xor bl, bl
call fcn.00410820
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 0x40cfb3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.009dcc80
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 0x40cfb3
pop edi
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov bl, 1
call fcn.00410820
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
lea ecx, [ebp - 4]
xor bl, bl
call fcn.00410820
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40cfd0
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa176b8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0xa59064]
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 byte [ebp + 0xb]
test eax, eax
je 0x40d0b0
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40d0b0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
lea eax, [eax*2 + 2]
push eax
push dword [esi]
push 0xd
call fcn.0040cf30
push 0
mov bl, al
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040c020
mov ecx, dword [ebp - 0x14]
inc ecx
mov byte [ebp - 4], 1
push ecx
push dword [ebp - 0x18]
push 1
call fcn.0040cf30
mov edi, 1
movzx ebx, bl
push edi
test al, al
lea eax, [ebp - 0x24]
push esi
push eax
cmovne ebx, edi
call fcn.0040c020
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040a530
push dword [ebp - 0x24]
call fcn.009859d5
mov eax, dword [ebp - 0x14]
add esp, 4
inc eax
push eax
push dword [ebp - 0x18]
push 7
call fcn.0040cf30
push dword [ebp - 0x18]
test al, al
movzx ebx, bl
cmovne ebx, edi
call fcn.009859d5
add esp, 4
jmp 0x40d0b2
xor bl, bl
cmp byte [ebp + 0xb], 0
je 0x40d0be
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 0x40e100
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa5d6d8], 0
jne 0x40e138
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040bbf0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009859d5
add esp, 4
test esi, esi
pop esi
jmp 0x40e145
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40e14f
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x40e160
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040f330
cmp eax, 0xffffffff
je 0x40e18d
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x40e18d
and eax, 0xfffffffe
push eax
push esi
call fcn.0040e630
test al, al
je 0x40e1cc
cmp byte [0xa5d6d8], 0
push esi
jne 0x40e1b9
lea eax, [ebp - 0xc]
push eax
call fcn.0040bbf0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009859d5
add esp, 4
test esi, esi
jmp 0x40e1c1
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40e1cc
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 0x40e1e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa17856
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0xa59064]
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 [0xa5d6d8], cl
jne 0x40e28c
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40e368
cmp eax, 0x114
jae 0x40e368
lea eax, [ebp - 0x128]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.0040bbc0
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0040a600
push dword [ebp - 0x36c]
call fcn.009859d5
add esp, 4
mov al, 1
jmp 0x40e36a
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 0x40e368
cmp esi, 0x114
jae 0x40e2d7
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.0040a770
mov al, 1
jmp 0x40e36a
lea ecx, [ebp - 0x360]
call fcn.0040a500
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x40e2fd
push esi
lea ecx, [ebp - 0x360]
call fcn.0040b350
push dword [ebp - 0x360]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test edx, edx
je 0x40e35a
mov ecx, dword [ebp - 0x360]
xor eax, eax
mov word [ecx + esi*2], ax
cmp word [ecx], ax
je 0x40e329
inc eax
cmp word [ecx + eax*2], 0
jne 0x40e321
mov dword [ebp - 0x35c], eax
cmp eax, edx
jne 0x40e35a
lea eax, [esi - 1]
cmp eax, edx
jne 0x40e35a
lea eax, [ebp - 0x360]
mov ecx, edi
push eax
call fcn.0040a600
push dword [ebp - 0x360]
call fcn.009859d5
add esp, 4
mov al, 1
jmp 0x40e36a
push dword [ebp - 0x360]
call fcn.009859d5
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.009857d7
mov esp, ebp
pop ebp
ret 4

Function at 0x40e4a0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa176e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0xa59064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0xa5d6d8], 0
push dword [ebp + 0xc]
jne 0x40e527
lea eax, [ebp - 0x24]
push eax
call fcn.0040bbf0
mov esi, eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
call fcn.0040bbf0
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.009859d5
push dword [ebp - 0x24]
call fcn.009859d5
add esp, 8
test esi, esi
je 0x40e548
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40e548
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 0x40e560
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa5d6d8], 0
jne 0x40e596
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040bbf0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009859d5
add esp, 4
test esi, esi
pop esi
jmp 0x40e5a1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40e5ab
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x40e630
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa5d6d8], 0
jne 0x40e669
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040bbf0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009859d5
add esp, 4
test esi, esi
pop esi
jmp 0x40e677
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40e681
mov al, 1
mov esp, ebp
pop ebp
ret 8
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x40e690
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 [0xa5d6d8], 0
jne 0x40e6e4
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040bbf0
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009859d5
add esp, 4
test esi, esi
je 0x40e6fb
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 0x40e6fb
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 0x40f330
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xa5d6d8], 0
jne 0x40f36a
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040bbf0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.009859d5
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