joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011b7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 0xc]
add eax, 4
movzx ecx, word [eax]
push esi
xor esi, esi
cmp cx, si
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
je 0x4011e4
mov edx, eax
add dword [ebp - 8], 2
inc edx
inc edx
cmp word [edx], si
jne 0x4011d9
add dword [ebp - 8], 2
cmp cx, si
je 0x40133e
push ebx
push edi
mov dword [ebp - 0x1c], eax
mov ax, word [eax]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
and ax, 0x3fff
movzx eax, ax
lea ebx, [ecx + edx]
movzx eax, ax
push 0xc
xor edx, edx
pop ecx
mov dword [ebp - 0x24], eax
div ecx
mov dword [ebp - 0x20], ebx
test edx, edx
mov esi, eax
jne 0x40133c
shl eax, 2
push eax
push 8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x40133c
xor eax, eax
test esi, esi
jbe 0x401259
lea ecx, [ebx + 0xa]
mov dx, word [ecx]
mov word [edi + eax*4], dx
mov word [edi + eax*4 + 2], ax
inc eax
add ecx, 0xc
cmp eax, esi
jb 0x401245
push 0x4011a6
push 4
push esi
push edi
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x10
test esi, esi
jbe 0x401318
lea eax, [edi + 2]
mov byte [ebp - 0x30], 0x80
mov byte [ebp - 0x2f], 0x40
mov byte [ebp - 0x2e], 0x20
mov byte [ebp - 0x2d], 0x10
mov byte [ebp - 0x2c], 8
mov byte [ebp - 0x2b], 4
mov byte [ebp - 0x2a], 2
mov byte [ebp - 0x29], 1
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esi
jmp 0x4012a5
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
imul eax, eax, 0xc
add eax, ebx
movzx ecx, byte [eax]
and ecx, 0x80000001
jns 0x4012c0
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x4012c7
mov dl, byte [eax + 8]
jmp 0x4012ca
mov dl, byte [eax + 9]
test ecx, ecx
mov byte [ebp - 2], dl
jne 0x4012d6
mov cl, byte [eax + 9]
jmp 0x4012d9
mov cl, byte [eax + 8]
mov byte [ebp - 1], cl
lea ecx, [ebp - 0x30]
mov esi, eax
mov eax, ecx
mov dl, 0x80
sub esi, eax
mov al, dl
and al, byte [ebp - 2]
cmp al, dl
jne 0x401308
cmp byte [ebp - 1], 0
mov dl, byte [esi + ecx]
je 0x4012fc
xor dl, byte [ebp - 1]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
inc dword [ebp - 0xc]
mov byte [ebx + eax], dl
inc ecx
mov dl, byte [ecx]
test dl, dl
jne 0x4012e7
add dword [ebp - 0x10], 4
dec dword [ebp - 0x18]
jne 0x4012a2
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
inc eax
inc eax
cmp word [eax], 0
mov dword [ebp - 0x1c], eax
jne 0x4011f6
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ecx]
pop esi
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0xc]
leave
ret
Function at 0x4013b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ecx, ecx
xor edx, edx
xor esi, esi
cmp dword [ebp + 0x14], ecx
jbe 0x4014a6
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
sub eax, esi
cmp eax, 2
jb 0x4013de
cmp byte [esi + ebx], 0xd
jne 0x4013de
cmp byte [esi + ebx + 1], 0xa
je 0x401409
mov al, byte [esi + ebx]
cmp al, 0xa
je 0x401409
cmp al, 0x3d
jne 0x4013ef
inc edx
cmp edx, 2
ja 0x40142b
cmp al, 0x7f
ja 0x40142b
movzx eax, al
mov al, byte [eax + 0x437350]
cmp al, 0x7f
je 0x40142b
cmp al, 0x40
jae 0x401408
test edx, edx
jne 0x40142b
inc ecx
inc esi
cmp esi, dword [ebp + 0x14]
jb 0x4013c7
test ecx, ecx
je 0x4014a6
imul ecx, ecx, 6
add ecx, 7
shr ecx, 3
mov eax, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], eax
jae 0x401430
mov dword [ecx], eax
or eax, 0xffffffff
jmp 0x4014a8
mov ecx, dword [ebp + 8]
push edi
push 3
xor edx, edx
pop edi
mov dword [ebp + 0x14], edx
jmp 0x401499
mov al, byte [ebx]
cmp al, 0xd
je 0x401494
cmp al, 0xa
je 0x401494
movzx eax, al
movzx eax, byte [eax + 0x437350]
xor ebx, ebx
cmp al, 0x40
sete bl
shl edx, 6
and eax, 0x3f
or eax, edx
mov edx, eax
sub edi, ebx
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], 4
jne 0x401491
and dword [ebp + 0x14], 0
test edi, edi
jbe 0x40147c
shr eax, 0x10
mov byte [ecx], al
inc ecx
cmp edi, 1
jbe 0x401489
mov eax, edx
shr eax, 8
mov byte [ecx], al
inc ecx
cmp edi, 2
jbe 0x401491
mov byte [ecx], dl
inc ecx
mov ebx, dword [ebp + 0x10]
dec esi
inc ebx
mov dword [ebp + 0x10], ebx
test esi, esi
ja 0x40143e
sub ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
pop edi
xor eax, eax
pop esi
pop ebx
pop ebp
ret

