joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411040
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c70c
mov eax, dword fs:[0]
push eax
sub esp, 0x108
push ebx
push esi
push edi
mov eax, dword [0x4c6374]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x90]
push edx
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 8]
push str.closebtn
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00439a9c
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.004399e8
test bl, bl
je 0x4110b5
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [esi + 0x108]
lea edx, [ebp - 0x90]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
push str.QQBtn
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00439a9c
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.004399e8
test bl, bl
je 0x41110a
push 3
push 0
push 0
push str.https:__jq.qq.com___wv1027k58I0pYJ
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esi + 0x108]
lea edx, [ebp - 0x90]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
push str.StartSetupBtn
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00439a9c
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.004399e8
test bl, bl
je 0x411261
cmp dword [edi + 0x4f0], 8
mov dword [edi + 0x4ec], 0
jb 0x411166
mov eax, dword [edi + 0x4dc]
jmp 0x41116c
lea eax, [edi + 0x4dc]
xor ecx, ecx
lea edx, [ebp - 0x114]
mov word [eax], cx
mov ecx, dword [edi + 0x6a8]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.00439ea9
mov edx, eax
cmp word [edx], 0
jne 0x41119d
xor ecx, ecx
jmp 0x4111b1
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4111a2
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x4dc]
call fcn.0040e610
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], 0xffffffff
call fcn.004399e8
call fcn.00416dd0
push 0
test al, al
je 0x411201
push 0x4b837c
push 0x4b8384
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [edi + 0x4ba], 0
jne 0x411233
push 0x74
push 0x471
mov ecx, edi
call fcn.00442b20
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x618]
push 0
push 0x46f
call fcn.00442b20
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push eax
call esi
push 0
push 0
push 0x46f
mov ecx, edi
call fcn.00442b20
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x414880
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, edx
push edi
mov edi, dword [ebp + 8]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x414890
sub esi, ecx
mov dword [ebp + 0xc], 0
test esi, esi
jle 0x414957
push ebx
mov bl, byte [ebp + 0xb]
nop dword [eax]
cmp byte [edx], 0x3d
je 0x414956
nop dword [eax]
mov al, byte [edx]
test al, al
je 0x414956
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x4148d6
sub al, 0x41
jmp 0x4148f8
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x4148e2
sub al, 0x47
jmp 0x4148f8
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x4148ee
add al, 4
jmp 0x4148f8
cmp al, 0x2b
je 0x414907
cmp al, 0x2f
je 0x414903
mov al, 0x40
inc edx
cmp al, 0x40
je 0x4148c0
cmp al, 0x41
je 0x414956
jmp 0x41490a
mov al, 0x3f
jmp 0x414909
mov al, 0x3e
inc edx
mov ecx, dword [ebp + 0xc]
and ecx, 3
jmp dword [ecx*4 + 0x414964]
mov bl, al
shl bl, 2
jmp 0x414947
mov cl, al
shr cl, 4
or cl, bl
mov bl, al
mov byte [edi], cl
inc edi
shl bl, 4
jmp 0x414947
mov cl, al
shr cl, 2
or cl, bl
mov bl, al
mov byte [edi], cl
inc edi
shl bl, 6
jmp 0x414947
mov cl, bl
or cl, al
mov byte [edi], cl
inc edi
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
cmp eax, esi
jl 0x4148b0
pop ebx
sub edi, dword [ebp + 8]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x414917
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, edx
push edi
mov edi, dword [ebp + 8]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x414890
sub esi, ecx
mov dword [ebp + 0xc], 0
test esi, esi
jle 0x414957
push ebx
mov bl, byte [ebp + 0xb]
nop dword [eax]
cmp byte [edx], 0x3d
je 0x414956
nop dword [eax]
mov al, byte [edx]
test al, al
je 0x414956
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x4148d6
sub al, 0x41
jmp 0x4148f8
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x4148e2
sub al, 0x47
jmp 0x4148f8
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x4148ee
add al, 4
jmp 0x4148f8
cmp al, 0x2b
je 0x414907
cmp al, 0x2f
je 0x414903
mov al, 0x40
inc edx
cmp al, 0x40
je 0x4148c0
cmp al, 0x41
je 0x414956
jmp 0x41490a
mov al, 0x3f
jmp 0x414909
mov al, 0x3e
inc edx
mov ecx, dword [ebp + 0xc]
and ecx, 3
jmp dword [ecx*4 + 0x414964]
mov bl, al
shl bl, 2
jmp 0x414947
mov cl, al
shr cl, 4
or cl, bl
mov bl, al
mov byte [edi], cl
inc edi
shl bl, 4
jmp 0x414947
mov cl, al
shr cl, 2
or cl, bl
mov bl, al
mov byte [edi], cl
inc edi
shl bl, 6
jmp 0x414947
mov cl, bl
or cl, al
mov byte [edi], cl
inc edi
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
cmp eax, esi
jl 0x4148b0
pop ebx
sub edi, dword [ebp + 8]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x414980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4c6374]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x10], 0
push edi
mov edi, edx
jne 0x4149aa
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x14], 8
jb 0x4149b2
mov ecx, dword [ecx]
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4149e5
pop esi
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
push ebx
push 0
lea eax, [ebp - 8]
mov byte [ebp - 9], 1
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
neg ebx
push esi
sbb bl, bl
and bl, byte [ebp - 9]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop esi
xor ecx, ebp
pop edi
call fcn.00475cda
mov esp, ebp
pop ebp
ret

Function at 0x414a30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4c6374]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ebx
jne 0x414a61
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x14], 8
jb 0x414a69
mov ecx, dword [ecx]
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414a9c
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 8], 0
mov edi, eax
je 0x414ad1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x414af1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], edi
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp edi, eax
jbe 0x414b14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], edi
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
ret
push 0
test eax, eax
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push ecx
cmove eax, edi
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc]
mov ebx, eax
mov eax, dword [ebp - 0x18]
neg ebx
push esi
sbb bl, bl
and bl, byte [ebp - 0xd]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475cda
mov esp, ebp
pop ebp
ret
Function at 0x414c70
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cbb8
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4c6374]
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
cmp dword [esi + 0x10], 0
jne 0x414cac
xor al, al
jmp 0x414d86
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040ec30
mov edx, 0x2f
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00425ab0
mov edx, 0x5c
lea ecx, [ebp - 0x28]
call fcn.00425ab0
cmp dword [ebp - 0x18], 3
ja 0x414d09
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
jne 0x414d4f
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x278]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x414d53
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
cmp edx, 8
jb 0x414d36
mov ecx, dword [esi]
jmp 0x414d38
mov ecx, esi
cmp word [ecx + eax*2 - 2], 0x5c
je 0x414d4f
cmp edx, 8
jb 0x414d47
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x414d6d
mov bl, 1
jmp 0x414d6f
test byte [ebp - 0x278], 0x10
push eax
je 0x414d67
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
jmp 0x414d6f
call dword [sym.imp.KERNEL32.dll_FindClose]
xor bl, bl
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x414d84
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0040f5b0
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.00475cda
mov esp, ebp
pop ebp
ret
Function at 0x415030
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cc40
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4c6374]
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
cmp dword [ecx + 0x10], 0
jne 0x415068
xor al, al
jmp 0x41521e
xor eax, eax
mov dword [ebp - 0x20], 7
push 0xffffffffffffffff
push eax
push ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
call fcn.0040ec30
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x24]
lea ecx, [edx - 1]
cmp edx, ecx
ja 0x4150a3
push str.invalid_string_position
call fcn.0042f055
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x34]
cmp esi, 8
cmovae eax, edi
cmp word [eax + ecx*2], 0x5c
je 0x4150e6
cmp edx, ecx
ja 0x4150c7
push str.invalid_string_position
call fcn.0042f055
cmp esi, 8
lea eax, [ebp - 0x34]
cmovae eax, edi
cmp word [eax + ecx*2], 0x2f
je 0x4150e6
push 1
push 0x4b66d4
lea ecx, [ebp - 0x34]
call fcn.0040ce70
lea ecx, [ebp - 0x34]
call fcn.00414c70
test al, al
jne 0x4150f9
xor bh, bh
jmp 0x415207
cmp dword [ebp - 0x24], 0
je 0x41511c
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41511c
mov bh, 1
jmp 0x415207
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00414dd0
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
cmp esi, edi
jne 0x41515d
xor bh, bh
jmp 0x4151d6
mov bh, 1
nop
cmp dword [esi + 0x14], 8
jb 0x41516a
mov eax, dword [esi]
jmp 0x41516c
mov eax, esi
push eax
lea ecx, [ebp - 0x4c]
call fcn.00408ac0
cmp dword [ebp - 0x3c], 0
jne 0x41517f
xor bl, bl
jmp 0x415196
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x4151ab
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.0040f5b0
test bl, bl
jne 0x4151c8
cmp dword [esi + 0x14], 8
jb 0x4151b9
mov eax, dword [esi]
jmp 0x4151bb
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4151d1
add esi, 0x18
cmp esi, edi
jne 0x415160
jmp 0x4151d3
xor bh, bh
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x415207
push dword [ebp - 0x50]
mov edx, edi
push ecx
mov ecx, esi
call fcn.00413210
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00412bc0
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x41521c
inc ecx
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.0040f5b0
mov al, bh
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.00475cda
mov esp, ebp
pop ebp
ret
Function at 0x415240
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cc78
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x44
mov eax, dword [0x4c6374]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 7
push 0xffffffffffffffff
push eax
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.0040ec30
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00425b70
lea ecx, [ebp - 0x2c]
call fcn.00414c70
test al, al
jne 0x4152c5
mov eax, 1
mov dword [ebp - 0x54], eax
jmp 0x415386
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00476211
add esp, 4
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov esi, eax
cmovae ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 2
push ecx
push esi
call fcn.0047f8eb
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
xorps xmm0, xmm0
mov byte [ebp - 0x4d], 1
add esp, 0xc
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x1c]
mov word [esi + eax*2 + 2], cx
mov dword [ebp - 0x34], ecx
mov ecx, 0x414
movq qword [ebp - 0x3c], xmm0
mov ax, word [ebp - 0x3c]
or ax, cx
mov dword [ebp - 0x36], 0
mov ecx, 0xffbf
mov dword [ebp - 0x32], 0
and ax, cx
movups xmmword [ebp - 0x4c], xmm0
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
movzx ecx, byte [ebp - 0x4d]
xor edx, edx
test eax, eax
push esi
cmovne ecx, edx
mov dword [ebp - 0x54], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x41539e
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.0040f5b0
mov al, byte [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00475cda
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x415680
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov bl, dl
cmp dword [esi + 0x10], 0
je 0x415731
cmp dword [esi + 0x14], 8
jb 0x4156a0
mov eax, dword [esi]
jmp 0x4156a2
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415731
mov ecx, esi
call fcn.00414c70
test al, al
je 0x4156c4
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x4156ce
mov eax, dword [esi]
jmp 0x4156d0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x415731
test bl, bl
je 0x415731
cmp dword [esi + 0x14], 8
jb 0x4156e9
mov eax, dword [esi]
jmp 0x4156eb
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x41570d
and eax, 0xfffffffe
cmp dword [esi + 0x14], 8
jb 0x415703
mov ecx, dword [esi]
jmp 0x415705
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x415717
mov eax, dword [esi]
jmp 0x415719
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x415731
mov ecx, esi
call fcn.00416080
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415740
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x415757
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x415761
mov eax, dword [esi]
jmp 0x415763
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, esi
test al, 0x10
je 0x415781
call fcn.004153c0
mov ecx, esi
call fcn.00415240
pop esi
mov esp, ebp
pop ebp
ret
xor dl, dl
call fcn.00415680
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416080
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ce4d
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x4c6374]
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, ecx
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.004793f0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x90]
push 0x4b8870
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov dword [ebp - 0x94], 7
add esp, 0xc
mov dword [ebp - 0x98], 0
mov word [ebp - 0xa8], ax
push 4
push eax
push str..tmp
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.0040a4f0
cmp eax, 0xffffffff
je 0x416149
add eax, 4
mov ecx, esi
push eax
push 0
lea eax, [ebp - 0xd8]
push eax
call fcn.00408960
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0xc0]
call fcn.00416870
add esp, 4
mov edi, eax
jmp 0x416178
push str..tmp
mov edx, esi
lea ecx, [ebp - 0xd8]
call fcn.0040c1a0
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0xc0]
call fcn.00416870
add esp, 8
mov edi, eax
lea eax, [ebp - 0xa8]
cmp eax, edi
je 0x4161c5
mov eax, dword [ebp - 0x94]
cmp eax, 8
jb 0x4161a0
inc eax
lea ecx, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x94], 7
push edi
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x98], eax
mov word [ebp - 0xa8], ax
call fcn.0040ed50
mov eax, dword [ebp - 0xac]
cmp eax, 8
jb 0x4161e3
inc eax
lea ecx, [ebp - 0xc0]
push eax
push dword [ebp - 0xc0]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xc0], ax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xac], 7
cmp eax, 8
jb 0x41621e
inc eax
lea ecx, [ebp - 0xd8]
push eax
push dword [ebp - 0xd8]
call fcn.0040f5b0
cmp dword [ebp - 0x94], 8
lea eax, [ebp - 0xa8]
cmovae eax, dword [ebp - 0xa8]
cmp dword [esi + 0x14], 8
jb 0x41623a
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41626c
cmp dword [ebp - 0x94], 8
lea eax, [ebp - 0xa8]
push 4
cmovae eax, dword [ebp - 0xa8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bl
jmp 0x41626e
xor bl, bl
mov ecx, dword [ebp - 0x94]
cmp ecx, 8
jb 0x41628c
inc ecx
push ecx
push dword [ebp - 0xa8]
lea ecx, [ebp - 0xa8]
call fcn.0040f5b0
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.00475cda
mov esp, ebp
pop ebp
ret
Function at 0x4162b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ceb1
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x4c6374]
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
call fcn.00414c70
test al, al
jne 0x4162f2
xor eax, eax
jmp 0x416520
push 0x4b8854
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.0040c1a0
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x290]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x294], eax
cmp eax, 0xffffffff
je 0x4164f3
mov ebx, dword [ebp + 8]
nop word [eax + eax]
lea eax, [ebp - 0x264]
push eax
push 0x4b8860
call fcn.0047fbd3
add esp, 8
test eax, eax
je 0x4164cc
lea eax, [ebp - 0x264]
push eax
push 0x4b8864
call fcn.0047fbd3
add esp, 8
test eax, eax
je 0x4164cc
push 0x4b66d4
mov edx, edi
lea ecx, [ebp - 0x2ac]
call fcn.0040c1a0
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00416870
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x298]
cmp eax, 8
jb 0x4163c4
inc eax
lea ecx, [ebp - 0x2ac]
push eax
push dword [ebp - 0x2ac]
call fcn.0040f5b0
xor eax, eax
mov dword [ebp - 0x298], 7
test byte [ebp - 0x290], 0x10
mov dword [ebp - 0x29c], 0
mov word [ebp - 0x2ac], ax
je 0x4164a4
test bl, bl
je 0x41648c
push 0x4b66d4
mov edx, edi
lea ecx, [ebp - 0x2dc]
call fcn.0040c1a0
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x2c4]
call fcn.00416870
add esp, 8
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00416630
mov eax, dword [ebp - 0x2b0]
cmp eax, 8
jb 0x41644d
inc eax
lea ecx, [ebp - 0x2c4]
push eax
push dword [ebp - 0x2c4]
call fcn.0040f5b0
xor eax, eax
mov byte [ebp - 4], 3
mov word [ebp - 0x2c4], ax
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x2b0], 7
mov dword [ebp - 0x2b4], 0
cmp eax, 8
jb 0x41648c
inc eax
lea ecx, [ebp - 0x2dc]
push eax
push dword [ebp - 0x2dc]
call fcn.0040f5b0
cmp byte [ebp + 0xc], 0
je 0x4164b3
push 1
push ebx
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.004162b0
add esp, 8
jmp 0x4164b3
test bl, bl
jne 0x4164b3
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00416540
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4164cc
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040f5b0
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416340
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
imul ecx
mov ecx, dword [ebp - 0x14]
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp ecx, 8
jb 0x41651e
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0040f5b0
mov eax, esi
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.00475cda
mov esp, ebp
pop ebp
ret