joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ac94
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43acdc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x404]
push eax
push 0x3ff
call sub.kernel32.dll_GetTempPathA
mov ecx, eax
lea edx, [ebp - 0x404]
mov eax, dword [ebp - 4]
call fcn.00404c30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43acf3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43ad08
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404c30
cmp dword [ebx], 0
je 0x43ad3c
mov eax, ebx
mov edx, 0x43ad4c
call fcn.00404e00
add esp, 0x104
pop ebx
ret

Function at 0x43b2d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fe0
xor eax, eax
push ebp
push 0x43b345
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404df8
mov esi, eax
test esi, esi
jle 0x43b324
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00405048
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
xor edx, edi
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x43b30a
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b34c
lea eax, [ebp - 4]
call fcn.00404b40
ret
Function at 0x43b640
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28], edx
mov esi, eax
xor eax, eax
push ebp
push 0x43b7a6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x43b784
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x43b690
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43b790
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x28]
mov eax, 0x43b7c0
call fcn.0043aba4
mov eax, dword [ebp - 0x28]
call fcn.00404ff0
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x43b6cb
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43b790
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x43b711
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43b790
push esi
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
jne 0x43b72b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43b790
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x43b741
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43b790
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x43b778
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43b790
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43b790
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b7ad
lea eax, [ebp - 0x28]
call fcn.00404b40
ret
Function at 0x41926c
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push edi
push esi
push ebx
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
call sym.__errno
mov dword [eax], 0
mov esi, esi
add esp, 0xfffffffc
mov eax, 0x7fffffff
test esi, esi
jl 0x41929a
mov eax, esi
push eax
push edi
push ebp
call sym._read
mov ebx, eax
add esp, 0x10
test ebx, ebx
jge 0x4192b5
call sym.__errno
cmp dword [eax], 4
je 0x41928c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
add esp, 0xc
ret

