joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001760
Capabilities:
Encode data using xor

Disassembly:
movaps xmm1, xmmword [0x10019c90]
xor eax, eax
test edx, edx
je 0x100017b6
cmp edx, 0x10
jb 0x100017a1
push esi
mov esi, edx
and esi, 0xfffffff0
nop dword [eax + eax]
movups xmm0, xmmword [ecx]
add eax, 0x10
pxor xmm0, xmm1
paddb xmm0, xmm1
pxor xmm0, xmm1
movups xmmword [ecx], xmm0
add ecx, 0x10
cmp eax, esi
jb 0x10001780
pop esi
cmp eax, edx
jae 0x100017b6
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
xor al, 0x7b
add al, 0x7b
xor al, 0x7b
mov byte [ecx - 1], al
sub edx, 1
jne 0x100017a3
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 1
push dword [ebp + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100017f7
or eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.1000293a
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10004010
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov edx, esi
mov ecx, edi
call fcn.10001760
add esp, 4
mov edx, esi
mov ecx, edi
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.100016e0
push edi
mov esi, eax
call fcn.10002943
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416d87
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x416d96
pop dword [ebp - 0x28]
mov eax, 0x854d54a2
add eax, 0x7af418f4
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3e677
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x495528aa
add ecx, 0xb6ab2088
xor ebx, ebx
add ebx, eax
mov esi, 0x8817982c
add esi, 0x782be9d4
add esi, dword [ebp - 0x28]
mov edx, 0xdead0047
sub edx, 0xd20f94a9
add dword [ebp - 0xc], 0x557d3b00
mov edi, dword [esi]
xor edi, edx
sub dword [ebp - 0x1c], eax
mov dword [ebx], edi
sub dword [ebp - 0x18], edi
add ebx, 0xd2aaa560
add ebx, 0x2d555aa4
add esi, 0xd9ee964a
sub esi, 0xd9ee9646
loop 0x416df2
add eax, 0x7ef19dd8
sub eax, 0x7ef0863d
mov ebx, eax
add eax, 5
mov ecx, 0x38517072
add ecx, 0xc7ee8f8e
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x416ec0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408d85
mov dword [ebp - 0x14], eax
cmp dword [0x8263c0], esi
jne 0x416fb3
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x416f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x417093
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x417093
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417093
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x8263c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x8263c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x8263c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8263d0], eax
test eax, eax
je 0x416fb0
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8263cc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416fd8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416fcb
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x416fed
push 4
pop eax
jmp 0x417095
cmp dword [ebp - 0x14], esi
je 0x416fed
push dword [0x8263c0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416fd2
mov eax, dword [0x8263cc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41704b
cmp dword [0x8263d0], edi
je 0x41704b
push eax
call ebx
push dword [0x8263d0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41704b
test eax, eax
je 0x41704b
call ecx
test eax, eax
je 0x417040
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x417040
test byte [ebp - 8], 1
jne 0x41704b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41707b
mov eax, dword [0x8263c4]
cmp eax, edi
je 0x417078
push eax
call ebx
test eax, eax
je 0x417078
call eax
mov esi, eax
test esi, esi
je 0x417078
mov eax, dword [0x8263c8]
cmp eax, edi
je 0x417078
push eax
call ebx
test eax, eax
je 0x417078
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x8263c0]
call ebx
test eax, eax
je 0x417093
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x417095
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406fb0
mov esp, ebp
pop ebp
ret
Function at 0x800a980
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x800a9a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x800a9a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x800a998
mov eax, 1
add ebx, ebx
jne 0x800a9bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x800a9b0
jne 0x800a9cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x800a9b0
xor ecx, ecx
sub eax, 3
jb 0x800a9e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x800aa52
mov ebp, eax
add ebx, ebx
jne 0x800a9eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x800a9f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x800aa1c
inc ecx
add ebx, ebx
jne 0x800aa08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x800a9fd
jne 0x800aa19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x800a9fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x800aa3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x800aa2d
jmp 0x800a99e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x800aa3c
add edi, ecx
jmp 0x800a99e
pop esi
mov edi, esi
mov ecx, 0x19
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x800aa5a
cmp byte [edi], 1
jne 0x800aa5a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x800aa5f
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x800aace
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc10c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc164]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x800aa8c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc16c]
or eax, eax
je 0x800aac8
mov dword [ebx], eax
add ebx, 4
jmp 0x800aaa9
call dword [esi + 0xc168]
mov ebp, dword [esi + 0xc170]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x800ab02
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40b525
xor eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
or eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
or eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403bd9
Capabilities:
Identify system language via api