Function at 0x4014ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
push ebx
mov ebx, eax
je 0x40150b
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x10
sub edi, ebx
pop esi
push esi
lea eax, [ebp - 0x14]
push ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
nop
mov ecx, dword [ebp + 0x10]
mov eax, ebx
sub ecx, ebx
mov dword [ebp - 4], esi
mov dl, byte [edi + eax]
xor dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
dec dword [ebp - 4]
jne 0x4014de
nop
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add dword [ebp + 0x10], esi
add esp, 0xc
add ebx, esi
sub edi, esi
sub dword [ebp + 8], esi
jne 0x4014c5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40154c
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ecx + 0x40]
push edi
mov edi, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov bh, byte [ecx]
mov dword [ebp - 8], eax
movzx eax, byte [ecx + 2]
movzx edx, byte [ecx + 6]
mov bl, byte [ecx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 3]
shl ebx, 8
or ebx, eax
xor eax, eax
mov ah, byte [ecx + 4]
mov al, byte [ecx + 5]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 7]
shl eax, 8
or eax, edx
mov dword [ebp + 8], eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp + 0x14], 0
je 0x40165a
mov edx, eax
imul edx, edx, 0x9e3779b9
test eax, eax
jle 0x401609
mov dword [ebp + 0x10], eax
mov eax, ebx
shr eax, 5
add eax, dword [ebp - 8]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0xc]
xor eax, esi
lea esi, [edx + ebx]
xor eax, esi
sub dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 8]
shr eax, 5
add eax, dword [ebp - 4]
shl esi, 4
add esi, edi
xor eax, esi
mov esi, dword [ebp + 8]
add esi, edx
xor eax, esi
sub ebx, eax
add edx, 0x61c88647
dec dword [ebp + 0x10]
jne 0x4015c8
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4016a2
movzx edx, byte [esi + 2]
xor eax, eax
mov ah, byte [esi]
push 8
push ecx
push esi
mov al, byte [esi + 1]
shl eax, 8
or eax, edx
movzx edx, byte [esi + 3]
shl eax, 8
or eax, edx
movzx edx, byte [esi + 6]
xor ebx, eax
xor eax, eax
mov ah, byte [esi + 4]
mov al, byte [esi + 5]
shl eax, 8
or eax, edx
movzx edx, byte [esi + 7]
shl eax, 8
or eax, edx
xor dword [ebp + 8], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x4016a2
xor ecx, ecx
test eax, eax
jle 0x4016a2
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
mov edx, eax
shr edx, 5
add edx, dword [ebp - 4]
mov esi, eax
shl esi, 4
sub ecx, 0x61c88647
add eax, ecx
add esi, edi
xor edx, esi
xor edx, eax
add ebx, edx
mov eax, ebx
shr eax, 5
add eax, dword [ebp - 8]
mov edx, ebx
shl edx, 4
add edx, dword [ebp - 0xc]
xor eax, edx
lea edx, [ecx + ebx]
xor eax, edx
add dword [ebp + 8], eax
dec dword [ebp + 0x10]
jne 0x401663
mov eax, dword [ebp + 0xc]
mov ecx, ebx
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [eax + 1], cl
mov ecx, dword [ebp + 8]
mov edx, ecx
shr edx, 8
mov byte [eax + 6], dl
mov edx, ecx
mov byte [eax + 3], bl
shr ebx, 0x18
pop edi
shr edx, 0x10
mov byte [eax + 7], cl
shr ecx, 0x18
pop esi
mov byte [eax], bl
mov byte [eax + 5], dl
mov byte [eax + 4], cl
pop ebx
leave
ret

