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

Disassembly:
sub esp, 0x58
mov eax, dword [0x633038]
mov dword [esp + 4], 0
push esi
lea ecx, [eax + eax]
mov eax, dword [0x63303c]
or ecx, eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
fild qword [esp + 4]
test ecx, ecx
fadd qword [0x633050]
fstp qword [0x633050]
je 0x417e63
mov eax, dword [0x6367f0]
test eax, eax
je 0x417e57
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop esi
add esp, 0x58
ret 4
mov dl, byte [0x633042]
mov cl, byte [0x633049]
xor cl, dl
mov edx, dword [0x633030]
mov byte [0x633049], cl
mov ecx, dword [0x633034]
and ecx, 4
and eax, 0xc
add edx, ecx
mov esi, dword [0x633038]
arpl word [eax], ax

Function at 0x422743
Capabilities:
Encode data using xor

Disassembly:
into
out dx, al
jno 0x4227aa
push esi
aad 0x5b
jle 0x422725
invalid
fisub dword [eax - 0x266bbbea]
sbb dword [ecx + 0x7c3ba39d], edx
ret
rcl dword [ebx - 0x148f014f], 0x6f
sar dword [edx - 0x183edaf5], 0xf6
or byte [edx + 0x484ab98b], ah
int 0xe6
test byte [eax], 0xa2
mov edi, dword [ecx - 0x1932b7b6]
jne 0x42278e
cmp eax, 0x552efdfb
xchg edx, eax
mov ch, 0xa7
test eax, 0xc3edff2c
dec edx
jne 0x42279d
and byte [edx - 0xc], ch
sub ah, bh
invalid

Function at 0x438453
Capabilities:
Encode data using xor

Disassembly:
fidivr dword [0x96997956]
cdq
xchg esi, eax
or ebx, dword [esi]
push ds
je 0x4384d1
push ebx
sub esp, dword [ebp - 0x76]
aad 0x25
xchg ebx, eax
jo 0x4384da
mov ch, 0x84
push edi
pop eax
cwde
add eax, 0xb7d1301
mov edi, 0x3ab58b69
pop ebx
push edi
and eax, 0xf2a37368
insd dword es:[edi], dx
cld
sub eax, 0xd2f1be6c
adc eax, 0x948cfe66
mov esi, 0x6615d2f1
dec byte [esp + edx*4 + 0x5dfe721a]
xchg esp, eax
sbb dh, byte [edx - 2]
pop ebp
mov dl, 0x84
xor al, 0xf5
lea edx, [ebx]
sbb esp, ebp
mov ah, 0xd2
mov eax, 0xf0b323f5
jg 0x438487
invalid
les edx, [ebx]
mov eax, dword [0xe51065b6]
mov byte [0x3cbf005b], al
xor edi, dword [esi + edi*2 - 0x273944]
mov esp, 0x40f215fc
mov bh, byte [edi]
jbe 0x438457
stosd dword es:[edi], eax
fdiv dword [edi + 0x1f]
loope 0x43845a
in eax, 0x89
jl 0x438480
int3
in eax, 0x6f
out 0x5c, eax
loopne 0x43850b
adc byte [ebx + 0x789d5e7b], dl
inc ebx
pop esi
popfd
js 0x438521
nop
dec byte [edx + edi*8 - 0x16698897]
mov esp, 0x9869daab
sub ch, byte [ebx]
pushal
das
pop ds
jo 0x4384a1
sbb cl, byte [edx + 0x7bba7473]
push ss
adc eax, 0xc3ab409
test eax, 0x9b26a845
test al, 0x26
wait
lds eax, [esi - 0x5a]
stc
nop
hlt
inc ebp
sbb al, 0xe5
loopne 0x438500
jnp 0x43856a
fcomp qword [ecx]
add ch, bh
cdq
jbe 0x438526
jle 0x43852b
jle 0x438503
sbb byte [edi], al
lcall 0x83ec, 0x28fc70b2
adc ecx, dword [ecx]
mov dl, 0x70
cld
sub ah, ch
adc dword [ebx], 9
sti
sahf
mov ch, 0x74
xchg ebp, eax
invalid
and eax, 0x5f321e45
dec ebx
ljmp 0xa2b8
Function at 0x44f2b3
Capabilities:
Encode data using xor

Disassembly:
dec ebx
mov byte [eax], dh
adc dword [edi + 0x3f5dd460], 0xd1e1790
cmp byte [eax], dl
clc
sbb ebx, edi
push edi
adc dword [ebx + eax*4 + 0x2abd51d0], 0xffffffbe
jns 0x44f242
mov ebx, 0x5132376e
mov edi, 0xa196a0e2
mov dl, byte [eax]
push edx
inc eax
push ss
into
jmp 0xc5d94118
pushfd
mov ds, word [ecx - 0x6b33248b]
push ebx
not byte [eax]
loopne 0x44f214
fisttp word [esi]
aaa
push esp
mov ebp, 0x6a13bd14
add byte [eax + 0x1f405c15], ch
cld
sbb ebp, dword [eax + edx*4 + 0x44049eb9]
inc ebx
and al, 0x14
neg dword [0x8f1fc26a]
push 0x9f9db261
xchg esp, eax
out 0x21, eax
cld
bnd jle 0x44f288
sar dh, 0x35
jno 0x44f323
sbb dword [eax], esi
adc dl, byte [ecx]
scasd eax, dword es:[edi]
push eax
test dh, bl
pop ds
push edi
xchg byte [edx + 0x6b5da1b2], cl
adc eax, 0xb1b5e382
nop
invalid
add al, 0x4a
movsb byte es:[edi], byte [esi]
xor al, 0x84
adc dh, bl
sbb dword [edx], edx
mov ch, 7
cmp dword [edx + 0xb3055a6], 0x91d48be6
mov bl, 0xe0
mov es, word [edi - 0x7c]
rcl dword [edx + 0x763036f4]
pop esp
inc esp
les edx, [ecx + 0x4a]
jg 0x44f34f
pop ds
mov esp, 0x91c1459f
xchg ecx, eax
stosd dword es:[edi], eax
push eax
sbb eax, 0x780f0bda
sub byte [ebx - 0x44fc89c0], ah
aaa
mov edx, dword [ebp - 0x76]
or dword [ecx], edx
imul eax, dword [ecx], 0xffffff99
xchg dword [0x4e8d1285], ebx
adc dword [esi], eax
in al, 0x14
or ch, byte [esi]
pop ecx
push ss
mov ebx, 0x7b0fd16
stosb byte es:[edi], al
add al, 0x90
mov edx, dword [edx + 0x5631156f]
xor dword [esi - 0x6f], edx
xchg edx, eax
xor al, 0x53
cmp dl, bh
imul esi, dword [edx - 0x5feb172c], 0xffffffd3
xor eax, 0x8694d8c7
lea ebx, [ebp - 0x29af6e00]
pop eax
fistp dword [edi]
rol byte ds:[eax], cl
dec ebx
push es
and ah, byte [edx - 0x72]
invalid
Function at 0x62a015
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6333c0
cmp edx, dword [eax]
je 0x62a037
add eax, 8
inc ecx
cmp eax, 0x633450
jl 0x62a028
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6333c0]
jne 0x62a165
mov eax, dword [0x638d5c]
cmp eax, 1
je 0x62a13f
test eax, eax
jne 0x62a068
cmp dword [0x6332e8], 1
je 0x62a13f
cmp edx, 0xfc
je 0x62a165
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62a09f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062aa00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062ae90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62a0e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062ae90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62fb64
push edi
call fcn.0062cd60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062aa00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062aa10
lea eax, [ebp - 0xa0]
push 0x62fb44
push eax
call fcn.0062aa10
push dword [esi + 0x6333c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062aa10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062ccd4
add esp, 0x2c
pop edi
jmp 0x62a165
lea eax, [ebp + 8]
lea esi, [esi + 0x6333c4]
push 0
push eax
push dword [esi]
call fcn.0062ae90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404d00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x404d32
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.004054e0
pop ecx
mov esi, eax
test esi, esi
jne 0x404d65
push 1
call fcn.00404530
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x407288], eax
mov dword [0x40728c], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404da0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test eax, eax
jne 0x404dbb
mov ebx, dword [0x407358]
mov esi, ebx
xor ecx, ecx
jmp 0x404dde
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404dc6
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404dd9
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404dc1
lea eax, [ecx + 1]
push eax
call fcn.004054e0
pop ecx
mov edi, eax
mov dword [0x407294], eax
cmp dword [0x407294], 0
jne 0x404e05
push 1
call fcn.00404530
pop ecx
mov esi, ebx
jmp 0x404e3a
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404e0e
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404e35
mov ecx, edi
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x404e25
pop eax
mov eax, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404e09
mov byte [edi], 0
cmp ebx, dword [0x407358]
je 0x404e51
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x25cc70d6
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x2edf3b25
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4030b5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4030e0
mov ecx, dword [0x424798]
push esi
add eax, ecx
push esi
push eax
mov dword [0x41f8dc], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004031bd
cmp eax, esi
jl 0x4031b7
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405d52
test eax, eax
je 0x4031a7
push dword [ebp + 8]
add dword [0x41f8dc], 4
call fcn.004031bd
mov ebx, eax
cmp ebx, esi
jl 0x4031b5
cmp dword [ebp + 0x10], esi
jne 0x403183
cmp dword [ebp + 8], esi
jle 0x4031b5
mov esi, 0x4138d8
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403145
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405d52
test eax, eax
je 0x4031a7
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405d81
test eax, eax
je 0x40317f
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x41f8dc], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403134
jmp 0x4031b5
push 0xfffffffffffffffe
jmp 0x4031a9
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40318e
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4031ac
push 0xfffffffffffffffd
pop eax
jmp 0x4031b7
mov ebx, dword [ebp - 4]
add dword [0x41f8dc], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x40572e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x40837c
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], 0x40836c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40577f
xor eax, eax
jmp 0x4057a6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4057a6
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x40577b
call esi
pop esi
leave
ret 4