Function at 0x4197f8
Capabilities:
Set environment variable

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x10]
cmp byte [esp + 0x1c], 0
je 0x419810
add esp, 0xfffffff8
push 0
jmp 0x419818
add esp, 0xfffffff8
mov eax, dword [esp + 0x1c]
push eax
push edx
call sub.KERNEL32.dll_SetEnvironmentVariableA
add esp, 8
add esp, 0xc
ret
Function at 0x40a778
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041a360
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x40a796
xor al, al
jmp 0x40a920
push ebx
push edi
push esi
call fcn.0040a20d
push esi
call fcn.0041a052
pop ecx
push esi
mov ebx, eax
call fcn.0040a6b4
test al, al
je 0x40a840
push esi
call fcn.0040a20d
test al, al
je 0x40a7ed
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x40a91c
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0041c20f
push esi
add edi, 8
push edi
call fcn.0041a09a
add esp, 0x14
jmp 0x40a918
cmp word [esi], 0x5c
jne 0x40a91c
add esi, 2
cmp word [esi], 0x5c
jne 0x40a91c
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40a91c
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0041c20f
lea eax, [edi + 8]
push 0x4276ec
push eax
call fcn.0041a09a
push esi
add edi, 0xe
push edi
call fcn.0041a09a
add esp, 0x1c
jmp 0x40a918
lea eax, [ebp - 0x1000]
push eax
mov edi, 0x7ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40a91c
cmp eax, edi
ja 0x40a91c
movzx eax, word [esi]
push eax
call fcn.00409ff3
test al, al
je 0x40a8ad
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40a91c
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0041c20f
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0041c20f
push esi
add edi, 0xc
push edi
call fcn.0041a09a
add esp, 0x20
jmp 0x40a918
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.0040a018
lea eax, [ebp - 0x1000]
push eax
call fcn.0041a052
lea eax, [eax + ebx + 4]
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x40a91c
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0041c20f
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0041a09a
add esp, 0x14
cmp word [esi], 0x2e
jne 0x40a90e
movzx eax, word [esi + 2]
push eax
call fcn.00409ff3
test al, al
je 0x40a90e
add esi, 4
push dword [ebp + 0x10]
push esi
push edi
call fcn.004109a3
mov al, 1
jmp 0x40a91e
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x406b22
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jo 0x406b40
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x406b2d
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00404969
adc ecx, esi
add ecx, esp
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
push esp
pop es
js 0x406b47
xlatb
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
sbb byte [ebx - 0x20fcdfa6], cl
call fcn.00404969
xor byte [eax], ch
cmp ah, byte [ecx + 0x49]
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x406b56
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x406b56
call fcn.00404969
mov al, byte [0x8b9e10a1]
pop edx
and al, 3
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
invalid
fcomp st(5)
invalid
Function at 0x539720
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xdc000]
push edi
jmp 0x53973a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x539741
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x539730
mov eax, 1
add ebx, ebx
jne 0x539753
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x539764
jne 0x539783
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x539783
dec eax
add ebx, ebx
jne 0x539770
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x539748
add ebx, ebx
jne 0x53977f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5397d5
xor ecx, ecx
sub eax, 3
jb 0x53979b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53980a
sar eax, 1
mov ebp, eax
jmp 0x5397a6
add ebx, ebx
jne 0x5397a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x539774
inc ecx
add ebx, ebx
jne 0x5397b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x539774
add ebx, ebx
jne 0x5397c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5397b6
jne 0x5397d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5397b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5397f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5397e6
jmp 0x539736
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5397f4
add edi, ecx
jmp 0x539736
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x539812
cmp byte [edi], 0x11
jne 0x539812
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 0x539817
lea edi, [esi + 0x132000]
mov eax, dword [edi]
or eax, eax
je 0x53988f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18cdec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18cf68]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x539844
mov ecx, edi
jns 0x539873
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18cf6c]
or eax, eax
je 0x539889
mov dword [ebx], eax
add ebx, 4
jmp 0x539861
call dword [esi + 0x18cf7c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5398c0
cmp al, 0xef
ja 0x5398b3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x539895
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5398a2
mov ebp, dword [esi + 0x18cf70]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x5398f4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x29916bc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x29916c6
pushal
call 0x29916cc
pop ebp
sub ebp, 0x10
sub ebp, 0x25916bc
jmp 0x29916e2
mov eax, 0x25916bc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b6
mov edx, 0x419582d1
xor byte [eax], dl
inc eax
dec ecx
jne 0x29916f9
jmp 0x299170c
pop edx
sbb al, 0x5a
pop eax
in eax, dx
rcl ecx, 1
rcl dword [eax + 0x10]
sub ecx, edx
rcl ecx, 1
rcr byte [ecx + ebp*2], cl
xlatb
rcl ecx, 1
shr dword [ebx - 7], 1
rcl ecx, 1
shl dword [esi], 1
xor edx, edx
sbb dword [edx + 0x50], ebx
fst st(1)
rcl ecx, 1
rcl byte [ecx + eax*4], cl
pop esp
mov ch, 0xf5
sub eax, 0xb9f5d558
sub dword [ebx + eax*4], edi
sar dword [ecx - 0x2c2806eb], 1
sar ch, 1
rcl eax, cl
std
cmc
mov ecx, 0x53baaf5b
cmp esp, edx
rcl ecx, 1
sar dword [eax], 1
stc
rcl ecx, 1
rol dword [ebp + eax*4 - 0x26aba574], 1
rcl ecx, 1
rcr dword [edx + 0x44], 1
fst st(1)
rcl ecx, 1
pop edx
pop esp
rcl ecx, 0xd1
rcl dword [eax]
cmp bl, dl
loopne 0x2991743
push edx
adc edx, ebp
cwde
ficom word [ebp + 0x2e]
mov word cs:[ebx], ss
fst st(1)
pop edx
pop ebp
cmc
aad 0xd1
rcl ecx, 1
mov ecx, 0xd1833c29
mov ecx, 0xd3d7f915
sar ch, 1
cmc
cmp byte [ecx], 0xd4
rcl ecx, 1
sar dword [eax], 1
call 0x5f6ae971
mov ch, 0xf5
sub eax, 0x5af5fd58
cmp eax, 0x2edda42e
movsb byte es:[edi], byte [esi]
fnstcw word [ecx]
mov bh, 0xd1
rcl ecx, 1
pop edx
insb byte es:[edi], dx
invalid
Function at 0x405263
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 [0x42c8a8], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405287
test al, 0x10
jne 0x40528a
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x42c8a8
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 0x4052b5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x40531d
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055c8
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405351
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f4a8], eax
jmp 0x4054e2
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x40536f
test eax, eax
je 0x405487
test byte [ebp + 0xc], 2
je 0x405487
mov esi, 0x42b8a8
push edi
push esi
call fcn.004059db
test ebx, ebx
je 0x40538c
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405392
push edi
call fcn.0040552f
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40547d
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405513
cmp byte [eax], 0
je 0x4053e3
cmp byte [ebp - 0x18], 0
je 0x4053e3
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4053f9
mov al, byte [esi + 1]
test al, al
je 0x40545c
cmp al, 0x2e
jne 0x4053f9
cmp byte [esi + 2], 0
je 0x40545c
push esi
push ebx
call fcn.004059db
mov eax, dword [ebp - 0x148]
test al, 0x10
je 0x40541f
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40545c
push dword [ebp + 0xc]
push edi
call fcn.0040531d
jmp 0x40545c
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 0x405454
test byte [ebp + 0xc], 4
je 0x40544c
push edi
push 0xfffffffffffffff1
call fcn.00404d7e
push 0
push edi
call fcn.00405723
jmp 0x40545c
inc dword [0x42f4a8]
jmp 0x40545c
push edi
push 0xfffffffffffffff2
call fcn.00404d7e
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053c1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405487
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054e2
cmp dword [ebp - 8], esi
jne 0x40549c
inc dword [0x42f4a8]
jmp 0x4054e2
push edi
call fcn.00405cb0
test eax, eax
je 0x4054e2
push edi
call fcn.004054e8
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054da
test byte [ebp + 0xc], 4
je 0x405494
push edi
push 0xfffffffffffffff1
call fcn.00404d7e
push esi
push edi
call fcn.00405723
jmp 0x4054e2
push edi
push 0xffffffffffffffe5
call fcn.00404d7e
pop edi
pop esi
leave
ret 8
Function at 0x4055c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42bca8
push esi
call fcn.004059db
push esi
call fcn.0040557b
mov edi, eax
test edi, edi
jne 0x4055e9
xor eax, eax
jmp 0x40563b
push edi
call fcn.00405c17
test byte [0x42f430], 0x80
je 0x405602
mov al, byte [edi]
test al, al
je 0x4055e5
cmp al, 0x5c
je 0x4055e5
sub edi, esi
jmp 0x40561a
call fcn.00405cb0
test eax, eax
je 0x405614
test byte [eax], 0x10
je 0x4055e5
push esi
call fcn.0040552f
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405606
call fcn.004054e8
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 0x4056ac
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 0x4056db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec 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 0x40571f
test edi, edi
jne 0x4056e6
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405719
Function at 0x405723
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405cee
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40574f
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405895
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42ca30], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42ca30
je 0x405793
push 1
push 0
push esi
call fcn.004056ac
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40589b
cmp eax, edi
jg 0x40589b
mov esi, 0x42c4a8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40589b
cmp eax, edi
jg 0x40589b
push esi
push ebp
push str._s_s_r_n
push 0x42c0a8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor eax, eax
push eax
push 0x8000080
push 4
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405895
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 0x40588e
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40588e
cmp edi, dword [esp + 0x18]
jne 0x40588e
push str._Rename__r_n
push esi
call fcn.00405640
test eax, eax
jne 0x4058a2
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004059db
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42c0a8
push eax
call fcn.0040568c
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
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]
inc dword [0x42f4b0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409308
push eax
call fcn.00405640
test eax, eax
je 0x405859
inc eax
lea edx, [esi + edi]
cmp eax, edx
mov ecx, eax
jae 0x4058cb
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
inc ecx
lea edx, [esi + edi]
cmp ecx, edx
jb 0x4058be
sub eax, esi
jmp 0x40585b
Function at 0x4059fd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405a1e
mov ecx, dword [0x42ebfc]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x42f458]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x42e3c0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405bf1
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405bf1
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405bfe
inc ebx
cmp cl, 0xfc
jbe 0x405be4
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x405b8f
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405ab2
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x405b2a
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405ad1
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004058cf
jmp 0x405b25
cmp eax, 0x26
jne 0x405b01
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004058cf
cmp byte [edi], 0
jne 0x405b87
push str.C:Program_Files
push edi
call fcn.004059db
jmp 0x405b25
cmp eax, 0x25
jne 0x405b14
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405b25
cmp eax, 0x24
jne 0x405b2a
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405b87
cmp dword [0x42f4a4], 0
jne 0x405b36
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x42f424]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405b6c
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.00405238
cmp dword [ebp - 8], 0
jne 0x405b73
jmp 0x405b6f
and byte [edi], 0
test esi, esi
jne 0x405b36
cmp byte [edi], 0
je 0x405b87
cmp dword [ebp + 0xc], 0
je 0x405b87
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405c17
jmp 0x405bd5
cmp byte [ebp + 0xf], 0xfd
jne 0x405bc3
cmp esi, 0x1b
jne 0x405ba8
push dword [0x42f424]
push edi
call fcn.00405939
jmp 0x405bb9
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.004059db
add esi, 0xffffffeb
cmp esi, 6
jae 0x405bd5
jmp 0x405b87
cmp byte [ebp + 0xf], 0xff
jne 0x405bd5
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.004059fd
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x42e3c0
jmp 0x405bf1
jne 0x405bee
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405bf1
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405a49
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405c13
push eax
push dword [ebp + 8]
call fcn.004059db
leave
ret 8
Function at 0x405d4b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ce34], 0
push esi
jne 0x405d82
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d5c
mov dword [ecx*4 + 0x42ce30], eax
inc ecx
cmp ecx, 0x100
jl 0x405d57
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405db3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ce30]
xor eax, esi
inc ecx
dec edx
jne 0x405d95
pop edi
not eax
pop esi
ret 0xc