Function at 0xd68b6a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xd68886
add esi, 0xbb369d70
call fcn.00d68ba8
and esi, edx
mov edx, esi
sub edx, 0x102f07f8
xor dword [ecx], eax
or esi, esi
sub edx, esi
add ecx, 2
sub esi, 0x1e3db0f9
cmp ecx, edi
jl fcn.00d68b6a
inc edx
ret
Function at 0x594d50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf4000]
push edi
or ebp, 0xffffffff
jmp 0x594d72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x594d79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x594d68
mov eax, 1
add ebx, ebx
jne 0x594d8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x594d9c
jne 0x594dbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x594dbb
dec eax
add ebx, ebx
jne 0x594da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x594d80
add ebx, ebx
jne 0x594db7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x594e0d
xor ecx, ecx
sub eax, 3
jb 0x594dd3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x594e42
sar eax, 1
mov ebp, eax
jmp 0x594dde
add ebx, ebx
jne 0x594dde
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x594dac
inc ecx
add ebx, ebx
jne 0x594dec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x594dac
add ebx, ebx
jne 0x594df9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x594dee
jne 0x594e0a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x594dee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x594e2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x594e1e
jmp 0x594d6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x594e2c
add edi, ecx
jmp 0x594d6e
pop esi
mov edi, esi
mov ecx, 0x562b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x594e4a
cmp byte [edi], 0xe
jne 0x594e4a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x594e4f
lea edi, [esi + 0x190000]
mov eax, dword [edi]
or eax, eax
je 0x594ec7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a25d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a26f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x594e7c
mov ecx, edi
jns 0x594eab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a2700]
or eax, eax
je 0x594ec1
mov dword [ebx], eax
add ebx, 4
jmp 0x594e99
call dword [esi + 0x1a26fc]
mov ebp, dword [esi + 0x1a2704]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x594efb
sub esp, 0xffffff80
jmp 0x4a5c01
Function at 0x40141e
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.004062fe
test eax, eax
jne 0x401527
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x401493
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x401503
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4014ce
test edi, edi
jne 0x401503
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141e
test eax, eax
jne 0x4014d8
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014a6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040690c
test eax, eax
jne 0x401514
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x401527
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401527
push 0
push esi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x403148
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x9c
mov ecx, dword [esp + 0xa0]
mov eax, 0x4189e0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xb8]
mov ebx, 0x8000
test edi, edi
cmovne ebx, dword [esp + 0xbc]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0x1c], eax
test ecx, ecx
js 0x403190
mov eax, dword [0x429578]
add eax, ecx
push eax
call fcn.00403131
push 4
lea eax, [esp + 0x14]
push eax
push dword [0x40a010]
call fcn.0040696e
test eax, eax
je 0x403354
mov eax, dword [esp + 0x10]
test eax, eax
jns 0x4032f6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40c958
mov dword [esp + 0x14], eax
call fcn.00407c9a
mov eax, dword [esp + 0x10]
and eax, 0x7fffffff
mov ecx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
jbe 0x4032ee
mov ebp, 0x4000
cmp ecx, ebp
cmovl ebp, ecx
push ebp
push 0x4149e0
call fcn.0040311b
test eax, eax
je 0x403354
sub dword [esp + 0x10], ebp
mov dword [0x40c974], ebp
mov ebp, dword [esp + 0x1c]
mov dword [0x40c970], 0x4149e0
mov ecx, 0x40c958
mov dword [0x40c978], ebp
mov dword [0x40c97c], ebx
call fcn.00406ece
mov dword [esp + 0x28], eax
test eax, eax
js 0x4032f2
mov eax, dword [0x40c978]
sub eax, ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x429614], 1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
je 0x4032a7
sub eax, dword [esp + 0x14]
cmp eax, 0xc8
ja 0x40326b
test ecx, ecx
jne 0x4032a7
mov eax, dword [esp + 0x20]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x30]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0
call fcn.00405d6f
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4032e6
test edi, edi
jne 0x4032cb
push eax
push ebp
push dword [esp + 0xbc]
call fcn.00406a31
test eax, eax
je 0x403339
mov eax, dword [esp + 0x18]
jmp 0x4032d7
mov ebp, dword [0x40c978]
sub ebx, eax
mov dword [esp + 0x1c], ebp
add esi, eax
cmp dword [esp + 0x28], 1
jne 0x403218
jmp 0x4032ee
test ecx, ecx
jg 0x4031e3
mov eax, esi
jmp 0x403357
push 0xfffffffffffffffc
jmp 0x403356
test edi, edi
jne 0x40333d
test eax, eax
jle 0x4032ee
mov ebp, 0x4149e0
cmp eax, ebx
mov edi, ebx
cmovl edi, eax
push edi
push ebp
call fcn.0040311b
test eax, eax
je 0x403354
push edi
push ebp
push dword [esp + 0xbc]
call fcn.00406a31
test eax, eax
je 0x403339
mov eax, dword [esp + 0x10]
add esi, edi
sub eax, edi
mov dword [esp + 0x10], eax
test eax, eax
jg 0x403303
jmp 0x4032ee
push 0xfffffffffffffffe
jmp 0x403356
mov esi, dword [esp + 0xbc]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.0040311b
test eax, eax
jne 0x4032ee
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x10
Function at 0x403364
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x403383
mov eax, dword [0x40c950]
test eax, eax
je 0x40337b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40c950], 0
ret
cmp dword [0x40c950], 0
je 0x403394
push 0
call fcn.00406235
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x429520]
jbe 0x4033c7
push 0
push 0x40362a
push 0
push 0x6f
push dword [0x428514]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x40c950], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x405e53
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405e6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x4061c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
ja 0x4061fe
test eax, eax
je 0x4061fe
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x406200
mov ecx, 0x4082a8
jmp 0x406205
xor eax, eax
mov ecx, 0x4082aa
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
add eax, ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406263
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406286
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040632c
pop ecx
pop ecx
inc dword [0x4295f0]
ret 8

Function at 0x40632c
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x426668], 0x55004e
mov ebp, 0x426668
mov dword [0x42666c], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x406382
push 1
push 0
push esi
call fcn.00406941
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406462
cmp eax, ebx
jg 0x406462
push ebx
mov esi, 0x425e68
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406462
cmp eax, ebx
jg 0x406462
push esi
push ebp
push str._ls_ls_r_n
push 0x425a68
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x429530]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405ece
push 4
push 0xc0000000
push esi
call fcn.00406941
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406462
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40645b
push esi
push edi
push ebx
call fcn.0040696e
test eax, eax
je 0x40645b
push str._Rename__r_n
push edi
call fcn.00406b5c
test eax, eax
jne 0x406467
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x425a68
lea eax, [ecx + edi]
push eax
call fcn.004066da
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00406a31
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x408974
add eax, 0xa
push eax
call fcn.00406b5c
mov ecx, eax
test ecx, ecx
je 0x40642c
lea edx, [edi + esi]
jmp 0x406486
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406480
sub ecx, edi
inc ecx
jmp 0x40642e
Function at 0x4065ab
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406bc3
mov edi, eax
cmp edi, 0xffffffff
je 0x4065ee
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x4065cf
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4065d5
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4065de
xor eax, eax
inc eax
jmp 0x4065f0
test byte [ebp + 0xc], 4
jne 0x4065ee
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x425268
push ebx
call fcn.00406b40
push ebx
call fcn.00406beb
mov esi, eax
test esi, esi
je 0x4066d3
push esi
call fcn.00406d63
test byte [0x42952c], 0x80
je 0x406697
movzx eax, word [esi]
test ax, ax
je 0x4066d3
cmp eax, 0x5c
je 0x4066d3
sub esi, ebx
sar esi, 1
jmp 0x4066b1
call fcn.004065f5
test eax, eax
je 0x4066ab
test byte [eax], 0x10
je 0x4066d3
push ebx
call fcn.00406d36
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x40669d
call fcn.0040657c
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4066d3
xor eax, eax
inc eax
jmp 0x4066d5
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x4066fc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x424a20], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x424a20
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40673b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x40673f
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.0040665e
mov dword [esp + 0x14], eax
test bl, 8
je 0x406781
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x4295e8], eax
jmp 0x406900
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x40679e
test eax, eax
je 0x4068ef
test bl, 2
je 0x4068b8
push esi
push 0x424a68
call fcn.00406b40
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4067c1
push str..
push 0x424a68
call ebp
jmp 0x4067c7
push esi
call fcn.00406d36
xor eax, eax
cmp word [esi], ax
jne 0x4067d8
cmp word [0x424a68], 0x5c
jne 0x4067e0
push 0x4082a8
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x424a68
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4068a1
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x40682a
cmp word [esp + 0x4a], 0
je 0x406883
cmp word [esp + 0x4a], ax
jne 0x40682a
cmp word [esp + 0x4c], 0
je 0x406883
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406b40
test byte [esp + 0x1c], 0x10
je 0x406851
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x406883
push ebx
push esi
call fcn.0040673f
jmp 0x406883
push edi
push esi
call fcn.004065ab
test eax, eax
jne 0x40687b
test edi, edi
je 0x406873
push esi
push 0xfffffffffffffff1
call fcn.00405d6f
xor eax, eax
push eax
push esi
call fcn.00406263
jmp 0x406883
inc dword [0x4295e8]
jmp 0x406883
push esi
push 0xfffffffffffffff2
call fcn.00405d6f
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40680c
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x4068ff
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
je 0x4068ef
push esi
call fcn.004065f5
test eax, eax
je 0x4068ff
push esi
call fcn.0040657c
mov eax, edi
or eax, 1
push eax
push esi
call fcn.004065ab
test eax, eax
jne 0x4068f7
test edi, edi
je 0x4068ef
push esi
push 0xfffffffffffffff1
call fcn.00405d6f
xor eax, eax
push eax
push esi
call fcn.00406263
jmp 0x4068ff
inc dword [0x4295e8]
jmp 0x4068ff
push esi
push 0xffffffffffffffe5
call fcn.00405d6f
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc