joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41abb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov esi, ecx
test ebx, ebx
je 0x41adb6
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41abee
sub eax, 1
je 0x41abe3
sub eax, 1
jne 0x41abee
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ebp
mov dword [esi + 4], eax
push edi
jmp 0x41ac10
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebp
push edi
jmp 0x41ac10
mov ebx, dword [esp + 0x34]
jmp 0x41ac10
cmp dword [esi + 0xc], 0
mov dword [esp + 0x10], 0
je 0x41ac64
xor edi, edi
test ebx, ebx
jbe 0x41ac89
mov eax, ebx
sub eax, edi
cmp eax, 0x4000
jb 0x41ac34
mov eax, 0x4000
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 4]
push eax
lea eax, [edi + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
je 0x41ac89
add edi, 0x4000
cmp edi, ebx
jb 0x41ac24
jmp 0x41ac81
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
jne 0x41adb0
cmp byte [esi + 0x14], 0
je 0x41adb0
cmp dword [esi + 0xc], 0
jne 0x41adb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.0041a340
mov ebx, eax
lea eax, [esi + 0x17]
push eax
mov dword [esp + 0x2c], edx
call fcn.0041b0e0
push edi
mov dword [esp + 0x20], eax
mov ebp, edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp ebp, eax
mov ebp, dword [esp + 0x34]
jb 0x41ad12
ja 0x41acda
cmp dword [esp + 0x1c], ebp
jbe 0x41ad12
mov edi, dword [esp + 0x28]
mov edx, ebx
sub edx, ebp
mov ecx, edi
sbb ecx, eax
test ecx, ecx
jg 0x41ad12
jl 0x41acf1
cmp edx, 0xffffffff
ja 0x41ad12
mov ecx, ebp
add ecx, ebx
adc eax, edi
mov dword [esp + 0x18], eax
js 0x41ad12
jg 0x41ad04
cmp ecx, 0xffffffff
jbe 0x41ad12
lea eax, [esi + 0x17]
push eax
mov ecx, 0x45d404
call fcn.00416430
push 0
lea edi, [esi + 0x17]
push edi
mov ecx, 0x45d404
call fcn.00416480
test al, al
je 0x41ada0
mov eax, dword [esp + 0x10]
cmp eax, ebp
jae 0x41ac00
test eax, eax
jbe 0x41ac00
mov ecx, esi
call fcn.0041a340
mov ecx, dword [esp + 0x10]
xor ebx, ebx
sub eax, ecx
mov ecx, dword [esi + 4]
sbb edx, ebx
cmp ecx, 0xffffffff
je 0x41ac00
mov ebx, edx
push 0
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
push edx
push eax
push ecx
sar ebx, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41ac00
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41ac00
cmp byte [esi + 0x14], 0
je 0x41ac00
push edi
mov ecx, 0x45d404
call fcn.004164f0
jmp 0x41ac00
lea eax, [esi + 0x17]
push eax
push 0
mov ecx, 0x45d404
call fcn.004167a0
pop edi
mov byte [esi + 8], 1
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x41b060
Capabilities:
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [0x4537b0]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
lea ecx, [esp]
push ecx
push eax
call fcn.004271b0
movsx edx, byte [esp]
neg edx
sbb edx, edx
lea eax, [esp]
and edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x41b0bc
cmp eax, 5
je 0x41b0bc
xor eax, eax
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0043e3c6
add esp, 0x404
ret 4
mov ecx, dword [esp + 0x400]
xor ecx, esp
mov eax, 1
call fcn.0043e3c6
add esp, 0x404
ret 4

Function at 0x41b0e0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x42c
mov eax, dword [0x4537b0]
xor eax, esp
mov dword [esp + 0x428], eax
push esi
mov esi, dword [esp + 0x434]
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.004271b0
cmp dword [0x45bde0], 0
jne 0x41b13d
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x41b130
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45bde0], eax
cmp dword [0x45bde0], 0
je 0x41b1be
push 0x400
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.00427780
lea edx, [esp + 0x1c]
push edx
movsx edx, byte [esp + 0x30]
lea eax, [esp + 0x28]
push eax
neg edx
lea ecx, [esp + 0xc]
sbb edx, edx
lea eax, [esp + 0x34]
push ecx
and edx, eax
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [0x45bde0]
test eax, eax
je 0x41b1be
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x20]
ja 0x41b1be
push 1
push 0
push 0
push eax
call fcn.0043ef90
mov ecx, dword [esp + 4]
xor esi, esi
add eax, ecx
adc edx, esi
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0043e3c6
add esp, 0x42c
ret 4
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
movsx eax, byte [esp + 0x34]
lea ecx, [esp + 0x14]
push ecx
neg eax
lea edx, [esp + 0x20]
sbb eax, eax
lea ecx, [esp + 0x38]
push edx
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x41b20b
mov eax, 0x163e00
xor edx, edx
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0043e3c6
add esp, 0x42c
ret 4
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x42c]
mul dword [esp + 0x10]
pop esi
xor ecx, esp
call fcn.0043e3c6
add esp, 0x42c
ret 4

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

Disassembly:
call fcn.0041dc70
test eax, eax
je 0x41b25b
mov eax, dword [esp + 8]
test eax, eax
je 0x41b25b
cmp word [eax], 0
je 0x41b25b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 8
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 8

Function at 0x41b2e0
Capabilities:
Get file attributes

Disassembly:
call fcn.0041dc70
test eax, eax
je 0x41b301
mov eax, dword [esp + 8]
test eax, eax
je 0x41b301
cmp word [eax], 0
je 0x41b301
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret 8
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8
Function at 0x41b310
Capabilities:
Set file attributes

Disassembly:
call fcn.0041dc70
test eax, eax
je 0x41b33b
mov eax, dword [esp + 8]
test eax, eax
je 0x41b33b
cmp word [eax], 0
je 0x41b33b
mov ecx, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret 0xc
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 0xc

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

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
lea edx, [eax + 1]
jmp 0x41b4c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b4c0
sub eax, edx
mov ebx, eax
cmp ebx, 6
ja 0x41b4d7
pop edi
xor eax, eax
pop ebx
ret 4
push ebp
push esi
call fcn.0043fe45
mov ebp, eax
lea eax, [ebx + edi - 6]
xor esi, esi
mov dword [esp + 0x14], eax
lea ebx, [ebx + edi - 4]
mov edi, edi
lea eax, [esi + ebp]
cdq
mov ecx, 0xf4240
idiv ecx
push edx
mov edx, dword [esp + 0x18]
push str._06u
push edx
call fcn.0043e3d5
add esp, 0xc
mov byte [ebx], 0x2e
call fcn.0041dc70
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41b52d
cmp esi, 0x3e8
je 0x41b536
inc esi
jmp 0x41b4f0
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
ret 4
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
ret 4

Function at 0x41b540
Capabilities:
Move file

Disassembly:
mov eax, 0x1004
call fcn.0043ed40
mov eax, dword [0x4537b0]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
mov ebp, dword [esp + 0x1018]
push esi
mov esi, dword [esp + 0x1018]
push edi
mov edi, dword [esp + 0x1024]
call fcn.0041dc70
test eax, eax
je 0x41b5ba
test esi, esi
je 0x41b58b
cmp word [esi], 0
jne 0x41b595
test edi, edi
je 0x41b5ba
cmp word [edi], 0
je 0x41b5ba
lea eax, [esp + 0x10]
push eax
push edi
push ebp
call fcn.00427280
push eax
lea ecx, [esp + 0x814]
push ecx
push esi
push ebx
call fcn.00427280
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x41b5c2
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
test eax, eax
pop ebp
setne al
pop ebx
xor ecx, esp
call fcn.0043e3c6
add esp, 0x1004
ret 0x10
Function at 0x41b7c0
Capabilities:
Delete file

Disassembly:
sub esp, 0xc2c
mov eax, dword [0x4537b0]
xor eax, esp
mov dword [esp + 0xc28], eax
push esi
mov esi, dword [esp + 0xc38]
push edi
mov edi, dword [esp + 0xc38]
call fcn.0041dc70
test eax, eax
je 0x41b82b
test esi, esi
je 0x41b82b
cmp word [esi], 0
je 0x41b82b
lea eax, [esp + 0x42c]
push eax
push esi
call fcn.0041b3f0
lea ecx, [esp + 0x42c]
push ecx
call fcn.004368d0
xor edx, edx
mov word [esp + eax*2 + 0x42e], dx
lea eax, [esp + 0x42c]
push eax
call fcn.0041b740
jmp 0x41b89a
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.0041b360
lea eax, [esp + 0x28]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b840
sub eax, edx
mov byte [esp + eax + 0x29], cl
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea ecx, [esp + 8]
mov edx, 0x54
lea eax, [esp + 0x28]
push ecx
mov dword [esp + 0x10], 3
mov word [esp + 0x1c], dx
mov dword [esp + 0x14], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0xc30]
pop edi
pop esi
xor ecx, esp
call fcn.0043e3c6
add esp, 0xc2c
ret 8

Function at 0x41b930
Capabilities:
Delete directory

Disassembly:
sub esp, 0xc24
mov eax, dword [0x4537b0]
xor eax, esp
mov dword [esp + 0xc20], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc30]
push esi
push edi
mov edi, dword [esp + 0xc3c]
push ebp
lea ebx, [esp + 0x420]
lea esi, [esp + 0x14]
call fcn.0041b8c0
test al, al
je 0x41b991
call fcn.0041dc70
test eax, eax
je 0x41b98a
cmp word [esp + 0x41c], 0
je 0x41b98a
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41b9b4
lea ecx, [esp + 0x10]
push ecx
jmp 0x41b9ae
call fcn.0041dc70
test eax, eax
je 0x41b9ad
test edi, edi
je 0x41b9ad
cmp word [edi], 0
je 0x41b9ad
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41b9b4
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0xc30]
pop edi
pop esi
test eax, eax
pop ebp
setne al
pop ebx
xor ecx, esp
call fcn.0043e3c6
add esp, 0xc24
ret 8

Function at 0x41b9e0
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
push edi
call fcn.0041dc70
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x41ba08
test esi, esi
je 0x41ba08
cmp word [esi], 0
je 0x41ba08
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x41ba11
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x41ba2f
cmp byte [esp + 0x14], 0
je 0x41ba28
mov eax, dword [esp + 0x18]
push eax
push esi
push edi
call fcn.0041b310
pop edi
xor eax, eax
pop esi
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41ba44
cmp eax, 3
mov eax, 1
jne 0x41ba49
mov eax, 2
pop edi
pop esi
ret 0x10
Function at 0x41bcd0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x830
mov eax, dword [0x4537b0]
xor eax, esp
mov dword [esp + 0x82c], eax
mov eax, dword [esp + 0x844]
push ebx
mov ebx, dword [esp + 0x844]
push ebp
mov ebp, dword [esp + 0x83c]
push esi
mov esi, dword [esp + 0x848]
push edi
mov edi, dword [esp + 0x848]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], eax
call fcn.0041dc70
test eax, eax
je 0x41be69
test esi, esi
je 0x41bd32
cmp dword [esi], 0
mov byte [esp + 0x12], 1
jne 0x41bd37
mov byte [esp + 0x12], 0
test ebx, ebx
je 0x41bd45
cmp dword [ebx], 0
mov byte [esp + 0x11], 1
jne 0x41bd4a
mov byte [esp + 0x11], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41bd5c
cmp dword [eax], 0
mov byte [esp + 0x13], 1
jne 0x41bd61
mov byte [esp + 0x13], 0
call fcn.0041dc70
test eax, eax
je 0x41bd81
test edi, edi
je 0x41bd81
cmp word [edi], 0
je 0x41bd81
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x14], eax
jmp 0x41bd8c
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x41be84
test al, 1
je 0x41be84
push 0
push edi
push ebp
mov bl, 1
call fcn.0041b310
lea ecx, [esp + 0x3c]
push ecx
push edi
push ebp
call fcn.00427280
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41be69
cmp byte [esp + 0x12], 0
je 0x41bdf1
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
call fcn.00435f30
cmp byte [esp + 0x11], 0
je 0x41be06
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00435f30
cmp byte [esp + 0x13], 0
je 0x41be1b
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
call fcn.00435f30
movzx eax, byte [esp + 0x12]
movzx edx, byte [esp + 0x13]
neg eax
sbb eax, eax
lea ecx, [esp + 0x34]
and eax, ecx
movzx ecx, byte [esp + 0x11]
neg edx
push eax
sbb edx, edx
lea eax, [esp + 0x28]
and edx, eax
push edx
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x34]
and ecx, edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x41be69
mov eax, dword [esp + 0x14]
push eax
push edi
push ebp
call fcn.0041b310
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043e3c6
add esp, 0x830
ret 0x14
xor bl, bl
jmp 0x41bda8
Function at 0x41be90
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44a54b
mov eax, dword fs:[0]
push eax
mov eax, 0x1cac
call fcn.0043ed40
mov eax, dword [0x4537b0]
xor eax, esp
mov dword [esp + 0x1ca8], eax
push ebx
push esi
push edi
mov eax, dword [0x4537b0]
xor eax, esp
push eax
lea eax, [esp + 0x1cbc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1cd0]
mov edi, dword [esp + 0x1ccc]
push esi
push edi
call fcn.004270d0
test al, al
je 0x41bf60
lea ecx, [esp + 0x10]
call fcn.0041ce20
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x1cc8], 0
call fcn.0041ce60
push esi
lea ecx, [esp + 0x14]
call fcn.0041ceb0
lea ecx, [esp + 0x182c]
call fcn.00436220
lea ecx, [esp + 0x1850]
call fcn.00436220
lea ecx, [esp + 0x1874]
call fcn.00436220
push 0
lea eax, [esp + 0xc1c]
push eax
lea ecx, [esp + 0x18]
call fcn.0041d2c0
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x1cc4], 0xffffffff
call fcn.0041ce40
mov al, bl
jmp 0x41bf89
call fcn.0041dc70
test eax, eax
je 0x41bf7c
test esi, esi
je 0x41bf7c
cmp word [esi], 0
je 0x41bf7c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x41bf83
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
mov ecx, dword [esp + 0x1cbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1ca8]
xor ecx, esp
call fcn.0043e3c6
add esp, 0x1cb8
ret 8

Function at 0x41bfc0
Capabilities:
Set file attributes

Disassembly:
call fcn.0041dc70
test eax, eax
je 0x41bfe9
mov eax, dword [esp + 8]
test eax, eax
je 0x41bfe9
cmp word [eax], 0
je 0x41bfe9
mov dword [esp + 8], 0
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 8], 0
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
Function at 0x41c1e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44a5c6
mov eax, dword fs:[0]
push eax
mov eax, 0x1860
call fcn.0043ed40
mov eax, dword [0x4537b0]
xor eax, esp
mov dword [esp + 0x185c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4537b0]
xor eax, esp
push eax
lea eax, [esp + 0x1874]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1884]
mov edi, dword [esp + 0x1888]
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
call fcn.0041a110
push 1
xor ebx, ebx
push ebx
push edi
push esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x188c], ebx
call fcn.0041a500
test al, al
je 0x41c31a
lea ecx, [esp + 0x30]
call fcn.0041a410
mov edi, 0x10000
push edi
mov dword [esp + 0x20], eax
mov ebp, edx
call fcn.0043e49f
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
cmp esi, ebx
jne 0x41c28e
mov ecx, 0x45d404
call fcn.004166f0
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
push edi
push ebx
push esi
mov byte [esp + 0x1888], 1
call fcn.0043e8e0
add esp, 0xc
xor edi, edi
test ebp, ebp
jl 0x41c2e4
jg 0x41c2c0
cmp dword [esp + 0x1c], edi
jbe 0x41c2e4
jmp 0x41c2c0
push 0x10000
push esi
lea ecx, [esp + 0x38]
call fcn.0041abb0
add ebx, 0x10000
adc edi, 0
cmp edi, ebp
jl 0x41c2c0
jg 0x41c2e4
cmp ebx, dword [esp + 0x1c]
jb 0x41c2c0
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
call fcn.0041aae0
lea ecx, [esp + 0x30]
call fcn.0041a3b0
lea ecx, [esp + 0x30]
call fcn.0041a190
mov byte [esp + 0x187c], 0
test esi, esi
je 0x41c31a
push esi
call fcn.0043e11d
add esp, 4
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push eax
lea ebx, [esp + 0xc54]
lea esi, [esp + 0x1468]
call fcn.0041b8c0
test al, al
je 0x41c373
call fcn.0041dc70
test eax, eax
je 0x41c35e
cmp word [esp + 0xc50], 0
je 0x41c35e
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
jmp 0x41c3a3
lea edx, [esp + 0x1464]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne bl
jmp 0x41c3a3
call fcn.0041dc70
test eax, eax
je 0x41c391
mov eax, edi
test eax, eax
je 0x41c391
cmp word [eax], 0
je 0x41c391
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41c39c
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
mov bl, al
lea ecx, [esp + 0x30]
mov dword [esp + 0x187c], 0xffffffff
call fcn.0041a4d0
mov al, bl
mov ecx, dword [esp + 0x1874]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x185c]
xor ecx, esp
call fcn.0043e3c6
add esp, 0x186c
ret 8
Function at 0x41c3f0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44a616
mov eax, dword fs:[0]
push eax
mov eax, 0x3dfc
call fcn.0043ed40
mov eax, dword [0x4537b0]
xor eax, esp
mov dword [esp + 0x3df8], eax
push ebp
push esi
push edi
mov eax, dword [0x4537b0]
xor eax, esp
push eax
lea eax, [esp + 0x3e0c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3e1c]
push esi
call fcn.00427180
test al, al
je 0x41c6a3
push esi
call fcn.0041b060
test al, al
je 0x41c6a3
movsx eax, byte [esi]
push eax
lea ecx, [esp + 0x35d8]
push str._c:
push ecx
call fcn.0043e3d5
movsx edx, byte [esp + 0x35e0]
add esp, 0xc
push edx
push 0xdfe
call fcn.00430740
push eax
call fcn.00412080
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00435750
lea eax, [esp + 0x35d4]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x3e18], 0
call fcn.00435780
push 2
push 0
push 2
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x11b8]
call fcn.00432840
lea ecx, [esp + 0xd1c]
mov byte [esp + 0x3e14], 1
call fcn.00436220
lea ecx, [esp + 0xd40]
call fcn.00436220
lea ecx, [esp + 0xd64]
call fcn.00436220
lea edx, [esp + 0x108]
push edx
lea ecx, [esp + 0x11ac]
call fcn.00433270
test eax, eax
jne 0x41c67b
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x41c520
mov al, byte [esi]
cmp byte [esp + 0x108], al
jne 0x41c67b
cmp byte [esp + 0x109], 0x3a
jne 0x41c67b
mov cx, word [esp + 0x508]
test cx, cx
je 0x41c567
movsx eax, al
movzx ecx, cx
cmp ecx, eax
jne 0x41c67b
cmp word [esp + 0x50a], 0x3a
jne 0x41c67b
call fcn.0041dc70
test eax, eax
je 0x41c589
cmp word [esp + 0x508], 0
je 0x41c589
push 0
lea edx, [esp + 0x50c]
push edx
call edi
jmp 0x41c595
push 0
lea eax, [esp + 0x10c]
push eax
call ebp
cmp byte [esp + 0xd18], 0
je 0x41c5d9
call fcn.0041dc70
test eax, eax
je 0x41c5c6
cmp word [esp + 0x508], 0
je 0x41c5c6
lea ecx, [esp + 0x508]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41c65f
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x41c65f
call fcn.0041dc70
test eax, eax
je 0x41c5fd
cmp word [esp + 0x508], 0
je 0x41c5fd
lea eax, [esp + 0x508]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41c60b
lea ecx, [esp + 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
test al, al
jne 0x41c65f
push 0xd48
call fcn.00430740
push eax
lea edx, [esp + 0x10c]
push edx
lea eax, [esp + 0x39dc]
push str._s____s
push eax
call fcn.0043e3d5
lea ecx, [esp + 0x39e4]
push ecx
push 0x44c598
push 0
call fcn.00412810
add esp, 0x1c
call fcn.00411e80
mov ecx, 0x45d404
call fcn.00416290
lea edx, [esp + 0x108]
push edx
lea ecx, [esp + 0x11ac]
call fcn.00433270
test eax, eax
je 0x41c520
lea ecx, [esp + 0x11a8]
mov byte [esp + 0x3e14], 0
call fcn.00432ab0
lea ecx, [esp + 0x10]
mov dword [esp + 0x3e14], 0xffffffff
call fcn.00435420
mov ecx, dword [esp + 0x3e0c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x3df8]
xor ecx, esp
call fcn.0043e3c6
add esp, 0x3e08
ret 4
Function at 0x41fcc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xb4
mov eax, dword [0x4537b0]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xc0]
push ebp
xor edx, edx
push esi
add ebx, 0xffffff88
push edi
add eax, 2
lea edi, [esp + 0x20]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
mov edi, edi
cmp edx, ebx
jge 0x41fe23
lea eax, [esp + 0x48]
sub eax, 2
lea ecx, [eax + 3]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x48]
sub ecx, eax
add ecx, 0xfffffffd
mov dword [esp + 0x3c], ecx
mov ecx, eax
neg ecx
lea esi, [esp + ecx + 0x48]
mov dword [esp + 0x44], esi
lea esi, [esp + ecx + 0x49]
mov dword [esp + 0x30], esi
lea esi, [esp + 0x48]
sub esi, eax
lea eax, [esp + ecx + 0x4a]
mov ecx, dword [esp + 0x14]
sub ebx, edx
mov dword [esp + 0x40], eax
dec ebx
mov eax, 0x88888889
mul ebx
dec esi
mov ebp, edx
shr ebp, 0xa
mov dword [esp + 0x2c], esi
mov esi, dword [edi]
mov dword [esp + 0x10], ecx
inc ebp
mov eax, dword [esp + 0x10]
xor edi, edi
lea ebx, [ebx]
movzx edx, byte [eax - 2]
mov cl, byte [eax - 1]
sub dl, cl
mov byte [esp + edi + 0x48], dl
movzx edx, byte [eax]
sub dl, cl
mov byte [esp + edi + 0x49], cl
mov byte [esp + edi + 0x4a], dl
add edi, 3
add eax, 3
cmp edi, 0x78
jl 0x41fd80
mov ecx, dword [esp + 0x34]
mov edi, 0x27
mov edi, edi
mov eax, dword [esp + 0x40]
movzx edx, byte [eax + ecx]
mov eax, dword [esp + 0x2c]
sub dl, byte [eax + ecx]
add ecx, 3
movsx eax, dl
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
mov edx, dword [esp + 0x44]
mov al, byte [edx + ecx - 3]
mov edx, dword [esp + 0x3c]
sub al, byte [edx + ecx - 3]
movsx eax, al
cdq
xor eax, edx
sub eax, edx
add ebx, eax
mov eax, dword [esp + 0x30]
movzx edx, byte [eax + ecx - 3]
sub dl, byte [ecx - 3]
movsx eax, dl
cdq
xor eax, edx
sub eax, edx
add eax, esi
sub edi, 1
lea esi, [eax + ebx]
jne 0x41fdb0
add dword [esp + 0x10], 0x780
sub ebp, 1
jne 0x41fd74
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov dword [edi], esi
inc dword [esp + 0x14]
inc edx
add edi, 4
cmp edx, 2
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
jle 0x41fd10
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
cmp eax, ecx
ja 0x41fe6d
cmp eax, edx
ja 0x41fe6d
xor eax, eax
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0043e3c6
add esp, 0xb4
ret 8
cmp edx, ecx
mov ecx, dword [esp + 0xb0]
sbb eax, eax
neg eax
xor ecx, esp
inc eax
call fcn.0043e3c6
add esp, 0xb4
ret 8