joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dc59
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0x10
mov eax, 0x56f68f
call fcn.0053fc6d
mov edi, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
call fcn.0040adc8
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a3ab
mov dword [ebp - 4], ebx
call fcn.0040adc8
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a3ab
mov byte [ebp - 4], 1
push dword [ebp + 8]
call fcn.0041ce04
pop ecx
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0041cd8b
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.0041e811
mov ecx, eax
call fcn.0041e7c9
lea ecx, [ebp - 0x10]
test eax, eax
jle 0x41dcc7
lea eax, [ebp - 0x14]
push eax
call fcn.0041c0be
jmp 0x41dcd2
mov eax, dword [edi]
push dword [eax - 0xc]
push eax
call fcn.0041cc27
mov esi, dword [ebp - 0x10]
mov ecx, edi
push esi
call fcn.0041de61
test eax, eax
jne 0x41dddf
push ebx
push esi
call fcn.0053bf52
pop ecx
pop ecx
test eax, eax
jne 0x41de44
call fcn.0040adc8
push eax
lea ecx, [ebp + 8]
call fcn.0040a3ab
push esi
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push str._s.tmp
push eax
call fcn.004210bd
mov edi, dword [ebp + 8]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push esi
call fcn.0053c006
pop ecx
pop ecx
test eax, eax
je 0x41dd60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x59fbd4
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.0041bec7
pop ecx
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
jmp 0x41dd90
lea ecx, [edi - 0x10]
call fcn.0040b4b8
xor ebx, ebx
jmp 0x41de44
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
push esi
call fcn.0041de61
test eax, eax
jne 0x41ddd3
push 0x59fbd4
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.0041bec7
pop ecx
mov byte [ebp - 4], 4
mov ecx, ebx
push dword [eax]
call fcn.0041de61
mov byte [ebp - 4], 2
mov ebx, eax
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040b4b8
test ebx, ebx
je 0x41dd51
push 0x59fbd4
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.0041bec7
pop ecx
push 5
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040b4b8
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 1
call fcn.0040b4b8
push ecx
push ecx
lea ecx, [ebp - 0x10]
call fcn.0041e9fd
cmp eax, 0xffffffff
je 0x41de41
lea eax, [esi - 0x10]
push eax
call fcn.0041c6c7
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 5
lea ecx, [ebp + 8]
mov dword [esp], str.TSVulFw
push str.TSVulFw_Cache
call fcn.0041e86a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp + 8]
test eax, eax
je 0x41de39
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push edi
push esi
call ebx
test eax, eax
jne 0x41de39
push 5
push edi
push esi
call ebx
lea ecx, [edi - 0x10]
call fcn.0040b4b8
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040b4b8
lea ecx, [esi - 0x10]
call fcn.0040b4b8
mov eax, ebx
call fcn.0053fc3b
ret 4
Function at 0x41e017
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], eax
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
push ecx
mov edi, edx
push edi
push ebx
push eax
jmp 0x41e04a
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
je 0x41e056
push esi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41e038
jmp 0x41e059
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41e062
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 4
mov eax, 0x56f6d5
call fcn.0053fc6d
mov edi, ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.0041cba3
xor esi, esi
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41e0d7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41e0d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41e0d7
lea ecx, [ebp - 0x10]
call fcn.0041df86
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x41e0da
mov ecx, eax
call fcn.0041e062
test eax, eax
je 0x41e0da
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41e0d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41e0da
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040b4b8
mov eax, esi
call fcn.0053fc3b
ret

Function at 0x41e288
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], eax
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
push ecx
mov edi, edx
push edi
push ebx
push eax
jmp 0x41e2bb
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
je 0x41e2c7
push esi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41e2a9
jmp 0x41e2ca
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x421275
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
push edi
mov dword [ecx + 0x30], edx
mov dword [ecx + 0x4c], edx
mov dword [ecx + 0x20], edx
call fcn.0042125b
lea esi, [ecx + 0x70]
push 8
mov ecx, edx
pop edi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
dec edi
jne 0x42128f
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 0x100
jb 0x42128a
pop edi
pop esi
ret
Function at 0x423731
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x423757
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x423757
xor al, al
jmp 0x42376b
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x425e87
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push dword [ebp + 8]
mov esi, ecx
push edx
push edi
push edi
call fcn.00537b86
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x425eb1
call fcn.00425e41
mov edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42ada4
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5706ba
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5c8910]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x258]
xor ebx, ebx
push dword [edi + 8]
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 4]
lea eax, [esi + 0x1c8]
push eax
lea ecx, [esp + 0x14]
call fcn.0042a65e
push 0xe
pop edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebx
call fcn.0042ad33
push 0xf
pop edx
lea ecx, [esp + 0x10]
call fcn.0042ad33
push 0x11
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042acee
pop ecx
push 0x10
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042acee
pop ecx
push 9
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042acee
pop ecx
push 6
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042acee
pop ecx
push 0x12
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042acee
pop ecx
push 0x14
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042acee
pop ecx
push 0x13
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042acee
pop ecx
push 0x15
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042acee
pop ecx
push 0xa
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042acee
pop ecx
push 0x16
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.0042acee
pop ecx
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.0042a86f
push ebx
push 0x61
mov ecx, edi
call fcn.0042a04e
push ebx
push 0x62
mov ecx, edi
call fcn.0042a04e
push ebx
push 0x63
mov ecx, edi
call fcn.0042a04e
push 0x14
pop edx
mov ecx, edi
call fcn.0042ad60
push 6
pop edx
mov ecx, edi
call fcn.0042ad60
push 9
pop edx
mov ecx, edi
call fcn.0042ad60
push 0x11
pop edx
mov ecx, edi
call fcn.0042ad60
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CBaseRecordVector.0
call fcn.00425fd5
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4382a3
Capabilities:
Set file attributes

Disassembly:
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5723de
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5c8910]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push esi
mov eax, dword [0x5c8910]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x43ec5c
mov eax, dword [esi]
jmp 0x43ec5e
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43ec70
mov al, 1
jmp 0x43ed0c
push esi
lea ecx, [esp + 0x14]
call fcn.00407b7f
and dword [esp + 0x50], 0
lea ecx, [esp + 0x10]
call fcn.0043e863
test bl, bl
je 0x43ece1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
call fcn.00407b7f
lea eax, [esp + 0x28]
mov byte [esp + 0x50], 1
push eax
call fcn.0043e931
mov eax, dword [esp + 0x3c]
pop ecx
cmp eax, dword [esp + 0x20]
je 0x43ecd4
mov dl, bl
lea ecx, [esp + 0x28]
call fcn.0043ec18
test al, al
jne 0x43ecd4
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00403256
xor bl, bl
jmp 0x43ecfd
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00403256
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
push 0
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.00403256
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
Function at 0x43ee4a
Capabilities:
Delete directory

Disassembly:
push 0x40
mov eax, 0x572449
call fcn.0053fca0
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0043f229
lea edx, [ebp - 0x38]
mov ecx, ebx
call fcn.0043f29d
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
sub eax, esi
cdq
push 0x18
pop edi
idiv edi
mov ebx, dword [ebp - 0x38]
mov ecx, eax
mov eax, dword [ebp - 0x34]
sub eax, ebx
cdq
idiv edi
mov edi, eax
mov dword [ebp - 0x48], edi
test ecx, ecx
je 0x43eef8
mov ebx, dword [ebp - 0x2c]
mov edi, ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00407b7f
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push esi
push eax
call fcn.0043eb57
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0053b0cc
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00403256
add esi, 0x18
dec edi
jne 0x43eeb1
mov edi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x38]
test edi, edi
je 0x43ef47
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.00407b7f
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push ebx
push eax
call fcn.0043eb57
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0043ee4a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00403256
add ebx, 0x18
dec edi
jne 0x43eefc
lea ecx, [ebp - 0x38]
call fcn.004402ef
lea ecx, [ebp - 0x44]
call fcn.004402ef
mov al, 1
call fcn.0053fc4f
ret

Function at 0x43ef5f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
jne 0x43ef70
xor al, al
jmp 0x43effc
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x43ef7b
mov ecx, dword [ecx]
push ebx
push esi
xor ebx, ebx
cmp byte [ebp + 0x14], bl
push ebx
push ebx
push 2
pop eax
push 4
pop edx
cmovne eax, edx
push eax
push ebx
push ebx
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43eff8
cmp byte [ebp + 0x14], bl
je 0x43efb8
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x43efec
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push ebx
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43efeb
cmp dword [ebp - 4], edi
jne 0x43efe9
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov bl, 1
pop edi
cmp esi, 0xffffffff
je 0x43eff8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572479
mov eax, dword fs:[0]
push eax
mov eax, 0x1030
call fcn.0053b8f0
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x1030]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push 8
mov dword [ebp - 0x103c], eax
xor eax, eax
cmp dword [esi + 0x14], 8
pop ecx
mov dword [ebp - 0x1034], ebx
rep stosd dword es:[edi], eax
jb 0x43f05d
mov eax, dword [esi]
jmp 0x43f05f
mov eax, esi
lea ecx, [ebp - 0x1034]
push ecx
push eax
call fcn.0053cf2e
pop ecx
pop ecx
test eax, eax
je 0x43f079
xor al, al
jmp 0x43f119
cmp dword [ebp - 0x1020], 0xfffffffe
jae 0x43f072
mov dword [ebp - 0x1038], ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 8
jb 0x43f093
mov esi, dword [esi]
push 0x5a0ec4
lea eax, [ebp - 0x1038]
push esi
push eax
call fcn.0053d392
add esp, 0xc
cmp dword [ebp - 0x1038], 0
je 0x43f117
push dword [ebp - 0x1020]
mov ebx, dword [ebp - 0x103c]
mov ecx, ebx
call fcn.0043ff9f
mov esi, 0x1000
jmp 0x43f0da
push eax
lea eax, [ebp - 0x1010]
mov ecx, ebx
push eax
call fcn.00440a33
push dword [ebp - 0x1038]
lea eax, [ebp - 0x1010]
push esi
push 1
push eax
call fcn.0053d681
add esp, 0x10
test eax, eax
jne 0x43f0cb
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebp - 0x1020]
sete bl
cmp dword [ebp - 0x1038], 0
je 0x43f117
push dword [ebp - 0x1038]
call fcn.0053cced
pop ecx
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.0053bd6c
mov esp, ebp
pop ebp
ret

Function at 0x43f5f9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00538910
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x43f648
xor al, al
jmp 0x43f666
lea eax, [ebp - 0x210]
push eax
call fcn.004086f2
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00408679
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
Function at 0x440ae6
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
xor edx, edx
push edi
push 3
pop ecx
lea eax, [ebx + 2]
mov edi, dword [ebp + 8]
div ecx
cmp eax, 0x40000000
jae 0x440bf6
mov edx, dword [ebp + 0x14]
shl eax, 2
cmp dword [edx], eax
jb 0x440bf6
push esi
mov esi, dword [ebp + 0x10]
cmp ebx, 2
jbe 0x440b86
xor edx, edx
lea eax, [ebx - 3]
div ecx
lea edx, [eax + 1]
movzx ecx, byte [edi]
shr ecx, 2
push 3
mov cl, byte [ecx + 0x5957a0]
mov byte [esi], cl
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + 0x5957a0]
mov byte [esi + 1], al
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + 0x5957a0]
mov byte [esi + 2], al
movzx eax, byte [edi + 2]
and eax, 0x3f
pop ecx
add edi, ecx
sub ebx, ecx
mov al, byte [eax + 0x5957a0]
mov byte [esi + 3], al
add esi, 4
dec edx
jne 0x440b27
mov edx, dword [ebp + 0x14]
test ebx, ebx
je 0x440be7
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + 0x5957a0]
mov byte [esi], al
cmp ebx, 1
jbe 0x440bcd
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + 0x5957a0]
mov byte [esi + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
mov al, byte [eax*4 + 0x5957a0]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
jmp 0x440be4
movzx eax, byte [edi]
and eax, ecx
shl eax, 4
mov al, byte [eax + 0x5957a0]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
add esi, 4
mov eax, esi
sub eax, dword [ebp + 0x10]
mov dword [edx], eax
xor eax, eax
mov byte [esi], 0
pop esi
jmp 0x440bf9
or eax, 0xffffffff
pop edi
pop ebx
pop ebp
ret
Function at 0x441cb2
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
xor edi, edi
cmp dword [esi + 0x10], edi
je 0x441da7
cmp dword [esi + 0x14], 8
jb 0x441ce1
mov eax, dword [esi]
jmp 0x441ce3
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x441da7
push 0x24c
lea eax, [ebp - 0x284]
mov dword [ebp - 0x288], edi
push edi
push eax
call fcn.00538910
add esp, 0xc
lea edi, [ebp - 0x26]
xor eax, eax
cmp dword [esi + 0x14], 8
mov word [ebp - 0x28], ax
push 8
pop ecx
rep stosd dword es:[edi], eax
jb 0x441d23
mov esi, dword [esi]
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
test esi, esi
je 0x441da7
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x30]
push eax
movzx eax, word [ebp - 0x32]
push eax
movzx eax, word [ebp - 0x36]
push eax
movzx eax, word [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push str._d__d__d__d:_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x28]
push eax
call fcn.004086f2
add esp, 0x20
mov ecx, ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00408679
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
jmp 0x441da9
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
Function at 0x44355f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ecx + 0x14], 8
push ebx
push esi
push edi
mov edi, edx
jb 0x443570
mov ecx, dword [ecx]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4435dd
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4435d6
push 0
lea eax, [ebx + 1]
mov ecx, edi
push eax
call fcn.0043e5b3
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 0x10
jb 0x4435b3
mov edi, dword [edi]
push 0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4435d6
cmp dword [ebp - 4], ebx
jne 0x4435d6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4435df
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4471a3
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
push esi
push edi
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov eax, edi
shr eax, 4
xor eax, esi
mov dword [ebp - 8], 8
and eax, 0xf0f0f0f
xor esi, eax
shl eax, 4
xor edi, eax
mov eax, edi
shr eax, 0x10
xor eax, esi
and eax, 0xffff
xor esi, eax
shl eax, 0x10
xor edi, eax
mov eax, esi
shr eax, 2
xor eax, edi
and eax, 0x33333333
xor edi, eax
shl eax, 2
xor esi, eax
mov ebx, esi
shr ebx, 8
xor ebx, edi
and ebx, 0xff00ff
xor edi, ebx
shl ebx, 8
xor ebx, esi
rol ebx, 1
mov eax, ebx
xor eax, edi
and eax, 0xaaaaaaaa
xor ebx, eax
xor eax, edi
rol eax, 1
mov edi, eax
mov eax, dword [ebp - 4]
mov edx, ebx
ror edx, 4
xor edx, dword [eax]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
and ecx, 0x3f
and eax, 0x3f
mov esi, dword [ecx*4 + 0x595fb0]
or esi, dword [eax*4 + 0x595db0]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or esi, dword [eax*4 + 0x595bb0]
or esi, dword [edx*4 + 0x5959b0]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
add eax, 4
mov dword [ebp - 4], eax
xor edx, ebx
mov ecx, edx
mov eax, edx
shr eax, 0x10
shr ecx, 0x18
and eax, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x595eb0]
or ecx, dword [eax*4 + 0x595cb0]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x595ab0]
or ecx, dword [edx*4 + 0x5958b0]
mov eax, dword [ebp - 4]
or ecx, esi
xor edi, ecx
mov edx, edi
ror edx, 4
xor edx, dword [eax]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
and ecx, 0x3f
and eax, 0x3f
mov esi, dword [ecx*4 + 0x595fb0]
or esi, dword [eax*4 + 0x595db0]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or esi, dword [eax*4 + 0x595bb0]
mov eax, dword [ebp - 4]
or esi, dword [edx*4 + 0x5959b0]
mov edx, dword [eax]
add eax, 4
xor edx, edi
mov dword [ebp - 4], eax
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x595eb0]
or ecx, dword [eax*4 + 0x595cb0]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x595ab0]
or ecx, dword [edx*4 + 0x5958b0]
or ecx, esi
xor ebx, ecx
dec dword [ebp - 8]
jne 0x447220
ror ebx, 1
mov edx, ebx
mov esi, dword [ebp - 0x10]
xor edx, edi
and edx, 0xaaaaaaaa
xor ebx, edx
xor edx, edi
ror edx, 1
mov eax, edx
shr eax, 8
xor eax, ebx
and eax, 0xff00ff
xor ebx, eax
shl eax, 8
xor edx, eax
mov eax, edx
shr eax, 2
xor eax, ebx
and eax, 0x33333333
xor ebx, eax
shl eax, 2
xor edx, eax
mov eax, ebx
shr eax, 0x10
xor eax, edx
and eax, 0xffff
xor edx, eax
shl eax, 0x10
xor ebx, eax
mov ecx, ebx
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov eax, ecx
shl eax, 4
xor eax, ebx
xor ecx, edx
pop edi
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret