joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x41329c]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x17c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x415708
push 0x415ad8
push 0x415970
lea ecx, [esp + 0x184]
push 0x415808
push ecx
call fcn.00402952
mov eax, 0x415ad8
add esp, 0x14
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4019c0
sub eax, edx
lea edi, [eax + 1]
push edi
mov dword [esp + 0x1c], edi
call fcn.00402303
mov esi, eax
mov eax, 0x415ad8
mov edx, esi
add esp, 4
mov dword [esp + 0x14], esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4019e8
push str.xkna_
push 0x415ad8
call fcn.00402560
add esp, 8
test eax, eax
je 0x401a52
push 0x4118c0
push esi
mov byte [0x415bd7], 1
dec edi
call fcn.00402560
add esp, 8
test eax, eax
je 0x401a26
sub eax, esi
jmp 0x401a29
or eax, 0xffffffff
push edi
inc eax
push eax
lea edx, [esp + 0x1c]
push edx
lea ebx, [esp + 0x28]
call fcn.004010b0
lea esi, [esp + 0x14]
call fcn.00401020
mov eax, dword [esp + 0x1c]
push eax
call fcn.00402577
add esp, 4
jmp 0x401a68
push 0x4118c4
push 0x4118c8
lea ebx, [esp + 0x1c]
call fcn.004011b0
add esp, 8
push str.Navigator
lea ecx, [esp + 0x74]
push str.Software_s
push ecx
call fcn.0040210b
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x8c]
push eax
push 0x80000001
call esi
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x8c]
push edx
push 0x80000001
call esi
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x401ae1
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ad8
jmp 0x401b17
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x8c]
push edx
push 0x80000001
call esi
test eax, eax
jne 0x401b2f
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b10
sub eax, edx
push eax
mov eax, dword [esp + 0x14]
push edi
push 1
push 0
push str.TerminalNo
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
call fcn.0040299e
add esp, 4
push eax
call fcn.00402582
xor eax, eax
add esp, 4
mov byte [esp + 0x24], 0
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov byte [esp + 0x2d], al
xor esi, esi
call fcn.00402594
cdq
mov ecx, 0x19
idiv ecx
inc esi
add dl, 0x61
mov byte [esp + esi + 0x23], dl
cmp esi, 9
jl 0x401b57
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push str._s.exe
push eax
call fcn.0040210b
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x30]
push ecx
call fcn.00401760
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00402577
mov ecx, dword [esp + 0x288]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004020fc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4020fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41329c]
jne 0x402106
repz ret
jmp fcn.004036aa

Function at 0x40905c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41329c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004051f3
and dword [ebp - 0x14], 0
cmp dword [0x41534c], 0
mov dword [ebp - 0x18], eax
jne 0x40910f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4091b7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4091b7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41534c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x415350], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x415354], eax
call edi
push eax
call esi
mov dword [0x41535c], eax
test eax, eax
je 0x40910f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x415358], eax
mov eax, dword [0x415358]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409168
cmp dword [0x41535c], ecx
je 0x409168
push eax
call esi
push dword [0x41535c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409168
test ebx, ebx
je 0x409168
call edi
test eax, eax
je 0x40915f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40915f
test byte [ebp - 8], 1
jne 0x409168
or dword [ebp + 0x10], 0x200000
jmp 0x40919b
mov eax, dword [0x415350]
cmp eax, dword [ebp - 0x18]
je 0x40919b
push eax
call esi
test eax, eax
je 0x40919b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40919b
mov eax, dword [0x415354]
cmp eax, dword [ebp - 0x18]
je 0x40919b
push eax
call esi
test eax, eax
je 0x40919b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41534c]
call esi
test eax, eax
je 0x4091b7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4091b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004020fc
leave
ret
Function at 0x2e23700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02e2378f
jae 0x2e2370e
xor ecx, ecx
call fcn.02e2378f
jae 0x2e2373d
xor eax, eax
call fcn.02e2378f
jae 0x2e2374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02e2378f
adc al, al
jae 0x2e2372f
jne 0x2e23779
stosb byte es:[edi], al
jmp 0x2e23711
call fcn.02e2379b
sub ecx, ebx
jne 0x2e23756
call fcn.02e23799
jmp 0x2e23775
lodsb al, byte [esi]
shr eax, 1
je 0x2e23783
adc ecx, ecx
jmp 0x2e23772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02e23799
cmp eax, 0x7d00
jae 0x2e23772
cmp ah, 5
jae 0x2e23773
cmp eax, 0x7f
ja 0x2e23774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2e23711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x401ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425090]
jne 0x401abf
repz ret
jmp fcn.004027e8

Function at 0x40a63c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404659
and dword [ebp - 4], 0
cmp dword [0x4291f8], 0
mov ebx, eax
jne 0x40a6ed
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a79e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a79e
push eax
call fcn.004045e7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4291f8], eax
call esi
push eax
call fcn.004045e7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4291fc], eax
call esi
push eax
call fcn.004045e7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x429200], eax
call esi
push eax
call fcn.004045e7
pop ecx
mov dword [0x429208], eax
test eax, eax
je 0x40a6ed
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004045e7
pop ecx
mov dword [0x429204], eax
mov eax, dword [0x429204]
cmp eax, ebx
je 0x40a745
cmp dword [0x429208], ebx
je 0x40a745
push eax
call fcn.00404662
push dword [0x429208]
mov esi, eax
call fcn.00404662
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a745
test edi, edi
je 0x40a745
call esi
test eax, eax
je 0x40a73c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a73c
test byte [ebp - 0xc], 1
jne 0x40a745
or dword [ebp + 0x10], 0x200000
jmp 0x40a77e
mov eax, dword [0x4291fc]
cmp eax, ebx
je 0x40a77e
push eax
call fcn.00404662
pop ecx
test eax, eax
je 0x40a77e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a77e
mov eax, dword [0x429200]
cmp eax, ebx
je 0x40a77e
push eax
call fcn.00404662
pop ecx
test eax, eax
je 0x40a77e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4291f8]
call fcn.00404662
pop ecx
test eax, eax
je 0x40a79e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a7a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40bbdf
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x1f70004], 0x930
jne 0x40bbfc
push str.xafewibiwucijamojamejuhuyewo
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x1f70004], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1f6fe48], eax
jne 0x40bc1c
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
leave
ret
Function at 0x402f9c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402fb9
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402fc8
mov ebx, 0x4174c0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402fdd
mov ecx, dword [0x446778]
add ecx, eax
push ecx
call fcn.0040318e
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403178
test eax, eax
je 0x40312f
test byte [ebp + 0x17], 0x80
je 0x403118
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x413430
mov dword [ebp - 0xc], eax
call fcn.00406427
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40316e
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40302d
mov esi, dword [ebp + 0x14]
mov edi, 0x4134c0
push esi
push edi
call fcn.00403178
test eax, eax
je 0x40312f
sub dword [ebp + 0x14], esi
mov dword [0x413448], edi
mov dword [0x41344c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x413430
mov dword [0x413450], ebx
mov dword [0x413454], eax
call fcn.00406447
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x403110
mov esi, dword [0x413450]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4467d4], 1
mov edi, eax
je 0x4030cf
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x40309c
cmp dword [ebp + 0x14], 0
jne 0x4030cf
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x50]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push 0
call fcn.00405091
mov dword [ebp - 0xc], edi
test esi, esi
je 0x403104
cmp dword [ebp + 0x10], 0
jne 0x4030ec
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00405baa
test eax, eax
je 0x403114
add dword [ebp - 4], esi
jmp 0x4030f8
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x413450]
cmp dword [ebp - 0x10], 1
jne 0x403050
jmp 0x40316e
cmp dword [ebp + 0x14], 0
jg 0x403020
jmp 0x40316e
push 0xfffffffffffffffc
jmp 0x403131
push 0xfffffffffffffffe
jmp 0x403131
test edi, edi
je 0x403163
cmp dword [ebp + 0x14], esi
jge 0x403124
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403178
test eax, eax
jne 0x40316b
push 0xfffffffffffffffd
pop eax
jmp 0x403171
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40313f
mov esi, dword [ebp + 0x14]
mov edi, 0x4134c0
push esi
push edi
call fcn.00403178
test eax, eax
je 0x40312f
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405baa
test eax, eax
je 0x403114
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403134
jmp 0x40316e
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405557
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x407374
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x407364
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4055a8
xor eax, eax
jmp 0x4055cf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4055cf
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x4055a4
call esi
pop esi
leave
ret 4

Function at 0x405609
Capabilities:
Create process on windows

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

Function at 0x40564c
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405ade
mov edi, eax
cmp edi, 0xffffffff
je 0x40572b
test byte [esp + 0x10], 1
push esi
je 0x40570d
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405713
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40571c
xor eax, eax
inc eax
jmp 0x40572d
test byte [esp + 0x10], 4
jne 0x40572b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405732
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004059f0
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405771
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4467a8], eax
jmp 0x4058fb
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40578b
test eax, eax
je 0x4058a9
test bl, 2
je 0x4058a9
mov esi, 0x439510
push edi
push esi
call fcn.00405f6a
cmp dword [ebp + 8], 0
je 0x4057aa
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4057b0
push edi
call fcn.00405949
cmp byte [edi], 0
jne 0x4057be
cmp byte [0x439510], 0x5c
jne 0x4057c9
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40589f
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040592d
cmp byte [eax], 0
je 0x40580f
cmp byte [ebp - 0x1c], 0
je 0x40580f
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405825
mov al, byte [esi + 1]
test al, al
je 0x40587e
cmp al, 0x2e
jne 0x405825
cmp byte [esi + 2], 0
je 0x40587e
push esi
push ebx
call fcn.00405f6a
test byte [ebp - 0x14c], 0x10
je 0x40584a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40587e
push dword [ebp + 0xc]
push edi
call fcn.00405732
jmp 0x40587e
push dword [ebp - 4]
push edi
call fcn.004056ea
test eax, eax
jne 0x405876
cmp dword [ebp - 4], eax
je 0x40586e
push edi
push 0xfffffffffffffff1
call fcn.00405091
push 0
push edi
call fcn.00405d49
jmp 0x40587e
inc dword [0x4467a8]
jmp 0x40587e
push edi
push 0xfffffffffffffff2
call fcn.00405091
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4057ed
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4058a9
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4058fb
cmp dword [ebp - 0xc], esi
jne 0x4058bd
inc dword [0x4467a8]
jmp 0x4058fb
push edi
call fcn.0040626d
test eax, eax
je 0x4058fb
push edi
call fcn.00405902
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004056ea
test eax, eax
jne 0x4058f3
cmp dword [ebp - 4], esi
je 0x4058b5
push edi
push 0xfffffffffffffff1
call fcn.00405091
push esi
push edi
call fcn.00405d49
jmp 0x4058fb
push edi
push 0xffffffffffffffe5
call fcn.00405091
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4059f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43b510
push esi
call fcn.00405f6a
push esi
call fcn.0040599b
mov edi, eax
test edi, edi
jne 0x405a11
xor eax, eax
jmp 0x405a63
push edi
call fcn.004061d4
test byte [0x44671c], 0x80
je 0x405a2a
mov al, byte [edi]
test al, al
je 0x405a0d
cmp al, 0x5c
je 0x405a0d
sub edi, esi
jmp 0x405a42
call fcn.0040626d
test eax, eax
je 0x405a3c
test byte [eax], 0x10
je 0x405a0d
push esi
call fcn.00405949
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405a2e
call fcn.00405902
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 0x405ade
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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

Function at 0x405b03
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 0x405b32
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4093b4]
dec edi
mov dword [ebp + 8], 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 byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405b77
test edi, edi
jne 0x405b3d
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405b71
Function at 0x405bd9
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x43da98], 0x4c554e
mov edi, 0x400
mov ebp, 0x43da98
je 0x405c25
push 1
push 0
push esi
call fcn.00405b03
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405d44
cmp eax, edi
jg 0x405d44
mov esi, 0x43de98
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405d44
cmp eax, edi
jg 0x405d44
push esi
push ebp
push str._s_s_r_n
push 0x43d698
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x446714]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f8c
push 4
push 0xc0000000
push esi
call fcn.00405b03
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405d44
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 0x405d3d
push edi
push esi
push ebp
call fcn.00405b7b
test eax, eax
je 0x405d3d
push str._Rename__r_n
push esi
call fcn.00405a68
test eax, eax
jne 0x405cdb
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405d10
add eax, 0xa
push 0x4093b8
push eax
call fcn.00405a68
mov ebp, eax
test ebp, ebp
je 0x405d0c
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405cfd
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405cf7
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405d12
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x43d698
push eax
call fcn.00405abe
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405baa
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
ret

Function at 0x405d49
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405d6c
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405bd9
pop ecx
pop ecx
inc dword [0x4467b0]
ret 8

Function at 0x405e51
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x2000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405df0
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x405ec0
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x1fff], 0
test edi, edi
pop edi
jne 0x405ec0
cmp dword [ebp + 0xc], 1
je 0x405ec3
cmp dword [ebp + 0xc], 2
je 0x405ec3
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406294
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4062b8
xor eax, eax
test eax, eax
je 0x4062ca
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4062ca
xor ecx, ecx
jmp 0x4062cd
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x43e29c], 0
push esi
jne 0x4063f0
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 0x4063ca
mov dword [ecx*4 + 0x43e298], eax
inc ecx
cmp ecx, 0x100
jl 0x4063c5
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406421
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 + 0x43e298]
xor eax, esi
inc ecx
dec edx
jne 0x406403
pop edi
not eax
pop esi
ret 0xc