Disassembly:
push ecx
cmp byte [0x487000], 0
push ebx
push ebp
push esi
push edi
mov ebx, pe_overlay
mov ebp, 0x487000
je 0x403bf9
push ebp
call fcn.00405eb8
jmp 0x403bff
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [esp + 0x10], eax
xor esi, esi
mov edi, dword [0x456764]
mov eax, edi
dec edi
test eax, eax
je 0x403c5b
mov eax, dword [0x456728]
mov ecx, dword [eax + 0x64]
mov edx, ecx
imul ecx, edi
neg edx
add ecx, dword [0x456760]
mov ax, word [esp + 0x10]
mov esi, ecx
xor ax, word [ecx]
and eax, ebx
test ax, ax
je 0x403c43
mov eax, edi
dec edi
add ecx, edx
test eax, eax
jne 0x403c27
jmp 0x403c5b
mov eax, dword [esi + 2]
mov dword [0x452700], eax
mov eax, dword [esi + 6]
mov dword [0x4567c8], eax
lea eax, [esi + 0xa]
mov dword [0x4526fc], eax
cmp dword [0x4526fc], 0
jne 0x403c76
cmp bx, 0xffff
jne 0x403c72
mov ebx, 0x3ff
jmp 0x403c05
xor ebx, ebx
jmp 0x403c05
movzx eax, word [esi]
push eax
push ebp
call fcn.00405e9f
push 0xfffffffffffffffe
push 0x452720
call fcn.00405f71
push eax
push dword [0x43ef28]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x45674c]
mov esi, dword [0x456748]
mov ecx, eax
dec eax
test ecx, ecx
je 0x403cca
lea ebx, [esi + 0x18]
lea ebp, [eax + 1]
mov edi, 0x2018
mov eax, dword [esi]
test eax, eax
je 0x403cc3
push eax
push ebx
call fcn.00405f71
add esi, edi
add ebx, edi
dec ebp
jne 0x403cb6
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405772
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x444750], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405796
test al, 0x10
jne 0x405799
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x444750
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4057c4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405844
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405b29
test byte [ebp + 0xc], 8
mov dword [ebp - 4], eax
je 0x405878
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4567a8], eax
jmp 0x405a41
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp + 8], ebx
je 0x405896
test eax, eax
je 0x4059c5
test byte [ebp + 0xc], 2
je 0x4059c5
mov esi, 0x43ff50
push edi
push esi
call fcn.00405f42
test ebx, ebx
je 0x4058b3
push str..
push esi
call fcn.00405f60
jmp 0x4058b9
push edi
call fcn.00405a8e
push 0x40a228
push edi
call fcn.00405f60
push edi
call fcn.00405f53
mov ebx, eax
lea eax, [ebp - 0x144]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4059bb
cmp byte [ebp - 0x118], 0x2e
jne 0x40590a
cmp byte [ebp - 0x117], 0x2e
je 0x40599e
cmp byte [ebp - 0x117], 0
je 0x40599e
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.00405f42
test byte [ebp - 0x144], 0x10
je 0x405935
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40599e
push dword [ebp + 0xc]
push edi
call fcn.00405844
jmp 0x40599e
push edi
push str.Delete:_DeleteFile___s__
call fcn.004062e8
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405996
test byte [ebp + 0xc], 4
push edi
je 0x405982
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.004062e8
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040524e
push 0
push edi
call fcn.00405c8b
jmp 0x40599e
push str.Delete:_DeleteFile_failed___s__
call fcn.004062e8
inc dword [0x4567a8]
pop ecx
pop ecx
jmp 0x40599e
push edi
push 0xfffffffffffffff2
call fcn.0040524e
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4058e7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4059c5
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp + 8], esi
je 0x405a41
cmp dword [ebp - 4], esi
push edi
jne 0x4059e7
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.004062e8
inc dword [0x4567a8]
pop ecx
pop ecx
jmp 0x405a41
call fcn.00406304
test eax, eax
je 0x405a41
push edi
call fcn.00405a47
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.004062e8
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405a39
test byte [ebp + 0xc], 4
push edi
je 0x405a32
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.004062e8
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040524e
push esi
push edi
call fcn.00405c8b
jmp 0x405a41
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x4059d8
push edi
push 0xffffffffffffffe5
call fcn.0040524e
pop edi
pop esi
leave
ret 8
Function at 0x405b29
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x441f50
push esi
call fcn.00405f42
push esi
call fcn.00405ada
mov edi, eax
test edi, edi
jne 0x405b4a
xor eax, eax
jmp 0x405b9c
push edi
call fcn.004061b2
test byte [0x456730], 0x80
je 0x405b63
mov al, byte [edi]
test al, al
je 0x405b46
cmp al, 0x5c
je 0x405b46
sub edi, esi
push esi
call fcn.00405f53
cmp eax, edi
push esi
jle 0x405b86
call fcn.00406304
test eax, eax
je 0x405b7e
test byte [eax], 0x10
je 0x405b46
push esi
call fcn.00405a8e
jmp 0x405b65
call fcn.00405a47
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c13
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
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_CreateFileA]
ret 0xc

Function at 0x405c42
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
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 byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405c87
mov eax, edi
dec edi
test eax, eax
jne 0x405c4d
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c81
Function at 0x405c8b
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00406342
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405cb7
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405dfb
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x4448d8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4448d8
je 0x405cfb
push 1
push 0
push esi
call fcn.00405c13
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e01
cmp eax, edi
jg 0x405e01
mov esi, 0x444350
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e01
cmp eax, edi
jg 0x405e01
push esi
push ebp
push str._s_s_r_n
push 0x443f50
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call fcn.00405f60
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405dfb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x405de3
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x405dd7
push str._Rename__r_n
push edi
call fcn.00405ba1
test eax, eax
jne 0x405e08
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call fcn.00405f42
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x443f50
push eax
call fcn.00405bed
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x4567b0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40a9bc
push eax
call fcn.00405ba1
test eax, eax
je 0x405dbe
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x405e31
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x405e24
sub eax, edi
jmp 0x405dc0
Function at 0x405e35
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405e99
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405e88
cmp dword [ebp + 0x14], 1
je 0x405e8a
cmp dword [ebp + 0x14], 2
je 0x405e8a
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40624b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406270
mov eax, dword [0x40a8b8]
cmp eax, 0xffffffff
je 0x406267
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8b8], 0xffffffff
jmp 0x4062e3
cmp dword [0x446680], ebx
je 0x4062e3
cmp byte [0x446280], bl
je 0x4062af
cmp dword [0x40a8b8], 0xffffffff
jne 0x4062b8
push 4
push 0x40000000
push 0x446280
call fcn.00405c13
cmp eax, 0xffffffff
mov dword [0x40a8b8], eax
je 0x4062e3
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8b8], 0xffffffff
je 0x4062e3
push esi
mov esi, 0x44a6c0
push 0x40aa8c
push esi
call fcn.00405f60
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f53
push eax
push esi
push dword [0x40a8b8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x444cdc], esi
push edi
jne 0x4063e3
mov ecx, 0x444cd8
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4063bf
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x4450d8
jl 0x4063ba
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406418
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x444cd8]
xor eax, esi
inc ecx
dec edx
jne 0x4063fb
pop edi
pop esi
not eax
ret 0xc