joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x40a05b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40a06a
pop dword [ebp - 0x4c]
mov eax, 0x853e1958
add eax, 0x7b028712
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x39950
push 0
mov eax, 0xd2882c38
add eax, 0x2db8b4e8
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x1336af18
sub ecx, 0x13366662
xor edi, edi
add edi, eax
mov esi, 0xadc10831
add esi, 0x52806fcf
add esi, dword [ebp - 0x4c]
mov ebx, 0x39f7c012
add dword [ebp - 0x20], ecx
mov edx, dword [esi]
mov dword [ebp - 0x10], 0x8acbb16f
xor edx, ebx
add dword [ebp - 0x28], edx
mov dword [edi], edx
add dword [ebp - 0x14], ecx
add edi, 4
add esi, 0xa49cad73
sub esi, 0xa49cad6f
loop 0x40a0c5
add eax, 0xc6fface
add eax, 0xf3911add
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x5f0d8f43
sub ecx, 0x5ecd8f43
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10019832
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10019854
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x10019904
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0xc], esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x10019877
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10019879
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x100198f5
jg 0x1001988c
test esi, esi
je 0x100198f5
test eax, eax
jl 0x100198cc
jg 0x10019896
test ebp, ebp
je 0x100198cc
cmp edi, eax
jg 0x100198a6
jl 0x100198a0
cmp esi, ebp
jae 0x100198a6
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [ebx + 0x30]
add ecx, ebp
sub esi, ebp
sbb edi, dword [esp + 0x20]
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
jmp 0x100198d0
mov ecx, dword [esp + 0x1c]
test edi, edi
jl 0x100198f5
jg 0x100198da
test esi, esi
je 0x100198f5
cmp dword [ebx + 0x4c], 0
je 0x100198f5
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc

Function at 0x1001a978
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1001a987
pop dword [ebp - 0x30]
mov eax, 0x1001a987
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3550a
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x95021fb
add ecx, 0xf6b016f1
mov esi, eax
mov edx, 0xae5d0ece
add edx, 0x61a72f32
add edx, dword [ebp - 0x30]
mov ebx, 0x1813fe49
sub ebx, 0x86f90f94
add dword [ebp - 0x1c], esi
mov edi, dword [edx]
sub dword [ebp - 0x20], esi
xor edi, ebx
add dword [ebp - 0x2c], edx
mov dword [esi], edi
add dword [ebp - 0x28], ebx
add esi, 0xbc6bc31e
add esi, 0x43943ce6
add edx, 4
loop 0x1001a9dc
add eax, 0xd683
xor ebx, ebx
add ebx, eax
add eax, 0x5dc66915
add eax, 0xa23996f0
mov ecx, 0x116a88b7
add ecx, 0xfe957749
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x10007faf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10007fbe
pop dword [ebp - 0x50]
mov eax, 0xad4bae71
sub eax, 0x9d4b2eb3
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x1bd84e2d
add dword [ebp - 0x60], 0x3279f71e
mov dword [ebp - 0x5c], 0xb658ca74
add dword [ebp - 0x5c], 0x7bda81d1
mov dword [ebp - 0x58], 0x70af9d3e
sub dword [ebp - 0x58], 0x24635910
mov dword [ebp - 0x54], 0xe40bdc77
add dword [ebp - 0x54], 0x1bf42389
lea eax, [ebp - 0x60]
push eax
mov eax, 0xe8e15eab
sub eax, 0xd8df9e2b
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x876ae4b2
add dword [ebp - 0x60], 0xed0784a4
mov dword [ebp - 0x5c], 0xa8db7783
sub dword [ebp - 0x5c], 0x676f160e
mov dword [ebp - 0x58], 0xa47f8342
add dword [ebp - 0x58], 0xbeefe92a
mov dword [ebp - 0x54], 0x79e6621f
add dword [ebp - 0x54], 0x86199de1
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xff243535
add eax, 0x10dd8acb
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x39a83
push 0
call eax
mov ecx, 0x696f0d53
add ecx, 0x96914351
xor edi, edi
add edi, eax
mov ebx, 0x10026800
add ebx, dword [ebp - 0x50]
mov edx, 0x76fce980
mov dword [ebp - 0x28], 0xb2cdd2d0
mov esi, dword [ebx]
sub dword [ebp - 0x40], 0x2cef7e38
xor esi, edx
add dword [ebp - 0x10], edi
mov dword [edi], esi
xor dword [ebp - 0x24], 0x9303f73a
add edi, 4
add ebx, 4
loop 0x100080d6
add eax, 0x53d9ceb8
sub eax, 0x53d89955
mov ebx, eax
add eax, 0x9dd99fc4
add eax, 0x62266041
mov ecx, 0x10000000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x10008fc4
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x1000
mov dword [esp + 0x14], ebp
call sub.glib_lite.dll_Ordinal_406
mov esi, dword [esp + 0x1c]
mov edi, eax
mov ebx, dword [esp + 0x20]
pop ecx
mov dword [ebx], ebp
mov eax, dword [esi + 0x118]
sub eax, dword [esi + 0x110]
mov ecx, dword [esi + 0x11c]
sbb ecx, dword [esi + 0x114]
add eax, 0xffffffff
adc ecx, 0xffffffff
cmp ecx, ebp
ja 0x1000901f
jb 0x10009011
cmp eax, 0xffe
ja 0x1000901f
mov eax, dword [esi + 0x118]
sub eax, dword [esi + 0x110]
jmp 0x10009024
mov eax, 0x1000
test edi, edi
je 0x1000909a
push ebp
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [esi + 0x104]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x10009093
push sub.glib_lite.dll_Ordinal_109
push edi
push dword [esp + 0x18]
push ebp
push 0x1000
push edi
push ebp
call sub.gstreamer_lite.dll_Ordinal_25
add esp, 0x1c
mov dword [ebx], eax
test eax, eax
je 0x10009072
mov ecx, dword [esi + 0x110]
mov dword [eax + 0x40], ecx
mov ecx, dword [esi + 0x114]
mov dword [eax + 0x44], ecx
mov eax, dword [esp + 0x10]
add eax, dword [esi + 0x110]
push 0
pop edx
adc edx, dword [esi + 0x114]
mov dword [esi + 0x110], eax
mov dword [esi + 0x114], edx
jmp 0x1000909e
push edi
call sub.glib_lite.dll_Ordinal_109
pop ecx
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x8be370
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8be4c0
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8be396
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8be382
add dl, dl
jne 0x8be3a1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8be3f4
xor eax, eax
add dl, dl
jne 0x8be3ae
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8be495
add dl, dl
jne 0x8be3bd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8be3c8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8be3d3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8be3de
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8be3ea
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8be38d
mov eax, 1
add dl, dl
jne 0x8be402
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8be40d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8be3f9
sub eax, ebx
mov ebx, 1
jne 0x8be440
mov ecx, 1
add dl, dl
jne 0x8be426
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8be431
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8be41d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8be38d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8be457
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8be462
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8be44e
cmp eax, 0x7d00
jae 0x8be485
cmp eax, 0x500
jb 0x8be480
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8be38d
cmp eax, 0x7f
ja 0x8be488
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8be38d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8be4b6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8be38d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402fd8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42cb10]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40306c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x403029
cmp dword [ebp + 0x10], ebx
jne 0x403060
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402fd8
test eax, eax
jne 0x40303b
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x403010
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406998
cmp eax, ebx
je 0x403073
push ebx
push dword [0x42cb10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40306c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42cb10], ebx
jne 0x403069
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x403069
jmp 0x40306c
Function at 0x4034c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp eax, esi
jl 0x4034ec
mov ecx, dword [0x42cab8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x419ef4], eax
push dword [0x40acbc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004035db
cmp eax, esi
jl 0x4035d5
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40acbc]
call fcn.0040616a
test eax, eax
je 0x4035c1
push dword [ebp + 8]
add dword [0x419ef4], 4
call fcn.004035db
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x4035d5
cmp dword [ebp + 0x10], esi
jne 0x40359d
cmp dword [ebp + 8], esi
jle 0x4035d2
mov esi, 0x415ef0
cmp dword [ebp + 8], 0x4000
mov edi, dword [ebp + 8]
jl 0x403552
mov edi, 0x4000
push edi
push esi
push dword [0x40acbc]
mov dword [ebp - 4], edi
call fcn.0040616a
test eax, eax
je 0x4035c1
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403599
cmp dword [ebp + 0x14], edi
jne 0x403599
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x419ef4], eax
cmp dword [ebp + 8], 0
jg 0x403541
jmp 0x4035d2
push 0xfffffffffffffffe
jmp 0x4035c3
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4035a8
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40acbc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4035c6
push 0xfffffffffffffffd
pop eax
jmp 0x4035d5
mov eax, dword [ebp - 4]
add dword [0x419ef4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x10
Function at 0x4035db
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x419ef4]
sub esi, dword [0x40de60]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x42ca6c], eax
jle 0x403745
push dword [0x421f04]
call fcn.0040376d
push ebx
push ebx
push dword [0x40de60]
push dword [0x40acbc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x421f00], esi
mov dword [0x419ef0], ebx
mov ebp, 0x40def0
mov eax, dword [0x419ef8]
mov edi, 0x4000
sub eax, dword [0x421f04]
cmp eax, edi
jg 0x403650
mov edi, eax
mov esi, 0x415ef0
push edi
push esi
call fcn.00403757
test eax, eax
je 0x403737
add dword [0x421f04], edi
mov dword [0x40de80], esi
mov dword [0x40de84], edi
cmp dword [0x42ca70], ebx
je 0x4036a7
cmp dword [0x42cb00], ebx
jne 0x4036a7
mov eax, dword [0x421f00]
push ebx
sub eax, dword [0x419ef4]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40de60]
mov dword [0x419ef0], eax
call fcn.00403178
pop ecx
mov ecx, 0x40de68
mov dword [0x40de88], ebp
mov dword [0x40de8c], 0x8000
call fcn.00406ad4
test eax, eax
jl 0x403740
mov esi, dword [0x40de88]
sub esi, ebp
je 0x403701
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40acbc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40373c
cmp esi, dword [esp + 0x10]
jne 0x40373c
add dword [0x40de60], esi
cmp dword [0x40de84], ebx
jne 0x403676
jmp 0x40370d
cmp dword [0x40de84], ebx
jne 0x403740
cmp edi, ebx
je 0x403740
mov eax, dword [0x419ef4]
mov ecx, eax
sub ecx, dword [0x40de60]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x40363a
push ebx
push ebx
push eax
push dword [0x40acbc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403745
or eax, 0xffffffff
jmp 0x40374f
push 0xfffffffffffffffe
jmp 0x403742
push 0xfffffffffffffffd
pop eax
jmp 0x40374f
push 1
call fcn.00403178
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x405b9d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x427748], 0x44
push eax
xor eax, eax
push 0x427748
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405bd8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405c62
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004060c2
mov edi, eax
cmp edi, 0xffffffff
je 0x405ca3
test byte [esp + 0x10], 1
push esi
je 0x405c85
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c8b
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405c94
xor eax, eax
inc eax
jmp 0x405ca5
test byte [esp + 0x10], 4
jne 0x405ca3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405caa
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
push edi
and eax, 4
push esi
mov dword [ebp - 4], eax
call fcn.00405fce
test bl, 8
mov dword [ebp - 8], eax
je 0x405ce9
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42cae8], eax
jmp 0x405ebf
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405d03
test eax, eax
je 0x405e41
test bl, 2
je 0x405e41
mov edi, 0x426748
push esi
push edi
call fcn.0040647b
cmp dword [ebp + 8], 0
je 0x405d22
push str..
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405d28
push esi
call fcn.00405f12
cmp word [esi], 0
jne 0x405d38
cmp word [0x426748], 0x5c
jne 0x405d43
push 0x40a4e4
push esi
call sub.KERNEL32.dll_lstrcatW
push esi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [esi + eax*2]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405e36
cmp word [ebp - 0x22c], 0x2e
jne 0x405d95
cmp word [ebp - 0x22a], 0
je 0x405e19
cmp word [ebp - 0x22a], 0x2e
jne 0x405d95
cmp word [ebp - 0x228], 0
je 0x405e19
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040647b
test byte [ebp - 0x258], 0x10
je 0x405dc0
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405e19
push dword [ebp + 0xc]
push esi
call fcn.00405caa
jmp 0x405e19
push esi
push str.Delete:_DeleteFile___s__
call fcn.00406940
pop ecx
pop ecx
push dword [ebp - 4]
push esi
call fcn.00405c62
test eax, eax
push esi
jne 0x405e12
cmp dword [ebp - 4], eax
je 0x405dfe
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406940
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405697
push 0
push esi
call fcn.00406315
jmp 0x405e19
push str.Delete:_DeleteFile_failed___s__
call fcn.00406940
inc dword [0x42cae8]
pop ecx
pop ecx
jmp 0x405e19
push 0xfffffffffffffff2
call fcn.00405697
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405d65
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405e41
and word [ebx - 2], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x405ebf
cmp dword [ebp - 8], edi
push esi
jne 0x405e62
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00406940
inc dword [0x42cae8]
pop ecx
pop ecx
jmp 0x405ebf
call fcn.00406971
test eax, eax
je 0x405ebf
push esi
call fcn.00405ec6
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406940
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or al, 1
push eax
push esi
call fcn.00405c62
test eax, eax
push esi
jne 0x405eb8
cmp dword [ebp - 4], edi
je 0x405eb1
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406940
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405697
push edi
push esi
call fcn.00406315
jmp 0x405ebf
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x405e53
push 0xffffffffffffffe5
call fcn.00405697
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405fce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x426f48
push esi
call fcn.0040647b
push esi
call fcn.00405f71
mov edi, eax
test edi, edi
jne 0x405fef
xor eax, eax
jmp 0x406047
push edi
call fcn.0040670f
test byte [0x42ca78], 0x80
je 0x40600c
mov ax, word [edi]
test ax, ax
je 0x405feb
cmp ax, 0x5c
je 0x405feb
sub edi, esi
sar edi, 1
jmp 0x406026
call fcn.00406971
test eax, eax
je 0x406020
test byte [eax], 0x10
je 0x405feb
push esi
call fcn.00405f12
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x406012
call fcn.00405ec6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4060c2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4060e1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x4060e7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x406116
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40b470]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40b474]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406166
test edi, edi
jne 0x406123
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406160
Function at 0x406199
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x427de0
push 0x40b494
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x4061e8
push 1
push 0
push esi
call fcn.004060e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x40630f
cmp eax, edi
jg 0x40630f
mov esi, 0x4285e0
push edi
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x40630f
cmp eax, edi
jg 0x40630f
push esi
push ebx
push str._ls_ls_r_n
push 0x4279e0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42ca70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040649d
push 4
push 0xc0000000
push esi
call fcn.004060e7
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x40630f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406308
push edi
push esi
push ebp
call fcn.0040616a
test eax, eax
je 0x406308
push str._Rename__r_n
push esi
call fcn.0040604c
test eax, eax
jne 0x40629e
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4062d3
add eax, 0xa
push 0x40b478
push eax
call fcn.0040604c
mov ebp, eax
test ebp, ebp
je 0x4062cf
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4062c0
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4062ba
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x4062d5
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x4279e0
push eax
call fcn.004060a2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x406348
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4063bc
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4063a9
cmp dword [ebp + 0x14], 1
je 0x4063ac
cmp dword [ebp + 0x14], 2
je 0x4063ac
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14