joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x571d0f05
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x2ca06955
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x2ad9341b
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
nop
mov eax, section..rsrc
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x187b083a
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0xf081dc
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf081e6
pushal
call 0xf081ec
pop ebp
sub ebp, 0x10
sub ebp, 0xb081dc
jmp 0xf08202
mov eax, 0xb081dc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5e0
mov edx, 0x3b97aa9d
xor byte [eax], dl
inc eax
dec ecx
jne 0xf08219
test esi, esi
invalid
jmp 0xf0822c
push ss
push eax
push ss
adc al, 0xa1
popfd
popfd
popfd
sbb al, 0x5c
pop esp
popfd
popfd
popfd
sahf
push eax
and eax, 0x9d9d9d9b
daa
mov ch, 0x9d
popfd
popfd
push 0x7f
sahf
push ebp
push ss
sbb al, 0x91
popfd
popfd
popfd
sahf
pop eax
adc cl, bh
mov ecx, 0xb9991461
int 0xf5
popfd
push es
sbb byte [ebp + 0xd7b44f5], 0x9d
jnp 0xf08270
popfd
pushfd
mov cl, 0xb9
cmc
xor eax, 0x754d447b
cwde
popfd
popfd
popfd
je 0xf0821e
popfd
popfd
popfd
adc cl, bh
mov ecx, 0xb9b11461
adc cl, dh
mov ecx, 0x9518169d
popfd
popfd
popfd
push ss
or byte [ecx + 0x169d9d9d], dl
adc byte [ebp + 0x5c9d9d9d], cl
je 0xf08235
lodsb al, byte [esi]
lahf
push ds
pop edi
cdq
aam 0x92
sbb byte [ecx + 0x62], ch
bound esp, qword [edx + 0x16]
mov cl, 0xb9
adc cl, bh
mov ecx, 0x9d915f99
push ss
adc dword [ecx - 0x62626267], edi
cmc
popfd
push es
sbb byte [ebp + 0xd7b44f5], 0x9d
pushfd
mov cl, 0xb9
adc cl, bh
mov ecx, 0xb9911461
jne 0xf08261
popfd
popfd
popfd
je 0xf0829a
lahf
popfd
popfd
enter 0x7116, 0x62
call 0x96d8e56b
jne 0xf082f5
sbb dword [ebp + 0x20169d9d], ebx
xchg ebp, eax
popfd
popfd
popfd
sbb al, 0x6c
popfd
popfd
popfd
push ss
and byte [ebp + 0x1c9d9d9d], dl
insb byte es:[edi], dx
xor dword [0x836c1c77], 0x34
movsd dword es:[edi], dword [esi]
ja 0xf082a0
ja 0xf08308
insb byte es:[edi], dx
xor dword [0x1c54ae77], 0x6f
push esp
sbb al, 0x6f
xchg ecx, eax
jge 0xf0829d
mov edx, 0x7d916f1c
movsd dword es:[edi], dword [esi]
mov edx, 0x751e4fae
cwde
aad 0x92
sbb ebx, edx
popfd
popfd
popfd
xchg edx, eax
adc eax, 0x9d9d9dd5
sti
push ss
and dword [ebp + ebx + 0x19927566], 0x9d9d9d87
sbb eax, 0x19927466
mov word [ebp + 0x1cfb9d9d], ds
bound di, dword [eax - 0x6277e66e]
popfd
popfd
fdiv qword [ecx + edx*2 + 0x62]
bound esp, qword [edx - 0x4c]
shl dword [esp + ebx*4 + 0x1e985c1e], 1
jne 0xf082db
je 0xf08364
bound esp, qword [edx + 0x62]
mov ah, 0xc9
movsb byte es:[edi], byte [esi]
lahf
push ds
pop esp
wait
push ds
ja 0xf082ea
push ds
jne 0xf082ec
je 0xf0838c
bound esp, qword [edx + 0x62]
push ss
mov cl, 0xb9
adc cl, bh
mov ecx, 0x9d915f99
enter 0x7116, 0xffffffffffffffcb
push ss
jno 0xf08332
retf 0x16c8
popfd
popfd
popfd
pop ss
mov ebx, ebx
invalid
Function at 0x7ffe5353
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0x30]
stc
pushal
inc eax
popal
clc
add eax, 0
stc
and bh, 0xff
stc
push edx
cdq
pop edx
stc
push edx
cdq
pop edx
clc
lea esp, [esp]
cld
add eax, 0
clc
lea esp, [esp]
cld
lea esp, [esp]
nop
pushal
inc eax
popal
cld
pushal
inc eax
popal
stc
lea esp, [esp]
stc
and bh, 0xff
nop
and bh, 0xff
stc
and bh, 0xff
nop
lea esp, [esp]
cld
and bh, 0xff
stc
lea esp, [esp]
stc
push edx
cdq
pop edx
stc
pushal
inc eax
popal
clc
lea esp, [esp]
clc
and bh, 0xff
cld
lea esp, [esp]
cld
pushal
inc eax
popal
cld
pushal
inc eax
popal
cld
stc
call 0x7ffe53c4
pop edx
nop
xor dx, dx
pushal
inc eax
popal
stc
lea esp, [esp]
stc
add eax, 0
add edx, 0xd5e0
cld
lea esp, [esp]
clc
stc
nop
cld
xor ecx, ecx
cld
mov cl, 0x1e
push edx
cdq
pop edx
cld
cld
xor byte [ecx + edx], 0x2a
loop 0x7ffe53ec
push dword fs:[0x24]
cld
push edx
cdq
pop edx
push es
pop ds
cld
pop dword [edx + 0xa]
clc
lea esp, [esp]
cld
cld
cld
mov cl, 0xff
push edx
cdq
pop edx
cld
lea esp, [esp]
nop
add eax, 0
cld
push edx
loop 0x7ffe5418
push edx
cdq
pop edx
cld
push edx
cdq
pop edx
clc
pushal
inc eax
popal
clc
mov dword [edx + 0x11], 0xffffacbb
push edx
cdq
pop edx
clc
and bh, 0xff
clc
and bh, 0xff
mov ecx, dword [eax + 0x2c]
stc
and al, 0xff
clc
mov dword [edx + 0x1b], ecx
lea esp, [esp]
cld
and bh, 0xff
cld
clc
mov dword [edx + 0x100], ecx
stc
lea esp, [esp]
stc
lea esp, [esp]
clc
cld
cld
mov dword [eax + 0x2c], esp
pushal
inc eax
popal
cld
lea esp, [esp]
stc
nop
push 0
clc
add eax, 0
cld
add eax, 0
push 0
cld
stc
stc
push 0
and bh, 0xff
clc
push edx
cdq
pop edx
cld
clc
push 0
cld
cld
nop
push 0x30
add eax, 0
cld
add eax, 0
cld
push edx
cdq
pop edx
push 0x20
clc
lea esp, [esp]
clc
add eax, 0
nop
push eax
pop eax
clc
push 0
lea esp, [esp]
stc
push 0
pushal
inc eax
popal
clc
cld
add edx, 0xffff7f31
nop
push edx
cdq
pop edx
nop
lea esp, [esp]
cld
push edx
and bh, 0xff
clc
cld
clc
push edx
push edx
cdq
pop edx
cld
and bh, 0xff
push eax
pop eax
stc
push 0
cld
add eax, 0
nop
and al, 0xff
cld
call dword [edx + 0x8212]
clc
add esp, 0x3f8
cld
push edx
cdq
pop edx
clc
clc
xor eax, eax
cld
push edx
cdq
pop edx
cld
and bh, 0xff
clc
nop
cld
inc eax
add eax, 0
stc
pushal
inc eax
popal
cld
pushal
inc eax
popal
cld
ret 0xc
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x24b86773
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x4a5a577e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x403ac5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407478
cmp edx, dword [eax]
je 0x403ae7
add eax, 8
inc ecx
cmp eax, 0x407508
jl 0x403ad8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407478]
jne 0x403c15
mov eax, dword [0x440ed0c]
cmp eax, 1
je 0x403bef
test eax, eax
jne 0x403b18
cmp dword [0x4073c8], 1
je 0x403bef
cmp edx, 0xfc
je 0x403c15
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403b4f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004048d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004049c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403b92
lea eax, [ebp - 0x1a4]
push eax
call fcn.004049c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4063f8
push edi
call fcn.004020e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004048d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004048e0
lea eax, [ebp - 0xa0]
push 0x4063d8
push eax
call fcn.004048e0
push dword [esi + 0x40747c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004048e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405284
add esp, 0x2c
pop edi
jmp 0x403c15
lea eax, [ebp + 8]
lea esi, [esi + 0x40747c]
push 0
push eax
push dword [esi]
call fcn.004049c0
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 0x402a3d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x4237b0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ad1
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a8e
cmp dword [ebp + 0x10], ebx
jne 0x402ac5
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a3d
test eax, eax
jne 0x402aa0
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a75
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406061
cmp eax, ebx
je 0x402ad8
push ebx
push dword [0x4237b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ad1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4237b0], ebx
jne 0x402ace
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ace
jmp 0x402ad1
Function at 0x402f1f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp eax, esi
jl 0x402f4b
mov ecx, dword [0x423758]
push esi
add eax, ecx
push esi
push eax
mov dword [0x4168a4], eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040303a
cmp eax, esi
jl 0x403034
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40901c]
call fcn.00405a3f
test eax, eax
je 0x403020
push dword [ebp + 8]
add dword [0x4168a4], 4
call fcn.0040303a
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x403034
cmp dword [ebp + 0x10], esi
jne 0x402ffc
cmp dword [ebp + 8], esi
jle 0x403031
mov esi, 0x4128a0
cmp dword [ebp + 8], 0x4000
mov edi, dword [ebp + 8]
jl 0x402fb1
mov edi, 0x4000
push edi
push esi
push dword [0x40901c]
mov dword [ebp - 4], edi
call fcn.00405a3f
test eax, eax
je 0x403020
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ff8
cmp dword [ebp + 0x14], edi
jne 0x402ff8
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4168a4], eax
cmp dword [ebp + 8], 0
jg 0x402fa0
jmp 0x403031
push 0xfffffffffffffffe
jmp 0x403022
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403007
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403025
push 0xfffffffffffffffd
pop eax
jmp 0x403034
mov eax, dword [ebp - 4]
add dword [0x4168a4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0x10
Function at 0x40303a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x4168a4]
sub esi, dword [0x40a810]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x42370c], eax
jle 0x4031a4
push dword [0x41e8b4]
call fcn.004031cc
push ebx
push ebx
push dword [0x40a810]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41e8b0], esi
mov dword [0x4168a0], ebx
mov ebp, 0x40a8a0
mov eax, dword [0x4168a8]
mov edi, 0x4000
sub eax, dword [0x41e8b4]
cmp eax, edi
jg 0x4030af
mov edi, eax
mov esi, 0x4128a0
push edi
push esi
call fcn.004031b6
test eax, eax
je 0x403196
add dword [0x41e8b4], edi
mov dword [0x40a830], esi
mov dword [0x40a834], edi
cmp dword [0x423710], ebx
je 0x403106
cmp dword [0x4237a0], ebx
jne 0x403106
mov eax, dword [0x41e8b0]
push ebx
sub eax, dword [0x4168a4]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40a810]
mov dword [0x4168a0], eax
call fcn.00402bda
pop ecx
mov ecx, 0x40a818
mov dword [0x40a838], ebp
mov dword [0x40a83c], 0x8000
call fcn.00406161
test eax, eax
jl 0x40319f
mov esi, dword [0x40a838]
sub esi, ebp
je 0x403160
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40319b
cmp esi, dword [esp + 0x10]
jne 0x40319b
add dword [0x40a810], esi
cmp dword [0x40a834], ebx
jne 0x4030d5
jmp 0x40316c
cmp dword [0x40a834], ebx
jne 0x40319f
cmp edi, ebx
je 0x40319f
mov eax, dword [0x4168a4]
mov ecx, eax
sub ecx, dword [0x40a810]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403099
push ebx
push ebx
push eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031a4
or eax, 0xffffffff
jmp 0x4031ae
push 0xfffffffffffffffe
jmp 0x4031a1
push 0xfffffffffffffffd
pop eax
jmp 0x4031ae
push 1
call fcn.00402bda
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4054e5
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004059a2
mov edi, eax
cmp edi, 0xffffffff
je 0x4055ef
test byte [esp + 0x10], 1
push esi
je 0x4055d1
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4055d7
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4055e0
xor eax, eax
inc eax
jmp 0x4055f1
test byte [esp + 0x10], 4
jne 0x4055ef
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4055f6
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.004058b4
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405635
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423788], eax
jmp 0x4057bf
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40564f
test eax, eax
je 0x40576d
test bl, 2
je 0x40576d
mov esi, 0x420d00
push edi
push esi
call fcn.00405d36
cmp dword [ebp + 8], 0
je 0x40566e
push 0x409394
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405674
push edi
call fcn.0040580d
cmp byte [edi], 0
jne 0x405682
cmp byte [0x420d00], 0x5c
jne 0x40568d
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 0x405763
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.004057f1
cmp byte [eax], 0
je 0x4056d3
cmp byte [ebp - 0x1c], 0
je 0x4056d3
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x4056e9
mov al, byte [esi + 1]
test al, al
je 0x405742
cmp al, 0x2e
jne 0x4056e9
cmp byte [esi + 2], 0
je 0x405742
push esi
push ebx
call fcn.00405d36
test byte [ebp - 0x14c], 0x10
je 0x40570e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405742
push dword [ebp + 0xc]
push edi
call fcn.004055f6
jmp 0x405742
push dword [ebp - 4]
push edi
call fcn.004055ae
test eax, eax
jne 0x40573a
cmp dword [ebp - 4], eax
je 0x405732
push edi
push 0xfffffffffffffff1
call fcn.0040501f
push 0
push edi
call fcn.00405bea
jmp 0x405742
inc dword [0x423788]
jmp 0x405742
push edi
push 0xfffffffffffffff2
call fcn.0040501f
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4056b1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40576d
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4057bf
cmp dword [ebp - 0xc], esi
jne 0x405781
inc dword [0x423788]
jmp 0x4057bf
push edi
call fcn.0040603a
test eax, eax
je 0x4057bf
push edi
call fcn.004057c6
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004055ae
test eax, eax
jne 0x4057b7
cmp dword [ebp - 4], esi
je 0x405779
push edi
push 0xfffffffffffffff1
call fcn.0040501f
push esi
push edi
call fcn.00405bea
jmp 0x4057bf
push edi
push 0xffffffffffffffe5
call fcn.0040501f
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4058b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421100
push esi
call fcn.00405d36
push esi
call fcn.0040585f
mov edi, eax
test edi, edi
jne 0x4058d5
xor eax, eax
jmp 0x405927
push edi
call fcn.00405fa1
test byte [0x423718], 0x80
je 0x4058ee
mov al, byte [edi]
test al, al
je 0x4058d1
cmp al, 0x5c
je 0x4058d1
sub edi, esi
jmp 0x405906
call fcn.0040603a
test eax, eax
je 0x405900
test byte [eax], 0x10
je 0x4058d1
push esi
call fcn.0040580d
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4058f2
call fcn.004057c6
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 0x4059a2
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 0x4059c1
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 0x4059c7
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 0x4059f6
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 [0x40939c]
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 0x405a3b
test edi, edi
jne 0x405a01
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a35
Function at 0x405a6e
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x421a88
push 0x4093b8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405abd
push 1
push 0
push esi
call fcn.004059c7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405be4
cmp eax, ebx
jg 0x405be4
mov esi, 0x421e88
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405be4
cmp eax, ebx
jg 0x405be4
push esi
push edi
push str._s_s_r_n
push 0x421688
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423710]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d58
push 4
push 0xc0000000
push esi
call fcn.004059c7
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405be4
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 0x405bdd
push edi
push esi
push ebp
call fcn.00405a3f
test eax, eax
je 0x405bdd
push str._Rename__r_n
push esi
call fcn.0040592c
test eax, eax
jne 0x405b73
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405ba8
add eax, 0xa
push 0x4093a0
push eax
call fcn.0040592c
mov ebp, eax
test ebp, ebp
je 0x405ba4
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405b95
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405b8f
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405baa
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x421688
push eax
call fcn.00405982
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
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]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405c1d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c8e
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c7d
cmp dword [ebp + 0x14], 1
je 0x405c7f
cmp dword [ebp + 0x14], 2
je 0x405c7f
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4060d3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42228c], 0
push esi
jne 0x40610a
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 0x4060e4
mov dword [ecx*4 + 0x422288], eax
inc ecx
cmp ecx, 0x100
jl 0x4060df
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40613b
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 + 0x422288]
xor eax, esi
inc ecx
dec edx
jne 0x40611d
pop edi
not eax
pop esi
ret 0xc