Function at 0x4057e0
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405cb5
mov edi, eax
cmp edi, 0xffffffff
je 0x405902
test byte [esp + 0x10], 1
push esi
je 0x4058e4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4058ea
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4058f3
xor eax, eax
inc eax
jmp 0x405904
test byte [esp + 0x10], 4
jne 0x405902
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405909
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.00405bc7
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405948
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4247c8], eax
jmp 0x405ad2
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405962
test eax, eax
je 0x405a80
test bl, 2
je 0x405a80
mov esi, 0x421d38
push edi
push esi
call fcn.00406141
cmp dword [ebp + 8], 0
je 0x405981
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405987
push edi
call fcn.00405b20
cmp byte [edi], 0
jne 0x405995
cmp byte [0x421d38], 0x5c
jne 0x4059a0
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 0x405a76
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405b04
cmp byte [eax], 0
je 0x4059e6
cmp byte [ebp - 0x1c], 0
je 0x4059e6
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x4059fc
mov al, byte [esi + 1]
test al, al
je 0x405a55
cmp al, 0x2e
jne 0x4059fc
cmp byte [esi + 2], 0
je 0x405a55
push esi
push ebx
call fcn.00406141
test byte [ebp - 0x14c], 0x10
je 0x405a21
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405a55
push dword [ebp + 0xc]
push edi
call fcn.00405909
jmp 0x405a55
push dword [ebp - 4]
push edi
call fcn.004058c1
test eax, eax
jne 0x405a4d
cmp dword [ebp - 4], eax
je 0x405a45
push edi
push 0xfffffffffffffff1
call fcn.00405268
push 0
push edi
call fcn.00405f20
jmp 0x405a55
inc dword [0x4247c8]
jmp 0x405a55
push edi
push 0xfffffffffffffff2
call fcn.00405268
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4059c4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405a80
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405ad2
cmp dword [ebp - 0xc], esi
jne 0x405a94
inc dword [0x4247c8]
jmp 0x405ad2
push edi
call fcn.00406444
test eax, eax
je 0x405ad2
push edi
call fcn.00405ad9
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004058c1
test eax, eax
jne 0x405aca
cmp dword [ebp - 4], esi
je 0x405a8c
push edi
push 0xfffffffffffffff1
call fcn.00405268
push esi
push edi
call fcn.00405f20
jmp 0x405ad2
push edi
push 0xffffffffffffffe5
call fcn.00405268
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405bc7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422138
push esi
call fcn.00406141
push esi
call fcn.00405b72
mov edi, eax
test edi, edi
jne 0x405be8
xor eax, eax
jmp 0x405c3a
push edi
call fcn.004063ab
test byte [0x42473c], 0x80
je 0x405c01
mov al, byte [edi]
test al, al
je 0x405be4
cmp al, 0x5c
je 0x405be4
sub edi, esi
jmp 0x405c19
call fcn.00406444
test eax, eax
je 0x405c13
test byte [eax], 0x10
je 0x405be4
push esi
call fcn.00405b20
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405c05
call fcn.00405ad9
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 0x405cb5
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 0x405cd4
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 0x405cda
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 0x405d09
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 0x405d4e
test edi, edi
jne 0x405d14
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405d48
Function at 0x405db0
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 [0x422ac0], 0x4c554e
mov edi, 0x400
mov ebp, 0x422ac0
je 0x405dfc
push 1
push 0
push esi
call fcn.00405cda
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405f1b
cmp eax, edi
jg 0x405f1b
mov esi, 0x422ec0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405f1b
cmp eax, edi
jg 0x405f1b
push esi
push ebp
push str._s_s_r_n
push 0x4226c0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x424734]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406163
push 4
push 0xc0000000
push esi
call fcn.00405cda
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405f1b
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 0x405f14
push edi
push esi
push ebp
call fcn.00405d52
test eax, eax
je 0x405f14
push str._Rename__r_n
push esi
call fcn.00405c3f
test eax, eax
jne 0x405eb2
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405ee7
add eax, 0xa
push 0x40a3d0
push eax
call fcn.00405c3f
mov ebp, eax
test ebp, ebp
je 0x405ee3
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405ed4
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405ece
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405ee9
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4226c0
push eax
call fcn.00405c95
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.00405d81
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 0x405f20
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 0x405f43
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405db0
pop ecx
pop ecx
inc dword [0x4247d0]
ret 8

Function at 0x406028
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.00405fc7
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406097
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 0x406097
cmp dword [ebp + 0xc], 1
je 0x40609a
cmp dword [ebp + 0xc], 2
je 0x40609a
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x40646b
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 0x40648f
xor eax, eax
test eax, eax
je 0x4064a1
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4064a1
xor ecx, ecx
jmp 0x4064a4
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 0x406590
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232c4], 0
push esi
jne 0x4065c7
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 0x4065a1
mov dword [ecx*4 + 0x4232c0], eax
inc ecx
cmp ecx, 0x100
jl 0x40659c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065f8
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 + 0x4232c0]
xor eax, esi
inc ecx
dec edx
jne 0x4065da
pop edi
not eax
pop esi
ret 0xc
Function at 0x4447e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x444805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x444878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x44483a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x44486d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x44486b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x444831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4447fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret