joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e450
Capabilities:
Check if file exists
Copy file
Create directory
Delete file
Get file attributes
Move file
Persist via lnk shortcut

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x83c
mov eax, dword [0x4cf06c]
xor eax, esp
mov dword [esp + 0x838], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
push 0x7fffffff
push esi
mov edx, ebx
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x640]
call fcn.0045c480
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x438]
push 0x7fffffff
push esi
call fcn.0045c480
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x648]
add esp, 0x10
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
jne 0x40e4de
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test edi, edi
je 0x40e5af
cmp word [edi], 0
je 0x40e5af
push 0x7fffffff
push dword [esp + 0x20]
mov edx, edi
lea ecx, [esp + 0x230]
call fcn.0045c480
add esp, 8
lea eax, [esp + 0x228]
push eax
call esi
cmp eax, 0xffffffff
je 0x40e5af
test ebx, ebx
jne 0x40e53b
push 1
lea eax, [esp + 0x63c]
push eax
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push 0x7fffffff
push str.to_OldDir_VirtualStore_.lnk
call fcn.0045c480
push ecx
lea edx, [esp + 0x2c]
mov ecx, edi
call fcn.0045e550
add esp, 0xc
lea eax, [esp + 0x228]
push eax
lea eax, [esp + 0x24]
push 0x4ad888
push eax
call fcn.0040e1d0
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [esp + 0x228]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 0xffffffff
je 0x40e5b5
lea eax, [esp + 0x228]
push eax
call edi
jmp 0x40e5b5
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x14], 0
jne 0x40e5c0
test ebx, ebx
jne 0x40e638
lea eax, [esp + 0x430]
push eax
call esi
cmp eax, 0xffffffff
je 0x40e638
test ebx, ebx
jne 0x40e5eb
push 1
lea eax, [esp + 0x63c]
push eax
lea eax, [esp + 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [esp + 0x14], 0
je 0x40e638
lea eax, [esp + 0x430]
push eax
lea eax, [esp + 0x24]
push str._s.obsolete
push eax
call fcn.0040e1d0
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [esp + 0x430]
push eax
call esi
cmp eax, 0xffffffff
je 0x40e638
lea eax, [esp + 0x430]
push eax
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push 0x7fffffff
push str.to_ExeDir.lnk
call fcn.0045c480
add esp, 8
lea eax, [esp + 0x20]
push eax
call esi
cmp eax, 0xffffffff
jne 0x40e671
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
sub esp, 0xc
call fcn.0045e550
add esp, 0xc
mov ecx, dword [esp + 0x844]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047d39f
mov esp, ebp
pop ebp
ret
Function at 0x413aa0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x4cf06c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov eax, ecx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [eax + 0x18]
mov dword [ebp - 0x420], eax
push esi
mov ecx, edi
call fcn.004571a0
test eax, eax
mov ecx, 0x20
push esi
cmovne ebx, ecx
mov ecx, edi
call fcn.004571c0
test eax, eax
je 0x413aea
or ebx, 0x2000
push esi
mov ecx, edi
call fcn.004571e0
test eax, eax
je 0x413af9
or ebx, 0x40
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x413b08
or ebx, 0x10
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0x104
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x413b6d
test bl, 0x10
jne 0x413b58
mov ecx, dword [ebp - 0x420]
push 1
push esi
push str.GetVolumeInformation
call fcn.00419420
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d39f
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x214]
push 0x4afafc
push eax
call fcn.0048b155
add esp, 8
test eax, eax
jne 0x413b8a
lea edx, [eax + 1]
jmp 0x413c02
lea eax, [ebp - 0x214]
push str.REFS
push eax
call fcn.0048b155
add esp, 8
test eax, eax
jne 0x413ba7
lea edx, [eax + 4]
jmp 0x413c02
lea eax, [ebp - 0x214]
push str.LTFS
push eax
call fcn.0048b155
add esp, 8
test eax, eax
jne 0x413bc6
mov edx, 0x80
jmp 0x413c02
push 3
lea eax, [ebp - 0x214]
push 0x4afb20
push eax
call fcn.0048b2ca
add esp, 0xc
test eax, eax
je 0x413bfd
lea eax, [ebp - 0x214]
push str.exFAT
push eax
call fcn.0048b155
add esp, 8
mov edx, 8
test eax, eax
jne 0x413c02
mov edx, 2
mov esi, dword [ebp - 0x424]
or edx, ebx
mov ecx, edx
mov eax, esi
or ecx, 0x100
and al, 8
mov eax, esi
cmove ecx, edx
mov edx, ecx
or edx, 0x200
and eax, 0x40000
mov eax, esi
cmove edx, ecx
mov ecx, edx
or ecx, 0x400
and al, 0x80
mov eax, dword [0x4d3d8c]
cmove ecx, edx
mov ebx, ecx
or ebx, 0x800
and esi, 0x400000
cmove ebx, ecx
mov edx, ebx
cmp eax, 7
jae 0x413c7e
cmp eax, 6
jne 0x413c65
cmp dword [0x4d3d90], 1
jae 0x413c7e
test bl, 5
mov edx, ebx
setne cl
bt ebx, 0xa
setb al
test al, cl
je 0x413c7e
or edx, 0xe00
mov ecx, dword [ebp - 8]
mov eax, edx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d39f
mov esp, ebp
pop ebp
ret 4
Function at 0x417980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov edx, 0x4b0434
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
lea edi, [esi + eax*2]
mov ecx, edi
call fcn.0041ae30
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x4179d8
cmp esi, 0xffffffff
je 0x4179d8
push 0
lea eax, [ebp - 4]
push eax
push 0x200
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
mov word [edi], ax
mov edi, dword [ebp - 4]
test esi, esi
je 0x4179f0
cmp esi, 0xffffffff
je 0x4179f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x417a20
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
cmp byte [esi + 0x10], 0
jne 0x417a3f
xor ecx, ecx
cmp ecx, dword [esi + 0xc]
pop esi
sbb eax, eax
neg eax
pop ebx
pop ebp
ret 0xc
push edi
mov edi, dword [ebp + 0x10]
neg edi
mov dword [esi + 0xc], 0
sbb edi, edi
and edi, 0x1f4
push edi
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x417a85
cmp dword [ebx + 0xff4], 0
jne 0x417ab9
cmp dword [ebp + 0x10], 0
je 0x417ac2
push edi
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x417a65
push 1
lea edi, [esi + 0xc]
mov byte [esi + 0x10], 0
push edi
lea eax, [esi + 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x417ace
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 2
pop ebx
pop ebp
ret 0xc
cmp dword [edi], 0
je 0x417ab9
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0xc
Function at 0x418a90
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov edi, ecx
push 0x3e8
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
cmp esi, 0x102
je 0x418ac9
test esi, esi
je 0x418ab9
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov eax, esi
pop edi
pop esi
ret

Function at 0x418f70
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xe6c]
test eax, eax
jne 0x418f85
cmp dword [esi + 0xe70], eax
je 0x418f8e
cmp dword [esi + 0xff8], 0
je 0x418f92
xor eax, eax
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
je 0x418fa0
push eax
call edi
mov eax, dword [esi + 0xe70]
test eax, eax
je 0x418fad
push eax
call edi
mov eax, dword [esi + 0xe74]
test eax, eax
je 0x418fba
push eax
call edi
mov eax, dword [esi + 0xe78]
test eax, eax
je 0x418fc7
push eax
call edi
mov dword [esi + 0xff8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xfe8], eax
mov eax, 1
pop edi
pop esi
ret

Function at 0x418ff0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xe6c], 0
jne 0x419005
cmp dword [esi + 0xe70], 0
je 0x41900e
cmp dword [esi + 0xff8], 0
jne 0x419012
xor eax, eax
pop esi
ret
push edi
mov dword [esi + 0xff8], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0xfe8]
add dword [esi + 0xfdc], eax
mov eax, dword [esi + 0xe6c]
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
je 0x419042
push eax
call edi
mov eax, dword [esi + 0xe70]
test eax, eax
je 0x41904f
push eax
call edi
mov eax, dword [esi + 0xe74]
test eax, eax
je 0x41905c
push eax
call edi
mov eax, dword [esi + 0xe78]
test eax, eax
je 0x419069
push eax
call edi
pop edi
mov eax, 1
pop esi
ret
Function at 0x419910
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
xorps xmm0, xmm0
push edi
movlpd qword [ebp - 8], xmm0
cmp dword [ecx + 0xfec], esi
je 0x419955
mov esi, dword [ecx + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x419955
call fcn.0045bb90
mov edi, eax
mov ebx, edx
jmp 0x41995b
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004590d0
test esi, esi
je 0x41997d
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x41997d
call fcn.0045bb90
sub eax, edi
sbb edx, ebx
add dword [esi], eax
adc dword [esi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x419990
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov eax, ecx
push esi
push edi
mov dword [ebp - 0x14], eax
mov esi, dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x419b67
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0xfec]
test ecx, ecx
jne 0x4199dd
cmp byte [esi + 0xff0], cl
jne 0x4199dd
xor al, al
jmp 0x4199df
mov al, 1
mov byte [ebp - 1], al
cmp al, byte [ebx + 0xc]
je 0x419a0b
movzx eax, al
xor eax, 1
inc eax
shl eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov al, byte [ebp - 1]
mov byte [ebx + 0xc], al
mov ecx, dword [esi + 0xfec]
cmp ecx, 1
jbe 0x419b67
call fcn.0045bb90
mov esi, dword [ebx]
mov edi, eax
mov ecx, dword [ebx + 4]
sub eax, esi
mov dword [ebp - 0xc], edx
sbb dword [ebp - 0xc], ecx
or esi, ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], eax
je 0x419b62
or eax, dword [ebp - 0xc]
je 0x419b62
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [ebx], edi
test edx, edx
jl 0x419a61
jg 0x419a58
mov esi, dword [ebp - 0x1c]
cmp esi, 0x3e8
jb 0x419a64
mov esi, 0x3e8
xor edx, edx
jmp 0x419a64
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov eax, 0x64
sub eax, dword [ecx + 0xfec]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4c62d0]
mov eax, dword [ebx + 0x10]
divsd xmm0, qword [0x4c6238]
movsd qword [ebp - 0x20], xmm0
test al, 0x10
je 0x419aa4
divsd xmm0, qword [0x4c6220]
jmp 0x419ab0
test al, 0x20
jne 0x419ab5
mulsd xmm0, qword [0x4c6208]
movsd qword [ebp - 0x20], xmm0
subsd xmm0, qword [0x4c6218]
mov ecx, esi
movsd qword [ebp - 0x10], xmm0
call fcn.0049b200
movsd xmm1, qword [ebp - 0x10]
mov esi, 0x2bc
mulsd xmm1, xmm0
mov ecx, dword [ebx + 8]
divsd xmm1, qword [ebp - 0x20]
cvttsd2si eax, xmm1
sub ecx, eax
cmp ecx, esi
cmovl esi, ecx
test esi, esi
jle 0x419b58
mov ecx, dword [ebp - 0x24]
mov ebx, edi
mov eax, dword [ebp - 0x14]
mov edx, 0xc8
nop dword [eax + eax]
cmp dword [eax + 0xff4], 0
jne 0x419b50
cmp esi, 0xc8
mov eax, 1
cmovg eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0045bb90
mov edi, eax
mov ecx, edx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xfec], 0x7ffffff
je 0x419b45
sub ebx, edi
xor edx, edx
add esi, ebx
cmp esi, 0xfffffe0c
cmovl esi, edx
mov ebx, edi
mov edx, 0xc8
test esi, esi
jg 0x419b00
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], edi
mov dword [ebx + 4], ecx
mov dword [ebx + 8], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx], edi
mov dword [ebx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b830
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ba78
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x4cf06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0xf20]
test edi, edi
js 0x41b872
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, edi
mov ecx, eax
call fcn.0045ab30
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], 0
push eax
push dword [esi + 0x10]
xorps xmm0, xmm0
mov byte [ebp - 0x24], 0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0x8c8]
lea edi, [esi + 0xf2c]
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [esi + 0xef4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x18]
call fcn.00418a50
xor edi, edi
mov dword [ebp - 4], 0
cmp dword [esi + 0x7c4], edi
jle 0x41b92b
nop dword [eax + eax]
cmp dword [esi + 0xff4], 0
jne 0x41b92b
push edi
mov ecx, esi
call fcn.00414bd0
test eax, eax
je 0x41b922
mov eax, dword [esi + 0x8c8]
mov ecx, esi
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xb54]
and eax, 4
push edi
or eax, 8
shr eax, 2
push eax
push dword [esi + 0x844]
push dword [esi + 0x834]
call fcn.0041bc90
inc edi
cmp edi, dword [esi + 0x7c4]
jl 0x41b8e0
mov ecx, esi
call fcn.00418ad0
mov ecx, esi
call fcn.00418a60
cmp byte [ebp - 0x14], 0
je 0x41b95c
mov esi, dword [ebp - 0x18]
lea edi, [esi + 0xf2c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi + 0xef4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41c2a0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x690]
mov esi, dword [ebx + 0xbdc]
and eax, 0x1000
or eax, 0
je 0x41c2c2
mov eax, 1
jmp 0x41c2c4
xor eax, eax
mov dword [esi], eax
mov eax, 0x1000
mov ecx, dword [ebx + 0x8ac]
cmp ecx, eax
cmovb ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0xbe0]
sub eax, ecx
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xbdc]
add eax, ecx
mov dword [esi + 0xc], eax
mov edi, dword [ebx + 0x6bc]
imul edi, dword [ebx + 0x6b8]
cmp dword [esi], 0
mov ecx, dword [esi + 8]
je 0x41c392
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edx
xor edx, edx
shr ecx, 1
mov eax, ecx
div dword [esi + 4]
sub ecx, edx
cmp edi, ecx
cmovae edi, ecx
mov dword [esi + 8], edi
mov ecx, dword [esi + 0xc]
add ecx, edi
mov dword [esi + 0x10], ecx
mov eax, dword [esi + 8]
add eax, ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x690]
mov edx, dword [esi + 8]
and eax, 0x2000
or eax, 0
je 0x41c36e
call fcn.0045f4b0
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x10]
call fcn.0045f4b0
push dword [esi + 8]
push 0
push dword [esi + 0x14]
call fcn.00481280
add esp, 0xc
pop edi
pop esi
pop ebx
ret
call fcn.0045f580
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x10]
call fcn.0045f580
push dword [esi + 8]
push 0
push dword [esi + 0x14]
call fcn.00481280
add esp, 0xc
pop edi
pop esi
pop ebx
ret
cmp edi, ecx
cmovae edi, ecx
mov ecx, eax
mov dword [esi + 8], edi
mov edx, edi
mov eax, dword [ebx + 0x690]
and eax, 0x2000
or eax, 0
je 0x41c3b6
pop edi
pop esi
pop ebx
jmp fcn.0045f4b0
pop edi
pop esi
pop ebx
jmp fcn.0045f580

Function at 0x41c4f0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea esi, [ecx + eax*2]
mov ecx, dword [ebp + 0xc]
push 0x2e
push esi
lea eax, [ecx + eax*2]
mov dword [ebp + 0x10], eax
call fcn.0047edd8
mov edi, dword [ebp + 0x14]
add esp, 8
test eax, eax
je 0x41c525
sub eax, esi
mov ebx, edi
sar eax, 1
sub ebx, eax
jmp 0x41c527
xor ebx, ebx
cmp edi, 0xff
jg 0x41c56b
nop
xor esi, esi
push ebx
push edi
push dword [ebp + 0x10]
call fcn.0041c3c0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x41c575
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41c56b
inc esi
cmp esi, 0x80
jl 0x41c532
inc edi
cmp edi, 0xff
jle 0x41c530
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
pop ebp
ret 0x10
Function at 0x41d0f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], esi
mov dword [esi + 0x1388], 0x55555555
lea eax, [esi + 0x10]
mov dword [esi + 0x138c], 0x55555555
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
mov esi, 1
mov dword [esp + 0x10], eax
nop
push 0x5851f42d
xor eax, eax
mov ecx, edi
push 0x4c957f2d
shr ecx, 0x1e
xor eax, edi
xor ecx, ebx
push eax
push ecx
call fcn.0047dfd0
mov ebx, eax
mov edi, edx
mov eax, esi
cdq
add ebx, eax
mov eax, dword [esp + 0x10]
adc edi, edx
inc esi
mov dword [eax], ebx
mov dword [eax + 4], edi
add eax, 8
mov dword [esp + 0x10], eax
cmp esi, 0x138
jl 0x41d130
mov esi, dword [esp + 0x14]
mov eax, esi
pop edi
mov dword [esi], pe_nt_image_headers32
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4218d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4cf06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x10c], ecx
mov eax, dword [esi + 0x8bc]
mov dword [ebp - 0x118], eax
xor eax, eax
mov dword [ebp - 0x110], eax
mov byte [edi + 0x10], al
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov edx, dword [ebp + 0x10]
nop word [eax + eax]
mov eax, dword [esi + 0x8bc]
cmp edx, eax
cmovb eax, edx
lea edx, [edi + 0x1c]
push edx
lea edx, [edi + 0xc]
mov dword [edi + 8], eax
push edx
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x421a4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [esi + 0x6ac], 2
mov dword [ebp - 0x114], eax
je 0x421972
push str.read_1
push ebx
push edi
push esi
call fcn.00421830
mov eax, dword [ebp - 0x114]
add esp, 0x10
cmp eax, 0x5aa
jne 0x4219db
mov ecx, dword [esi + 0x8bc]
mov eax, ecx
mov edx, dword [ebp + 0x10]
cmp edx, ecx
cmovb eax, edx
cmp eax, 0x100000
jbe 0x421a21
lea eax, [ecx - 1]
mov dword [ebp - 0x110], 1
mov ecx, dword [ebp - 0x10c]
and eax, 0xfff00000
test byte [esi + 0x6ac], 2
mov dword [esi + 0x8bc], eax
je 0x421920
push eax
push str.read_2_maxReadSize_d
push ebx
push edi
push esi
call fcn.00421830
mov ecx, dword [ebp - 0x10c]
add esp, 0x14
jmp 0x421914
cmp eax, 0x3e5
jne 0x421a21
cmp dword [ebp - 0x110], 0
mov byte [edi + 0x10], 1
je 0x421a4a
push 1
push edi
push dword [ebp - 0x10c]
mov ecx, esi
call fcn.00417a20
mov ecx, dword [esi + 0x6ac]
and ecx, 2
cmp eax, 1
je 0x421a36
test ecx, ecx
je 0x421a21
push str.read_wait_err
push ebx
push edi
push esi
call fcn.00421830
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d39f
mov esp, ebp
pop ebp
ret 0x10
test ecx, ecx
je 0x421a4a
push str.read_manual_wait_OK
push ebx
push edi
push esi
call fcn.00421830
add esp, 0x10
test byte [esi + 0x6ac], 2
je 0x421a63
push str.read_OK
push ebx
push edi
push esi
call fcn.00421830
add esp, 0x10
mov eax, dword [esi + 0x8bc]
mov ecx, dword [ebp - 0x118]
cmp eax, ecx
je 0x421aa1
shr eax, 0x14
push eax
shr ecx, 0x14
lea eax, [ebp - 0x108]
push ecx
push 0x52
push 0x4b12c8
push eax
call fcn.0040e1d0
add esp, 0x14
lea eax, [ebp - 0x108]
mov ecx, esi
push 0xffffffffffffffff
push eax
call fcn.00419730
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d39f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x422ae0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [edi + 0x1c]
movzx ebx, word [edi + 0x2a]
mov eax, dword [esi + 0x864]
test cl, 0x10
je 0x422be1
test eax, eax
je 0x422b98
test cl, 1
je 0x422b20
push 0x10
lea eax, [edi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi + 0x864]
test eax, eax
je 0x422b98
mov edx, dword [esi + 0x790]
lea ecx, [edi + 0x20]
or edx, dword [esi + 0x8a0]
call fcn.004578c0
test eax, eax
jne 0x422b98
mov eax, dword [esi + 0xb50]
add dword [eax + 0xf0], 1
adc dword [eax + 0xf4], 0
cmp dword [esi + 0x8a0], 0
je 0x422b70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
jne 0x422b70
mov dword [esi + 0x8a0], 0
cmp ebx, 0x3a
mov ecx, 0x28
mov eax, 0x2e
cmove eax, ecx
mov ecx, esi
push 0
add eax, edi
push eax
push str.RemoveDirectory_move_
call fcn.00419420
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [esi + 0xb50]
add dword [eax + 0x58], 1
adc dword [eax + 0x5c], 0
cmp dword [esi + 0x854], 0
je 0x422cc7
test dword [edi + 0x1c], 0x400
je 0x422bd1
mov eax, dword [esi + 0x690]
and eax, 0x4000
or eax, 0
mov eax, 0x2a
je 0x422bd6
mov eax, 0x22
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
jmp 0x422ca5
test eax, eax
je 0x422c51
test cl, 1
je 0x422bff
push 0x80
lea eax, [edi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi + 0x864]
test eax, eax
je 0x422c51
mov edx, dword [esi + 0x790]
lea ecx, [edi + 0x20]
call fcn.00457a80
test eax, eax
jne 0x422c51
mov eax, dword [esi + 0xb50]
mov ecx, 0x28
push 0
add dword [eax + 0xf8], 1
adc dword [eax + 0xfc], 0
cmp ebx, 0x3a
mov eax, 0x2e
cmove eax, ecx
mov ecx, esi
add eax, edi
push eax
push str.DeleteFile_move_
call fcn.00419420
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [esi + 0xb50]
add dword [eax + 0x60], 1
adc dword [eax + 0x64], 0
mov ecx, dword [esi + 0xb50]
mov eax, dword [edi + 8]
add dword [ecx + 0x68], eax
mov eax, dword [edi + 0xc]
adc dword [ecx + 0x6c], eax
cmp dword [esi + 0x854], 0
je 0x422cc7
test dword [edi + 0x1c], 0x400
je 0x422c98
mov eax, dword [esi + 0x690]
and eax, 0x4000
or eax, 0
mov eax, 0x28
je 0x422c9d
mov eax, 0x20
push 0
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 0x14]
cmp ebx, 0x3a
push dword [edi + 0x10]
push ecx
push eax
mov ecx, 0x28
mov eax, 0x2e
cmove eax, ecx
mov ecx, esi
add eax, edi
push eax
call fcn.00416d90
pop edi
pop esi
pop ebx
pop ebp
ret 4