joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10033860
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 8], edi
jmp 0x10033873
mov edi, dword [ebp - 8]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x100338ed
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.1003f1f2
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x100338c1
sub eax, edi
jmp 0x100338c3
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x100338b2
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x100338e0
sub eax, edi
jmp 0x100338e2
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x100338d1
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x100339fb
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 4]
mov ebx, ecx
mov dword [ebp - 0xc], eax
cmp ebx, edx
jbe 0x10033913
mov ebx, edx
test ebx, ebx
je 0x10033948
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
cmp dword [edx + 0x18], 1
jne 0x10033936
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
call fcn.1003e2c0
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
push ebx
push ecx
push eax
call fcn.1003f1f2
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x10033970
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x10033984
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x10033870
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x100339fb
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x100339ca
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x100339ab
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.1003f1f8
add esp, 0xc
add ebx, edi
pop edi
mov dword [esi + 0x16c0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x100339fb
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x100339e4
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.1003f1f8
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003f1c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x1003f1e9
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + 0x3fd8100]
inc esi
xor eax, edx
dec ecx
jne 0x1003f1d4
xor eax, 0xffffffff
pop esi
leave
ret 0xc

Function at 0x40103c
Capabilities:
Terminate process

Disassembly:
mov dword [0x402475], eax
mov edx, eax
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edi, edi
call dword [sym.imp.kernel32.dll_GetVersion]
xor esi, esi
push dword [0x403587]
call dword [sym.imp.winmm.dll_waveOutClose]
add eax, 6
test eax, 0xb
jne 0x401075
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
ret

Function at 0x4033a3
Capabilities:
Get graphical window text

Disassembly:
add esi, dword [0x56db2108]
mov ecx, dword [eax + ecx*2]
jnp 0x4033d1
call 0xf35c641c
mov esi, dword [eax]
sbb al, 0xf3
inc ebp
clc
mov esi, esp
cwde
inc ebp
clc
jmp 0x40338d
jnp 0x4033c0
jns 0x403381
jnp 0x403405
cld
mov eax, ecx
mov ecx, dword [ebx + 0x1c]
or dword [ebx + 0x84b8b0b], 0x24491d79
xor byte [eax], al
pop eax
add al, 0x23
inc eax
invalid
push 0xfffffffffffffff0
push 0xfffffffffffffff0
push 0x303303
out dx, eax
adc eax, 0x30358c
inc eax
push 0x30327f
xor byte [eax], al
inc eax
inc dword [0xf0403100]
mov dword [0x303594], eax
dec eax
push 0x3032d8
inc eax
inc dword [0xf0403100]
mov dword [0x303598], eax
mov bl, 0xf
je 0x4033e4
pcmpeqb mm3, mm4
invalid

Function at 0x403462
Capabilities:
Execute anti-debugging instructions

Disassembly:
push eax
mov edi, eax
mov esi, 0x4025b0
mov ecx, dword [0x403222]
shr ecx, 1
dec ecx
mov bl, byte [0x403226]
rdtsc
push eax
mov bh, byte [esi]
inc esi
mov byte [edi], bh
inc edi
mov al, byte [esi]
stosb byte es:[edi], al
add byte [edi - 1], bl
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
loop 0x403482
rdtsc
pop edx
sub eax, edx
sub esp, 0x18
push 0
push dword [0x40245d]
call dword [sym.imp.Msacm32.dll_acmStreamOpen]
pop edx
sub edx, eax
push edx
push 0
push 0
push 0x4032fa
call dword [fcn.0040359c]
push 0x4032b5
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [fcn.00403590], eax
push 0
push 2
push 0x4032f8
push 0x4032c4
call dword [fcn.00403590]
pop edx
sub edx, eax
ret
Function at 0x406663
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406687
xor eax, eax
test eax, eax
je 0x40669a
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40669a
xor ecx, ecx
jmp 0x40669d
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x427d8c], 0
push esi
jne 0x4067fd
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 0x4067d7
mov dword [ecx*4 + 0x427d88], eax
inc ecx
cmp ecx, 0x100
jl 0x4067d2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40682e
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 + 0x427d88]
xor eax, esi
inc ecx
dec edx
jne 0x406810
pop edi
not eax
pop esi
ret 0xc

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x402d40
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004060d0
xor ebx, ebx
cmp eax, ebx
jne 0x402e23
test byte [ebp + 0x10], 2
je 0x402da1
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x402e08
lea eax, [ebp - 0x110]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x402ddd
test edi, edi
jne 0x402e08
push dword [ebp + 0x10]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call fcn.00402d40
test eax, eax
jne 0x402de6
lea eax, [ebp - 0x110]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402db6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406672
test eax, eax
jne 0x402e18
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x402e23
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402e23
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403148
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
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 0x403165
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x403177
mov dword [ebp - 0xc], 0x796118
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40318c
mov ecx, dword [0x7a2bb8]
add ecx, eax
push ecx
call fcn.0040334d
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403337
test eax, eax
je 0x403325
test byte [ebp + 0x17], 0x80
je 0x4032d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40b870], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov byte [0x40b858], 0xb
mov dword [ebp + 8], eax
jle 0x40332d
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4031e2
mov esi, dword [ebp + 0x14]
mov edi, 0x792118
push esi
push edi
call fcn.00403337
test eax, eax
je 0x403325
sub dword [ebp + 0x14], esi
mov dword [0x40b848], edi
mov dword [0x40b84c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40b848
mov dword [0x40b850], edi
mov dword [0x40b854], eax
call fcn.00406797
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4032c8
mov esi, dword [0x40b850]
sub esi, edi
call ebx
test byte [0x7a2c14], 1
mov edi, eax
je 0x403283
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x403250
cmp dword [ebp + 0x14], 0
jne 0x403283
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 - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.0040538e
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4032bc
cmp dword [ebp + 0x10], 0
jne 0x4032a2
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405e84
test eax, eax
je 0x4032cc
add dword [ebp - 4], esi
jmp 0x4032b0
mov eax, dword [0x40b850]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 4
jne 0x403205
jmp 0x40332d
cmp dword [ebp + 0x14], 0
jg 0x4031d5
jmp 0x40332d
push 0xfffffffffffffffc
jmp 0x403327
push 0xfffffffffffffffe
jmp 0x403327
test edi, edi
jne 0x403312
cmp dword [ebp + 0x14], edi
jle 0x40332d
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x4032e6
mov esi, ebx
mov edi, 0x792118
push esi
push edi
call fcn.00403337
test eax, eax
je 0x403325
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405e84
test eax, eax
je 0x4032cc
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4032dc
jmp 0x40332d
cmp dword [ebp + 0x14], esi
jge 0x40331a
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403337
test eax, eax
jne 0x40332a
push 0xfffffffffffffffd
pop eax
jmp 0x403330
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4058e3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a0968], 0x44
push eax
xor eax, eax
push 0x7a0968
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 0x405922
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405926
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 0x4059c4
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405db8
mov edi, eax
cmp edi, 0xffffffff
je 0x405a05
test byte [esp + 0x10], 1
push esi
je 0x4059e7
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4059ed
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4059f6
xor eax, eax
inc eax
jmp 0x405a07
test byte [esp + 0x10], 4
jne 0x405a05
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405a0c
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.00405cca
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405a4b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2be8], eax
jmp 0x405bd5
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a65
test eax, eax
je 0x405b83
test bl, 2
je 0x405b83
mov esi, 0x7a0168
push edi
push esi
call fcn.0040624a
cmp dword [ebp + 8], 0
je 0x405a84
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405a8a
push edi
call fcn.00405c23
cmp byte [edi], 0
jne 0x405a98
cmp byte [0x7a0168], 0x5c
jne 0x405aa3
push 0x40a014
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 0x405b79
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405c07
cmp byte [eax], 0
je 0x405ae9
cmp byte [ebp - 0x1c], 0
je 0x405ae9
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405aff
mov al, byte [esi + 1]
test al, al
je 0x405b58
cmp al, 0x2e
jne 0x405aff
cmp byte [esi + 2], 0
je 0x405b58
push esi
push ebx
call fcn.0040624a
test byte [ebp - 0x14c], 0x10
je 0x405b24
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b58
push dword [ebp + 0xc]
push edi
call fcn.00405a0c
jmp 0x405b58
push dword [ebp - 4]
push edi
call fcn.004059c4
test eax, eax
jne 0x405b50
cmp dword [ebp - 4], eax
je 0x405b48
push edi
push 0xfffffffffffffff1
call fcn.0040538e
push 0
push edi
call fcn.00406023
jmp 0x405b58
inc dword [0x7a2be8]
jmp 0x405b58
push edi
push 0xfffffffffffffff2
call fcn.0040538e
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405ac7
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b83
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405bd5
cmp dword [ebp - 0xc], esi
jne 0x405b97
inc dword [0x7a2be8]
jmp 0x405bd5
push edi
call fcn.004065dd
test eax, eax
je 0x405bd5
push edi
call fcn.00405bdc
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059c4
test eax, eax
jne 0x405bcd
cmp dword [ebp - 4], esi
je 0x405b8f
push edi
push 0xfffffffffffffff1
call fcn.0040538e
push esi
push edi
call fcn.00406023
jmp 0x405bd5
push edi
push 0xffffffffffffffe5
call fcn.0040538e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405cca
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a0568
push esi
call fcn.0040624a
push esi
call fcn.00405c75
mov edi, eax
test edi, edi
jne 0x405ceb
xor eax, eax
jmp 0x405d3d
push edi
call fcn.00406544
test byte [0x7a2b78], 0x80
je 0x405d04
mov al, byte [edi]
test al, al
je 0x405ce7
cmp al, 0x5c
je 0x405ce7
sub edi, esi
jmp 0x405d1c
call fcn.004065dd
test eax, eax
je 0x405d16
test byte [eax], 0x10
je 0x405ce7
push esi
call fcn.00405c23
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405d08
call fcn.00405bdc
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 0x405db8
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 0x405dd7
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 0x405ddd
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 0x405e0c
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 [0x40a3cc]
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 0x405e51
test edi, edi
jne 0x405e17
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405e4b
Function at 0x405eb3
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 [0x7a0ef0], 0x4c554e
mov edi, 0x400
mov ebp, 0x7a0ef0
je 0x405eff
push 1
push 0
push esi
call fcn.00405ddd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40601e
cmp eax, edi
jg 0x40601e
mov esi, 0x7a12f0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40601e
cmp eax, edi
jg 0x40601e
push esi
push ebp
push str._s_s_r_n
push 0x7a0af0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a2b70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004062dd
push 4
push 0xc0000000
push esi
call fcn.00405ddd
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40601e
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 0x406017
push edi
push esi
push ebp
call fcn.00405e55
test eax, eax
je 0x406017
push str._Rename__r_n
push esi
call fcn.00405d42
test eax, eax
jne 0x405fb5
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405fea
add eax, 0xa
push 0x40a3d0
push eax
call fcn.00405d42
mov ebp, eax
test ebp, ebp
je 0x405fe6
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405fd7
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405fd1
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405fec
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x7a0af0
push eax
call fcn.00405d98
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.00405e84
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 0x406023
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 0x406046
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405eb3
pop ecx
pop ecx
inc dword [0x7a2bf0]
ret 8

Function at 0x406131
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], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004060d0
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4061a0
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 + 0x3ff], 0
test edi, edi
pop edi
jne 0x4061a0
cmp dword [ebp + 0xc], 1
je 0x4061a3
cmp dword [ebp + 0xc], 2
je 0x4061a3
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406604
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 0x406628
xor eax, eax
test eax, eax
je 0x40663a
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40663a
xor ecx, ecx
jmp 0x40663d
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
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 0x406729
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a16f4], 0
push esi
jne 0x406760
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 0x40673a
mov dword [ecx*4 + 0x7a16f0], eax
inc ecx
cmp ecx, 0x100
jl 0x406735
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406791
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 + 0x7a16f0]
xor eax, esi
inc ecx
dec edx
jne 0x406773
pop edi
not eax
pop esi
ret 0xc